public class ExecutionPlan extends Object
| Constructor and Description |
|---|
ExecutionPlan(QueryExpression requestQuery,
Projection requestProjection,
Sort requestSort,
Long from,
Long to,
CompositeMetadata rootMd,
QueryPlan searchQueryPlan,
QueryPlan retrievalQueryPlan)
Creates an execution plan
|
| Modifier and Type | Method and Description |
|---|---|
com.fasterxml.jackson.databind.JsonNode |
explain(ExecutionContext ctx) |
static Set<Path> |
getIncludedFieldsOfEntityForProjection(ExecutionBlock block,
CompositeMetadata root,
Projection requestProjection)
Returns the fields included based on the requested projection and
reference field projection
|
static Set<Path> |
getIncludedFieldsOfEntityForSearch(ExecutionBlock block,
List<QueryFieldInfo> fieldInfo)
Returns the included fields of an entity based on query information.
|
static Set<Path> |
getIncludedFieldsOfEntityForSort(ExecutionBlock block) |
static Set<Path> |
getIncludedFieldsOfRootEntityForSort(CompositeMetadata root,
Sort rootSort) |
StepResult<ResultDocument> |
getResults(ExecutionContext ctx) |
com.fasterxml.jackson.databind.JsonNode |
toJson() |
String |
toString() |
static Projection |
writeProjection(Collection<Path> fields)
Writes a projection to include the given set of fields
|
public ExecutionPlan(QueryExpression requestQuery, Projection requestProjection, Sort requestSort, Long from, Long to, CompositeMetadata rootMd, QueryPlan searchQueryPlan, QueryPlan retrievalQueryPlan)
requestQuery - query requested by the clientrequestProjection - projection requested by the clientrequestSort - sort requested by the client.from - request.fromto - request.torootMd - Root entity composite metadatasearchQueryPlan - if the results of a search is to be retrieved in a
second pass, not null. Otherwise, null.retrievalQueryPlan - Never null. Contains the plan for the retrieval
of found documents. If the searchQueryPlan is not null, retrieves the
documents found by that search. If searchQueryPlan is null, this plan
performs the search and retrieval.public StepResult<ResultDocument> getResults(ExecutionContext ctx)
public static Projection writeProjection(Collection<Path> fields)
public static Set<Path> getIncludedFieldsOfEntityForSearch(ExecutionBlock block, List<QueryFieldInfo> fieldInfo)
public static Set<Path> getIncludedFieldsOfEntityForProjection(ExecutionBlock block, CompositeMetadata root, Projection requestProjection)
public static Set<Path> getIncludedFieldsOfRootEntityForSort(CompositeMetadata root, Sort rootSort)
public static Set<Path> getIncludedFieldsOfEntityForSort(ExecutionBlock block)
public com.fasterxml.jackson.databind.JsonNode toJson()
public com.fasterxml.jackson.databind.JsonNode explain(ExecutionContext ctx)
Copyright © 2016. All rights reserved.