Construct a lexicographic query for a GTable with a lexicographic index

Usage

lexicographicQuery(query, index)

Arguments

query
A MongoDB-style query
index
The name of the lexicographic index to use

Value

query to use as an argument to getRows

Description

Construct a lexicographic query for a GTable for use with the getRows method. The GTable must have been constructed with a lexicographic index for the query to succeed. See the API documentation for full details on how to construct the parameters for this query.

Examples

lexicographicQuery(list(quality=list("$gt"=22)), "qualityIndex")
$index [1] "qualityIndex" $parameters $parameters$quality $parameters$quality$`$gt` [1] 22

See also

Can be used when calling getRows