Package com.tangosol.io.pof
Class ValidatingPofHandler.ComplexMap
java.lang.Object
com.tangosol.util.Base
com.tangosol.io.pof.ValidatingPofHandler.Complex
com.tangosol.io.pof.ValidatingPofHandler.ComplexMap
- Enclosing class:
ValidatingPofHandler
A ComplexMap object represents a map data structure (potentially 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
-
Field Summary
-
Constructor Summary
ConstructorDescriptionComplexMap
(ValidatingPofHandler.Complex complexCurrent, int cElements) Construct a Complex object for a uniform-keys map.ComplexMap
(ValidatingPofHandler.Complex complexCurrent, int cElements, int nUniformKeyTypeId) Construct a Complex object for a uniform-keys map.ComplexMap
(ValidatingPofHandler.Complex complexCurrent, int cElements, int nUniformKeyTypeId, int nUniformValTypeId) Construct a Complex object for a uniform map. -
Method Summary
Modifier and TypeMethodDescriptionvoid
checkPosition
(int iPos) Notify the Complex object that a value has been encountered.int
For complex values with contiguous values, obtain the next position.int
If the object encoding is using uniform encoding, obtain the type id of the uniform type.boolean
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
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
-
ComplexMap
Construct a Complex object for a uniform-keys map.- Parameters:
complexCurrent
- the current Complex object or nullcElements
- the number of map entries
-
ComplexMap
public ComplexMap(ValidatingPofHandler.Complex complexCurrent, int cElements, int nUniformKeyTypeId) Construct a Complex object for a uniform-keys map.- Parameters:
complexCurrent
- the current Complex object or nullcElements
- the number of map entriesnUniformKeyTypeId
- the type identifier of the uniform type for keys in the map
-
ComplexMap
public 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 nullcElements
- the number of map entriesnUniformKeyTypeId
- 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 Details
-
checkPosition
public void checkPosition(int iPos) Notify the Complex object that a value has been encountered.- Overrides:
checkPosition
in classValidatingPofHandler.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 classValidatingPofHandler.Complex
- Returns:
- the next position
-
isUniform
public boolean isUniform()Determine if the object encoding within the Complex type is uniform.- Overrides:
isUniform
in classValidatingPofHandler.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 classValidatingPofHandler.Complex
- Returns:
- the type id used for the uniform encoding
-