LongConverter¶
-
public class
LongConverterimplements Converter<ByteBuffer>¶ A converter with wire type
ByteBufferthat is capable of handling integers that fit into 64 bits by using the JavaLongtype.- Author
jmoringe, jwienke
Fields¶
INT64_SIGNATURE¶
-
public static final ConverterSignature
INT64_SIGNATURE¶ Signature for using the converter with unsigned integers.
UINT64_SIGNATURE¶
-
public static final ConverterSignature
UINT64_SIGNATURE¶ Signature for using the converter with signed integers. This may result in overflows.
Constructors¶
LongConverter¶
-
public
LongConverter(ConverterSignature signature)¶ Constructor allowing different signatures.
- Parameters
signature – the signature to use
Methods¶
deserialize¶
-
public UserData<ByteBuffer>
deserialize(String wireSchema, ByteBuffer bytes)¶
getSignature¶
-
public ConverterSignature
getSignature()¶
serialize¶
-
public WireContents<ByteBuffer>
serialize(Class<?> typeInfo, Object data)¶