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 Cell
s, 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
Modifier and TypeFieldDescriptionprivate final NavigableMap<T,
T> private final int
static final int
-
Constructor Summary
ConstructorDescriptionCellSet
(NavigableMap<T, T> m) CellSet
(NavigableMap<T, T> m, int numUniqueKeys) -
Method Summary
Modifier and TypeMethodDescriptionboolean
boolean
addAll
(Collection<? extends T> c) void
clear()
Comparator<? super T>
boolean
boolean
containsAll
(Collection<?> c) first()
(package private) NavigableMap<T,
T> int
boolean
isEmpty()
iterator()
last()
pollLast()
boolean
boolean
removeAll
(Collection<?> c) boolean
retainAll
(Collection<?> c) int
size()
Object[]
toArray()
<T> T[]
toArray
(T[] a) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArray
Methods 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:
ceiling
in interfaceNavigableSet<T extends Cell>
-
descendingIterator
- Specified by:
descendingIterator
in interfaceNavigableSet<T extends Cell>
-
descendingSet
- Specified by:
descendingSet
in interfaceNavigableSet<T extends Cell>
-
floor
- Specified by:
floor
in interfaceNavigableSet<T extends Cell>
-
headSet
-
headSet
- Specified by:
headSet
in interfaceNavigableSet<T extends Cell>
-
higher
- Specified by:
higher
in interfaceNavigableSet<T extends Cell>
-
iterator
-
lower
- Specified by:
lower
in interfaceNavigableSet<T extends Cell>
-
pollFirst
- Specified by:
pollFirst
in interfaceNavigableSet<T extends Cell>
-
pollLast
- Specified by:
pollLast
in interfaceNavigableSet<T extends Cell>
-
subSet
-
subSet
public NavigableSet<T> subSet(Cell fromElement, boolean fromInclusive, Cell toElement, boolean toInclusive) - Specified by:
subSet
in interfaceNavigableSet<T extends Cell>
-
tailSet
-
tailSet
- Specified by:
tailSet
in interfaceNavigableSet<T extends Cell>
-
comparator
- Specified by:
comparator
in interfaceSortedSet<T extends Cell>
-
first
-
last
-
add
-
addAll
-
clear
-
contains
-
containsAll
- Specified by:
containsAll
in interfaceCollection<T extends Cell>
- Specified by:
containsAll
in interfaceSet<T extends Cell>
-
isEmpty
-
remove
-
removeAll
-
retainAll
-
get
-
size
-
toArray
-
toArray
-
getNumUniqueKeys
-