Class ObjectTupleVector

java.lang.Object
se.kuseman.payloadbuilder.api.execution.ObjectTupleVector
All Implemented Interfaces:
TupleVector

public class ObjectTupleVector extends Object implements 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
  • 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:
      getRowCount in interface TupleVector
    • getColumn

      public ValueVector getColumn(int column)
      Description copied from interface: TupleVector
      Return vector for provided column. NOTE! Returned value might not be thread safe.
      Specified by:
      getColumn in interface TupleVector
    • getSchema

      public Schema getSchema()
      Description copied from interface: TupleVector
      Return 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:
      getSchema in interface TupleVector