public interface Row
extends java.lang.Iterable<java.lang.Object>
One row of a data table.
Modifier and Type | Method and Description |
---|---|
java.util.Map<java.lang.String,java.lang.Object> |
asMap()
Get a view of this row as a map.
|
java.util.List<java.lang.Object> |
asRow()
Get a view of this row as a list.
|
int |
length()
Get the length of this row.
|
java.lang.Object |
value(int idx)
Get the value at a particular column.
|
java.lang.Object |
value(java.lang.String key)
Get the value at a particular column.
|
@Nullable java.lang.Object value(java.lang.String key)
Get the value at a particular column.
key
- The column name.java.lang.IllegalArgumentException
- if key does not define a column.@Nullable java.lang.Object value(int idx)
Get the value at a particular column.
idx
- The column index.java.lang.IndexOutOfBoundsException
- if idx is not a valid column index.int length()
Get the length of this row.
java.util.Map<java.lang.String,java.lang.Object> asMap()
Get a view of this row as a map.
java.util.List<java.lang.Object> asRow()
Get a view of this row as a list.