Class BinaryDtoBaseFieldCodec<T>
java.lang.Object
io.datarouter.bytes.binarydto.fieldcodec.BinaryDtoBaseFieldCodec<T>
- Direct Known Subclasses:
BinaryDtoConvertingFieldCodec,BinaryDtoField.BinaryDtoInvalidCodec,BooleanArrayBinaryDtoFieldCodec,BooleanBinaryDtoFieldCodec,ByteArrayBinaryDtoFieldCodec,ByteBinaryDtoFieldCodec,CharArrayBinaryDtoFieldCodec,CharBinaryDtoFieldCodec,DoubleArrayBinaryDtoFieldCodec,DoubleBinaryDtoFieldCodec,EnumBinaryDtoFieldCodec,FloatArrayBinaryDtoFieldCodec,FloatBinaryDtoFieldCodec,InstantBinaryDtoFieldCodec,IntArrayBinaryDtoFieldCodec,IntBinaryDtoFieldCodec,ListBinaryDtoFieldCodec,LongArrayBinaryDtoFieldCodec,LongBinaryDtoFieldCodec,NestedBinaryDtoFieldCodec,ObjectArrayBinaryDtoFieldCodec,PrefixedUtf8BinaryDtoFieldCodec,ShortArrayBinaryDtoFieldCodec,ShortBinaryDtoFieldCodec,TerminatedUtf8BinaryDtoFieldCodec,VarIntBinaryDtoFieldCodec
public abstract class BinaryDtoBaseFieldCodec<T> extends Object
-
Constructor Summary
Constructors Constructor Description BinaryDtoBaseFieldCodec() -
Method Summary
Modifier and Type Method Description intcompareAsIfEncoded(T left, T right)Override this with optimized implementations that avoid encoding.Tdecode(byte[] bytes, int offset)intdecodeLength(byte[] bytes, int offset)Override this with optimized implementations that avoid value decoding.abstract LengthAndValue<T>decodeWithLength(byte[] bytes, int offset)abstract byte[]encode(T value)intfixedLength()booleanisFixedLength()
-
Constructor Details
-
BinaryDtoBaseFieldCodec
public BinaryDtoBaseFieldCodec()
-
-
Method Details
-
isFixedLength
public boolean isFixedLength() -
fixedLength
public int fixedLength() -
encode
-
decode
-
decodeWithLength
-
decodeLength
public int decodeLength(byte[] bytes, int offset)Override this with optimized implementations that avoid value decoding. -
compareAsIfEncoded
Override this with optimized implementations that avoid encoding.
-