public class RecordIterator extends Object implements VectorAccessible
Constructor and Description |
---|
RecordIterator(RecordBatch incoming,
AbstractRecordBatch<?> outgoing,
OperatorContext oContext,
int inputIndex,
boolean enableMarkAndReset,
RecordBatchMemoryManager callBack) |
RecordIterator(RecordBatch incoming,
AbstractRecordBatch<?> outgoing,
OperatorContext oContext,
int inputIndex,
RecordBatchMemoryManager callBack) |
Modifier and Type | Method and Description |
---|---|
Map<org.apache.drill.shaded.guava.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() |
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
forEach, spliterator
public RecordIterator(RecordBatch incoming, AbstractRecordBatch<?> outgoing, OperatorContext oContext, int inputIndex, RecordBatchMemoryManager callBack)
public RecordIterator(RecordBatch incoming, AbstractRecordBatch<?> outgoing, OperatorContext oContext, int inputIndex, boolean enableMarkAndReset, RecordBatchMemoryManager callBack)
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<org.apache.drill.shaded.guava.com.google.common.collect.Range<Long>,RecordBatchData> cachedBatches()
public VectorWrapper<?> getValueAccessorById(Class<?> clazz, int... ids)
getValueAccessorById
in interface VectorAccessible
public TypedFieldId getValueVectorId(SchemaPath path)
VectorAccessible
Iterable<ValueVector>.
getValueVectorId
in interface VectorAccessible
path
- the path where the vector should be located.public BatchSchema getSchema()
VectorAccessible
getSchema
in interface VectorAccessible
public int getRecordCount()
VectorAccessible
getRecordCount
in interface VectorAccessible
public Iterator<VectorWrapper<?>> iterator()
iterator
in interface Iterable<VectorWrapper<?>>
public SelectionVector2 getSelectionVector2()
getSelectionVector2
in interface VectorAccessible
public SelectionVector4 getSelectionVector4()
getSelectionVector4
in interface VectorAccessible
public void clear()
public void clearInflightBatches()
public void close()
Copyright © 1970 The Apache Software Foundation. All rights reserved.