Package smile.data.type
Class DataTypes
java.lang.Object
smile.data.type.DataTypes
To get a specific data type, users should use singleton objects
and factory methods in this class.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ArrayType
Boolean Array data type.static final BooleanType
Boolean data type.static final ArrayType
Byte Array data type.static final ByteType
Byte data type.static final ArrayType
Char Array data type.static final CharType
Char data type.static final DateTimeType
DateTime data type with ISO format.static final DateType
Date data type with ISO format.static final DecimalType
Decimal data type.static final ArrayType
Double Array data type.static final DoubleType
Double data type.static final ArrayType
Float Array data type.static final FloatType
Float data type.static final ArrayType
Integer Array data type.static final IntType
Integer data type.static final ArrayType
Long Array data type.static final LongType
Long data type.static final BooleanType
Nullable boolean data type.static final ByteType
Nullable byte data type.static final CharType
Nullable char data type.static final DoubleType
Nullable double data type.static final FloatType
Nullable float data type.static final IntType
Nullable integer data type.static final LongType
Nullable long data type.static final ShortType
Nullable short data type.static final ObjectType
Plain Object data type.static final ArrayType
Short Array data type.static final ShortType
Short data type.static final StringType
String data type.static final TimeType
Time data type with ISO format. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
BooleanType
Boolean data type. -
CharType
Char data type. -
ByteType
Byte data type. -
ShortType
Short data type. -
IntType
Integer data type. -
LongType
Long data type. -
FloatType
Float data type. -
DoubleType
Double data type. -
NullableBooleanType
Nullable boolean data type. -
NullableCharType
Nullable char data type. -
NullableByteType
Nullable byte data type. -
NullableShortType
Nullable short data type. -
NullableIntType
Nullable integer data type. -
NullableLongType
Nullable long data type. -
NullableFloatType
Nullable float data type. -
NullableDoubleType
Nullable double data type. -
DecimalType
Decimal data type. -
StringType
String data type. -
DateType
Date data type with ISO format. -
DateTimeType
DateTime data type with ISO format. -
TimeType
Time data type with ISO format. -
ObjectType
Plain Object data type. -
BooleanArrayType
Boolean Array data type. -
CharArrayType
Char Array data type. -
ByteArrayType
Byte Array data type. -
ShortArrayType
Short Array data type. -
IntArrayType
Integer Array data type. -
LongArrayType
Long Array data type. -
FloatArrayType
Float Array data type. -
DoubleArrayType
Double Array data type.
-
-
Constructor Details
-
DataTypes
public DataTypes()
-
-
Method Details
-
object
Returns an object data type of given class.- Parameters:
clazz
- the object class.- Returns:
- the object data type.
-
category
Returns a data type of categorical variable.- Parameters:
levels
- the number of categorical measurement levels.- Returns:
- the categorical data type.
-
array
Returns an array data type.- Parameters:
type
- the data type of array elements.- Returns:
- the array data type.
-