Package io.tiledb.java.api
Enum Datatype
- java.lang.Object
-
- java.lang.Enum<Datatype>
-
- io.tiledb.java.api.Datatype
-
-
Enum Constant Summary
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected static Datatype
fromSwigEnum(tiledb_datatype_t e)
int
getNativeSize()
boolean
isDateType()
boolean
isIntegerType()
boolean
isRealType()
boolean
isStringType()
java.lang.Class
javaClass()
Returns the equivalent java class for a given TileDB Typeprotected tiledb_datatype_t
toSwigEnum()
static Datatype
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static Datatype[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
TILEDB_INT32
public static final Datatype TILEDB_INT32
-
TILEDB_INT64
public static final Datatype TILEDB_INT64
-
TILEDB_FLOAT32
public static final Datatype TILEDB_FLOAT32
-
TILEDB_FLOAT64
public static final Datatype TILEDB_FLOAT64
-
TILEDB_CHAR
public static final Datatype TILEDB_CHAR
-
TILEDB_INT8
public static final Datatype TILEDB_INT8
-
TILEDB_UINT8
public static final Datatype TILEDB_UINT8
-
TILEDB_INT16
public static final Datatype TILEDB_INT16
-
TILEDB_UINT16
public static final Datatype TILEDB_UINT16
-
TILEDB_UINT32
public static final Datatype TILEDB_UINT32
-
TILEDB_UINT64
public static final Datatype TILEDB_UINT64
-
TILEDB_STRING_ASCII
public static final Datatype TILEDB_STRING_ASCII
-
TILEDB_STRING_UTF8
public static final Datatype TILEDB_STRING_UTF8
-
TILEDB_STRING_UTF16
public static final Datatype TILEDB_STRING_UTF16
-
TILEDB_STRING_UTF32
public static final Datatype TILEDB_STRING_UTF32
-
TILEDB_STRING_UCS2
public static final Datatype TILEDB_STRING_UCS2
-
TILEDB_STRING_UCS4
public static final Datatype TILEDB_STRING_UCS4
-
TILEDB_ANY
public static final Datatype TILEDB_ANY
-
TILEDB_DATETIME_YEAR
public static final Datatype TILEDB_DATETIME_YEAR
-
TILEDB_DATETIME_MONTH
public static final Datatype TILEDB_DATETIME_MONTH
-
TILEDB_DATETIME_WEEK
public static final Datatype TILEDB_DATETIME_WEEK
-
TILEDB_DATETIME_DAY
public static final Datatype TILEDB_DATETIME_DAY
-
TILEDB_DATETIME_HR
public static final Datatype TILEDB_DATETIME_HR
-
TILEDB_DATETIME_MIN
public static final Datatype TILEDB_DATETIME_MIN
-
TILEDB_DATETIME_SEC
public static final Datatype TILEDB_DATETIME_SEC
-
TILEDB_DATETIME_MS
public static final Datatype TILEDB_DATETIME_MS
-
TILEDB_DATETIME_US
public static final Datatype TILEDB_DATETIME_US
-
TILEDB_DATETIME_NS
public static final Datatype TILEDB_DATETIME_NS
-
TILEDB_DATETIME_PS
public static final Datatype TILEDB_DATETIME_PS
-
TILEDB_DATETIME_FS
public static final Datatype TILEDB_DATETIME_FS
-
TILEDB_DATETIME_AS
public static final Datatype TILEDB_DATETIME_AS
-
-
Method Detail
-
values
public static Datatype[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (Datatype c : Datatype.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Datatype valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
getNativeSize
public int getNativeSize() throws TileDBError
- Returns:
- Returns the TileDB Datatype size in Bytes *
- Throws:
TileDBError
-
isStringType
public boolean isStringType()
- Returns:
- True if the TileDB Datatype is a scalar, false otherwise (ex. String) *
-
isIntegerType
public boolean isIntegerType()
- Returns:
- True if the TileDB Datatype is an integer, false otherwise *
-
isDateType
public boolean isDateType()
- Returns:
- True if the TileDB Datatype is an datetype, false otherwise *
-
isRealType
public boolean isRealType()
- Returns:
- True if the TileDB Datatype is a float or double, false otherwise *
-
javaClass
public java.lang.Class javaClass() throws TileDBError
Returns the equivalent java class for a given TileDB Type- Returns:
- class
- Throws:
TileDBError
-
toSwigEnum
protected tiledb_datatype_t toSwigEnum() throws TileDBError
- Throws:
TileDBError
-
fromSwigEnum
protected static Datatype fromSwigEnum(tiledb_datatype_t e) throws TileDBError
- Throws:
TileDBError
-
-