public class Row extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
Row.RowBuilder
Utility class to build row objects.
|
| Modifier and Type | Method and Description |
|---|---|
static Row |
asCopy(Object... values)
Creates a Row.
|
@Nullable Object[] |
copyValues()
Returns a copy of the values.
|
boolean |
equals(@Nullable Object obj) |
@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 |
of(Object... values)
Creates a Row with variable number of values.
|
static Row |
of(@Nullable Object value0)
Creates a Row with one column value.
|
static Row |
of(@Nullable Object value0,
@Nullable Object value1)
Creates a Row with two column values.
|
static Row |
of(@Nullable Object value0,
@Nullable Object value1,
@Nullable Object value2)
Creates a Row with three column values.
|
int |
size() |
String |
toString() |
public static Row asCopy(Object... values)
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.)
public static Row of(@Nullable Object value0, @Nullable Object value1)
public static Row of(@Nullable Object value0, @Nullable Object value1, @Nullable Object value2)
public @Nullable Object getObject(int index)
public @Nullable Object[] copyValues()
public int size()
public static Row.RowBuilder newBuilder(int size)
size - Number of columns in output data.Copyright © 2012-2022 Apache Software Foundation. All Rights Reserved.