public class RecordIterator extends Object implements VectorAccessible
| Constructor and Description |
|---|
RecordIterator(RecordBatch incoming,
AbstractRecordBatch<?> outgoing,
OperatorContext oContext,
int inputIndex) |
RecordIterator(RecordBatch incoming,
AbstractRecordBatch<?> outgoing,
OperatorContext oContext,
int inputIndex,
boolean enableMarkAndReset) |
| Modifier and Type | Method and Description |
|---|---|
Map<com.google.common.collect.Range<Long>,RecordBatchData> |
cachedBatches() |
void |
clear() |
void |
clearInflightBatches() |
void |
close() |
boolean |
finished() |
void |
forward(long delta) |
int |
getCurrentPosition() |
int |
getInnerRecordCount() |
RecordBatch.IterOutcome |
getLastOutcome() |
long |
getOuterPosition() |
int |
getRecordCount()
Get the number of records.
|
BatchSchema |
getSchema()
Get the schema of the current RecordBatch.
|
SelectionVector2 |
getSelectionVector2() |
SelectionVector4 |
getSelectionVector4() |
long |
getTotalRecordCount() |
VectorWrapper<?> |
getValueAccessorById(Class<?> clazz,
int... ids) |
TypedFieldId |
getValueVectorId(SchemaPath path)
Get the value vector type and id for the given schema path.
|
Iterator<VectorWrapper<?>> |
iterator() |
void |
mark() |
RecordBatch.IterOutcome |
next()
Move iterator to next record.
|
void |
prepare()
buildSchema calls next() in order to read schema quikcly.
|
void |
reset() |
public RecordIterator(RecordBatch incoming, AbstractRecordBatch<?> outgoing, OperatorContext oContext, int inputIndex)
public RecordIterator(RecordBatch incoming, AbstractRecordBatch<?> outgoing, OperatorContext oContext, int inputIndex, boolean enableMarkAndReset)
public void mark()
public void reset()
public void forward(long delta)
public void prepare()
public RecordBatch.IterOutcome next()
public boolean finished()
public RecordBatch.IterOutcome getLastOutcome()
public long getTotalRecordCount()
public int getInnerRecordCount()
public long getOuterPosition()
public int getCurrentPosition()
public Map<com.google.common.collect.Range<Long>,RecordBatchData> cachedBatches()
public VectorWrapper<?> getValueAccessorById(Class<?> clazz, int... ids)
getValueAccessorById in interface VectorAccessiblepublic TypedFieldId getValueVectorId(SchemaPath path)
VectorAccessiblegetValueVectorId in interface VectorAccessiblepath - the path where the vector should be located.public BatchSchema getSchema()
VectorAccessiblegetSchema in interface VectorAccessiblepublic int getRecordCount()
VectorAccessiblegetRecordCount in interface VectorAccessiblepublic Iterator<VectorWrapper<?>> iterator()
iterator in interface Iterable<VectorWrapper<?>>public SelectionVector2 getSelectionVector2()
getSelectionVector2 in interface VectorAccessiblepublic SelectionVector4 getSelectionVector4()
getSelectionVector4 in interface VectorAccessiblepublic void clear()
public void clearInflightBatches()
public void close()
Copyright © 2017 The Apache Software Foundation. All rights reserved.