Interface Row

All Known Subinterfaces:
Entry, TableWriter<R>
All Known Implementing Classes:
AbstractBinaryStoreWriter, AppendableTableRow, ArrayBackedTableWriter, BinaryRowV2, BinaryStoreAggregatorWriterMultiPartition, BinaryStoreAggregatorWriterStandard, BinaryStoreWriterV2, DiskTableWriter, DynamicTableWriter, HybridWriter, InMemoryTableWriter, InMemoryTableWriter, LocalTableWriter, RowOrientedArrayBackedTableWriter, StreamTableWriter

public interface Row
Interface for writing out values in a row.
  • Nested Class Summary

    Nested Classes 
    Modifier and Type Interface Description
    static class  Row.Flags
    Per-row transaction flags.
  • Method Summary

    Modifier and Type Method 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)  
    void writeRow()
    Writes out a new row (values set using setters).
  • Method Details

    • getSetter

      RowSetter getSetter​(String name)
      Gets a setter for a column.
      Parameters:
      name - column name
      Returns:
      setter for the column.
    • getSetter

      default <T> RowSetter<T> getSetter​(String name, Class<T> tClass)
      Gets a typed setter for a column.
      Parameters:
      name - column name
      tClass - the type for the typed RowSetter
      Returns:
      setter for the column.
    • writeRow

      void writeRow() throws IOException
      Writes out a new row (values set using setters).
      Throws:
      IOException - problem writing the row
    • setFlags

      void setFlags​(Row.Flags flags)
    • setColumnPartitionValue

      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.
      Parameters:
      columnPartitionValue - the column partition value
    • getColumnPartitionValue

      default String getColumnPartitionValue()
      For rows that are to be used with file managers that allow dynamic column partition selection, retrieve the column partition value.
      Returns:
      the previously-set column partition value