public class CarbonTableOutputFormat extends org.apache.hadoop.mapreduce.lib.output.FileOutputFormat<org.apache.hadoop.io.NullWritable,ObjectArrayWritable>
| Modifier and Type | Class and Description |
|---|---|
static class |
CarbonTableOutputFormat.CarbonMultiRecordWriter |
static class |
CarbonTableOutputFormat.CarbonRecordWriter |
| Modifier and Type | Field and Description |
|---|---|
static String |
BAD_RECORD_PATH |
static String |
BAD_RECORDS_LOGGER_ACTION |
static String |
BAD_RECORDS_LOGGER_ENABLE |
static String |
BATCH_SORT_SIZE_INMB |
static String |
COMPLEX_DELIMITERS |
static String |
DATE_FORMAT |
static String |
DICTIONARY_SERVER_HOST |
static String |
DICTIONARY_SERVER_PORT |
static String |
GLOBAL_SORT_PARTITIONS |
static String |
IS_EMPTY_DATA_BAD_RECORD |
static String |
IS_ONE_PASS_LOAD |
static String |
OPERATION_CONTEXT
It is used only to fire events in case of any child tables to be loaded.
|
static String |
SEGMENTS_TO_BE_DELETED
During update query we first delete the old data and then add updated data to new segment, so
sometimes there is a chance that complete segments needs to removed during deletion.
|
static String |
SERIALIZATION_NULL_FORMAT |
static String |
SKIP_EMPTY_LINE |
static String |
SORT_SCOPE |
static String |
TIMESTAMP_FORMAT |
static String |
UPADTE_TIMESTAMP
Set the update timestamp if user sets in case of update query.
|
| Constructor and Description |
|---|
CarbonTableOutputFormat() |
| Modifier and Type | Method and Description |
|---|---|
static org.apache.carbondata.core.metadata.schema.table.CarbonTable |
getCarbonTable(org.apache.hadoop.conf.Configuration configuration) |
static String |
getDatabaseName(org.apache.hadoop.conf.Configuration configuration) |
static CarbonLoadModel |
getLoadModel(org.apache.hadoop.conf.Configuration conf) |
org.apache.hadoop.mapreduce.OutputCommitter |
getOutputCommitter(org.apache.hadoop.mapreduce.TaskAttemptContext context) |
org.apache.hadoop.mapreduce.RecordWriter<org.apache.hadoop.io.NullWritable,ObjectArrayWritable> |
getRecordWriter(org.apache.hadoop.mapreduce.TaskAttemptContext taskAttemptContext) |
static String |
getTableName(org.apache.hadoop.conf.Configuration configuration) |
static String |
getTablePath(org.apache.hadoop.conf.Configuration configuration) |
static boolean |
isOverwriteSet(org.apache.hadoop.conf.Configuration configuration) |
static void |
setCarbonTable(org.apache.hadoop.conf.Configuration configuration,
org.apache.carbondata.core.metadata.schema.table.CarbonTable carbonTable) |
static void |
setDatabaseName(org.apache.hadoop.conf.Configuration configuration,
String databaseName) |
static void |
setInputSchema(org.apache.hadoop.conf.Configuration configuration,
org.apache.carbondata.core.metadata.datatype.StructType inputSchema) |
static void |
setLoadModel(org.apache.hadoop.conf.Configuration configuration,
CarbonLoadModel loadModel) |
static void |
setOverwrite(org.apache.hadoop.conf.Configuration configuration,
boolean overwrite) |
static void |
setTableName(org.apache.hadoop.conf.Configuration configuration,
String tableName) |
static void |
setTablePath(org.apache.hadoop.conf.Configuration configuration,
String tablePath) |
static void |
setTempStoreLocations(org.apache.hadoop.conf.Configuration configuration,
String[] tempLocations) |
checkOutputSpecs, getCompressOutput, getDefaultWorkFile, getOutputCompressorClass, getOutputName, getOutputPath, getPathForWorkFile, getUniqueFile, getWorkOutputPath, setCompressOutput, setOutputCompressorClass, setOutputName, setOutputPathpublic static final String COMPLEX_DELIMITERS
public static final String SERIALIZATION_NULL_FORMAT
public static final String BAD_RECORDS_LOGGER_ENABLE
public static final String BAD_RECORDS_LOGGER_ACTION
public static final String IS_EMPTY_DATA_BAD_RECORD
public static final String SKIP_EMPTY_LINE
public static final String SORT_SCOPE
public static final String BATCH_SORT_SIZE_INMB
public static final String GLOBAL_SORT_PARTITIONS
public static final String BAD_RECORD_PATH
public static final String DATE_FORMAT
public static final String TIMESTAMP_FORMAT
public static final String IS_ONE_PASS_LOAD
public static final String DICTIONARY_SERVER_HOST
public static final String DICTIONARY_SERVER_PORT
public static final String UPADTE_TIMESTAMP
public static final String SEGMENTS_TO_BE_DELETED
public static final String OPERATION_CONTEXT
public static void setDatabaseName(org.apache.hadoop.conf.Configuration configuration,
String databaseName)
public static String getDatabaseName(org.apache.hadoop.conf.Configuration configuration)
public static void setTableName(org.apache.hadoop.conf.Configuration configuration,
String tableName)
public static String getTableName(org.apache.hadoop.conf.Configuration configuration)
public static void setTablePath(org.apache.hadoop.conf.Configuration configuration,
String tablePath)
public static String getTablePath(org.apache.hadoop.conf.Configuration configuration)
public static void setCarbonTable(org.apache.hadoop.conf.Configuration configuration,
org.apache.carbondata.core.metadata.schema.table.CarbonTable carbonTable)
throws IOException
IOExceptionpublic static org.apache.carbondata.core.metadata.schema.table.CarbonTable getCarbonTable(org.apache.hadoop.conf.Configuration configuration)
throws IOException
IOExceptionpublic static void setLoadModel(org.apache.hadoop.conf.Configuration configuration,
CarbonLoadModel loadModel)
throws IOException
IOExceptionpublic static void setInputSchema(org.apache.hadoop.conf.Configuration configuration,
org.apache.carbondata.core.metadata.datatype.StructType inputSchema)
throws IOException
IOExceptionpublic static boolean isOverwriteSet(org.apache.hadoop.conf.Configuration configuration)
public static void setOverwrite(org.apache.hadoop.conf.Configuration configuration,
boolean overwrite)
public static void setTempStoreLocations(org.apache.hadoop.conf.Configuration configuration,
String[] tempLocations)
throws IOException
IOExceptionpublic org.apache.hadoop.mapreduce.OutputCommitter getOutputCommitter(org.apache.hadoop.mapreduce.TaskAttemptContext context)
throws IOException
getOutputCommitter in class org.apache.hadoop.mapreduce.lib.output.FileOutputFormat<org.apache.hadoop.io.NullWritable,ObjectArrayWritable>IOExceptionpublic org.apache.hadoop.mapreduce.RecordWriter<org.apache.hadoop.io.NullWritable,ObjectArrayWritable> getRecordWriter(org.apache.hadoop.mapreduce.TaskAttemptContext taskAttemptContext) throws IOException
getRecordWriter in class org.apache.hadoop.mapreduce.lib.output.FileOutputFormat<org.apache.hadoop.io.NullWritable,ObjectArrayWritable>IOExceptionpublic static CarbonLoadModel getLoadModel(org.apache.hadoop.conf.Configuration conf) throws IOException
IOExceptionCopyright © 2016–2018 The Apache Software Foundation. All rights reserved.