public interface Row
Modifier and Type | Interface and Description |
---|---|
static class |
Row.Flags
Per-row transaction flags.
|
Modifier and Type | Method and Description |
---|---|
default String |
getColumnPartitionValue()
For rows that are to be used with file managers that allow dynamic column partition selection, retrieve the column partition value.
|
RowSetter |
getSetter(String name)
Gets a setter for a column.
|
default <T> RowSetter<T> |
getSetter(String name,
Class<T> tClass)
Gets a typed setter for a column.
|
default void |
setColumnPartitionValue(String columnPartitionValue)
For rows that are to be used with file managers that allow dynamic column partition selection, set the column partition value.
|
void |
setFlags(Row.Flags flags) |
long |
size()
Deprecated.
Row.size() is somewhat ambiguously specified in the interface and its implementations.
Some implementations keep track of all rows written. Others keep track of number of rows buffered.
It seems safer to simply not allow the question to be asked. |
void |
writeRow()
Writes out a new row (values set using setters).
|
RowSetter getSetter(String name)
name
- column namedefault <T> RowSetter<T> getSetter(String name, Class<T> tClass)
name
- column nametClass
- the type for the typed RowSettervoid writeRow() throws IOException
IOException
- problem writing the row@Deprecated long size()
Row.size()
is somewhat ambiguously specified in the interface and its implementations.
Some implementations keep track of all rows written. Others keep track of number of rows buffered.
It seems safer to simply not allow the question to be asked.
void setFlags(Row.Flags flags)
default void setColumnPartitionValue(String columnPartitionValue)
columnPartitionValue
- the column partition valuedefault String getColumnPartitionValue()