Class ObjectCodecAdapter<TYPE>
java.lang.Object
io.deephaven.enterprise.compatibility.ObjectCodecAdapter<TYPE>
- Type Parameters:
TYPE
- - The type of the object codec to be translated
- All Implemented Interfaces:
ObjectCodec<TYPE>
,ObjectDecoder<TYPE>
- Direct Known Subclasses:
DbArrayToByteVectorDecoder
,DbArrayToCharVectorDecoder
,DbArrayToDoubleVectorDecoder
,DbArrayToFloatVectorDecoder
,DbArrayToIntVectorDecoder
,DbArrayToLongVectorDecoder
,DbArrayToObjectVectorDecoder
,DbArrayToShortVectorDecoder
This class adapts the DHE
ObjectCodec
to the DHC
ObjectCodec
. They are functionally identical, so this class simply instantiates the desired enterprise one,
and then delegates to it. If the "wrappedClass" is left unspecified this class will assume the original class was
Serializable
and attempt to decode using a ShadowingSerializableDecoder
-
Field Summary
FieldsFields inherited from interface io.deephaven.util.codec.ObjectDecoder
VARIABLE_WIDTH_SENTINEL
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.deephaven.util.codec.ObjectDecoder
checkWidth, decode
-
Field Details
-
delegate
-
-
Constructor Details
-
ObjectCodecAdapter
-
-
Method Details
-
encode
- Specified by:
encode
in interfaceObjectCodec<TYPE>
-
isNullable
public boolean isNullable()- Specified by:
isNullable
in interfaceObjectCodec<TYPE>
-
getPrecision
public int getPrecision()- Specified by:
getPrecision
in interfaceObjectCodec<TYPE>
-
getScale
public int getScale()- Specified by:
getScale
in interfaceObjectCodec<TYPE>
-
decode
@Nullable public TYPE decode(@NotNull @org.jetbrains.annotations.NotNull byte[] input, int offset, int length) - Specified by:
decode
in interfaceObjectDecoder<TYPE>
-
expectedObjectWidth
public int expectedObjectWidth()- Specified by:
expectedObjectWidth
in interfaceObjectDecoder<TYPE>
-