public abstract class IntegerCodec extends TypeCodec
ASCII, BIT_VECTOR, BYTE_VECTOR, DATE_INTEGER, DATE_STRING, EPOCH_TIMESTAMP, INTEGER, NULLABLE_ASCII, NULLABLE_BYTE_VECTOR_TYPE, NULLABLE_INTEGER, NULLABLE_SF_SCALED_NUMBER, NULLABLE_STRING_DELTA, NULLABLE_UNICODE, NULLABLE_UNSIGNED_INTEGER, SF_SCALED_NUMBER, STOP_BIT, STRING_DELTA, TIME_IN_MS, TIME_INTEGER, TIME_STRING, TIMESTAMP_INTEGER, TIMESTAMP_STRING, UINT, UNICODE
Modifier | Constructor and Description |
---|---|
protected |
IntegerCodec() |
Modifier and Type | Method and Description |
---|---|
protected static ScalarValue |
createValue(long value)
Creates a new value, long or integer, depends on value passed to method
|
boolean |
equals(Object obj) |
static int |
getSignedIntegerSize(long value)
Find the signed integer size for the passed long value
|
static int |
getUnsignedIntegerSize(long value) |
decode, encode, encodeValue, isNullable
protected static ScalarValue createValue(long value)
value
- The passed value to be createdpublic static int getUnsignedIntegerSize(long value)
value
- The long to determine the unsigned integerpublic static int getSignedIntegerSize(long value)
value
- The long value to be used to get the signed integer sizeCopyright © 2006-2013 The LaSalle Technology Group, LLC. All Rights Reserved.