public abstract class TypeCodec extends Object implements Serializable
Modifier and Type | Field and Description |
---|---|
static TypeCodec |
ASCII |
static TypeCodec |
BIT_VECTOR |
static TypeCodec |
BYTE_VECTOR |
static TypeCodec |
DATE_INTEGER |
static TypeCodec |
DATE_STRING |
static TypeCodec |
EPOCH_TIMESTAMP |
static TypeCodec |
INTEGER |
static TypeCodec |
NULLABLE_ASCII |
static TypeCodec |
NULLABLE_BYTE_VECTOR_TYPE |
static TypeCodec |
NULLABLE_INTEGER |
static TypeCodec |
NULLABLE_SF_SCALED_NUMBER |
static TypeCodec |
NULLABLE_STRING_DELTA |
static TypeCodec |
NULLABLE_UNICODE |
static TypeCodec |
NULLABLE_UNSIGNED_INTEGER |
static TypeCodec |
SF_SCALED_NUMBER |
protected static byte |
STOP_BIT |
static TypeCodec |
STRING_DELTA |
static TypeCodec |
TIME_IN_MS |
static TypeCodec |
TIME_INTEGER |
static TypeCodec |
TIME_STRING |
static TypeCodec |
TIMESTAMP_INTEGER |
static TypeCodec |
TIMESTAMP_STRING |
static TypeCodec |
UINT |
static TypeCodec |
UNICODE |
Constructor and Description |
---|
TypeCodec() |
Modifier and Type | Method and Description |
---|---|
abstract ScalarValue |
decode(InputStream in) |
byte[] |
encode(ScalarValue value)
Template Method to encode the passed object, the actual encoding is done
in the encodeValue() method overridden in sub-classes.
|
abstract byte[] |
encodeValue(ScalarValue value) |
boolean |
isNullable() |
protected static final byte STOP_BIT
public static final TypeCodec UINT
public static final TypeCodec INTEGER
public static final TypeCodec ASCII
public static final TypeCodec UNICODE
public static final TypeCodec BIT_VECTOR
public static final TypeCodec BYTE_VECTOR
public static final TypeCodec SF_SCALED_NUMBER
public static final TypeCodec STRING_DELTA
public static final TypeCodec NULLABLE_UNSIGNED_INTEGER
public static final TypeCodec NULLABLE_INTEGER
public static final TypeCodec NULLABLE_ASCII
public static final TypeCodec NULLABLE_UNICODE
public static final TypeCodec NULLABLE_BYTE_VECTOR_TYPE
public static final TypeCodec NULLABLE_SF_SCALED_NUMBER
public static final TypeCodec NULLABLE_STRING_DELTA
public static final TypeCodec DATE_STRING
public static final TypeCodec DATE_INTEGER
public static final TypeCodec TIMESTAMP_STRING
public static final TypeCodec TIMESTAMP_INTEGER
public static final TypeCodec EPOCH_TIMESTAMP
public static final TypeCodec TIME_STRING
public static final TypeCodec TIME_INTEGER
public static final TypeCodec TIME_IN_MS
public abstract byte[] encodeValue(ScalarValue value)
public abstract ScalarValue decode(InputStream in)
public byte[] encode(ScalarValue value)
Note: The final SBIT is set in this method, not in encodeValue().
value
- The ScalarValue object to be encodedpublic boolean isNullable()
Copyright © 2006-2013 The LaSalle Technology Group, LLC. All Rights Reserved.