Class CellSet
java.lang.Object
org.apache.hadoop.hbase.regionserver.CellSet
- All Implemented Interfaces:
Iterable<Cell>
,Collection<Cell>
,NavigableSet<Cell>
,Set<Cell>
,SortedSet<Cell>
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<Cell,
Cell> private final int
static final int
-
Constructor Summary
ConstructorDescriptionCellSet
(NavigableMap<Cell, Cell> m) CellSet
(NavigableMap<Cell, Cell> m, int numUniqueKeys) -
Method Summary
Modifier and TypeMethodDescriptionboolean
boolean
addAll
(Collection<? extends Cell> c) void
clear()
Comparator<? super Cell>
boolean
boolean
containsAll
(Collection<?> c) first()
(package private) NavigableMap<Cell,
Cell> 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
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<Cell>
-
descendingIterator
- Specified by:
descendingIterator
in interfaceNavigableSet<Cell>
-
descendingSet
- Specified by:
descendingSet
in interfaceNavigableSet<Cell>
-
floor
- Specified by:
floor
in interfaceNavigableSet<Cell>
-
headSet
-
headSet
- Specified by:
headSet
in interfaceNavigableSet<Cell>
-
higher
- Specified by:
higher
in interfaceNavigableSet<Cell>
-
iterator
-
lower
- Specified by:
lower
in interfaceNavigableSet<Cell>
-
pollFirst
- Specified by:
pollFirst
in interfaceNavigableSet<Cell>
-
pollLast
- Specified by:
pollLast
in interfaceNavigableSet<Cell>
-
subSet
-
subSet
public NavigableSet<Cell> subSet(Cell fromElement, boolean fromInclusive, Cell toElement, boolean toInclusive) - Specified by:
subSet
in interfaceNavigableSet<Cell>
-
tailSet
-
tailSet
- Specified by:
tailSet
in interfaceNavigableSet<Cell>
-
comparator
- Specified by:
comparator
in interfaceSortedSet<Cell>
-
first
-
last
-
add
-
addAll
-
clear
-
contains
-
containsAll
- Specified by:
containsAll
in interfaceCollection<Cell>
- Specified by:
containsAll
in interfaceSet<Cell>
-
isEmpty
-
remove
-
removeAll
-
retainAll
-
get
-
size
-
toArray
-
toArray
-
getNumUniqueKeys
-