Class HiveTextRecordReader

All Implemented Interfaces:
AutoCloseable, RecordReader

public class HiveTextRecordReader extends HiveDefaultRecordReader
Reading of Hive table stored in text format may require to skip few header/footer records. This class extends default reader to add the functionality.
  • Constructor Details

    • HiveTextRecordReader

      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)
      Constructor matching super.
      Parameters:
      table - metadata about Hive table being read
      partition - holder of metadata about table partitioning
      inputSplits - input splits for reading data from distributed storage
      projectedColumns - target columns for scan
      context - fragmentContext of fragment
      hiveConf - Hive configuration
      proxyUgi - user/group info to be used for initialization
  • Method Details