public class PojoColumnarBatch<POJO_TYPE> extends java.lang.Object implements ColumnarBatch
ColumnarBatch.| Constructor and Description |
|---|
PojoColumnarBatch(java.util.List<POJO_TYPE> pojoObjects,
StructType schema,
java.util.Map<java.lang.Integer,java.util.function.Function<POJO_TYPE,java.lang.Object>> ordinalToAccessor,
java.util.Map<java.lang.Integer,java.lang.String> ordinalToColName) |
| Modifier and Type | Method and Description |
|---|---|
ColumnVector |
getColumnVector(int ordinal)
Return the
ColumnVector for the given ordinal in the columnar batch. |
StructType |
getSchema() |
int |
getSize() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetRows, slice, withDeletedColumnAt, withNewColumn, withNewSchemapublic PojoColumnarBatch(java.util.List<POJO_TYPE> pojoObjects, StructType schema, java.util.Map<java.lang.Integer,java.util.function.Function<POJO_TYPE,java.lang.Object>> ordinalToAccessor, java.util.Map<java.lang.Integer,java.lang.String> ordinalToColName)
public StructType getSchema()
getSchema in interface ColumnarBatchpublic ColumnVector getColumnVector(int ordinal)
ColumnarBatchColumnVector for the given ordinal in the columnar batch. If the ordinal
is not valid throws error.getColumnVector in interface ColumnarBatchordinal - the ordinal of the column to retrieveColumnVector for the given ordinal in the columnar batchpublic int getSize()
getSize in interface ColumnarBatch