Class QueryCondition
Represents a TileDB query condition object.
Implements
Namespace: TileDB.CSharp
Assembly: TileDB.CSharp.dll
Syntax
public sealed class QueryCondition : IDisposable
Methods
| Edit this page View SourceCreate(Context, string, string, QueryConditionOperatorType)
Creates a new QueryCondition with a string.
Declaration
public static QueryCondition Create(Context ctx, string attribute_name, string value, QueryConditionOperatorType optype)
Parameters
Type | Name | Description |
---|---|---|
Context | ctx | The Context associated with the query condition. |
string | attribute_name | The name of the attribute the query condition refers to. |
string | value | The value to compare the attribute with. |
QueryConditionOperatorType | optype | The type of the relationship between the attribute with
the name |
Returns
Type | Description |
---|---|
QueryCondition |
CreateIsNotNull(Context, string)
Creates a new query condition that is satisfied where the given attribute is not null.
Declaration
public static QueryCondition CreateIsNotNull(Context ctx, string attribute_name)
Parameters
Type | Name | Description |
---|---|---|
Context | ctx | The Context associated with the query condition. |
string | attribute_name | The name of the attribute the query condition refers to. |
Returns
Type | Description |
---|---|
QueryCondition |
CreateIsNull(Context, string)
Creates a new query condition that is satisfied where the given attribute is null.
Declaration
public static QueryCondition CreateIsNull(Context ctx, string attribute_name)
Parameters
Type | Name | Description |
---|---|---|
Context | ctx | The Context associated with the query condition. |
string | attribute_name | The name of the attribute the query condition refers to. |
Returns
Type | Description |
---|---|
QueryCondition |
Create<T>(Context, string, T, QueryConditionOperatorType)
Creates a new query condition with datatype T
.
Declaration
public static QueryCondition Create<T>(Context ctx, string attribute_name, T value, QueryConditionOperatorType optype) where T : struct
Parameters
Type | Name | Description |
---|---|---|
Context | ctx | The Context associated with the query condition. |
string | attribute_name | The name of the attribute the query condition refers to. |
T | value | The value to compare the attribute with. |
QueryConditionOperatorType | optype | The type of the relationship between the attribute with
the name |
Returns
Type | Description |
---|---|
QueryCondition |
Type Parameters
Name | Description |
---|---|
T |
Create<T>(Context, string, T, QueryConditionOperatorType, bool)
Creates a new query condition with datatype T
.
Declaration
public static QueryCondition Create<T>(Context ctx, string attribute_name, T value, QueryConditionOperatorType optype, bool useEnumeration = true) where T : struct
Parameters
Type | Name | Description |
---|---|---|
Context | ctx | The Context associated with the query condition. |
string | attribute_name | The name of the attribute the query condition refers to. |
T | value | The value to compare the attribute with. |
QueryConditionOperatorType | optype | The type of the relationship between the attribute with
the name |
bool | useEnumeration | Whether to match the query condition on the enumerated value instead of the underlying value. Optional, defaults to true. |
Returns
Type | Description |
---|---|
QueryCondition |
Type Parameters
Name | Description |
---|---|
T |
Dispose()
Disposes this QueryCondition.
Declaration
public void Dispose()
Operators
| Edit this page View Sourceoperator &(QueryCondition, QueryCondition)
Creates the conjunction of two QueryConditions.
Declaration
public static QueryCondition operator &(QueryCondition lhs, QueryCondition rhs)
Parameters
Type | Name | Description |
---|---|---|
QueryCondition | lhs | The first query condition. |
QueryCondition | rhs | The second query condition. |
Returns
Type | Description |
---|---|
QueryCondition | A query condition that will be satisfied if both
|
operator |(QueryCondition, QueryCondition)
Creates the disjunction of two QueryConditions.
Declaration
public static QueryCondition operator |(QueryCondition lhs, QueryCondition rhs)
Parameters
Type | Name | Description |
---|---|---|
QueryCondition | lhs | The first query condition. |
QueryCondition | rhs | The second query condition. |
Returns
Type | Description |
---|---|
QueryCondition | A query condition that will be satisfied if at least one of
|
operator !(QueryCondition)
Creates the negation of a QueryCondition.
Declaration
public static QueryCondition operator !(QueryCondition condition)
Parameters
Type | Name | Description |
---|---|---|
QueryCondition | condition | The query condition to negate. |
Returns
Type | Description |
---|---|
QueryCondition | A query condition that will be satisfied if
|