Package com.twilio.kudu.sql
Class CalciteRow
java.lang.Object
com.twilio.kudu.sql.CalciteRow
- All Implemented Interfaces:
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 Summary
Modifier and TypeFieldDescriptionfinal org.apache.kudu.Schema
-
Constructor Summary
-
Method Summary
-
Field Details
-
rowSchema
public final org.apache.kudu.Schema rowSchema -
-
descendingSortedFieldIndices
-
-
Constructor Details
-
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 Details
-
compareTo
- Specified by:
compareTo
in interfaceComparable<CalciteRow>
-
getRowData
-