Package org.apache.cassandra.utils.btree
Class BTreeSet.BTreeRange<V>
java.lang.Object
org.apache.cassandra.utils.btree.BTreeSet<V>
org.apache.cassandra.utils.btree.BTreeSet.BTreeRange<V>
- All Implemented Interfaces:
Iterable<V>,Collection<V>,List<V>,NavigableSet<V>,Set<V>,SortedSet<V>
- Direct Known Subclasses:
BTreeSet.BTreeDescRange
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.cassandra.utils.btree.BTreeSet
BTreeSet.BTreeDescRange<V>, BTreeSet.BTreeRange<V>, BTreeSet.Builder<V> -
Field Summary
FieldsFields inherited from class org.apache.cassandra.utils.btree.BTreeSet
comparator, tree -
Method Summary
Modifier and TypeMethodDescriptionget(int index) The converse of indexOf: provided an index between 0 and size, returns the i'th item, in set order.intThe index of the item within the list, or its insertion point otherwise.booleanisEmpty()intsize()protected BTreeSearchIterator<V,V> subList(int fromIndex, int toIndex) <T> T[]toArray(T[] a) <T> T[]toArray(T[] a, int offset) Methods inherited from class org.apache.cassandra.utils.btree.BTreeSet
add, add, addAll, addAll, builder, builder, clear, comparator, contains, containsAll, copy, copy, descendingIterator, empty, first, hashCode, headSet, iterator, last, lastIndexOf, listIterator, listIterator, of, of, of, pollFirst, pollLast, remove, remove, removeAll, retainAll, set, spliterator, subSet, tailSet, toArray, tree, wrapMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArrayMethods inherited from interface java.util.List
equals, replaceAll, sort
-
Field Details
-
lowerBound
protected final int lowerBound -
upperBound
protected final int upperBound
-
-
Method Details
-
slice
-
isEmpty
public boolean isEmpty() -
size
public int size() -
get
Description copied from class:BTreeSetThe converse of indexOf: provided an index between 0 and size, returns the i'th item, in set order. -
indexOf
Description copied from class:BTreeSetThe index of the item within the list, or its insertion point otherwise. i.e. binarySearch semantics -
lower
-
floor
-
ceiling
-
higher
-
subSet
-
headSet
-
tailSet
-
descendingSet
- Specified by:
descendingSetin interfaceNavigableSet<V>- Overrides:
descendingSetin classBTreeSet<V>
-
subList
-
toArray
public <T> T[] toArray(T[] a) -
toArray
public <T> T[] toArray(T[] a, int offset)
-