Class NDRectangle

  • All Implemented Interfaces:
    java.lang.AutoCloseable

    public class NDRectangle
    extends java.lang.Object
    implements java.lang.AutoCloseable
    • Constructor Detail

      • NDRectangle

        public NDRectangle​(Context ctx,
                           Domain domain)
                    throws TileDBError
        Constructor
        Parameters:
        ctx - The TileDB context
        domain - The array domain
        Throws:
        TileDBError
      • NDRectangle

        protected NDRectangle​(Context ctx,
                              Domain domain,
                              SWIGTYPE_p_p_tiledb_ndrectangle_t ndpp)
        Constructor
        Parameters:
        ctx - The TileDB context
        domain - The array domain
        ndpp - The c pointer to the ndrectangle object
    • Method Detail

      • setRange

        public void setRange​(long dimIdx,
                             Range range)
                      throws TileDBError
        Adds an 1D range along a dimension name, in the form (start, end).
        Parameters:
        dimIdx - The index of the dimension to add the range to
        range - The range
        Throws:
        TileDBError
      • getRange

        public Range getRange​(long dimIdx)
                       throws TileDBError
        Retrieves a range for a given dimension index.
        Parameters:
        dimIdx - The dimension index
        Returns:
        The range
        Throws:
        TileDBError
      • close

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