Interface Row

All Known Subinterfaces:
TableWriter<R>
All Known Implementing Classes:
DynamicTableWriter

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

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

    Modifier and Type
    Method
    Description
    default String
    For rows that are to be used with file managers that allow dynamic column partition selection, retrieve the column partition value.
    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
     
    long
    Deprecated.
    size() is somewhat ambiguously specified in the interface and its implementations.
    void
    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
    • size

      @Deprecated long size()
      Deprecated.
      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.

      Number of rows written out.
      Returns:
      number of rows written out.
    • 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