Class LongArrayBinaryDtoFieldCodec
java.lang.Object
io.datarouter.bytes.binarydto.fieldcodec.BinaryDtoBaseFieldCodec<long[]>
io.datarouter.bytes.binarydto.fieldcodec.array.LongArrayBinaryDtoFieldCodec
public class LongArrayBinaryDtoFieldCodec extends BinaryDtoBaseFieldCodec<long[]>
-
Constructor Summary
Constructors Constructor Description LongArrayBinaryDtoFieldCodec() -
Method Summary
Modifier and Type Method Description intcompareAsIfEncoded(long[] left, long[] right)Override this with optimized implementations that avoid encoding.long[]decode(byte[] bytes, int offset, int length)byte[]encode(long[] value)booleansupportsComparableCodec()Override with true if the codec is suitable for comparable encoding.Methods inherited from class io.datarouter.bytes.binarydto.fieldcodec.BinaryDtoBaseFieldCodec
decode, fixedLength, isFixedLength, isVariableLength
-
Constructor Details
-
LongArrayBinaryDtoFieldCodec
public LongArrayBinaryDtoFieldCodec()
-
-
Method Details
-
supportsComparableCodec
public boolean supportsComparableCodec()Description copied from class:BinaryDtoBaseFieldCodecOverride with true if the codec is suitable for comparable encoding.- Specified by:
supportsComparableCodecin classBinaryDtoBaseFieldCodec<long[]>
-
encode
public byte[] encode(long[] value)- Specified by:
encodein classBinaryDtoBaseFieldCodec<long[]>
-
decode
public long[] decode(byte[] bytes, int offset, int length)- Specified by:
decodein classBinaryDtoBaseFieldCodec<long[]>
-
compareAsIfEncoded
public int compareAsIfEncoded(long[] left, long[] right)Description copied from class:BinaryDtoBaseFieldCodecOverride this with optimized implementations that avoid encoding.- Overrides:
compareAsIfEncodedin classBinaryDtoBaseFieldCodec<long[]>
-