public interface DecimalColumn extends NumericColumn<BigDecimal>
Column with element type BigDecimal.
Elements are stored in a ByteBuffer as a scale (int) and an
unscaled BigInteger (BigInteger.toByteArray()), where the
value is (unscaled × 10-scale)
BASE_CHARACTERISTICS| Modifier and Type | Method and Description |
|---|---|
DecimalColumn |
append(Column<BigDecimal> tail)
Appends two columns with the same element type.
|
static DecimalColumnBuilder |
builder()
Returns a new
DecimalColumnBuilder |
static DecimalColumnBuilder |
builder(int characteristic)
Returns a
builder with the specified
characteristic. |
static Collector<BigDecimal,?,DecimalColumn> |
collector()
Collects a stream of
BigDecimals into a new BigDecimalColumn. |
static Collector<BigDecimal,?,DecimalColumn> |
collector(int characteristic)
Collects a stream of
BigDecimals into a new BigDecimalColumn
with the specified characteristic. |
DecimalColumn |
copy()
Returns a column equal to this one, but with elements stored in a newly
allocated buffer.
|
DecimalColumn |
head(BigDecimal toElement)
Same behavior as
Column.head(Object, boolean), with inclusive set
to false. |
DecimalColumn |
head(BigDecimal toElement,
boolean inclusive)
Returns a view of the portion of this column whose elements are less than (or
equal to, if
inclusive is true) toElement. |
static DecimalColumn |
of(BigDecimal... elements)
Returns a new
BigDecimalColumn containing the specified elements. |
DecimalColumn |
subColumn(int fromIndex,
int toIndex)
Returns a view of the portion of this column between the specified
fromIndex, inclusive, and toIndex, exclusive.
|
DecimalColumn |
subColumnByValue(BigDecimal fromElement,
BigDecimal toElement)
Same behavior as
Column#subColumn(Object, boolean, Object, Boolean),
with fromInclusive set to true and toInclusive set to false. |
DecimalColumn |
subColumnByValue(BigDecimal fromElement,
boolean fromInclusive,
BigDecimal toElement,
boolean toInclusive)
Returns a view of the portion of this column whose elements range from
fromElement to toElement. |
DecimalColumn |
tail(BigDecimal fromElement)
Same behavior as
Column.tail(Object, boolean), with inclusive set
to true. |
DecimalColumn |
tail(BigDecimal fromElement,
boolean inclusive)
Returns a view of the portion of this column whose elements are greater than
(or equal to, if
inclusive is true) fromElement. |
DecimalColumn |
toDistinct()
Converts a column to a unique index.
|
DecimalColumn |
toHeap()
Converts an index into a heap.
|
DecimalColumn |
toSorted()
Converts a heap to an index.
|
append, ceiling, characteristics, comparator, first, floor, getType, higher, isDistinct, isNonnull, isNull, isSorted, last, lower, spliteratoradd, add, addAll, addAll, clear, contains, containsAll, equals, get, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, replaceAll, retainAll, set, size, sort, subList, toArray, toArrayparallelStream, removeIf, streamDecimalColumn subColumn(int fromIndex, int toIndex)
ColumnsubColumn in interface Column<BigDecimal>fromIndex - low endpoint (inclusive) of the subListtoIndex - high endpoint (exclusive) of the subListDecimalColumn subColumnByValue(BigDecimal fromElement, boolean fromInclusive, BigDecimal toElement, boolean toInclusive)
ColumnfromElement to toElement. If fromElement and
toElement are equal, the returned column is empty unless fromInclusive and toInclusive are both true. The returned column is
backed by this column.
This method is only available when Column.isDistinct() returns
true.
subColumnByValue in interface Column<BigDecimal>fromElement - low endpoint of the returned columnfromInclusive - true if the low endpoint is to be included in the resulttoElement - high endpoint of the returned columntoInclusive - true if the high endpoint is to be included in the
resultfromElement to toElementDecimalColumn subColumnByValue(BigDecimal fromElement, BigDecimal toElement)
ColumnColumn#subColumn(Object, boolean, Object, Boolean),
with fromInclusive set to true and toInclusive set to false.
This method is only available when Column.isDistinct() returns
true.
subColumnByValue in interface Column<BigDecimal>fromElement - low endpoint of the returned column, inclusivetoElement - high endpoint of the returned column, exclusivefromElement, inclusive, to toElement, exclusiveDecimalColumn head(BigDecimal toElement, boolean inclusive)
Columninclusive is true) toElement. The returned
column is backed by this column.
This method is only available when Column.isDistinct() returns
true.
head in interface Column<BigDecimal>toElement - high endpoint of the returned columninclusive - true if the high endpoint is to be included in the
returned viewinclusive is true) toElementDecimalColumn head(BigDecimal toElement)
ColumnColumn.head(Object, boolean), with inclusive set
to false.
This method is only available when Column.isDistinct() returns
true.
head in interface Column<BigDecimal>toElement - high endpoint of the returned columntoElementDecimalColumn tail(BigDecimal fromElement, boolean inclusive)
Columninclusive is true) fromElement. The returned
column is backed by this column.
This method is only available when Column.isDistinct() returns
true.
tail in interface Column<BigDecimal>fromElement - low endpoint of the returned columninclusive - true if the low endpoint is to be included in the
returned viewfromElementDecimalColumn tail(BigDecimal fromElement)
ColumnColumn.tail(Object, boolean), with inclusive set
to true.
This method is only available when Column.isDistinct() returns
true.
tail in interface Column<BigDecimal>fromElement - low endpoint of the returned columnfromElementDecimalColumn toHeap()
ColumntoHeap in interface Column<BigDecimal>Column.isSorted() as
false. The resulting column shares the same underlying buffer as this
one.DecimalColumn toSorted()
ColumnColumn.characteristics() of this column:
SORTED flag
set. If not already sorted then Column.copy() will be invoked, and the
resulting column will be sorted.
DISTINCT flag unset.
toSorted in interface Column<BigDecimal>DecimalColumn toDistinct()
ColumnColumn.characteristics() of this column:
SORTED and DISTINCT flags set. If not already sorted and
distinct then Column.copy() will be invoked, and the resulting column will
be sorted and deduplicated.
DISTINCT
flag set. If duplicates are present then Column.copy() will be invoked, and
the resulting column will be deduplicated.
toDistinct in interface Column<BigDecimal>DecimalColumn append(Column<BigDecimal> tail)
ColumnBoth columns must have the same characteristics. If they're both unique indices then the first value of the provided column must be greater than the last value of this column.
append in interface Column<BigDecimal>tail - - the column to be appended to the end of this columnDecimalColumn copy()
Columncopy in interface Column<BigDecimal>static DecimalColumnBuilder builder(int characteristic)
builder with the specified
characteristic.characteristic - - one of:
DecimalColumnBuilderIllegalArgumentException - if characteristic is not validstatic DecimalColumnBuilder builder()
DecimalColumnBuilder
Equivalent to builder(0)
DecimalColumnBuilderstatic DecimalColumn of(BigDecimal... elements)
BigDecimalColumn containing the specified elements.elements - the elements to be included in the new columnBigDecimalColumn containing the specified elements.static Collector<BigDecimal,?,DecimalColumn> collector(int characteristic)
BigDecimals into a new BigDecimalColumn
with the specified characteristic.characteristic - - one of:
DecimalColumnIllegalArgumentException - if characteristic is not validstatic Collector<BigDecimal,?,DecimalColumn> collector()
DecimalColumnCopyright © 2020. All rights reserved.