Skip navigation links

Oracle® Coherence Java API Reference
Release 3.6.0.0

E15725-01


com.tangosol.io.pof
Class ValidatingPofHandler.ComplexMap

java.lang.Object
  extended by com.tangosol.util.Base
      extended by com.tangosol.io.pof.ValidatingPofHandler.Complex
          extended by com.tangosol.io.pof.ValidatingPofHandler.ComplexMap

Enclosing class:
ValidatingPofHandler

public class ValidatingPofHandler.ComplexMap
extends ValidatingPofHandler.Complex

A ComplexMap object represents a map data structure (potentially with uniform keys or with uniform keys and values) in the POF stream.


Constructor Summary
ValidatingPofHandler.ComplexMap(ValidatingPofHandler.Complex complexCurrent, int cElements)
          Construct a Complex object for a uniform-keys map.
ValidatingPofHandler.ComplexMap(ValidatingPofHandler.Complex complexCurrent, int cElements, int nUniformKeyTypeId)
          Construct a Complex object for a uniform-keys map.
ValidatingPofHandler.ComplexMap(ValidatingPofHandler.Complex complexCurrent, int cElements, int nUniformKeyTypeId, int nUniformValTypeId)
          Construct a Complex object for a uniform map.

 

Method Summary
 void checkPosition(int iPos)
          Notify the Complex object that a value has been encountered.
 int getNextPosition()
          For complex values with contiguous values, obtain the next position.
 int getUniformType()
          If the object encoding is using uniform encoding, obtain the type id of the uniform type.
 boolean isUniform()
          Determine if the object encoding within the Complex type is uniform.

 

Methods inherited from class com.tangosol.io.pof.ValidatingPofHandler.Complex
getElementCount, getLastPosition, isContiguous, pop

 

Constructor Detail

ValidatingPofHandler.ComplexMap

public ValidatingPofHandler.ComplexMap(ValidatingPofHandler.Complex complexCurrent,
                                       int cElements)
Construct a Complex object for a uniform-keys map.
Parameters:
complexCurrent - the current Complex object or null
cElements - the number of map entries

ValidatingPofHandler.ComplexMap

public ValidatingPofHandler.ComplexMap(ValidatingPofHandler.Complex complexCurrent,
                                       int cElements,
                                       int nUniformKeyTypeId)
Construct a Complex object for a uniform-keys map.
Parameters:
complexCurrent - the current Complex object or null
cElements - the number of map entries
nUniformKeyTypeId - the type identifier of the uniform type for keys in the map

ValidatingPofHandler.ComplexMap

public ValidatingPofHandler.ComplexMap(ValidatingPofHandler.Complex complexCurrent,
                                       int cElements,
                                       int nUniformKeyTypeId,
                                       int nUniformValTypeId)
Construct a Complex object for a uniform map.
Parameters:
complexCurrent - the current Complex object or null
cElements - the number of map entries
nUniformKeyTypeId - the type identifier of the uniform type for keys in the map
nUniformValTypeId - the type identifier of the uniform type for values in the map

Method Detail

checkPosition

public void checkPosition(int iPos)
Notify the Complex object that a value has been encountered.
Overrides:
checkPosition in class ValidatingPofHandler.Complex
Parameters:
iPos - the position that accomponied the value

getNextPosition

public int getNextPosition()
For complex values with contiguous values, obtain the next position.
Overrides:
getNextPosition in class ValidatingPofHandler.Complex
Returns:
the next position

isUniform

public boolean isUniform()
Determine if the object encoding within the Complex type is uniform.
Overrides:
isUniform in class ValidatingPofHandler.Complex
Returns:
true iff values within the Complex type are of a uniform type and are encoded uniformly

getUniformType

public int getUniformType()
If the object encoding is using uniform encoding, obtain the type id of the uniform type.
Overrides:
getUniformType in class ValidatingPofHandler.Complex
Returns:
the type id used for the uniform encoding

Skip navigation links

Oracle® Coherence Java API Reference
Release 3.6.0.0

E15725-01


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