public abstract class AbstractExportToCloudStorage extends java.lang.Object implements Export
| Modifier and Type | Field and Description |
|---|---|
protected BigQueryHelper |
bigQueryHelper |
protected org.apache.hadoop.conf.Configuration |
configuration |
static java.lang.String |
DESTINATION_FORMAT_KEY |
protected com.google.api.services.bigquery.model.JobReference |
exportJobReference |
protected ExportFileFormat |
fileFormat |
protected java.lang.String |
gcsPath |
protected java.lang.String |
projectId |
protected com.google.api.services.bigquery.model.Table |
tableToExport |
| Constructor and Description |
|---|
AbstractExportToCloudStorage(org.apache.hadoop.conf.Configuration configuration,
java.lang.String gcsPath,
ExportFileFormat fileFormat,
BigQueryHelper bigQueryHelper,
java.lang.String projectId,
com.google.api.services.bigquery.model.Table tableToExport) |
| Modifier and Type | Method and Description |
|---|---|
void |
beginExport()
Start exporting data
|
void |
cleanupExport()
Delete any temp tables or temporary data locations.
|
void |
prepare()
Create any temporary directories, tables, etc
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetExportPaths, getSplits, waitForUsableMapReduceInputpublic static final java.lang.String DESTINATION_FORMAT_KEY
protected final org.apache.hadoop.conf.Configuration configuration
protected final java.lang.String gcsPath
protected final ExportFileFormat fileFormat
protected final BigQueryHelper bigQueryHelper
protected final java.lang.String projectId
protected final com.google.api.services.bigquery.model.Table tableToExport
protected com.google.api.services.bigquery.model.JobReference exportJobReference
public AbstractExportToCloudStorage(org.apache.hadoop.conf.Configuration configuration,
java.lang.String gcsPath,
ExportFileFormat fileFormat,
BigQueryHelper bigQueryHelper,
java.lang.String projectId,
com.google.api.services.bigquery.model.Table tableToExport)
public void prepare()
throws java.io.IOException
Exportpublic void beginExport()
throws java.io.IOException
ExportbeginExport in interface Exportjava.io.IOExceptionpublic void cleanupExport()
throws java.io.IOException
ExportcleanupExport in interface Exportjava.io.IOExceptionCopyright © 2019. All rights reserved.