public class BatchGroup extends Object implements VectorAccessible, AutoCloseable
| Constructor and Description |
|---|
BatchGroup(VectorContainer container,
org.apache.hadoop.fs.FileSystem fs,
String path,
OperatorContext context) |
BatchGroup(VectorContainer container,
SelectionVector2 sv2,
OperatorContext context) |
| Modifier and Type | Method and Description |
|---|---|
void |
addBatch(VectorContainer newContainer) |
void |
close() |
void |
closeOutputStream() |
VectorContainer |
getContainer() |
int |
getNextIndex() |
int |
getRecordCount()
Get the number of records.
|
BatchSchema |
getSchema()
Get the schema of the current RecordBatch.
|
SelectionVector2 |
getSelectionVector2() |
SelectionVector4 |
getSelectionVector4() |
SelectionVector2 |
getSv2() |
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 |
setSchema(BatchSchema schema)
Updates the schema for this batch group.
|
public BatchGroup(VectorContainer container, SelectionVector2 sv2, OperatorContext context)
public BatchGroup(VectorContainer container, org.apache.hadoop.fs.FileSystem fs, String path, OperatorContext context)
public SelectionVector2 getSv2()
public void setSchema(BatchSchema schema)
schema - public void addBatch(VectorContainer newContainer) throws IOException
IOExceptionpublic int getNextIndex()
public VectorContainer getContainer()
public void close()
throws IOException
close in interface AutoCloseableIOExceptionpublic void closeOutputStream()
throws IOException
IOExceptionpublic 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 VectorAccessibleCopyright © 2017 The Apache Software Foundation. All rights reserved.