Package io.tiledb.java.api
Class QueryCondition
- java.lang.Object
-
- io.tiledb.java.api.QueryCondition
-
- All Implemented Interfaces:
java.lang.AutoCloseable
public class QueryCondition extends java.lang.Object implements java.lang.AutoCloseable
-
-
Constructor Summary
Constructors Constructor Description QueryCondition(Context ctx, Datatype type, java.lang.String attributeName, java.lang.Object value, tiledb_query_condition_op_t OP)ConstructorQueryCondition(Context ctx, SWIGTYPE_p_p_tiledb_query_condition_t conditionpp)QueryCondition(Context ctx, java.lang.String attributeName, java.lang.Object value, java.lang.Class conditionType, tiledb_query_condition_op_t OP)Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidallocSetMembership(java.lang.String name, NativeArray data, java.math.BigInteger dataSize, NativeArray offsets, java.math.BigInteger offsetsSize, tiledb_query_condition_op_t OP)Initializes a TileDB query condition set membership object.voidclose()QueryConditioncombine(QueryCondition rhs, tiledb_query_condition_combination_op_t OP)Combines this instance with another instance to form a multi-clause condition object.SWIGTYPE_p_tiledb_query_condition_tgetConditionp()SWIGTYPE_p_p_tiledb_query_condition_tgetConditionpp()protected ContextgetCtx()QueryConditionnegate()Create a query condition representing a negation of the input query condition.voidsetUseEnumeration(boolean flag)Disable the use of enumerations on the given QueryCondition
-
-
-
Constructor Detail
-
QueryCondition
public QueryCondition(Context ctx, SWIGTYPE_p_p_tiledb_query_condition_t conditionpp)
-
QueryCondition
@Deprecated public QueryCondition(Context ctx, java.lang.String attributeName, java.lang.Object value, java.lang.Class conditionType, tiledb_query_condition_op_t OP) throws TileDBError
Deprecated.- Throws:
TileDBError
-
QueryCondition
public QueryCondition(Context ctx, Datatype type, java.lang.String attributeName, java.lang.Object value, tiledb_query_condition_op_t OP) throws TileDBError
Constructor- Parameters:
ctx- The contextattributeName- The name of the field this operation applies totype- The datatypevalue- The value to compare to. Can also be null.OP- The relational operation between the value of the field and `condition_value`- Throws:
TileDBError
-
-
Method Detail
-
setUseEnumeration
public void setUseEnumeration(boolean flag) throws TileDBErrorDisable the use of enumerations on the given QueryCondition- Parameters:
flag-- Throws:
TileDBError
-
allocSetMembership
public void allocSetMembership(java.lang.String name, NativeArray data, java.math.BigInteger dataSize, NativeArray offsets, java.math.BigInteger offsetsSize, tiledb_query_condition_op_t OP) throws TileDBErrorInitializes a TileDB query condition set membership object.- Parameters:
name- The field name.data- A pointer to the set member data.dataSize- The length of the data buffer.offsets- A pointer to the array of offsets of members.offsetsSize- The length of the offsets array in bytes.OP- The set membership operator to use.- Throws:
TileDBError
-
getConditionp
public SWIGTYPE_p_tiledb_query_condition_t getConditionp()
-
getConditionpp
public SWIGTYPE_p_p_tiledb_query_condition_t getConditionpp()
-
getCtx
protected Context getCtx()
-
close
public void close()
- Specified by:
closein interfacejava.lang.AutoCloseable
-
combine
public QueryCondition combine(QueryCondition rhs, tiledb_query_condition_combination_op_t OP) throws TileDBError
Combines this instance with another instance to form a multi-clause condition object.- Parameters:
rhs- The right-hand-side query condition object.OP- The logical combination operator that combines this instance with `rhs`- Returns:
- The result Query Condition
- Throws:
TileDBError
-
negate
public QueryCondition negate() throws TileDBError
Create a query condition representing a negation of the input query condition. Currently, this is performed by applying De Morgan's theorem recursively to the query condition's internal representation.- Returns:
- The negated Query Condition
- Throws:
TileDBError
-
-