Class LongBinaryDtoFieldCodec
java.lang.Object
io.datarouter.bytes.binarydto.fieldcodec.BinaryDtoBaseFieldCodec<Long>
io.datarouter.bytes.binarydto.fieldcodec.primitive.LongBinaryDtoFieldCodec
public class LongBinaryDtoFieldCodec extends BinaryDtoBaseFieldCodec<Long>
-
Constructor Summary
Constructors Constructor Description LongBinaryDtoFieldCodec() -
Method Summary
Modifier and Type Method Description intcompareAsIfEncoded(Long left, Long right)Override this with optimized implementations that avoid encoding.Longdecode(byte[] bytes, int offset)LengthAndValue<Long>decodeWithLength(byte[] bytes, int offset)byte[]encode(Long value)intfixedLength()booleanisFixedLength()Methods inherited from class io.datarouter.bytes.binarydto.fieldcodec.BinaryDtoBaseFieldCodec
decodeLength
-
Constructor Details
-
LongBinaryDtoFieldCodec
public LongBinaryDtoFieldCodec()
-
-
Method Details
-
isFixedLength
public boolean isFixedLength()- Overrides:
isFixedLengthin classBinaryDtoBaseFieldCodec<Long>
-
fixedLength
public int fixedLength()- Overrides:
fixedLengthin classBinaryDtoBaseFieldCodec<Long>
-
encode
- Specified by:
encodein classBinaryDtoBaseFieldCodec<Long>
-
decode
- Overrides:
decodein classBinaryDtoBaseFieldCodec<Long>
-
decodeWithLength
- Specified by:
decodeWithLengthin classBinaryDtoBaseFieldCodec<Long>
-
compareAsIfEncoded
Description copied from class:BinaryDtoBaseFieldCodecOverride this with optimized implementations that avoid encoding.- Overrides:
compareAsIfEncodedin classBinaryDtoBaseFieldCodec<Long>
-