Interface ColumnLong

All Superinterfaces:
Column

public interface ColumnLong extends Column
A column of nullable long values with efficient primitive access and predicate-based row selection.
  • Field Details

    • TYPE

      static final Column.Type TYPE
      Column type descriptor for primitive long columns.
  • Method Details

    • builder

      static ColumnLong.Builder builder(ColumnName name)
      Creates a long column builder for the supplied column name.
      Parameters:
      name - the column name
      Returns:
      a new long column builder
    • builder

      static ColumnLong.Builder builder(ColumnName name, int initialSize)
      Creates a long column builder with an initial capacity hint.
      Parameters:
      name - the column name
      initialSize - the expected number of rows
      Returns:
      a new long column builder
    • getType

      default Column.Type getType()
      Description copied from interface: Column
      Returns the declared type of values stored in this column.
      Specified by:
      getType in interface Column
      Returns:
      the column value type
    • get

      long get(int i)
      Returns the long value at the supplied row.
      Parameters:
      i - the zero-based row index
      Returns:
      the long value
    • isSet

      boolean isSet(int i)
      Description copied from interface: Column
      Indicates whether the value at the supplied row is present.
      Specified by:
      isSet in interface Column
      Parameters:
      i - the zero-based row index
      Returns:
      true when the row contains a value
    • toArray

      long[] toArray(long[] x)
      Copies the values into the provided array, allocating a new array when necessary.
      Parameters:
      x - the destination array, or null
      Returns:
      an array containing the column values
    • max

      default long max()
      Returns the maximum set value in the column.
      Returns:
      maximum set value
    • min

      default long min()
      Returns the minimum set value in the column.
      Returns:
      minimum set value
    • compare

      default int compare(int i, int j)
      Description copied from interface: Column
      Compares two row values from this column using the column's ordering semantics.
      Specified by:
      compare in interface Column
      Parameters:
      i - the first row index
      j - the second row index
      Returns:
      a negative number, zero, or a positive number as the first row is less than, equal to, or greater than the second
    • selectRow

      default Column selectRow(int i)
      Description copied from interface: Column
      Returns a single-row column containing the value from the supplied row.
      Specified by:
      selectRow in interface Column
      Parameters:
      i - the row to extract
      Returns:
      a single-row column with the same column name
    • toString

      default String toString(int i)
      Description copied from interface: Column
      Formats the value at the supplied row for display.
      Specified by:
      toString in interface Column
      Parameters:
      i - the zero-based row index
      Returns:
      the formatted row value, or an empty string when unset
    • appendTo

      default void appendTo(int i, StringBuilder out, ToStringSettings settings)
      Description copied from interface: Column
      Appends the value at the supplied row using the provided rendering settings.
      Specified by:
      appendTo in interface Column
      Parameters:
      i - the zero-based row index
      out - the destination buffer
      settings - formatting settings to apply
    • copy

      default ColumnLong copy(ColumnName x)
      Description copied from interface: Column
      Creates a copy of this column with the supplied column name.
      Specified by:
      copy in interface Column
      Parameters:
      x - the name to assign to the copy
      Returns:
      a column containing the same values under the new name
    • select

      default Selection select(LongPredicate predicate)
      Selects rows whose values satisfy the supplied predicate.
      Parameters:
      predicate - the predicate to test against each set value
      Returns:
      a selection containing the predicate result for each row
    • predicate

      default RowPredicate predicate(Column.Operator operator, CharSequence... values)
      Specified by:
      predicate in interface Column
    • predicate

      default RowPredicate predicate(Column.Operator operator, long... values)