Class ColumnObject.Renamed<T>

java.lang.Object
app.babylon.table.column.ColumnObject.Renamed<T>
All Implemented Interfaces:
Column, ColumnObject<T>
Enclosing interface:
ColumnObject<T>

public static final class ColumnObject.Renamed<T> extends Object implements ColumnObject<T>
  • Method Details

    • getName

      public ColumnName getName()
      Description copied from interface: Column
      Returns the logical column name.
      Specified by:
      getName in interface Column
      Returns:
      the column name
    • getType

      public 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
    • size

      public int size()
      Description copied from interface: Column
      Returns the number of rows in the column.
      Specified by:
      size in interface Column
      Returns:
      the row count
    • get

      public T get(int i)
      Description copied from interface: ColumnObject
      Returns the value at the supplied row.
      Specified by:
      get in interface ColumnObject<T>
      Parameters:
      i - the zero-based row index
      Returns:
      the row value, or null when unset
    • toString

      public 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
    • isSet

      public 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
      Specified by:
      isSet in interface ColumnObject<T>
      Parameters:
      i - the zero-based row index
      Returns:
      true when the row contains a value
    • isConstant

      public boolean isConstant()
      Description copied from interface: Column
      Indicates whether the column represents the same value for every row.Unset values are part of the value pattern, so an all-unset column is constant, while a mix of unset and set values is not constant unless the implementation explicitly defines that pattern as constant.
      Specified by:
      isConstant in interface Column
      Returns:
      true when the column is constant
    • isAllSet

      public boolean isAllSet()
      Description copied from interface: Column
      Indicates whether every row in the column contains a value.
      Specified by:
      isAllSet in interface Column
      Returns:
      true when all rows are set
    • isNoneSet

      public boolean isNoneSet()
      Description copied from interface: Column
      Indicates whether no row in the column contains a value.
      Specified by:
      isNoneSet in interface Column
      Returns:
      true when every row is unset
    • compare

      public 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
    • view

      public ColumnObject<T> view(ViewIndex rowIndex)
      Description copied from interface: Column
      Returns a projected view of this column using the supplied row mapping.
      Specified by:
      view in interface Column
      Specified by:
      view in interface ColumnObject<T>
      Parameters:
      rowIndex - the row mapping to apply
      Returns:
      a column view over the selected rows
    • selectRow

      public ColumnObject<T> selectRow(int i)
      Description copied from interface: ColumnObject
      Returns a single-row object column containing the value from the supplied row.
      Specified by:
      selectRow in interface Column
      Specified by:
      selectRow in interface ColumnObject<T>
      Parameters:
      i - the row to extract
      Returns:
      a single-row object column with the same column name