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, wait
getExportPaths, getSplits, waitForUsableMapReduceInput
public 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
Export
public void beginExport() throws java.io.IOException
Export
beginExport
in interface Export
java.io.IOException
public void cleanupExport() throws java.io.IOException
Export
cleanupExport
in interface Export
java.io.IOException
Copyright © 2018. All rights reserved.