|
Oracle® Coherence Java API Reference Release 3.6.0.0 E15725-01 |
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Object
com.tangosol.util.Base
com.tangosol.util.BitHelper
com.tangosol.util.ExternalizableHelper
com.tangosol.io.pof.reflect.AbstractPofValue
com.tangosol.io.pof.reflect.ComplexPofValue
public abstract class ComplexPofValue
An abstract base class for complex POF types, such as collections, arrays, maps, and user types.
| Field Summary |
|---|
| Fields inherited from class com.tangosol.io.pof.reflect.AbstractPofValue |
|---|
m_nType, m_oValue |
| Constructor Summary | |
|---|---|
ComplexPofValue(PofValue valueParent, ReadBuffer bufValue, PofContext ctx, int of, int nType, int ofChildren)Construct a PofValue instance wrapping the supplied buffer. |
|
| Method Summary | |
|---|---|
protected PofValue |
extractChild(ReadBuffer buf, int of, int cb)Extract child PofValue from a buffer. |
protected PofValue |
findChild(int nIndex)Find the child value with the specified index. |
protected abstract PofValue |
findChildInternal(int nIndex, int ofStart, int iStart)Find the child value with the specified index. |
PofValue |
getChild(int nIndex)Locate a child PofValue contained within this PofValue. |
Iterator |
getChildrenIterator()Return an iterator over all parsed child values. |
protected int |
getLastChildIndex(int nIndex)Return index of the last parsed child with an index lower than the specified one. |
protected int |
getUniformElementType()Return the uniform element type (if this is a uniform collection). |
protected boolean |
isUniformCollection()Return true if this complex value is encoded as one of uniform collection types. |
protected void |
setUniformElementType(int nElementType)Set the uniform element type for this collection. |
protected void |
skipChild(ReadBuffer.BufferInput in)Skip a single child value. |
| Methods inherited from class com.tangosol.io.pof.reflect.AbstractPofValue |
|---|
applyChanges, getChanges, getDirtyBytesCount, getOffset, getOriginalBuffer, getParent, getPofContext, getPropertyIndex, getRoot, getSerializedValue, getSize, getTypeId, getValue, getValue, getValue, getValueBuffer, incrementDirtyBytesCount, incrementDirtyValuesCount, isDirty, isRoot, isUniformEncoded, setDecorations, setDirty, setOriginalBuffer, setUniformEncoded, setValue |
| Methods inherited from class com.tangosol.util.BitHelper |
|---|
countBits, countBits, countBits, indexOfLSB, indexOfLSB, indexOfLSB, indexOfMSB, indexOfMSB, indexOfMSB, rotateLeft, rotateLeft, rotateLeft, rotateRight, rotateRight, rotateRight, toBitString, toBitString, toBitString |
| Constructor Detail |
|---|
public ComplexPofValue(PofValue valueParent,
ReadBuffer bufValue,
PofContext ctx,
int of,
int nType,
int ofChildren)
valueParent - parent value within the POF streambufValue - buffer containing POF representation of this valuectx - POF context to use when reading or writing propertiesof - offset of this value from the beginning of POF streamnType - POF type identifier for this valueofChildren - offset of the first child element within this value| Method Detail |
|---|
public PofValue getChild(int nIndex)
nIndex - index of the child valuepublic Iterator getChildrenIterator()
protected int getUniformElementType()
PofConstants.T_UNKNOWN if this is not a uniform collectionprotected void setUniformElementType(int nElementType)
nElementType - uniform element typeprotected PofValue findChild(int nIndex)
nIndex - index of the child value to findprotected int getLastChildIndex(int nIndex)
nIndex - index to find the preceding child index forprotected boolean isUniformCollection()
protected void skipChild(ReadBuffer.BufferInput in)
throws IOException
in - buffer input containing child valuesIOException - if an I/O error occurs
protected PofValue extractChild(ReadBuffer buf,
int of,
int cb)
buf - parent buffer to extract the child fromof - offset of the child within the parent buffercb - length of the child in bytes
protected abstract PofValue findChildInternal(int nIndex,
int ofStart,
int iStart)
nIndex - index of the child value to findofStart - offset within the parent buffer to start search fromiStart - index of the child value to start search from
|
Oracle® Coherence Java API Reference Release 3.6.0.0 E15725-01 |
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||