Skip navigation links

Oracle® Coherence Java API Reference
Release 3.6.0.0

E15725-01


com.tangosol.io.pof
Class WritingPofHandler.Complex

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

Direct Known Subclasses:
WritingPofHandler.ComplexMap
Enclosing class:
WritingPofHandler

public static class WritingPofHandler.Complex
extends Base

A Complex object represents the current complex data structure in the POF stream.


Constructor Summary
WritingPofHandler.Complex(WritingPofHandler.Complex complexCurrent, boolean fEncodePosition)
          Construct a Complex object for a data collection or user type.
WritingPofHandler.Complex(WritingPofHandler.Complex complexCurrent, boolean fEncodePosition, int nUniformTypeId)
          Construct a Complex object for a uniformly-typed data collection.

 

Method Summary
 int getUniformType()
          If the object encoding is using uniform encoding, obtain the type id of the uniform type.
 boolean isSparse()
          Determine if the position information is encoded with the values of the complex type, and if the Complex type is terminated in the POF stream with an illegal position (-1).
 boolean isUniform()
          Determine if the object encoding within the Complex type is uniform.
 void onValue(int iPos)
          Notify the Complex object that a value has been encountered.
 WritingPofHandler.Complex pop()
          Pop this Complex object off the stack, returning the outer Complex object or null if there is none.

 

Constructor Detail

WritingPofHandler.Complex

public WritingPofHandler.Complex(WritingPofHandler.Complex complexCurrent,
                                 boolean fEncodePosition)
Construct a Complex object for a data collection or user type.
Parameters:
complexCurrent - the current Complex object or null
fEncodePosition - true to encode the position information

WritingPofHandler.Complex

public WritingPofHandler.Complex(WritingPofHandler.Complex complexCurrent,
                                 boolean fEncodePosition,
                                 int nUniformTypeId)
Construct a Complex object for a uniformly-typed data collection.
Parameters:
complexCurrent - the current Complex object or null
fEncodePosition - true to encode the position information
nUniformTypeId - the type identifier of the uniform type

Method Detail

onValue

public void onValue(int iPos)
Notify the Complex object that a value has been encountered.
Parameters:
iPos - the position that accomponied the value

isUniform

public boolean isUniform()
Determine if the object encoding within the Complex type is uniform.
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.
Returns:
the type id used for the uniform encoding

isSparse

public boolean isSparse()
Determine if the position information is encoded with the values of the complex type, and if the Complex type is terminated in the POF stream with an illegal position (-1).
Returns:
true iff the complex value is a sparse type

pop

public WritingPofHandler.Complex pop()
Pop this Complex object off the stack, returning the outer Complex object or null if there is none.
Returns:
the outer Complex object or null if there is none

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.