@ProviderType public interface QueryEngineSettingsMBean
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
TYPE |
Modifier and Type | Method and Description |
---|---|
boolean |
getFailTraversal()
Whether queries that don't use an index will fail (throw an exception).
|
long |
getLimitInMemory()
Get the limit on how many nodes a query may read at most into memory, for
"order by" and "distinct" queries.
|
long |
getLimitReads()
Get the limit on how many nodes a query may read at most (raw read
operations, including skipped nodes).
|
java.lang.String |
getQueryValidatorJson() |
java.lang.String |
getStrictPathRestriction()
Whether Path restrictions are enabled while figuring out index plan
|
boolean |
isFastQuerySize()
Whether the query result size should return an estimation for large queries.
|
void |
setFailTraversal(boolean failTraversal)
Set whether queries that don't use an index will fail (throw an exception).
|
void |
setFastQuerySize(boolean fastQuerySize) |
void |
setLimitInMemory(long limitInMemory)
Change the limit.
|
void |
setLimitReads(long limitReads)
Change the limit.
|
void |
setQueryValidatorPattern(java.lang.String key,
java.lang.String pattern,
java.lang.String comment,
boolean failQuery)
Set or remove a query validator pattern.
|
void |
setStrictPathRestriction(java.lang.String pathRestriction)
Whether path restrictions of indexes (excludedPaths / includedPaths) are taken into account during query execution,
for Lucene indexes.
|
static final java.lang.String TYPE
@Description(value="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.") long getLimitInMemory()
void setLimitInMemory(long limitInMemory)
limitInMemory
- the new limit@Description(value="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.") long getLimitReads()
void setLimitReads(long limitReads)
limitReads
- the new limit@Description(value="Whether queries that don\'t use an index will fail (throw an exception). The default is false.") boolean getFailTraversal()
void setFailTraversal(boolean failTraversal)
failTraversal
- the new value for this setting@Description(value="Whether the query result size should return an estimation for large queries.") boolean isFastQuerySize()
void setFastQuerySize(boolean fastQuerySize)
java.lang.String getStrictPathRestriction()
@Description(value="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.") void setStrictPathRestriction(@Name(value="pathRestriction") java.lang.String pathRestriction)
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@Description(value="Set or remove a query validator pattern.") void setQueryValidatorPattern(@Description(value="the key") @Name(value="key") java.lang.String key, @Description(value="the regular expression pattern (empty to remove the pattern)") @Name(value="pattern") java.lang.String pattern, @Description(value="a comment") @Name(value="comment") java.lang.String comment, @Description(value="whether matching queries should fail (true) or just log a warning (false)") @Name(value="failQuery") boolean failQuery)
key
- the keypattern
- the regular expression pattern (empty to remove the
pattern)comment
- a commentfailQuery
- whether matching queries should fail (true) or just log
a warning (false)@Description(value="Get the query validator data as a JSON string.") java.lang.String getQueryValidatorJson()
Copyright © 2010 - 2020 Adobe. All Rights Reserved