Interface ColumnObject.Builder<T>

Type Parameters:
T - the value type produced by the builder
All Superinterfaces:
ColumnBuilder
All Known Subinterfaces:
ColumnCategorical.Builder<T>
Enclosing interface:
ColumnObject<T>

public static interface ColumnObject.Builder<T> extends ColumnBuilder
Builder for nullable object columns.
  • Method Summary

    Modifier and Type
    Method
    Description
    add(T x)
    Appends a value to the column.
    Appends an unset row.
    Materialises the current builder contents as an immutable column.
    Returns the first value currently added to the builder.
    Returns the name that will be assigned to the built column.
    Returns the most recently added value.
    int
    Returns the number of rows currently accumulated by the builder.
  • Method Details

    • getName

      ColumnName getName()
      Description copied from interface: ColumnBuilder
      Returns the name that will be assigned to the built column.
      Specified by:
      getName in interface ColumnBuilder
      Returns:
      the target column name
    • add

      Appends a value to the column.
      Parameters:
      x - the value to append, which may be null
      Returns:
      this builder
    • build

      ColumnObject<T> build()
      Description copied from interface: ColumnBuilder
      Materialises the current builder contents as an immutable column.
      Specified by:
      build in interface ColumnBuilder
      Returns:
      the built column
    • addNull

      default ColumnObject.Builder<T> addNull()
      Appends an unset row.
      Returns:
      this builder
    • first

      T first()
      Returns the first value currently added to the builder.
      Returns:
      the first value
    • last

      T last()
      Returns the most recently added value.
      Returns:
      the last value
    • size

      int size()
      Returns the number of rows currently accumulated by the builder.
      Returns:
      the builder size