Package ai.velr
Class QueryOptions
java.lang.Object
ai.velr.QueryOptions
Query execution options for bounded result previews and Cypher parameter binding.
Parameters are bound out of band. Query text uses $name; parameter names passed to
this API omit the leading dollar sign.
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic QueryOptions.Builderbuilder()Create a query-options builder.static QueryOptionsdefaults()Return default query options.Return the row cap for each result table.static QueryOptionsmaxResultRows(long maxResultRows) Create options that cap rows returned by each result table.params()Return bound openCypher parameters.Return a copy of these options with one additional parameter.withParams(Map<String, ?> values) Return a copy of these options with additional parameters.
-
Method Details
-
defaults
Return default query options.- Returns:
- options with no row cap and no parameters
-
builder
Create a query-options builder.- Returns:
- new builder
-
maxResultRows
Create options that cap rows returned by each result table.- Parameters:
maxResultRows- maximum rows per result table; use zero to return only column metadata- Returns:
- query options with the row cap set
-
maxResultRows
Return the row cap for each result table.- Returns:
- maximum row count, or
nullwhen uncapped
-
params
Return bound openCypher parameters.- Returns:
- immutable parameter map
-
withParam
Return a copy of these options with one additional parameter.- Parameters:
name- parameter name without a leading$value- parameter value- Returns:
- updated query options
-
withParams
Return a copy of these options with additional parameters.- Parameters:
values- parameter map; keys omit the leading$- Returns:
- updated query options
-