Package org.apache.calcite.interpreter
Class Row
java.lang.Object
org.apache.calcite.interpreter.Row
Row.
-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic Row
Creates a Row.@Nullable Object[]
Returns a copy of the values.boolean
@Nullable Object
getObject
(int index) int
hashCode()
static Row.RowBuilder
newBuilder
(int size) Create a RowBuilder object that eases creation of a new row.static Row
Creates a Row with one column value.static Row
Creates a Row with variable number of values.static Row
Creates a Row with two column values.static Row
Creates a Row with three column values.int
size()
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.
-