Skip navigation links

Oracle® Fusion Middleware Java API Reference for Oracle Coherence
12c (12.1.3.0.0)

E47890-01


com.tangosol.io.pof.reflect
Class PofSparseArray

java.lang.Object
  extended by com.tangosol.util.Base
      extended by com.tangosol.util.BitHelper
          extended by com.tangosol.util.ExternalizableHelper
              extended by com.tangosol.io.pof.reflect.AbstractPofValue
                  extended by com.tangosol.io.pof.reflect.ComplexPofValue
                      extended by com.tangosol.io.pof.reflect.PofSparseArray

All Implemented Interfaces:
PofValue
Direct Known Subclasses:
PofUniformSparseArray, PofUserType

public class PofSparseArray
extends ComplexPofValue

PofSparseArray is PofSparseArray.NilPofValue implementation for sparse arrays.

Since:
Coherence 3.5
Author:
as 2009.03.06

Nested Class Summary
protected static class PofSparseArray.NilPofValue
          NilPofValue represents a value that does not exist in the original POF stream.

 

Field Summary

 

Fields inherited from class com.tangosol.io.pof.reflect.AbstractPofValue
m_arrayRefs, m_nType, m_oValue

 

Constructor Summary
PofSparseArray(PofValue valueParent, ReadBuffer bufValue, PofContext ctx, int of, int nType, int ofChildren)
          Construct a PofSparseArray instance wrapping the supplied buffer.

 

Method Summary
protected  PofValue findChildInternal(int nIndex, int ofStart, int iStart)
          Find the child value with the specified index.
protected  PofSparseArray.NilPofValue instantiateNilValue(int of, int nIndex)
          Instantiate a PofSparseArray.NilPofValue (factory method).

 

Methods inherited from class com.tangosol.io.pof.reflect.ComplexPofValue
extractChild, findChild, getChild, getChildrenIterator, getLastChildIndex, getUniformElementType, isUniformCollection, setUniformElementType, skipChild

 

Methods inherited from class com.tangosol.io.pof.reflect.AbstractPofValue
applyChanges, ensureReferenceRegistry, getBigDecimal, getBigInteger, getBoolean, getBooleanArray, getByte, getByteArray, getChanges, getChar, getCharArray, getCollection, getDate, getDirtyBytesCount, getDouble, getDoubleArray, getFloat, getFloatArray, getInt, getIntArray, getLong, getLongArray, getMap, getObjectArray, getOffset, getOriginalBuffer, getParent, getPofContext, getPropertyIndex, getRoot, getSerializedValue, getShort, getShortArray, getSize, getString, getTypeId, getValue, getValue, getValue, getValueBuffer, incrementDirtyBytesCount, incrementDirtyValuesCount, isDirty, isRoot, isUniformEncoded, lookupIdentity, registerIdentity, 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, toBytes, toBytes, toBytes, toBytes, toInt, toInt, toLong, toLong

 

Constructor Detail

PofSparseArray

public PofSparseArray(PofValue valueParent,
                      ReadBuffer bufValue,
                      PofContext ctx,
                      int of,
                      int nType,
                      int ofChildren)
Construct a PofSparseArray instance wrapping the supplied buffer.
Parameters:
valueParent - parent value within the POF stream
bufValue - buffer containing POF representation of this value
ctx - POF context to use when reading or writing properties
of - offset of this value from the beginning of POF stream
nType - POF type identifier for this value
ofChildren - offset of the first child element within this value

Method Detail

findChildInternal

protected PofValue findChildInternal(int nIndex,
                                     int ofStart,
                                     int iStart)
Find the child value with the specified index.
Specified by:
findChildInternal in class ComplexPofValue
Parameters:
nIndex - index of the child value to find
ofStart - offset within the parent buffer to start search from
iStart - index of the child value to start search from
Returns:
the child value

instantiateNilValue

protected PofSparseArray.NilPofValue instantiateNilValue(int of,
                                                         int nIndex)
Instantiate a PofSparseArray.NilPofValue (factory method).
Parameters:
of - offset this value would be at if it existed
nIndex - index of this value within the parent sparse array
Returns:
a NilPofValue instance

Skip navigation links

Oracle® Fusion Middleware Java API Reference for Oracle Coherence
12c (12.1.3.0.0)

E47890-01


Copyright © 2000, 2014, Oracle and/or its affiliates. All rights reserved.