Class ObjectTupleVector
java.lang.Object
se.kuseman.payloadbuilder.api.execution.ObjectTupleVector
- All Implemented Interfaces:
TupleVector
Convenience class for creating tuple vector in an easy reflective way. NOTE! This class should not be used if high performance catalogs is needed since all values here is auto boxed
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceValue provider for tuple vector -
Field Summary
Fields inherited from interface se.kuseman.payloadbuilder.api.execution.TupleVector
CONSTANT, EMPTY -
Constructor Summary
ConstructorsConstructorDescriptionObjectTupleVector(Schema schema, int rowCount, ObjectTupleVector.ValueProvider valueProvider) Create a tuple vector with provided schema and row count. -
Method Summary
Modifier and TypeMethodDescriptiongetColumn(int column) Return vector for provided column.intReturn the actual schema from the vector.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface se.kuseman.payloadbuilder.api.execution.TupleVector
copy, toCsv, toCsv
-
Constructor Details
-
ObjectTupleVector
public ObjectTupleVector(Schema schema, int rowCount, ObjectTupleVector.ValueProvider valueProvider) Create a tuple vector with provided schema and row count. The value provided extracts values in a column/row index fashion.
-
-
Method Details
-
getRowCount
public int getRowCount()- Specified by:
getRowCountin interfaceTupleVector
-
getColumn
Description copied from interface:TupleVectorReturn vector for provided column. NOTE! Returned value might not be thread safe.- Specified by:
getColumnin interfaceTupleVector
-
getSchema
Description copied from interface:TupleVectorReturn the actual schema from the vector. If this tuple vector resides from a schema less query then this is the actual columns resolved runtime else this schema should match the compile time schema that the data source had- Specified by:
getSchemain interfaceTupleVector
-