Package org.apache.hadoop.hbase.util
Class ConcatenatedLists<T>
java.lang.Object
java.util.AbstractCollection<T>
org.apache.hadoop.hbase.util.ConcatenatedLists<T>
- All Implemented Interfaces:
Iterable<T>
,Collection<T>
- Direct Known Subclasses:
StripeStoreFileManager.KeyBeforeConcatenatedLists
A collection class that contains multiple sub-lists, which allows us to not copy lists. This
class does not support modification. The derived classes that add modifications are not
thread-safe. NOTE: Doesn't implement list as it is not necessary for current usage, feel free to
add.
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionprotected int
-
Constructor Summary
-
Method Summary
Methods inherited from class java.util.AbstractCollection
add, addAll, clear, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toString
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.util.Collection
equals, hashCode, parallelStream, removeIf, spliterator, stream
-
Field Details
-
components
-
size
-
-
Constructor Details
-
ConcatenatedLists
public ConcatenatedLists()
-
-
Method Details
-
addAllSublists
-
addSublist
-
size
- Specified by:
size
in interfaceCollection<T>
- Specified by:
size
in classAbstractCollection<T>
-
iterator
- Specified by:
iterator
in interfaceCollection<T>
- Specified by:
iterator
in interfaceIterable<T>
- Specified by:
iterator
in classAbstractCollection<T>
-