Package org.apache.solr.common
Class LinkedHashMapWriter<V>
- All Implemented Interfaces:
Serializable,Cloneable,Map<String,,V> MapSerializable,MapWriter,NavigableObject,org.noggit.JSONWriter.Writable
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K, V> Nested classes/interfaces inherited from interface org.apache.solr.common.MapWriter
MapWriter.EntryWriter -
Field Summary
-
Constructor Summary
ConstructorsConstructorDescriptionLinkedHashMapWriter(int initialCapacity) LinkedHashMapWriter(Map<? extends String, ? extends V> m) -
Method Summary
Methods inherited from class java.util.LinkedHashMap
clear, containsValue, entrySet, forEach, get, getOrDefault, keySet, removeEldestEntry, replaceAll, valuesMethods inherited from class java.util.HashMap
clone, compute, computeIfAbsent, computeIfPresent, containsKey, isEmpty, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, sizeMethods inherited from class java.util.AbstractMap
equals, hashCodeMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, containsKey, equals, hashCode, isEmpty, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, sizeMethods inherited from interface org.apache.solr.common.NavigableObject
_forEachEntry, _forEachEntry, _forEachEntry, _getStr, _getStr, _size
-
Constructor Details
-
LinkedHashMapWriter
public LinkedHashMapWriter(int initialCapacity) -
LinkedHashMapWriter
public LinkedHashMapWriter() -
LinkedHashMapWriter
-
-
Method Details
-
writeMap
Description copied from interface:MapWriterWrites this object's entries out toew.- Specified by:
writeMapin interfaceMapWriter- Throws:
IOException
-
_get
Description copied from interface:NavigableObjectGet a child object value using json path. This usually ends up in String split operations use a list of strings where performance is important- Specified by:
_getin interfaceNavigableObject- Parameters:
path- the full path to that object such as a/b/c[4]/d etc- Returns:
- the found value or default
-
_get
Description copied from interface:NavigableObjectGet a child object value using json path- Specified by:
_getin interfaceNavigableObject- Parameters:
path- the full path to that object such as ["a","b","c[4]","d"] etcdef- the default- Returns:
- the found value or default
-
toString
- Overrides:
toStringin classAbstractMap<String,V>
-