Package io.tiledb.java.api
Class NDRectangle
- java.lang.Object
-
- io.tiledb.java.api.NDRectangle
-
- All Implemented Interfaces:
java.lang.AutoCloseable
public class NDRectangle extends java.lang.Object implements java.lang.AutoCloseable
-
-
Constructor Summary
Constructors Modifier Constructor Description NDRectangle(Context ctx, Domain domain)
Constructorprotected
NDRectangle(Context ctx, Domain domain, SWIGTYPE_p_p_tiledb_ndrectangle_t ndpp)
Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
SWIGTYPE_p_tiledb_ndrectangle_t
getndrectanglep()
Getter for the c pointerRange
getRange(long dimIdx)
Retrieves a range for a given dimension index.void
setRange(long dimIdx, Range range)
Adds an 1D range along a dimension name, in the form (start, end).
-
-
-
Constructor Detail
-
NDRectangle
public NDRectangle(Context ctx, Domain domain) throws TileDBError
Constructor- Parameters:
ctx
- The TileDB contextdomain
- The array domain- Throws:
TileDBError
-
NDRectangle
protected NDRectangle(Context ctx, Domain domain, SWIGTYPE_p_p_tiledb_ndrectangle_t ndpp)
Constructor- Parameters:
ctx
- The TileDB contextdomain
- The array domainndpp
- The c pointer to the ndrectangle object
-
-
Method Detail
-
getndrectanglep
public SWIGTYPE_p_tiledb_ndrectangle_t getndrectanglep()
Getter for the c pointer- Returns:
- The c pointer
-
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 torange
- 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 interfacejava.lang.AutoCloseable
-
-