Class Row

java.lang.Object
org.apache.calcite.interpreter.Row

public class Row extends Object
Row.
  • Method Details

    • asCopy

      public static Row asCopy(@Nullable Object... values)
      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

      public static Row of(@Nullable Object value0)
      Creates a Row with one column value.
    • of

      public static Row of(@Nullable Object value0, @Nullable Object value1)
      Creates a Row with two column values.
    • of

      public static Row of(@Nullable Object value0, @Nullable Object value1, @Nullable Object value2)
      Creates a Row with three column values.
    • of

      public static Row of(@Nullable Object... values)
      Creates a Row with variable number of values.
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(@Nullable Object obj)
      Overrides:
      equals in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getObject

      public @Nullable Object getObject(int index)
    • copyValues

      public @Nullable Object[] copyValues()
      Returns a copy of the values.
    • size

      public int size()
    • newBuilder

      public static Row.RowBuilder newBuilder(int size)
      Create a RowBuilder object that eases creation of a new row.
      Parameters:
      size - Number of columns in output data.
      Returns:
      New RowBuilder object.