Package com.twilio.kudu.sql
Class CalciteRow
- java.lang.Object
-
- com.twilio.kudu.sql.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 isComparable
to itself and plays a role in preserving the natural sort on scans.
-
-
Field Summary
Fields Modifier and Type Field Description List<Integer>
descendingSortedFieldIndices
List<Integer>
primaryKeyColumnsInProjection
org.apache.kudu.Schema
rowSchema
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compareTo(CalciteRow o)
Object
getRowData()
-
-
-
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 projectionrowData
- 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
-
-
Method Detail
-
compareTo
public int compareTo(CalciteRow o)
- Specified by:
compareTo
in interfaceComparable<CalciteRow>
-
getRowData
public Object getRowData()
-
-