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