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, waitMethods inherited from interface io.deephaven.util.codec.ObjectDecoder
checkWidth, decode
-
Field Details
-
delegate
-
-
Constructor Details
-
ObjectCodecAdapter
-
-
Method Details
-
encode
- Specified by:
encodein interfaceObjectCodec<TYPE>
-
isNullable
public boolean isNullable()- Specified by:
isNullablein interfaceObjectCodec<TYPE>
-
getPrecision
public int getPrecision()- Specified by:
getPrecisionin interfaceObjectCodec<TYPE>
-
getScale
public int getScale()- Specified by:
getScalein interfaceObjectCodec<TYPE>
-
decode
@Nullable public TYPE decode(@NotNull @org.jetbrains.annotations.NotNull byte[] input, int offset, int length) - Specified by:
decodein interfaceObjectDecoder<TYPE>
-
expectedObjectWidth
public int expectedObjectWidth()- Specified by:
expectedObjectWidthin interfaceObjectDecoder<TYPE>
-