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.LengthAndValue<long[]>decodeWithLength(byte[] bytes, int offset)byte[]encode(long[] value)Methods inherited from class io.datarouter.bytes.binarydto.fieldcodec.BinaryDtoBaseFieldCodec
decode, decodeLength, fixedLength, isFixedLength
-
Constructor Details
-
LongArrayBinaryDtoFieldCodec
public LongArrayBinaryDtoFieldCodec()
-
-
Method Details
-
encode
public byte[] encode(long[] value)- Specified by:
encodein classBinaryDtoBaseFieldCodec<long[]>
-
decodeWithLength
- Specified by:
decodeWithLengthin 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[]>
-