public class NoopFederatedExportToCloudStorage extends UnshardedExportToCloudStorage
It extends UnshardedExportToCloudStorage to share the FileInputFormat delegating logic.
| Modifier and Type | Field and Description |
|---|---|
protected java.util.List<java.lang.String> |
gcsPaths |
bigQueryHelper, configuration, DESTINATION_FORMAT_KEY, exportJobReference, fileFormat, gcsPath, projectId, tableToExport| Constructor and Description |
|---|
NoopFederatedExportToCloudStorage(org.apache.hadoop.conf.Configuration configuration,
ExportFileFormat fileFormat,
BigQueryHelper bigQueryHelper,
java.lang.String projectId,
com.google.api.services.bigquery.model.Table table,
org.apache.hadoop.mapreduce.InputFormat<org.apache.hadoop.io.LongWritable,org.apache.hadoop.io.Text> delegateInputFormat) |
| Modifier and Type | Method and Description |
|---|---|
void |
beginExport()
Start exporting data
|
void |
cleanupExport()
Delete any temp tables or temporary data locations.
|
java.util.List<java.lang.String> |
getExportPaths()
Get a list of export paths to provide to BigQuery
|
void |
prepare()
Create any temporary directories, tables, etc
|
void |
waitForUsableMapReduceInput()
Wait for enough data to be available for us to start a MapReduce.
|
getSplitspublic NoopFederatedExportToCloudStorage(org.apache.hadoop.conf.Configuration configuration,
ExportFileFormat fileFormat,
BigQueryHelper bigQueryHelper,
java.lang.String projectId,
com.google.api.services.bigquery.model.Table table,
@Nullable
org.apache.hadoop.mapreduce.InputFormat<org.apache.hadoop.io.LongWritable,org.apache.hadoop.io.Text> delegateInputFormat)
public void prepare()
throws java.io.IOException
Exportprepare in interface Exportprepare in class AbstractExportToCloudStoragejava.io.IOExceptionpublic void beginExport()
throws java.io.IOException
ExportbeginExport in interface ExportbeginExport in class AbstractExportToCloudStoragejava.io.IOExceptionpublic void waitForUsableMapReduceInput()
throws java.io.IOException,
java.lang.InterruptedException
ExportwaitForUsableMapReduceInput in interface ExportwaitForUsableMapReduceInput in class UnshardedExportToCloudStoragejava.io.IOExceptionjava.lang.InterruptedExceptionpublic java.util.List<java.lang.String> getExportPaths()
throws java.io.IOException
ExportgetExportPaths in interface ExportgetExportPaths in class UnshardedExportToCloudStoragejava.io.IOExceptionpublic void cleanupExport()
throws java.io.IOException
ExportcleanupExport in interface ExportcleanupExport in class AbstractExportToCloudStoragejava.io.IOExceptionCopyright © 2019. All rights reserved.