Class Enumeration

  • All Implemented Interfaces:
    java.lang.AutoCloseable

    public class Enumeration
    extends java.lang.Object
    implements java.lang.AutoCloseable
    • 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 TileDBError
        Return the cell value number of the enumeration values
        Returns:
        The cell value number of the enumeration values
        Throws:
        TileDBError
      • getOrdered

        public boolean getOrdered()
                           throws TileDBError
        Return 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 TileDBError
        Return the name of the enumeration values
        Returns:
        The name of the enumeration values
        Throws:
        TileDBError
      • getData

        public java.lang.Object getData()
                                 throws TileDBError
        Return an Object of the enumerations underlying value data
        Returns:
        The enumeration data
        Throws:
        TileDBError
      • getOffsets

        public java.lang.Object getOffsets()
                                    throws TileDBError
        Return an Object of the enumerations underlying value offsets
        Returns:
        The enumeration offsets
        Throws:
        TileDBError
      • close

        public void close()
        Releases resources
        Specified by:
        close in interface java.lang.AutoCloseable