public abstract class NonNullSingleBufferColumn<E,I extends Column<E>,C extends NonNullSingleBufferColumn<E,I,C>> extends AbstractCollection<E>
BASE_CHARACTERISTICS| Modifier and Type | Method and Description |
|---|---|
boolean |
add(E e) |
void |
add(int index,
E element) |
boolean |
addAll(Collection<? extends E> c) |
boolean |
addAll(int index,
Collection<? extends E> c) |
I |
append(Column<E> tail)
Appends two columns with the same element type.
|
E |
ceiling(E value) |
int |
characteristics()
Returns the
Spliterator.characteristics() for this column. |
void |
clear() |
boolean |
contains(Object o) |
C |
copy()
Returns a column equal to this one, but with elements stored in a newly
allocated buffer.
|
Iterator<E> |
descendingIterator() |
NavigableSet<E> |
descendingSet() |
boolean |
equals(Object o) |
E |
first() |
E |
floor(E value) |
E |
get(int index) |
int |
hashCode() |
C |
head(E toElement)
Same behavior as
Column.head(Object, boolean), with inclusive set
to false. |
C |
head(E 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. |
SortedSet<E> |
headSet(E toElement) |
NavigableSet<E> |
headSet(E toElement,
boolean inclusive) |
E |
higher(E value) |
int |
indexOf(Object o) |
boolean |
isNull(int index)
Test if a value is null at a given index.
|
boolean |
isNullNoOffset(int index) |
Iterator<E> |
iterator() |
E |
last() |
int |
lastIndexOf(Object o) |
ListIterator<E> |
listIterator() |
ListIterator<E> |
listIterator(int idx) |
E |
lower(E value) |
E |
pollFirst() |
E |
pollLast() |
E |
remove(int index) |
boolean |
remove(Object o) |
boolean |
removeAll(Collection<?> c) |
boolean |
retainAll(Collection<?> c) |
E |
set(int index,
E element) |
int |
size() |
Spliterator<E> |
spliterator()
Creates a
Spliterator over the elements in this list. |
C |
subColumn(E fromElement,
boolean fromInclusive,
E toElement,
boolean toInclusive)
Returns a view of the portion of this column whose elements range from
fromElement to toElement. |
C |
subColumn(E fromElement,
E toElement)
Same behavior as
Column#subColumn(Object, boolean, Object, Boolean),
with fromInclusive set to true and toInclusive set to false. |
C |
subColumn(int fromIndex,
int toIndex)
Returns a view of the portion of this column between the specified
fromIndex, inclusive, and toIndex, exclusive.
|
List<E> |
subList(int fromIndex,
int toIndex) |
NavigableSet<E> |
subSet(E fromElement,
boolean fromInclusive,
E toElement,
boolean toInclusive) |
SortedSet<E> |
subSet(E fromElement,
E toElement) |
C |
tail(E fromElement)
Same behavior as
Column.tail(Object, boolean), with inclusive set
to true. |
C |
tail(E 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. |
SortedSet<E> |
tailSet(E fromElement) |
NavigableSet<E> |
tailSet(E fromElement,
boolean inclusive) |
Object[] |
toArray() |
<T> T[] |
toArray(T[] a) |
C |
toDistinct()
Converts a column to a unique index.
|
C |
toHeap()
Converts an index into a heap.
|
C |
toSorted()
Converts a heap to an index.
|
containsAll, isEmpty, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitappend, getType, isDistinct, isNonnull, isSortedcontainsAll, isEmpty, replaceAll, sortcomparatorparallelStream, removeIf, streampublic C copy()
Columnpublic int characteristics()
ColumnSpliterator.characteristics() for this column.characteristics in interface Column<E>public boolean isNullNoOffset(int index)
public C toHeap()
ColumntoHeap in interface Column<E>Column.isSorted() as
false. The resulting column shares the same underlying buffer as this
one.public C 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.
public C 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<E>public int hashCode()
public Spliterator<E> spliterator()
ColumnSpliterator over the elements in this list.
The Spliterator reports SIZED,
SUBSIZED, ORDERED,
and IMMUTABLE.
spliterator in interface Iterable<E>spliterator in interface Collection<E>spliterator in interface List<E>spliterator in interface Set<E>spliterator in interface SortedSet<E>spliterator in interface Column<E>Spliterator over the elements in this columnpublic int lastIndexOf(Object o)
lastIndexOf in interface List<E>public boolean contains(Object o)
contains in interface Collection<E>contains in interface List<E>contains in interface Set<E>contains in class AbstractCollection<E>public ListIterator<E> listIterator(int idx)
listIterator in interface List<E>public E lower(E value)
lower in interface NavigableSet<E>public E higher(E value)
higher in interface NavigableSet<E>public E floor(E value)
floor in interface NavigableSet<E>public E ceiling(E value)
ceiling in interface NavigableSet<E>public NavigableSet<E> subSet(E fromElement, boolean fromInclusive, E toElement, boolean toInclusive)
subSet in interface NavigableSet<E>public NavigableSet<E> tailSet(E fromElement, boolean inclusive)
tailSet in interface NavigableSet<E>public NavigableSet<E> headSet(E toElement, boolean inclusive)
headSet in interface NavigableSet<E>public C subColumn(E fromElement,
boolean fromInclusive,
E 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.
subColumn in interface Column<E>fromElement - low endpoint of the returned columnfromInclusive - true if the low endpoint is to be included in the
returned viewtoElement - high endpoint of the returned columntoInclusive - true if the high endpoint is to be included in the
returned viewfromElement to toElementpublic C subColumn(E fromElement,
E 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.
public C head(E 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<E>toElement - high endpoint of the returned columninclusive - true if the high endpoint is to be included in the
returned viewinclusive is true) toElementpublic C head(E toElement)
ColumnColumn.head(Object, boolean), with inclusive set
to false.
This method is only available when Column.isDistinct() returns
true.
public C tail(E 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.
public C tail(E fromElement)
ColumnColumn.tail(Object, boolean), with inclusive set
to true.
This method is only available when Column.isDistinct() returns
true.
public SortedSet<E> subSet(E fromElement, E toElement)
subSet in interface NavigableSet<E>subSet in interface SortedSet<E>public SortedSet<E> headSet(E toElement)
headSet in interface NavigableSet<E>headSet in interface SortedSet<E>public SortedSet<E> tailSet(E fromElement)
tailSet in interface NavigableSet<E>tailSet in interface SortedSet<E>public C subColumn(int fromIndex,
int toIndex)
Columnpublic List<E> subList(int fromIndex, int toIndex)
public I append(Column<E> 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.
public int size()
size in interface Collection<E>size in interface List<E>size in interface Set<E>size in class AbstractCollection<E>public boolean isNull(int index)
Columnpublic ListIterator<E> listIterator()
listIterator in interface List<E>public Iterator<E> iterator()
iterator in interface Iterable<E>iterator in interface Collection<E>iterator in interface List<E>iterator in interface NavigableSet<E>iterator in interface Set<E>iterator in class AbstractCollection<E>public boolean equals(Object o)
public Object[] toArray()
toArray in interface Collection<E>toArray in interface List<E>toArray in interface Set<E>toArray in class AbstractCollection<E>public <T> T[] toArray(T[] a)
toArray in interface Collection<E>toArray in interface List<E>toArray in interface Set<E>toArray in class AbstractCollection<E>public Iterator<E> descendingIterator()
descendingIterator in interface NavigableSet<E>public NavigableSet<E> descendingSet()
descendingSet in interface NavigableSet<E>public E pollFirst()
pollFirst in interface NavigableSet<E>public E pollLast()
pollLast in interface NavigableSet<E>public boolean add(E e)
add in interface Collection<E>add in interface List<E>add in interface Set<E>add in class AbstractCollection<E>public boolean remove(Object o)
remove in interface Collection<E>remove in interface List<E>remove in interface Set<E>remove in class AbstractCollection<E>public boolean addAll(Collection<? extends E> c)
addAll in interface Collection<E>addAll in interface List<E>addAll in interface Set<E>addAll in class AbstractCollection<E>public boolean removeAll(Collection<?> c)
removeAll in interface Collection<E>removeAll in interface List<E>removeAll in interface Set<E>removeAll in class AbstractCollection<E>public boolean retainAll(Collection<?> c)
retainAll in interface Collection<E>retainAll in interface List<E>retainAll in interface Set<E>retainAll in class AbstractCollection<E>public void clear()
clear in interface Collection<E>clear in interface List<E>clear in interface Set<E>clear in class AbstractCollection<E>public boolean addAll(int index,
Collection<? extends E> c)
Copyright © 2019. All rights reserved.