Package io.tiledb.java.api
Class Range
- java.lang.Object
-
- io.tiledb.java.api.Range
-
- All Implemented Interfaces:
java.lang.AutoCloseable
public class Range extends java.lang.Object implements java.lang.AutoCloseable
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
java.lang.Object
getMax()
Returns the max range valuelong
getMaxSize()
Retrieves the max value sizejava.math.BigInteger
getMaxSizeBI()
Retrieves the max value sizejava.lang.String
getMaxVar()
Returns the max value fo a var dimjava.lang.Object
getMin()
Returns the min range valuelong
getMinSize()
Retrieves the min value sizejava.math.BigInteger
getMinSizeBI()
Retrieves the min value sizejava.lang.String
getMinVar()
Returns the min range value for var dimstiledb_range_t
getRange_t()
Returns the c pointer fot his rangevoid
setMax(java.lang.Object max)
Sets the max value for this rangevoid
setMaxSize(long size)
Sets the max sizevoid
setMaxSize(java.math.BigInteger size)
Sets the max sizevoid
setMin(java.lang.Object min)
Sets the min value for this rangevoid
setMinSize(long size)
Sets the min sizevoid
setMinSize(java.math.BigInteger size)
Sets the min size
-
-
-
Constructor Detail
-
Range
public Range(Context ctx, Domain domain, long dimIdx)
Constructor- Parameters:
ctx
- The TileDB contextdomain
- The array domaindimIdx
- The dimension index to add the range to
-
Range
public Range(Context ctx, tiledb_range_t range, Domain domain, long dimIdx)
Constructor- Parameters:
ctx
- The TileDB contextrange
- C pointer to the rangedomain
- The array domaindimIdx
- The dimension index to add the range to
-
-
Method Detail
-
setMin
public void setMin(java.lang.Object min) throws TileDBError
Sets the min value for this range- Parameters:
min
- The min value- Throws:
TileDBError
-
setMinSize
public void setMinSize(long size)
Sets the min size- Parameters:
size
- The size
-
setMinSize
public void setMinSize(java.math.BigInteger size)
Sets the min size- Parameters:
size
- The size
-
getMinSize
public long getMinSize()
Retrieves the min value size- Returns:
- The size as a long
-
getMinSizeBI
public java.math.BigInteger getMinSizeBI()
Retrieves the min value size- Returns:
- The size as a BigInteger
-
setMax
public void setMax(java.lang.Object max) throws TileDBError
Sets the max value for this range- Parameters:
max
- The max value- Throws:
TileDBError
-
setMaxSize
public void setMaxSize(long size)
Sets the max size- Parameters:
size
- The size
-
setMaxSize
public void setMaxSize(java.math.BigInteger size)
Sets the max size- Parameters:
size
- The size
-
getMaxSize
public long getMaxSize()
Retrieves the max value size- Returns:
- The size as a long
-
getMaxSizeBI
public java.math.BigInteger getMaxSizeBI()
Retrieves the max value size- Returns:
- The size as a BigInteger
-
getMin
public java.lang.Object getMin() throws TileDBError
Returns the min range value- Returns:
- the value
- Throws:
TileDBError
-
getMinVar
public java.lang.String getMinVar() throws TileDBError
Returns the min range value for var dims- Returns:
- The value
- Throws:
TileDBError
-
getMax
public java.lang.Object getMax() throws TileDBError
Returns the max range value- Returns:
- the max value
- Throws:
TileDBError
-
getMaxVar
public java.lang.String getMaxVar() throws TileDBError
Returns the max value fo a var dim- Returns:
- The max value
- Throws:
TileDBError
-
getRange_t
public tiledb_range_t getRange_t()
Returns the c pointer fot his range- Returns:
- The c pointer
-
close
public void close()
- Specified by:
close
in interfacejava.lang.AutoCloseable
-
-