Class CalciteRow

  • All Implemented Interfaces:
    Comparable<CalciteRow>

    public final class CalciteRow
    extends Object
    implements Comparable<CalciteRow>
    A Plain Java Object that represents a Projected response from Kudu RPCs. It is Comparable to itself and plays a role in preserving the natural sort on scans.
    • Field Detail

      • rowSchema

        public final org.apache.kudu.Schema rowSchema
      • primaryKeyColumnsInProjection

        public final List<Integer> primaryKeyColumnsInProjection
      • descendingSortedFieldIndices

        public final List<Integer> descendingSortedFieldIndices
    • Constructor Detail

      • CalciteRow

        public CalciteRow​(org.apache.kudu.Schema rowSchema,
                          Object[] rowData,
                          List<Integer> primaryKeyColumnsInProjection,
                          List<Integer> descendingSortedFieldIndices)
        Create a Calcite row with provided rowData. Used for Testing.
        Parameters:
        rowSchema - The schema of the query projection
        rowData - Raw data for the row. Needs to conform to rowSchema.
        primaryKeyColumnsInProjection - Ordered list of primary keys within the Projection.
        descendingSortedFieldIndices - Index of the descending sorted fields in the rowSchema projection