public class TableExport extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
TableExport.AuthEntities |
static class |
TableExport.Paths
this class is responsible for giving various paths to be used during export along with root export
directory creation.
|
| Constructor and Description |
|---|
TableExport() |
TableExport(TableExport.Paths paths,
BaseSemanticAnalyzer.TableSpec tableSpec,
ReplicationSpec replicationSpec,
Hive db,
String distCpDoAsUser,
HiveConf conf,
ExportWork.MmContext mmCtx) |
| Modifier and Type | Method and Description |
|---|---|
TableExport.AuthEntities |
getAuthEntities() |
void |
parallelWrite(ExportService exportService,
boolean isExportTask,
FileList fileList,
boolean dataCopyAtLoad)
Write table or partition data simultaneously using ExportService.
|
void |
serialWrite(boolean isExportTask,
FileList fileList,
boolean dataCopyAtLoad)
Write table or partition data one after another
|
protected void |
write(boolean isExportTask,
FileList fileList,
boolean dataCopyAtLoad) |
public TableExport(TableExport.Paths paths, BaseSemanticAnalyzer.TableSpec tableSpec, ReplicationSpec replicationSpec, Hive db, String distCpDoAsUser, HiveConf conf, ExportWork.MmContext mmCtx)
public TableExport()
public void serialWrite(boolean isExportTask,
FileList fileList,
boolean dataCopyAtLoad)
throws SemanticException
isExportTask - Indicates whether task is export or notfileList - List of files to be writtendataCopyAtLoad - Indicates whether data need to be distcp during load only or notSemanticExceptionpublic void parallelWrite(ExportService exportService, boolean isExportTask, FileList fileList, boolean dataCopyAtLoad) throws HiveException
isExportTask - Indicates whether task is export or notfileList - List of files to be writtendataCopyAtLoad - Indicates whether data need to be distcp during load only or not.HiveExceptionprotected void write(boolean isExportTask,
FileList fileList,
boolean dataCopyAtLoad)
throws SemanticException
SemanticExceptionpublic TableExport.AuthEntities getAuthEntities() throws SemanticException
SemanticExceptionCopyright © 2024 The Apache Software Foundation. All rights reserved.