Package org.apache.solr.common
Class MapWriterMap
- java.lang.Object
- 
- org.apache.solr.common.MapWriterMap
 
- 
- All Implemented Interfaces:
- MapSerializable,- MapWriter,- NavigableObject,- org.noggit.JSONWriter.Writable
 
 public class MapWriterMap extends Object implements MapWriter 
- 
- 
Nested Class Summary- 
Nested classes/interfaces inherited from interface org.apache.solr.common.MapWriterMapWriter.EntryWriter
 
- 
 - 
Constructor SummaryConstructors Constructor Description MapWriterMap(Map<String,Object> delegate)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description Object_get(String path, Object def)Get a child object value using json path.Object_get(List<String> path, Object def)Get a child object value using json pathint_size()Map<String,Object>toMap(Map<String,Object> map)Use the passed map to minimize object creation.voidwriteMap(MapWriter.EntryWriter ew)- 
Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 - 
Methods inherited from interface org.apache.solr.common.NavigableObject_forEachEntry, _forEachEntry, _forEachEntry, _getStr, _getStr
 
- 
 
- 
- 
- 
Method Detail- 
writeMappublic void writeMap(MapWriter.EntryWriter ew) throws IOException - Specified by:
- writeMapin interface- MapWriter
- Throws:
- IOException
 
 - 
_getpublic Object _get(String path, Object def) 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 interface- NavigableObject
- Parameters:
- path- the full path to that object such as a/b/c[4]/d etc
- def- the default
- Returns:
- the found value or default
 
 - 
_getpublic Object _get(List<String> path, Object def) Description copied from interface:NavigableObjectGet a child object value using json path- Specified by:
- _getin interface- NavigableObject
- Parameters:
- path- the full path to that object such as ["a","b","c[4]","d"] etc
- def- the default
- Returns:
- the found value or default
 
 - 
_sizepublic int _size() - Specified by:
- _sizein interface- NavigableObject
 
 - 
toMappublic Map<String,Object> toMap(Map<String,Object> map) Description copied from interface:MapSerializableUse the passed map to minimize object creation. Do not keep a reference to the passed map and reuse it. it may be reused by the framework- Specified by:
- toMapin interface- MapSerializable
- Specified by:
- toMapin interface- MapWriter
 
 
- 
 
-