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.
|
Object[] |
copyValues()
Returns a copy of the values.
|
boolean |
equals(Object obj) |
Object |
getObject(int index) |
(package private) Object[] |
getValues() |
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(Object value0)
Creates a Row with one column value.
|
static Row |
of(Object value0,
Object value1)
Creates a Row with two column values.
|
static Row |
of(Object value0,
Object value1,
Object value2)
Creates a Row with three column values.
|
int |
size() |
String |
toString() |
private final Object[] values
Row(Object[] values)
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(Object value0, Object value1, Object value2)
public Object getObject(int index)
Object[] getValues()
public Object[] copyValues()
public int size()
public static Row.RowBuilder newBuilder(int size)
size - Number of columns in output data.Copyright © 2012–2018 The Apache Software Foundation. All rights reserved.