Class QueryCondition

  • All Implemented Interfaces:
    java.lang.AutoCloseable

    public class QueryCondition
    extends java.lang.Object
    implements java.lang.AutoCloseable
    • Method Detail

      • setUseEnumeration

        public void setUseEnumeration​(boolean flag)
                               throws TileDBError
        Disable 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 TileDBError
        Initializes 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
      • getCtx

        protected Context getCtx()
      • close

        public void close()
        Specified by:
        close in interface java.lang.AutoCloseable
      • 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