public class VectorContainerAccessor extends Object implements BatchAccessor
RecordBatch
. This implementation hosts
a container only.Modifier and Type | Field and Description |
---|---|
protected VectorContainer |
container |
Constructor and Description |
---|
VectorContainerAccessor() |
Modifier and Type | Method and Description |
---|---|
void |
addBatch(VectorContainer container)
Define an output batch.
|
int |
batchCount() |
VectorContainer |
container() |
VectorWrapper<?> |
getValueAccessorById(Class<?> clazz,
int... ids) |
TypedFieldId |
getValueVectorId(SchemaPath path) |
Iterator<VectorWrapper<?>> |
iterator() |
void |
release() |
int |
rowCount() |
BatchSchema |
schema() |
int |
schemaVersion() |
SelectionVector2 |
selectionVector2() |
SelectionVector4 |
selectionVector4() |
void |
setSchema(VectorContainer container)
Define a schema that does not necessarily contain any data.
|
WritableBatch |
writableBatch() |
protected VectorContainer container
public void setSchema(VectorContainer container)
public void addBatch(VectorContainer container)
container
- the container that holds vectors to be sent
downstreampublic int batchCount()
public BatchSchema schema()
schema
in interface BatchAccessor
public int schemaVersion()
schemaVersion
in interface BatchAccessor
public int rowCount()
rowCount
in interface BatchAccessor
public VectorContainer container()
container
in interface BatchAccessor
public TypedFieldId getValueVectorId(SchemaPath path)
getValueVectorId
in interface BatchAccessor
public VectorWrapper<?> getValueAccessorById(Class<?> clazz, int... ids)
getValueAccessorById
in interface BatchAccessor
public WritableBatch writableBatch()
writableBatch
in interface BatchAccessor
public SelectionVector2 selectionVector2()
selectionVector2
in interface BatchAccessor
public SelectionVector4 selectionVector4()
selectionVector4
in interface BatchAccessor
public Iterator<VectorWrapper<?>> iterator()
iterator
in interface BatchAccessor
public void release()
release
in interface BatchAccessor
Copyright © 1970 The Apache Software Foundation. All rights reserved.