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