Package org.apache.calcite.interpreter
Class Row
java.lang.Object
org.apache.calcite.interpreter.Row
Row.
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic RowCreates a Row.@Nullable Object[]Returns a copy of the values.boolean@Nullable ObjectgetObject(int index) inthashCode()static Row.RowBuildernewBuilder(int size) Create a RowBuilder object that eases creation of a new row.static RowCreates a Row with one column value.static RowCreates a Row with variable number of values.static RowCreates a Row with two column values.static RowCreates a Row with three column values.intsize()toString()
-
Method Details
-
asCopy
Creates a Row.Makes a defensive copy of the array, so the Row is immutable. (If you're worried about the extra copy, call
of(Object). But the JIT probably avoids the copy.) -
of
Creates a Row with one column value. -
of
Creates a Row with two column values. -
of
Creates a Row with three column values. -
of
Creates a Row with variable number of values. -
hashCode
public int hashCode() -
equals
-
toString
-
getObject
-
copyValues
Returns a copy of the values. -
size
public int size() -
newBuilder
Create a RowBuilder object that eases creation of a new row.- Parameters:
size- Number of columns in output data.- Returns:
- New RowBuilder object.
-