Package 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
A Complex object represents the current complex data structure in the
POF stream.
-
Nested Class Summary
Nested classes/interfaces inherited from class com.tangosol.util.Base
Base.LoggingWriter
-
Field Summary
-
Constructor Summary
ConstructorDescriptionComplex
(WritingPofHandler.Complex complexCurrent, boolean fEncodePosition) Construct a Complex object for a data collection or user type.Complex
(WritingPofHandler.Complex complexCurrent, boolean fEncodePosition, int nUniformTypeId) Construct a Complex object for a uniformly-typed data collection. -
Method Summary
Modifier and TypeMethodDescriptionint
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
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.pop()
Pop this Complex object off the stack, returning the outer Complex object or null if there is none.Methods inherited from class com.tangosol.util.Base
azzert, azzert, azzert, azzertFailed, breakLines, breakLines, capitalize, checkNotEmpty, checkNotNull, checkRange, computeSafeWaitTime, decimalValue, dup, dup, ensureBigDecimal, ensureClassLoader, ensureRuntimeException, ensureRuntimeException, equals, equalsDeep, err, err, err, err, err, escape, formatDateTime, getCallerStackFrame, getCommonMonitor, getCommonMonitor, getCommonMonitor, getContextClassLoader, getContextClassLoader, getDeepMessage, getErr, getLastSafeTimeMillis, getLog, getMaxDecDigits, getMaxHexDigits, getOriginalException, getOut, getProcessRandom, getRandom, getRandomBinary, getRandomBinary, getRandomString, getSafeTimeMillis, getStackFrame, getStackFrames, getStackTrace, getStackTrace, getStackTrace, getThreadFactory, getTimeZone, getUpTimeMillis, hashCode, hexValue, indentString, indentString, isDecimal, isHex, isLogEcho, isOctal, log, log, log, log, log, makeInteger, makeLong, makeThread, mergeArray, mergeBooleanArray, mergeByteArray, mergeCharArray, mergeDoubleArray, mergeFloatArray, mergeIntArray, mergeLongArray, mod, mod, octalValue, out, out, out, out, out, pad, parseBandwidth, parseBandwidth, parseDelimitedString, parseHex, parseHex, parseMemorySize, parseMemorySize, parsePercentage, parseTime, parseTime, parseTimeNanos, parseTimeNanos, printStackTrace, randomize, randomize, randomize, randomize, read, read, read, read, read, read, read, replace, setErr, setLog, setLogEcho, setOut, sleep, toBandwidthString, toBandwidthString, toCharEscape, toCrc, toCrc, toCrc, toCrc, toCrc, toDecString, toDelimitedString, toDelimitedString, toDelimitedString, toDelimitedString, toHex, toHex, toHexDump, toHexEscape, toHexEscape, toHexEscape, toHexEscape, toHexString, toMemorySizeString, toMemorySizeString, toQuotedCharEscape, toQuotedStringEscape, toSqlString, toString, toString, toStringEscape, toUnicodeEscape, trace, trace, trace, trace, trace, trace, trace, trace, trace, truncateString, truncateString, wait
-
Constructor Details
-
Complex
Construct a Complex object for a data collection or user type.- Parameters:
complexCurrent
- the current Complex object or nullfEncodePosition
- true to encode the position information
-
Complex
public 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 nullfEncodePosition
- true to encode the position informationnUniformTypeId
- the type identifier of the uniform type
-
-
Method Details
-
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
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
-