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