Show / Hide Table of Contents

Class QueryCondition

Represents a TileDB query condition object.

Inheritance
object
QueryCondition
Implements
IDisposable
Namespace: TileDB.CSharp
Assembly: TileDB.CSharp.dll
Syntax
public sealed class QueryCondition : IDisposable

Methods

| Edit this page View Source

Create(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 attribute_name and value.

Returns
Type Description
QueryCondition
| Edit this page View Source

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
| Edit this page View Source

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
| Edit this page View Source

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 attribute_name and value.

Returns
Type Description
QueryCondition
Type Parameters
Name Description
T
| Edit this page View Source

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 attribute_name and value.

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
| Edit this page View Source

Dispose()

Disposes this QueryCondition.

Declaration
public void Dispose()

Operators

| Edit this page View Source

operator &(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 lhs and rhs are satisfied.

| Edit this page View Source

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 lhs or rhs are satisfied.

| Edit this page View Source

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 condition is not satisfied.

Implements

IDisposable
  • Edit this page
  • View Source
In this article
Back to top Copyright © 2018-2023 TileDB Inc.