Package app.babylon.table.column
Class ColumnObject.Renamed<T>
java.lang.Object
app.babylon.table.column.ColumnObject.Renamed<T>
- All Implemented Interfaces:
Column,ColumnObject<T>
- Enclosing interface:
ColumnObject<T>
-
Nested Class Summary
Nested classes/interfaces inherited from interface app.babylon.table.column.Column
Column.Operator, Column.TypeNested classes/interfaces inherited from interface app.babylon.table.column.ColumnObject
ColumnObject.Builder<T>, ColumnObject.Mode, ColumnObject.Renamed<T> -
Method Summary
Modifier and TypeMethodDescriptionintcompare(int i, int j) Compares two row values from this column using the column's ordering semantics.get(int i) Returns the value at the supplied row.getName()Returns the logical column name.getType()Returns the declared type of values stored in this column.booleanisAllSet()Indicates whether every row in the column contains a value.booleanIndicates 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.booleanIndicates whether no row in the column contains a value.booleanisSet(int i) Indicates whether the value at the supplied row is present.selectRow(int i) Returns a single-row object column containing the value from the supplied row.intsize()Returns the number of rows in the column.toString(int i) Formats the value at the supplied row for display.Returns a projected view of this column using the supplied row mapping.
-
Method Details
-
getName
Description copied from interface:ColumnReturns the logical column name. -
getType
Description copied from interface:ColumnReturns the declared type of values stored in this column. -
size
public int size()Description copied from interface:ColumnReturns the number of rows in the column. -
get
Description copied from interface:ColumnObjectReturns the value at the supplied row.- Specified by:
getin interfaceColumnObject<T>- Parameters:
i- the zero-based row index- Returns:
- the row value, or
nullwhen unset
-
toString
Description copied from interface:ColumnFormats the value at the supplied row for display. -
isSet
public boolean isSet(int i) Description copied from interface:ColumnIndicates whether the value at the supplied row is present.- Specified by:
isSetin interfaceColumn- Specified by:
isSetin interfaceColumnObject<T>- Parameters:
i- the zero-based row index- Returns:
truewhen the row contains a value
-
isConstant
public boolean isConstant()Description copied from interface:ColumnIndicates 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:
isConstantin interfaceColumn- Returns:
truewhen the column is constant
-
isAllSet
public boolean isAllSet()Description copied from interface:ColumnIndicates whether every row in the column contains a value. -
isNoneSet
public boolean isNoneSet()Description copied from interface:ColumnIndicates whether no row in the column contains a value. -
compare
public int compare(int i, int j) Description copied from interface:ColumnCompares two row values from this column using the column's ordering semantics. -
view
Description copied from interface:ColumnReturns a projected view of this column using the supplied row mapping.- Specified by:
viewin interfaceColumn- Specified by:
viewin interfaceColumnObject<T>- Parameters:
rowIndex- the row mapping to apply- Returns:
- a column view over the selected rows
-
selectRow
Description copied from interface:ColumnObjectReturns a single-row object column containing the value from the supplied row.- Specified by:
selectRowin interfaceColumn- Specified by:
selectRowin interfaceColumnObject<T>- Parameters:
i- the row to extract- Returns:
- a single-row object column with the same column name
-