Package io.tiledb.java.api
Class Enumeration
- java.lang.Object
-
- io.tiledb.java.api.Enumeration
-
- All Implemented Interfaces:
java.lang.AutoCloseable
public class Enumeration extends java.lang.Object implements java.lang.AutoCloseable
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedEnumeration(Context ctx, SWIGTYPE_p_p_tiledb_enumeration_t enumerationpp)protectedEnumeration(Context ctx, java.lang.String name, long cellValNum, Datatype datatype, boolean ordered, NativeArray data, java.math.BigInteger dataSize, NativeArray offsets, java.math.BigInteger offsetsSize)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()Releases resourcesEnumerationextend(NativeArray data, java.math.BigInteger dataSize, NativeArray offsets, java.math.BigInteger offsetsSize)Extend an Enumeration.longgetCellValNum()Return the cell value number of the enumeration valuesjava.lang.ObjectgetData()Return an Object of the enumerations underlying value dataSWIGTYPE_p_tiledb_enumeration_tgetEnumerationp()Returns the enumeration object pointerjava.lang.StringgetName()Return the name of the enumeration valuesjava.lang.ObjectgetOffsets()Return an Object of the enumerations underlying value offsetsbooleangetOrdered()Return whether the enumeration values should be considered orderedDatatypegetType()Return the datatype of the enumeration values
-
-
-
Constructor Detail
-
Enumeration
protected Enumeration(Context ctx, SWIGTYPE_p_p_tiledb_enumeration_t enumerationpp)
-
Enumeration
protected Enumeration(Context ctx, java.lang.String name, long cellValNum, Datatype datatype, boolean ordered, NativeArray data, java.math.BigInteger dataSize, NativeArray offsets, java.math.BigInteger offsetsSize) throws TileDBError
- Throws:
TileDBError
-
-
Method Detail
-
getEnumerationp
public SWIGTYPE_p_tiledb_enumeration_t getEnumerationp()
Returns the enumeration object pointer- Returns:
- the enumeration object object pointer
-
getCellValNum
public long getCellValNum() throws TileDBErrorReturn the cell value number of the enumeration values- Returns:
- The cell value number of the enumeration values
- Throws:
TileDBError
-
getOrdered
public boolean getOrdered() throws TileDBErrorReturn whether the enumeration values should be considered ordered- Returns:
- Whether the enumeration values should be considered ordered
- Throws:
TileDBError
-
extend
public Enumeration extend(NativeArray data, java.math.BigInteger dataSize, NativeArray offsets, java.math.BigInteger offsetsSize)
Extend an Enumeration.- Parameters:
data- A pointer to the enumeration value data to add.dataSize- The length of the data buffer provided.offsets- A pointer to the offsets buffer if enumeration is var sized.offsetsSize- The length of the offsets buffer, zero if no offsets.
-
getType
public Datatype getType() throws TileDBError
Return the datatype of the enumeration values- Returns:
- The datatype of the enumeration values
- Throws:
TileDBError
-
getName
public java.lang.String getName() throws TileDBErrorReturn the name of the enumeration values- Returns:
- The name of the enumeration values
- Throws:
TileDBError
-
getData
public java.lang.Object getData() throws TileDBErrorReturn an Object of the enumerations underlying value data- Returns:
- The enumeration data
- Throws:
TileDBError
-
getOffsets
public java.lang.Object getOffsets() throws TileDBErrorReturn an Object of the enumerations underlying value offsets- Returns:
- The enumeration offsets
- Throws:
TileDBError
-
close
public void close()
Releases resources- Specified by:
closein interfacejava.lang.AutoCloseable
-
-