@Description("Get the limit on how many nodes a query may read at most into memory, for \"order by\" and \"distinct\" queries. If this limit is exceeded, the query throws an exception.")
longgetLimitInMemory()
Get the limit on how many nodes a query may read at most into memory, for
"order by" and "distinct" queries. If this limit is exceeded, the query
throws an exception.
Returns:
the limit
setLimitInMemory
voidsetLimitInMemory(long limitInMemory)
Change the limit.
Parameters:
limitInMemory - the new limit
getLimitReads
@Description("Get the limit on how many nodes a query may read at most (raw read operations, including skipped nodes). If this limit is exceeded, the query throws an exception.")
longgetLimitReads()
Get the limit on how many nodes a query may read at most (raw read
operations, including skipped nodes). If this limit is exceeded, the
query throws an exception.
Returns:
the limit
setLimitReads
voidsetLimitReads(long limitReads)
Change the limit.
Parameters:
limitReads - the new limit
setPrefetchCount
voidsetPrefetchCount(int prefetchCount)
Change the prefetch count.
Parameters:
prefetchCount - the new count
getPrefetchCount
@Description("Get the prefetch count. This is the number of entries pre-fetched from the node store at a time.")
intgetPrefetchCount()
Whether Path restrictions are enabled while figuring out index plan
Returns:
true if enabled
setStrictPathRestriction
@Description("Set path restriction: Expected value is either of ENABLE/DISABLE/WARN. ENABLE: enable path restriction- Index won\'t be used if index definition path restrictions are not compatible with query\'s path restriction. DISABLE: path restrictions are not taken into account while querying. WARN: path restrictions are not taken into account but a warning will be logged if query path restrictions are not compatible with index path restrictions.")
voidsetStrictPathRestriction(@Name("pathRestriction")
String pathRestriction)
Whether path restrictions of indexes (excludedPaths / includedPaths) are taken into account during query execution,
for Lucene indexes. When enabled, only indexes are considered if the index path restriction is compatible with the
query path restrictions. When disabled, only the queryPaths of the index is taken into account.
Parameters:
pathRestriction - Set path restriction: Expected value is either of ENABLE/DISABLE/WARN
ENABLE: enable path restriction- Index won't be used if index definition path restrictions are not compatible with query's path restriction
DISABLE: path restrictions are not taken into account while querying
WARN: path restrictions are not taken into account but a warning will be logged if query path restrictions are not compatible with index path restrictions
setQueryValidatorPattern
@Description("Set or remove a query validator pattern.")
voidsetQueryValidatorPattern(@Description("the key") @Name("key")
String key,
@Description("the regular expression pattern (empty to remove the pattern)") @Name("pattern")
String pattern,
@Description("a comment") @Name("comment")
String comment,
@Description("whether matching queries should fail (true) or just log a warning (false)") @Name("failQuery")
boolean failQuery)
Set or remove a query validator pattern.
Parameters:
key - the key
pattern - the regular expression pattern (empty to remove the
pattern)
comment - a comment
failQuery - whether matching queries should fail (true) or just log
a warning (false)
getQueryValidatorJson
@Description("Get the query validator data as a JSON string.")
StringgetQueryValidatorJson()
setIgnoredClassNamesInCallTrace
@Description("Set or remove Java package / fully qualified class names to ignore in Call Trace analysis")
voidsetIgnoredClassNamesInCallTrace(@Description("package or fully qualified class names") @Name("class names") @NotNull
@NotNull String[] classNames)
Set or remove java package/class names which are ignored from finding the
invoking class for queries.
It can be either Java package names or fully-qualified class names (package + class name).