Package org.apache.calcite.interpreter
Class Row.RowBuilder
- java.lang.Object
-
- org.apache.calcite.interpreter.Row.RowBuilder
-
- Enclosing class:
- Row
public static class Row.RowBuilder extends java.lang.Object
Utility class to build row objects.
-
-
Field Summary
Fields Modifier and Type Field Description (package private) java.lang.Object[]
values
-
Constructor Summary
Constructors Modifier Constructor Description private
RowBuilder(int size)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Row
build()
Return a Row objectvoid
reset()
Allocates a new internal array.void
set(int index, java.lang.Object value)
Set the value of a particular column.int
size()
-
-
-
Method Detail
-
set
public void set(int index, java.lang.Object value)
Set the value of a particular column.- Parameters:
index
- Zero-indexed position of value.value
- Desired column value.
-
build
public Row build()
Return a Row object
-
reset
public void reset()
Allocates a new internal array.
-
size
public int size()
-
-