Package org.apache.solr.common.util
Class FastJavaBinDecoder.EntryImpl
- java.lang.Object
-
- org.apache.solr.common.util.FastJavaBinDecoder.EntryImpl
-
- All Implemented Interfaces:
DataEntry
- Enclosing class:
- FastJavaBinDecoder
public class FastJavaBinDecoder.EntryImpl extends Object implements DataEntry
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.apache.solr.common.util.DataEntry
DataEntry.EntryListener, DataEntry.FastDecoder, DataEntry.Type
-
-
Constructor Summary
Constructors Constructor Description EntryImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanboolVal()voidcallEnd()Objectctx()This is the object shared in the parent container in the {DataEntry.listenContainer(Object, EntryListener)} methodintdepth()Depth of this Object.doubledoubleVal()floatfloatVal()FastJavaBinDecoder.TaggetTag()longindex()The index of this entry in the containerintintVal()booleanisKeyValEntry()If this object is a key value entry.intlength()If it is a non-primitive type type and size is known in advancevoidlistenContainer(Object ctx, DataEntry.EntryListener listener)Register a listener to get callbacks for all entrieslonglongVal()Objectmetadata()Some Objects may have metadata.CharSequencename()The name, if this is a map entry , else it returns a nullDataEntryparent()If this is a child of another container object this returns a non-null valueDataEntry.Typetype()The data typeObjectval()The object value
-
-
-
Field Detail
-
ctx
public Object ctx
-
-
Method Detail
-
index
public long index()
Description copied from interface:DataEntryThe index of this entry in the container
-
length
public int length()
Description copied from interface:DataEntryIf it is a non-primitive type type and size is known in advanceif it's a map/list, it's the no:of items in this container
if it's a {
CharSequence} or byte[] , it's the no:of bytes in the stream
-
getTag
public FastJavaBinDecoder.Tag getTag()
-
isKeyValEntry
public boolean isKeyValEntry()
Description copied from interface:DataEntryIf this object is a key value entry. key value entries have name- Specified by:
isKeyValEntryin interfaceDataEntry
-
name
public CharSequence name()
Description copied from interface:DataEntryThe name, if this is a map entry , else it returns a null
-
depth
public int depth()
Description copied from interface:DataEntryDepth of this Object. The root most object has a depth of 1
-
parent
public DataEntry parent()
Description copied from interface:DataEntryIf this is a child of another container object this returns a non-null value
-
metadata
public Object metadata()
Description copied from interface:DataEntrySome Objects may have metadata. usually there is none
-
ctx
public Object ctx()
Description copied from interface:DataEntryThis is the object shared in the parent container in the {DataEntry.listenContainer(Object, EntryListener)} method
-
type
public DataEntry.Type type()
Description copied from interface:DataEntryThe data type
-
listenContainer
public void listenContainer(Object ctx, DataEntry.EntryListener listener)
Description copied from interface:DataEntryRegister a listener to get callbacks for all entries- Specified by:
listenContainerin interfaceDataEntry- Parameters:
ctx- This is any object that should be shared with the child entry callbackslistener- The listener that handles each entry in this container
-
callEnd
public void callEnd()
-
-