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 boolean
boolVal()
void
callEnd()
Object
ctx()
This is the object shared in the parent container in the {DataEntry.listenContainer(Object, EntryListener)
} methodint
depth()
Depth of this Object.double
doubleVal()
float
floatVal()
FastJavaBinDecoder.Tag
getTag()
long
index()
The index of this entry in the containerint
intVal()
boolean
isKeyValEntry()
If this object is a key value entry.int
length()
If it is a non-primitive type type and size is known in advance if 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 streamvoid
listenContainer(Object ctx, DataEntry.EntryListener listener)
Register a listener to get callbacks for all entrieslong
longVal()
Object
metadata()
Some Objects may have metadata.CharSequence
name()
The name, if this is a map entry , else it returns a nullDataEntry
parent()
If this is a child of another container object this returns a non-null valueDataEntry.Type
type()
The data typeObject
val()
The object value
-
-
-
Field Detail
-
ctx
public Object ctx
-
-
Method Detail
-
index
public long index()
Description copied from interface:DataEntry
The index of this entry in the container
-
length
public int length()
Description copied from interface:DataEntry
If it is a non-primitive type type and size is known in advance if 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:DataEntry
If this object is a key value entry. key value entries have name- Specified by:
isKeyValEntry
in interfaceDataEntry
-
name
public CharSequence name()
Description copied from interface:DataEntry
The name, if this is a map entry , else it returns a null
-
depth
public int depth()
Description copied from interface:DataEntry
Depth of this Object. The root most object has a depth of 1
-
parent
public DataEntry parent()
Description copied from interface:DataEntry
If this is a child of another container object this returns a non-null value
-
metadata
public Object metadata()
Description copied from interface:DataEntry
Some Objects may have metadata. usually there is none
-
ctx
public Object ctx()
Description copied from interface:DataEntry
This is the object shared in the parent container in the {DataEntry.listenContainer(Object, EntryListener)
} method
-
type
public DataEntry.Type type()
Description copied from interface:DataEntry
The data type
-
listenContainer
public void listenContainer(Object ctx, DataEntry.EntryListener listener)
Description copied from interface:DataEntry
Register a listener to get callbacks for all entries- Specified by:
listenContainer
in 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()
-
-