Class IntArrayBinaryDtoFieldCodec
java.lang.Object
io.datarouter.bytes.binarydto.fieldcodec.BinaryDtoBaseFieldCodec<int[]>
io.datarouter.bytes.binarydto.fieldcodec.array.IntArrayBinaryDtoFieldCodec
public class IntArrayBinaryDtoFieldCodec extends BinaryDtoBaseFieldCodec<int[]>
-
Constructor Summary
Constructors Constructor Description IntArrayBinaryDtoFieldCodec() -
Method Summary
Modifier and Type Method Description intcompareAsIfEncoded(int[] left, int[] right)Override this with optimized implementations that avoid encoding.int[]decode(byte[] bytes, int offset, int length)byte[]encode(int[] 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
-
IntArrayBinaryDtoFieldCodec
public IntArrayBinaryDtoFieldCodec()
-
-
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<int[]>
-
encode
public byte[] encode(int[] value)- Specified by:
encodein classBinaryDtoBaseFieldCodec<int[]>
-
decode
public int[] decode(byte[] bytes, int offset, int length)- Specified by:
decodein classBinaryDtoBaseFieldCodec<int[]>
-
compareAsIfEncoded
public int compareAsIfEncoded(int[] left, int[] right)Description copied from class:BinaryDtoBaseFieldCodecOverride this with optimized implementations that avoid encoding.- Overrides:
compareAsIfEncodedin classBinaryDtoBaseFieldCodec<int[]>
-