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.Operator, Column.Type -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Column.TypeColumn type descriptor for primitive double 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 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 Column.TypegetType()Returns the declared type of values stored in this column.booleanisSet(int i) Indicates whether the value at the supplied row is present.default doublemax()Returns the maximum set value in the column.default doublemin()Returns the minimum set value in the column.default RowPredicatepredicate(Column.Operator operator, double... values) default RowPredicatepredicate(Column.Operator operator, CharSequence... values) default Selectionselect(DoublePredicate predicate) Selects rows whose values satisfy the supplied predicate.default ColumnselectRow(int i) Returns a single-row column containing the value from the supplied row.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
-
max
default double max()Returns the maximum set value in the column.- Returns:
- maximum set value
-
min
default double 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: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
-
predicate
-