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
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.solr.common.util.DataEntry
DataEntry.EntryListener, DataEntry.FastDecoder, DataEntry.Type -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanboolVal()voidcallEnd()ctx()This is the object shared in the parent container in the {DataEntry.listenContainer(Object, EntryListener)} methodintdepth()Depth of this Object.doublefloatfloatVal()getTag()longindex()The index of this entry in the containerintintVal()booleanIf this object is a key value entry.intlength()If it is a non-primitive type and size is known in advancevoidlistenContainer(Object ctx, DataEntry.EntryListener listener) Register a listener to get callbacks for all entrieslonglongVal()metadata()Some Objects may have metadata.name()The name, if this is a map entry , else it returns a nullparent()If this is a child of another container object this returns a non-null valuetype()The data typeval()The object value
-
Field Details
-
ctx
-
-
Constructor Details
-
EntryImpl
public EntryImpl()
-
-
Method Details
-
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 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
-
boolVal
public boolean boolVal() -
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
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
Description copied from interface:DataEntryIf this is a child of another container object this returns a non-null value -
metadata
Description copied from interface:DataEntrySome Objects may have metadata. usually there is none -
ctx
Description copied from interface:DataEntryThis is the object shared in the parent container in the {DataEntry.listenContainer(Object, EntryListener)} method -
type
Description copied from interface:DataEntryThe data type -
intVal
public int intVal() -
longVal
public long longVal() -
floatVal
public float floatVal() -
doubleVal
public double doubleVal() -
val
Description copied from interface:DataEntryThe object value -
listenContainer
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()
-