Package app.babylon.table.column
Interface ColumnDouble
- All Superinterfaces:
Column
A column of nullable double values with efficient primitive access and
predicate-based row selection.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceBuilder for nullable double columns.Nested classes/interfaces inherited from interface app.babylon.table.column.Column
Column.Type -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Column.TypeColumn type descriptor for primitive double columns. -
Method Summary
Modifier and TypeMethodDescriptionstatic ColumnDouble.Builderbuilder(ColumnName name) Creates a double 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 ColumnDoublecopy(ColumnName x) Creates a copy of this column with the supplied column name.doubleget(int i) Returns the double value at the supplied row.default ColumngetAsColumn(int i) Returns a single-row column containing the value from the supplied row.default Column.TypegetType()Returns the declared type of values stored in this column.booleanIndicates whether the column represents the same value for every row.booleanisSet(int i) Indicates whether the value at the supplied row is present.default Selectionselect(DoublePredicate predicate) Selects rows whose values satisfy the supplied predicate.double[]toArray(double[] 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 double columns.
-
-
Method Details
-
builder
Creates a double column builder for the supplied column name.- Parameters:
name- the column name- Returns:
- a new double column builder
-
getType
Description copied from interface:ColumnReturns the declared type of values stored in this column. -
get
double get(int i) Returns the double value at the supplied row.- Parameters:
i- the zero-based row index- Returns:
- the double value
-
isSet
boolean isSet(int i) Description copied from interface:ColumnIndicates whether the value at the supplied row is present. -
toArray
double[] toArray(double[] 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. -
getAsColumn
Description copied from interface:ColumnReturns a single-row column containing the value from the supplied row.- Specified by:
getAsColumnin interfaceColumn- Parameters:
i- the row to extract- Returns:
- a single-row column with the same column name
-
toString
Description copied from interface:ColumnFormats the value at the supplied row for display. -
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
-
isConstant
boolean isConstant()Indicates whether the column represents the same value for every row.- Returns:
truewhen the column is constant
-