Package deltix.qsrv.hf.pub.md
Class IntegerDataType
- java.lang.Object
-
- deltix.qsrv.hf.pub.md.DataType
-
- deltix.qsrv.hf.pub.md.IntegerDataType
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Cloneable
public final class IntegerDataType extends DataType
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class deltix.qsrv.hf.pub.md.DataType
DataType.ConversionType
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String[]
ENCODING
static java.lang.String
ENCODING_INT16
static java.lang.String
ENCODING_INT32
static java.lang.String
ENCODING_INT48
static java.lang.String
ENCODING_INT64
static java.lang.String
ENCODING_INT8
static java.lang.String
ENCODING_PINTERVAL
static java.lang.String
ENCODING_PUINT30
static java.lang.String
ENCODING_PUINT61
static java.lang.String
ENCODING_SIGNED
static java.lang.String
ENCODING_UNSIGNED
static short
INT16_NULL
static int
INT32_NULL
static long
INT48_NULL
static long
INT64_NULL
static byte
INT8_NULL
java.lang.Long
max
static long[]
MAXS
java.lang.Long
min
static long[]
MINS
static long[]
NULLS
static int
PACKED_INTERVAL
static int
PACKED_UNSIGNED_INT
static int
PACKED_UNSIGNED_LONG
static int
PINTERVAL_NULL
static int
PUINT30_NULL
static long
PUINT61_NULL
static int[]
SIZE
-
Fields inherited from class deltix.qsrv.hf.pub.md.DataType
encoding, T_ARRAY_TYPE, T_BINARY_TYPE, T_BOOLEAN_TYPE, T_CHAR_TYPE, T_DATE_TIME_TYPE, T_DOUBLE_TYPE, T_ENUM_TYPE, T_FLOAT_TYPE, T_INTEGER_TYPE, T_OBJECT_TYPE, T_STRING_TYPE, T_TIME_OF_DAY_TYPE
-
-
Constructor Summary
Constructors Constructor Description IntegerDataType(java.lang.String encoding, boolean nullable)
IntegerDataType(java.lang.String encoding, boolean nullable, java.lang.Number min, java.lang.Number max)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
assertValidImpl(java.lang.Object obj)
Checks a non-null Boxed value against constraints, if any.boolean
check(java.lang.Number min, java.lang.Number max)
java.lang.String
getBaseName()
int
getCode()
static IntegerDataType
getDefaultInstance()
static java.lang.String
getEncoding(int size)
int
getIndex()
static int
getIndex(int size)
java.lang.Number
getMax()
java.lang.Number
getMaxNotNull()
java.lang.Number
getMin()
java.lang.Number
getMinNotNull()
int
getNativeTypeSize()
long
getNullValue()
java.lang.Number[]
getRange()
int
getSize()
DataType.ConversionType
isConvertible(DataType to)
void
parseEncoding(java.lang.String encoding)
protected void
readFields(java.io.DataInputStream in, ClassDescriptor.TypeResolver resolver)
static java.lang.String
staticFormat(long value)
Standard formatter.static long
staticParse(java.lang.CharSequence text)
Convert non-null CharSequence to nativeprotected java.lang.Object
toBoxedImpl(java.lang.CharSequence text)
Parse non-null text and return an object without checking constraints.protected java.lang.String
toStringImpl(java.lang.Object obj)
Converts a non-null, constraint-compliant Boxed value to String.void
writeTo(java.io.DataOutputStream out)
-
Methods inherited from class deltix.qsrv.hf.pub.md.DataType
assertValid, clone, getEncoding, isNullable, isPrimitive, nullableInstance, outOfRange, parse, parseBoolean, parseByte, parseDate, parseDouble, parseFloat, parseInt, parseLong, parseShort, readFrom, setNullable, toString, unsupportedType
-
-
-
-
Field Detail
-
PACKED_UNSIGNED_INT
public static final int PACKED_UNSIGNED_INT
- See Also:
- Constant Field Values
-
PACKED_UNSIGNED_LONG
public static final int PACKED_UNSIGNED_LONG
- See Also:
- Constant Field Values
-
PACKED_INTERVAL
public static final int PACKED_INTERVAL
- See Also:
- Constant Field Values
-
ENCODING_INT8
public static final java.lang.String ENCODING_INT8
- See Also:
- Constant Field Values
-
ENCODING_INT16
public static final java.lang.String ENCODING_INT16
- See Also:
- Constant Field Values
-
ENCODING_INT32
public static final java.lang.String ENCODING_INT32
- See Also:
- Constant Field Values
-
ENCODING_INT48
public static final java.lang.String ENCODING_INT48
- See Also:
- Constant Field Values
-
ENCODING_INT64
public static final java.lang.String ENCODING_INT64
- See Also:
- Constant Field Values
-
ENCODING_PUINT30
public static final java.lang.String ENCODING_PUINT30
- See Also:
- Constant Field Values
-
ENCODING_PUINT61
public static final java.lang.String ENCODING_PUINT61
- See Also:
- Constant Field Values
-
ENCODING_PINTERVAL
public static final java.lang.String ENCODING_PINTERVAL
- See Also:
- Constant Field Values
-
ENCODING_SIGNED
public static final java.lang.String ENCODING_SIGNED
- See Also:
- Constant Field Values
-
ENCODING_UNSIGNED
public static final java.lang.String ENCODING_UNSIGNED
- See Also:
- Constant Field Values
-
INT8_NULL
public static final byte INT8_NULL
- See Also:
- Constant Field Values
-
INT16_NULL
public static final short INT16_NULL
- See Also:
- Constant Field Values
-
INT32_NULL
public static final int INT32_NULL
- See Also:
- Constant Field Values
-
INT48_NULL
public static final long INT48_NULL
- See Also:
- Constant Field Values
-
INT64_NULL
public static final long INT64_NULL
- See Also:
- Constant Field Values
-
PUINT30_NULL
public static final int PUINT30_NULL
- See Also:
- Constant Field Values
-
PUINT61_NULL
public static final long PUINT61_NULL
- See Also:
- Constant Field Values
-
PINTERVAL_NULL
public static final int PINTERVAL_NULL
- See Also:
- Constant Field Values
-
ENCODING
public static final java.lang.String[] ENCODING
-
SIZE
public static final int[] SIZE
-
min
public java.lang.Long min
-
max
public java.lang.Long max
-
MINS
public static final long[] MINS
-
MAXS
public static final long[] MAXS
-
NULLS
public static final long[] NULLS
-
-
Method Detail
-
getDefaultInstance
public static IntegerDataType getDefaultInstance()
-
getBaseName
public java.lang.String getBaseName()
- Specified by:
getBaseName
in classDataType
-
parseEncoding
public void parseEncoding(java.lang.String encoding)
- Overrides:
parseEncoding
in classDataType
-
getMin
public java.lang.Number getMin()
-
getMax
public java.lang.Number getMax()
-
getMinNotNull
public java.lang.Number getMinNotNull()
-
getMaxNotNull
public java.lang.Number getMaxNotNull()
-
getRange
public java.lang.Number[] getRange()
-
check
public boolean check(java.lang.Number min, java.lang.Number max)
-
getSize
public int getSize()
-
getNativeTypeSize
public int getNativeTypeSize()
-
getNullValue
public long getNullValue()
-
assertValidImpl
protected void assertValidImpl(java.lang.Object obj)
Description copied from class:DataType
Checks a non-null Boxed value against constraints, if any. If the object is of unsupported type, this method should throwDataType.unsupportedType(java.lang.Object)
.- Specified by:
assertValidImpl
in classDataType
- Parameters:
obj
- A Boxed representation of a value.
-
staticParse
public static long staticParse(java.lang.CharSequence text)
Convert non-null CharSequence to native
-
staticFormat
public static java.lang.String staticFormat(long value)
Standard formatter.
-
toBoxedImpl
protected java.lang.Object toBoxedImpl(java.lang.CharSequence text)
Description copied from class:DataType
Parse non-null text and return an object without checking constraints.- Specified by:
toBoxedImpl
in classDataType
-
toStringImpl
protected java.lang.String toStringImpl(java.lang.Object obj)
Description copied from class:DataType
Converts a non-null, constraint-compliant Boxed value to String.- Specified by:
toStringImpl
in classDataType
- Parameters:
obj
- A non-null, valid value.- Returns:
- A String representation.
-
getEncoding
public static java.lang.String getEncoding(int size)
-
getIndex
public int getIndex()
-
getIndex
public static int getIndex(int size)
-
isConvertible
public DataType.ConversionType isConvertible(DataType to)
- Specified by:
isConvertible
in classDataType
-
writeTo
public void writeTo(java.io.DataOutputStream out) throws java.io.IOException
-
readFields
protected void readFields(java.io.DataInputStream in, ClassDescriptor.TypeResolver resolver) throws java.io.IOException
- Overrides:
readFields
in classDataType
- Throws:
java.io.IOException
-
-