Class CellSet<T extends Cell>
java.lang.Object
org.apache.hadoop.hbase.regionserver.CellSet<T>
- All Implemented Interfaces:
Iterable<T>,Collection<T>,NavigableSet<T>,Set<T>,SortedSet<T>
A
Set of Cells, where an add will overwrite the entry if already exists
in the set. The call to add returns true if no value in the backing map or false if there was an
entry with same key (though value may be different). implementation is tolerant of concurrent get
and set and won't throw ConcurrentModificationException when iterating.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final NavigableMap<T,T> private final intstatic final int -
Constructor Summary
ConstructorsConstructorDescriptionCellSet(NavigableMap<T, T> m) CellSet(NavigableMap<T, T> m, int numUniqueKeys) -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleanaddAll(Collection<? extends T> c) voidclear()Comparator<? super T>booleanbooleancontainsAll(Collection<?> c) first()(package private) NavigableMap<T,T> intbooleanisEmpty()iterator()last()pollLast()booleanbooleanremoveAll(Collection<?> c) booleanretainAll(Collection<?> c) intsize()Object[]toArray()<T> T[]toArray(T[] a) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArrayMethods inherited from interface java.util.SortedSet
spliterator
-
Field Details
-
UNKNOWN_NUM_UNIQUES
- See Also:
-
delegatee
-
numUniqueKeys
-
-
Constructor Details
-
CellSet
-
-
Method Details
-
getDelegatee
-
ceiling
- Specified by:
ceilingin interfaceNavigableSet<T extends Cell>
-
descendingIterator
- Specified by:
descendingIteratorin interfaceNavigableSet<T extends Cell>
-
descendingSet
- Specified by:
descendingSetin interfaceNavigableSet<T extends Cell>
-
floor
- Specified by:
floorin interfaceNavigableSet<T extends Cell>
-
headSet
-
headSet
- Specified by:
headSetin interfaceNavigableSet<T extends Cell>
-
higher
- Specified by:
higherin interfaceNavigableSet<T extends Cell>
-
iterator
-
lower
- Specified by:
lowerin interfaceNavigableSet<T extends Cell>
-
pollFirst
- Specified by:
pollFirstin interfaceNavigableSet<T extends Cell>
-
pollLast
- Specified by:
pollLastin interfaceNavigableSet<T extends Cell>
-
subSet
-
subSet
public NavigableSet<T> subSet(Cell fromElement, boolean fromInclusive, Cell toElement, boolean toInclusive) - Specified by:
subSetin interfaceNavigableSet<T extends Cell>
-
tailSet
-
tailSet
- Specified by:
tailSetin interfaceNavigableSet<T extends Cell>
-
comparator
- Specified by:
comparatorin interfaceSortedSet<T extends Cell>
-
first
-
last
-
add
-
addAll
-
clear
-
contains
-
containsAll
- Specified by:
containsAllin interfaceCollection<T extends Cell>- Specified by:
containsAllin interfaceSet<T extends Cell>
-
isEmpty
-
remove
-
removeAll
-
retainAll
-
get
-
size
-
toArray
-
toArray
-
getNumUniqueKeys
-