parse_query_condition: Create a 'tiledb_query_condition' object from an expression

View source: R/QueryCondition.R

parse_query_conditionR Documentation

Create a 'tiledb_query_condition' object from an expression

Description

The grammar for query conditions is at present constraint to six operators and three boolean types.

Usage

parse_query_condition(
  expr,
  ta = NULL,
  debug = FALSE,
  strict = TRUE,
  use_int64 = FALSE
)

Arguments

expr

An expression that is understood by the TileDB grammar for query conditions.

ta

An optional tiledb_array object that the query condition is applied to

debug

A boolean toogle to enable more verbose operations, defaults to 'FALSE'.

strict

A boolean toogle to, if set, errors if a non-existing attribute is selected or filtered on, defaults to 'TRUE'; if 'FALSE' a warning is shown by execution proceeds.

use_int64

A boolean toggle to switch to integer64 if integer is seen, default is false to remain as a default four-byte int

Value

A tiledb_query_condition object

Examples


## Not run: 
uri <- "mem://airquality"    # change to on-disk for persistence
fromDataFrame(airquality, uri, col_index=c("Month", "Day"))  # dense array
## query condition on dense array requires extended=FALSE
tiledb_array(uri, return_as="data.frame", extended=FALSE,
             query_condition=parse_query_condition(Temp > 90))[]

## End(Not run)

tiledb documentation built on Sept. 27, 2023, 9:06 a.m.