public interface RecordReader extends AutoCloseable
Modifier and Type | Field and Description |
---|---|
static long |
ALLOCATOR_INITIAL_RESERVATION |
static long |
ALLOCATOR_MAX_RESERVATION |
Modifier and Type | Method and Description |
---|---|
void |
allocate(Map<String,ValueVector> vectorMap) |
boolean |
hasNext()
Check if the reader may have potentially more data to be read in subsequent iterations.
|
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.
|
close
static final long ALLOCATOR_INITIAL_RESERVATION
static final long ALLOCATOR_MAX_RESERVATION
void setup(OperatorContext context, OutputMutator output) throws ExecutionSetupException
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
void allocate(Map<String,ValueVector> vectorMap) throws OutOfMemoryException
OutOfMemoryException
boolean hasNext()
int next()
Copyright © 1970 The Apache Software Foundation. All rights reserved.