public interface IntColumn extends NumericColumn<Integer>
BASE_CHARACTERISTICS| Modifier and Type | Method and Description |
|---|---|
IntColumn |
append(Column<Integer> tail)
Appends two columns with the same element type.
|
static IntColumnBuilder |
builder()
Returns a new
IntColumnBuilder |
static IntColumnBuilder |
builder(int characteristic)
Returns an
builder with the specified
characteristic. |
static Collector<Integer,?,IntColumn> |
collector()
Collects a stream of
Integers into a new IntColumn. |
static Collector<Integer,?,IntColumn> |
collector(int characteristic)
Collects a stream of
Integers into a new IntColumn with the
specified characteristic. |
IntColumn |
copy()
Returns a column equal to this one, but with elements stored in a newly
allocated buffer.
|
int |
getInt(int index)
Primitive specialization of
List.get(int). |
IntColumn |
head(Integer toElement)
Same behavior as
Column.head(Object, boolean), with inclusive set
to false. |
IntColumn |
head(Integer 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 IntColumn |
of(Integer... elements)
Returns a new
IntColumn containing the specified elements. |
IntColumn |
subColumn(int fromIndex,
int toIndex)
Returns a view of the portion of this column between the specified
fromIndex, inclusive, and toIndex, exclusive.
|
IntColumn |
subColumnByValue(Integer fromElement,
boolean fromInclusive,
Integer toElement,
boolean toInclusive)
Returns a view of the portion of this column whose elements range from
fromElement to toElement. |
IntColumn |
subColumnByValue(Integer fromElement,
Integer toElement)
Same behavior as
Column#subColumn(Object, boolean, Object, Boolean),
with fromInclusive set to true and toInclusive set to false. |
IntColumn |
tail(Integer fromElement)
Same behavior as
Column.tail(Object, boolean), with inclusive set
to true. |
IntColumn |
tail(Integer 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. |
IntColumn |
toDistinct()
Converts a column to a unique index.
|
IntColumn |
toHeap()
Converts an index into a heap.
|
IntColumn |
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, streamIntColumn subColumn(int fromIndex, int toIndex)
ColumnIntColumn subColumnByValue(Integer fromElement, boolean fromInclusive, Integer 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<Integer>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 toElementIntColumn subColumnByValue(Integer fromElement, Integer 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<Integer>fromElement - low endpoint of the returned column, inclusivetoElement - high endpoint of the returned column, exclusivefromElement, inclusive, to toElement, exclusiveIntColumn head(Integer 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<Integer>toElement - high endpoint of the returned columninclusive - true if the high endpoint is to be included in the
returned viewinclusive is true) toElementIntColumn head(Integer toElement)
ColumnColumn.head(Object, boolean), with inclusive set
to false.
This method is only available when Column.isDistinct() returns
true.
IntColumn tail(Integer 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.
IntColumn tail(Integer fromElement)
ColumnColumn.tail(Object, boolean), with inclusive set
to true.
This method is only available when Column.isDistinct() returns
true.
IntColumn toHeap()
ColumntoHeap in interface Column<Integer>Column.isSorted() as
false. The resulting column shares the same underlying buffer as this
one.IntColumn 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.
IntColumn 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<Integer>IntColumn append(Column<Integer> 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.
IntColumn copy()
Columnint getInt(int index)
List.get(int).index - - index of the value to returnIndexOutOfBoundsException - if index is negative or is not less
than List.size()static IntColumnBuilder builder(int characteristic)
builder with the specified
characteristic.characteristic - - one of:
IntColumnBuilderIllegalArgumentException - if characteristic is not validstatic IntColumnBuilder builder()
IntColumnBuilder
Equivalent to builder(0)
IntColumnBuilderstatic IntColumn of(Integer... elements)
IntColumn containing the specified elements.elements - the elements to be included in the new columnIntColumn containing the specified elements.static Collector<Integer,?,IntColumn> collector(int characteristic)
Integers into a new IntColumn with the
specified characteristic.characteristic - - one of:
IntColumnIllegalArgumentException - if characteristic is not validCopyright © 2020. All rights reserved.