@NotThreadSafe public final class PlanHints extends Object implements Serializable, Cloneable
Modifier and Type | Field and Description |
---|---|
boolean |
hasCriteria
This flag indicates that the plan has a criteria somewhere
|
boolean |
hasFullTextSearch |
boolean |
hasJoin
This flag indicates that the plan has a join somewhere
|
boolean |
hasLimit |
boolean |
hasOptionalJoin |
boolean |
hasSetQuery
flag indicates that the plan has a union somewhere
|
boolean |
hasSort
This flag indicates that the plan has a sort somewhere
|
boolean |
hasSubqueries |
boolean |
hasView
Flag indicates that the plan has at least one view somewhere
|
boolean |
includeSystemContent
Flag indicates whether the content under "/jcr:system" should be included in the results.
|
boolean |
isExistsQuery
Set when the query results are not ordered or offset but are limited to a single row, implying that the query is just
trying to see if a row exists.
|
boolean |
planOnly
Flag indicates whether the query execution can be stopped immediately after the plan is developed.
|
boolean |
qualifyExpandedColumnNames
Flag indicates whether to fully-qualify (with the selector name) the names of columns that are expanded from wildcard
projections.
|
boolean |
restartable
Flag indicating whether iterating over the results can be done more than once.
|
int |
rowsKeptInMemory
When ModeShape buffers results so that they can be accessed more than once, it keeps a small number of rows in memory to
minimize the performance overhead.
|
boolean |
showPlan
Flag indicates whether the query plan should be included in the
QueryResults |
boolean |
useSessionContent
Flag indicates whether the Session's transient (unsaved) content should be used for the results.
|
boolean |
validateColumnExistance
Flag indicates whether to check during validation for the existance of columns used in column selectors and criteria.
|
Constructor and Description |
---|
PlanHints() |
public boolean hasCriteria
public boolean hasJoin
public boolean hasSort
public boolean hasSetQuery
public boolean hasLimit
public boolean isExistsQuery
public boolean hasOptionalJoin
public boolean hasFullTextSearch
public boolean hasSubqueries
public boolean hasView
public boolean showPlan
QueryResults
public boolean planOnly
public boolean validateColumnExistance
public boolean includeSystemContent
public boolean useSessionContent
public boolean qualifyExpandedColumnNames
public boolean restartable
QueryResult.getRows()
or QueryResult.getNodes()
are called a second
time the implementation may throw an exception. However, this places a restriction on JCR client applications that are not
always ideal. Therefore, the default is true
so that working with results is easier but less-efficient. Where
possible, set this to false
to enforce strict "use results once" and eliminate this overhead.public int rowsKeptInMemory
Copyright © 2008–2016 JBoss, a division of Red Hat. All rights reserved.