Overview | Package | Class | Tree | Index | Help

Oracle® Coherence Java API Reference
v3.5.3
E15583-01
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## com.tangosol.io.pof
Class WritingPofHandler.Complex

    java.lang.Object
      com.tangosol.util.Base
          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

Overview | Package | Class | Tree | Index | Help

Oracle® Coherence Java API Reference
v3.5.3
E15583-01
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2000, 2010, Oracle. All rights reserved.