Module org.elasticsearch.compute
Package org.elasticsearch.compute.lucene
Class IndexedByShardIdFromList<T>
java.lang.Object
org.elasticsearch.compute.lucene.IndexedByShardIdFromList<T>
- All Implemented Interfaces:
IndexedByShardId<T>
An
IndexedByShardId used by only in tests, but placed here so it's visible for all test modules.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionCollection<? extends T> This is not necessarily a list of all values visible via get(int), but rather, a list of the relevant values.get(int shardId) <S> IndexedByShardId<S> The elements are mapped lazily, i.e., the function would also apply to future elements (as opposed tocollection().stream().map, which only maps the current elements).Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.elasticsearch.compute.lucene.IndexedByShardId
isEmpty
-
Constructor Details
-
IndexedByShardIdFromList
-
-
Method Details
-
get
- Specified by:
getin interfaceIndexedByShardId<T>
-
collection
Description copied from interface:IndexedByShardIdThis is not necessarily a list of all values visible via get(int), but rather, a list of the relevant values. This is useful when you need to perform an operation over all relevant values, e.g., closing them.- Specified by:
collectionin interfaceIndexedByShardId<T>
-
map
Description copied from interface:IndexedByShardIdThe elements are mapped lazily, i.e., the function would also apply to future elements (as opposed tocollection().stream().map, which only maps the current elements).- Specified by:
mapin interfaceIndexedByShardId<T>
-