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[]ENCODINGstatic java.lang.StringENCODING_INT16static java.lang.StringENCODING_INT32static java.lang.StringENCODING_INT48static java.lang.StringENCODING_INT64static java.lang.StringENCODING_INT8static java.lang.StringENCODING_PINTERVALstatic java.lang.StringENCODING_PUINT30static java.lang.StringENCODING_PUINT61static java.lang.StringENCODING_SIGNEDstatic java.lang.StringENCODING_UNSIGNEDstatic shortINT16_NULLstatic intINT32_NULLstatic longINT48_NULLstatic longINT64_NULLstatic byteINT8_NULLjava.lang.Longmaxstatic long[]MAXSjava.lang.Longminstatic long[]MINSstatic long[]NULLSstatic intPACKED_INTERVALstatic intPACKED_UNSIGNED_INTstatic intPACKED_UNSIGNED_LONGstatic intPINTERVAL_NULLstatic intPUINT30_NULLstatic longPUINT61_NULLstatic 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 voidassertValidImpl(java.lang.Object obj)Checks a non-null Boxed value against constraints, if any.booleancheck(java.lang.Number min, java.lang.Number max)java.lang.StringgetBaseName()intgetCode()static IntegerDataTypegetDefaultInstance()static java.lang.StringgetEncoding(int size)intgetIndex()static intgetIndex(int size)java.lang.NumbergetMax()java.lang.NumbergetMaxNotNull()java.lang.NumbergetMin()java.lang.NumbergetMinNotNull()intgetNativeTypeSize()longgetNullValue()java.lang.Number[]getRange()intgetSize()DataType.ConversionTypeisConvertible(DataType to)voidparseEncoding(java.lang.String encoding)protected voidreadFields(java.io.DataInputStream in, ClassDescriptor.TypeResolver resolver)static java.lang.StringstaticFormat(long value)Standard formatter.static longstaticParse(java.lang.CharSequence text)Convert non-null CharSequence to nativeprotected java.lang.ObjecttoBoxedImpl(java.lang.CharSequence text)Parse non-null text and return an object without checking constraints.protected java.lang.StringtoStringImpl(java.lang.Object obj)Converts a non-null, constraint-compliant Boxed value to String.voidwriteTo(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:
getBaseNamein classDataType
-
parseEncoding
public void parseEncoding(java.lang.String encoding)
- Overrides:
parseEncodingin 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:DataTypeChecks 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:
assertValidImplin 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:DataTypeParse non-null text and return an object without checking constraints.- Specified by:
toBoxedImplin classDataType
-
toStringImpl
protected java.lang.String toStringImpl(java.lang.Object obj)
Description copied from class:DataTypeConverts a non-null, constraint-compliant Boxed value to String.- Specified by:
toStringImplin 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:
isConvertiblein 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:
readFieldsin classDataType- Throws:
java.io.IOException
-
-