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 SummaryFieldsFields inherited from interface io.deephaven.util.codec.ObjectDecoderVARIABLE_WIDTH_SENTINEL
- 
Constructor SummaryConstructors
- 
Method SummaryMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.deephaven.util.codec.ObjectDecodercheckWidth, decode
- 
Field Details- 
delegate
 
- 
- 
Constructor Details- 
ObjectCodecAdapter
 
- 
- 
Method Details- 
encode- Specified by:
- encodein interface- ObjectCodec<TYPE>
 
- 
isNullablepublic boolean isNullable()- Specified by:
- isNullablein interface- ObjectCodec<TYPE>
 
- 
getPrecisionpublic int getPrecision()- Specified by:
- getPrecisionin interface- ObjectCodec<TYPE>
 
- 
getScalepublic int getScale()- Specified by:
- getScalein interface- ObjectCodec<TYPE>
 
- 
decode@Nullable public TYPE decode(@NotNull @org.jetbrains.annotations.NotNull byte[] input, int offset, int length) - Specified by:
- decodein interface- ObjectDecoder<TYPE>
 
- 
expectedObjectWidthpublic int expectedObjectWidth()- Specified by:
- expectedObjectWidthin interface- ObjectDecoder<TYPE>
 
 
-