Package app.babylon.table.column
Interface ColumnBoolean
- All Superinterfaces:
Column
A nullable primitive boolean column backed by compact bit lists for both
values and null-state.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceBuilder for nullable boolean columns.Nested classes/interfaces inherited from interface app.babylon.table.column.Column
Column.Operator, Column.Type -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Column.TypeColumn type descriptor for primitive boolean columns. -
Method Summary
Modifier and TypeMethodDescriptiondefault voidappendTo(int i, StringBuilder out, ToStringSettings settings) Appends the value at the supplied row using the provided rendering settings.static ColumnBoolean.Builderbuilder(ColumnName name) Creates a boolean column builder for the supplied column name.default intcompare(int i, int j) Compares two row values from this column using the column's ordering semantics.default ColumnBooleancopy(ColumnName x) Creates a copy of this column with the supplied column name.booleanget(int i) Returns the boolean value at the supplied row.default Column.TypegetType()Returns the declared type of values stored in this column.default RowPredicatepredicate(Column.Operator operator, boolean... values) default RowPredicatepredicate(Column.Operator operator, CharSequence... values) Creates a row predicate by parsing the supplied comparison values according to this column's type.default SelectionSelects rows whose values satisfy the supplied predicate.default ColumnselectRow(int i) Returns a single-row column containing the value from the supplied row.boolean[]toArray(boolean[] x) Copies the values into the provided array, allocating a new array when necessary.default StringtoString(int i) Formats the value at the supplied row for display.
-
Field Details
-
TYPE
Column type descriptor for primitive boolean columns.
-
-
Method Details
-
builder
Creates a boolean column builder for the supplied column name.- Parameters:
name- the column name- Returns:
- a new boolean column builder
-
getType
Description copied from interface:ColumnReturns the declared type of values stored in this column. -
get
boolean get(int i) Returns the boolean value at the supplied row.- Parameters:
i- the zero-based row index- Returns:
- the boolean value
-
toArray
boolean[] toArray(boolean[] x) Copies the values into the provided array, allocating a new array when necessary.- Parameters:
x- the destination array, ornull- Returns:
- an array containing the column values
-
compare
default int compare(int i, int j) Description copied from interface:ColumnCompares two row values from this column using the column's ordering semantics. -
selectRow
Description copied from interface:ColumnReturns a single-row column containing the value from the supplied row. -
toString
Description copied from interface:ColumnFormats the value at the supplied row for display. -
appendTo
Description copied from interface:ColumnAppends the value at the supplied row using the provided rendering settings. -
copy
Description copied from interface:ColumnCreates a copy of this column with the supplied column name. -
select
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
Description copied from interface:ColumnCreates a row predicate by parsing the supplied comparison values according to this column's type. -
predicate
-