public class RewriteQuery extends QueryIterator
| Modifier and Type | Class and Description |
|---|---|
static class |
RewriteQuery.FalsePH
Placeholder that always evaluates to false
|
static class |
RewriteQuery.RewriteQueryResult |
static class |
RewriteQuery.TruePH
Placeholder that always evaluates to true
|
| Constructor and Description |
|---|
RewriteQuery(CompositeMetadata root,
CompositeMetadata currentEntity)
Construct a class to rewrite queries to retrieve an entity, potentially
evaluated at another entity
|
| Modifier and Type | Method and Description |
|---|---|
RewriteQuery.RewriteQueryResult |
rewriteQuery(QueryExpression q,
List<QueryFieldInfo> fieldInfo)
Rewrites a query using field information obtained from AnalyzeQuery
|
itrAllMatchExpression, itrArrayContainsExpression, itrArrayMatchExpression, itrFieldComparisonExpression, itrNaryFieldRelationalExpression, itrNaryLogicalExpression, itrNaryValueRelationalExpression, itrRegexMatchExpression, itrUnaryLogicalExpression, itrValueComparisonExpressioniterate, iteratepublic RewriteQuery(CompositeMetadata root, CompositeMetadata currentEntity)
root - The root entitycurrentEntity - The query will be rewritten relative to this entity
The root entity is the entity that will be retrieved ultimately. That
entity may contain associations to other entities, and the association
queries need to be rewritten based on the query plan node they are
evaluated. The currentEntity gives that node relative to which the
queries will be rewritten.public RewriteQuery.RewriteQueryResult rewriteQuery(QueryExpression q, List<QueryFieldInfo> fieldInfo)
Copyright © 2016. All rights reserved.