Package io.permazen.encoding
Class Tuple2Encoding<V1,V2>
- All Implemented Interfaces:
Encoding<Tuple2<V1,
,V2>> NaturalSortAware
,Serializable
,Comparator<Tuple2<V1,
V2>>
Non-null
Encoding
for a Tuple2
created by concatenating the component Encoding
s.
Null values are not supported by this class and there is no default value.
- See Also:
-
Field Summary
Fields inherited from class io.permazen.encoding.AbstractEncoding
encodingId, typeToken
Fields inherited from interface io.permazen.encoding.Encoding
MAX_ARRAY_DIMENSIONS
-
Constructor Summary
ConstructorDescriptionTuple2Encoding
(Encoding<V1> value1Encoding, Encoding<V2> value2Encoding) Constructor. -
Method Summary
Methods inherited from class io.permazen.encoding.TupleEncoding
compare, fromString, getFixedWidth, getSize, hasPrefix0x00, hasPrefix0xff, read, skip, sortsNaturally, supportsNull, toString, write
Methods inherited from class io.permazen.encoding.AbstractEncoding
equals, getDefaultValue, getDefaultValueBytes, getEncodingId, getTypeToken, hashCode, toString
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.util.Comparator
reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
Methods inherited from interface io.permazen.encoding.Encoding
convert, decode, encode, getKeyRange, validate, validateAndWrite
-
Constructor Details
-
Tuple2Encoding
Constructor.- Parameters:
value1Encoding
- component value encodingvalue2Encoding
- component value encoding- Throws:
IllegalArgumentException
- if any component value encoding is null
-
-
Method Details
-
getEncoding1
-
getEncoding2
-
createTuple
- Specified by:
createTuple
in classTupleEncoding<Tuple2<V1,
V2>>
-