Package com.tangosol.io.pof
Class WritingPofHandler.ComplexMap
- java.lang.Object
-
- com.tangosol.util.Base
-
- com.tangosol.io.pof.WritingPofHandler.Complex
-
- com.tangosol.io.pof.WritingPofHandler.ComplexMap
-
- Enclosing class:
- WritingPofHandler
public static class WritingPofHandler.ComplexMap extends WritingPofHandler.Complex
A ComplexMap object represents a map data structure (with uniform keys or with uniform keys and values) in the POF stream.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.tangosol.util.Base
Base.LoggingWriter
-
-
Constructor Summary
Constructors Constructor Description ComplexMap(WritingPofHandler.Complex complexCurrent, int nUniformKeyTypeId)
Construct a ComplexMap object for maps with uniformly-typed keys.ComplexMap(WritingPofHandler.Complex complexCurrent, int nUniformKeyTypeId, int nUniformValTypeId)
Construct a ComplexMap object for maps with uniformly-typed keys and values.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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.void
onValue(int iPos)
Notify the Complex object that a value has been encountered.-
Methods inherited from class com.tangosol.io.pof.WritingPofHandler.Complex
isSparse, pop
-
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 Detail
-
ComplexMap
public ComplexMap(WritingPofHandler.Complex complexCurrent, int nUniformKeyTypeId)
Construct a ComplexMap object for maps with uniformly-typed keys.- Parameters:
complexCurrent
- the current Complex object or nullnUniformKeyTypeId
- the type identifier of the uniform type
-
ComplexMap
public ComplexMap(WritingPofHandler.Complex complexCurrent, int nUniformKeyTypeId, int nUniformValTypeId)
Construct a ComplexMap object for maps with uniformly-typed keys and values.- Parameters:
complexCurrent
- the current Complex object or nullnUniformKeyTypeId
- the type identifier of the uniform type for keys in the mapnUniformValTypeId
- the type identifier of the uniform type for values in the map
-
-
Method Detail
-
onValue
public void onValue(int iPos)
Notify the Complex object that a value has been encountered.- Overrides:
onValue
in classWritingPofHandler.Complex
- Parameters:
iPos
- the position that accomponied the value
-
isUniform
public boolean isUniform()
Determine if the object encoding within the Complex type is uniform.- Overrides:
isUniform
in classWritingPofHandler.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 classWritingPofHandler.Complex
- Returns:
- the type id used for the uniform encoding
-
-