Package org.apache.solr.cluster.api
Interface SimpleMap<T>
- All Superinterfaces:
org.noggit.JSONWriter.Writable,MapSerializable,MapWriter,NavigableObject
- All Known Implementing Classes:
CloudSolrClient.RouteResponse,NamedList,SimpleOrderedMap,WrappedSimpleMap
Deprecated.
A simplified read-only key-value structure. It is designed to support large datasets without
consuming a lot of memory The objective is to provide implementations that are cheap and memory
efficient to implement and consume. The keys are always
CharSequence objects, The values
can be of any type-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.solr.common.MapWriter
MapWriter.EntryWriter -
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptiondefault voidabortableForEach(BiFunction<String, ? super T, Boolean> fun) Deprecated.default voidDeprecated.asMap()Deprecated.Deprecated.voidforEachEntry(BiConsumer<String, ? super T> fun) Deprecated.default voidforEachKey(Consumer<String> fun) Deprecated.Deprecated.get a value by key.default TDeprecated.intsize()Deprecated.default voidDeprecated.Methods inherited from interface org.apache.solr.common.NavigableObject
_forEachEntry, _forEachEntry, _forEachEntry, _get, _get, _get, _getStr, _getStr, _getStr, _size
-
Method Details
-
get
Deprecated.get a value by key. If not present , null is returned -
get
Deprecated. -
forEachEntry
Deprecated.Navigate through all keys and values -
forEachKey
Deprecated.iterate through all keys The default impl is suboptimal. Proper implementations must do it more efficiently -
size
int size()Deprecated. -
abortableForEachKey
Deprecated.iterate through all keys but abort in between if required The default impl is suboptimal. Proper implementations must do it more efficiently- Parameters:
fun- Consume each key and return a boolean to signal whether to proceed or not. If true, continue. If false stop
-
abortableForEach
Deprecated.Navigate through all key-values but abort in between if required. The default impl is suboptimal. Proper implementations must do it more efficiently- Parameters:
fun- Consume each entry and return a boolean to signal whether to proceed or not. If true, continue, if false stop
-
writeMap
Deprecated.- Specified by:
writeMapin interfaceMapWriter- Throws:
IOException
-
asMap
Deprecated. -
asMap
Deprecated.
-