public class HiveTextRecordReader extends HiveDefaultRecordReader
empty, logger, mapredReader, outputWriter, partitionDeserializer, partitionToTableSchemaConverter, TARGET_RECORD_COUNT, valueHolder
DEFAULT_TEXT_COLS_TO_READ
ALLOCATOR_INITIAL_RESERVATION, ALLOCATOR_MAX_RESERVATION
Constructor and Description |
---|
HiveTextRecordReader(HiveTableWithColumnCache table,
HivePartition partition,
Collection<org.apache.hadoop.mapred.InputSplit> inputSplits,
List<SchemaPath> projectedColumns,
FragmentContext context,
org.apache.hadoop.hive.conf.HiveConf hiveConf,
org.apache.hadoop.security.UserGroupInformation proxyUgi)
Constructor matching super.
|
Modifier and Type | Method and Description |
---|---|
protected void |
internalInit(Properties hiveTableProperties)
Default implementation does nothing, used to apply skip header/footer functionality
|
int |
next()
Reads batch of records skipping footer rows when necessary.
|
close, hasNextValue, readHiveRecordAndInsertIntoRecordBatch, setup
allocate, getColumns, getDefaultColumnsToRead, hasNext, isSkipQuery, isStarQuery, setColumns, toString, transformColumns
public HiveTextRecordReader(HiveTableWithColumnCache table, HivePartition partition, Collection<org.apache.hadoop.mapred.InputSplit> inputSplits, List<SchemaPath> projectedColumns, FragmentContext context, org.apache.hadoop.hive.conf.HiveConf hiveConf, org.apache.hadoop.security.UserGroupInformation proxyUgi)
table
- metadata about Hive table being readpartition
- holder of metadata about table partitioninginputSplits
- input splits for reading data from distributed storageprojectedColumns
- target columns for scancontext
- fragmentContext of fragmenthiveConf
- Hive configurationproxyUgi
- user/group info to be used for initializationprotected void internalInit(Properties hiveTableProperties)
HiveDefaultRecordReader
internalInit
in class HiveDefaultRecordReader
hiveTableProperties
- hive table propertiespublic int next()
next
in interface RecordReader
next
in class HiveDefaultRecordReader
Copyright © 1970 The Apache Software Foundation. All rights reserved.