public class HBaseRecordReader extends AbstractRecordReader implements DrillHBaseConstants
DEFAULT_TEXT_COLS_TO_READ
COLUMN_FAMILY_TYPE, COLUMN_TYPE, HBASE_ZOOKEEPER_PORT, ROW_KEY, ROW_KEY_PATH, ROW_KEY_TYPE, SYS_STORE_PROVIDER_HBASE_CONFIG, SYS_STORE_PROVIDER_HBASE_TABLE
ALLOCATOR_INITIAL_RESERVATION, ALLOCATOR_MAX_RESERVATION
Constructor and Description |
---|
HBaseRecordReader(org.apache.hadoop.hbase.client.Connection connection,
HBaseSubScan.HBaseSubScanSpec subScanSpec,
List<SchemaPath> projectedColumns) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
int |
next()
Increments this record reader forward, writing via the provided output
mutator into the output batch.
|
void |
setup(OperatorContext context,
OutputMutator output)
Configure the RecordReader with the provided schema and the record batch that should be written to.
|
String |
toString() |
protected Collection<SchemaPath> |
transformColumns(Collection<SchemaPath> columns)
Provides the projected columns information to the Hbase Scan instance.
|
allocate, getColumns, getDefaultColumnsToRead, hasNext, isSkipQuery, isStarQuery, setColumns
public HBaseRecordReader(org.apache.hadoop.hbase.client.Connection connection, HBaseSubScan.HBaseSubScanSpec subScanSpec, List<SchemaPath> projectedColumns)
protected Collection<SchemaPath> transformColumns(Collection<SchemaPath> columns)
transformColumns
in class AbstractRecordReader
columns
- collection of projected columnspublic void setup(OperatorContext context, OutputMutator output) throws ExecutionSetupException
RecordReader
setup
in interface RecordReader
context
- operator context for the readeroutput
- The place where output for a particular scan should be written. The record reader is responsible for
mutating the set of schema values for that particular record.ExecutionSetupException
public int next()
RecordReader
next
in interface RecordReader
public void close()
close
in interface AutoCloseable
public String toString()
toString
in class AbstractRecordReader
Copyright © 1970 The Apache Software Foundation. All rights reserved.