Package io.tiledb.java.api
Class CurrentDomain
- java.lang.Object
-
- io.tiledb.java.api.CurrentDomain
-
- All Implemented Interfaces:
java.lang.AutoCloseable
public class CurrentDomain extends java.lang.Object implements java.lang.AutoCloseable
-
-
Constructor Summary
Constructors Modifier Constructor Description CurrentDomain(Context ctx, Domain domain)
Constructorprotected
CurrentDomain(Context ctx, Domain domain, SWIGTYPE_p_p_tiledb_current_domain_t currentDomainpp)
Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
protected SWIGTYPE_p_tiledb_current_domain_t
getCurrentDomainp()
Returns the c pointer for this current domain objectNDRectangle
getNDRectangle()
Get the N-dimensional rectangle associated with the current domain object, error if the current domain is empty or a different representation is set.CurrentDomainType
getType()
Returns the currentDomain type.boolean
isEmpty()
Return true if the current domain is emptyvoid
setNDRectangle(NDRectangle ndRectangle)
Set a N-dimensional rectangle representation on a current domain
-
-
-
Constructor Detail
-
CurrentDomain
protected CurrentDomain(Context ctx, Domain domain, SWIGTYPE_p_p_tiledb_current_domain_t currentDomainpp)
Constructor- Parameters:
ctx
- The contextdomain
- The array domaincurrentDomainpp
- The current domain c pointer
-
CurrentDomain
public CurrentDomain(Context ctx, Domain domain) throws TileDBError
Constructor- Parameters:
ctx
- The contextdomain
- The array domain- Throws:
TileDBError
-
-
Method Detail
-
getCurrentDomainp
protected SWIGTYPE_p_tiledb_current_domain_t getCurrentDomainp()
Returns the c pointer for this current domain object- Returns:
-
setNDRectangle
public void setNDRectangle(NDRectangle ndRectangle) throws TileDBError
Set a N-dimensional rectangle representation on a current domain- Parameters:
ndRectangle
- The ndrectangle- Throws:
TileDBError
-
getType
public CurrentDomainType getType() throws TileDBError
Returns the currentDomain type.- Returns:
- The type
- Throws:
TileDBError
-
getNDRectangle
public NDRectangle getNDRectangle() throws TileDBError
Get the N-dimensional rectangle associated with the current domain object, error if the current domain is empty or a different representation is set.- Returns:
- The ndrectangle
- Throws:
TileDBError
-
isEmpty
public boolean isEmpty() throws TileDBError
Return true if the current domain is empty- Returns:
- True if empty
- Throws:
TileDBError
-
close
public void close()
- Specified by:
close
in interfacejava.lang.AutoCloseable
-
-