public class ExecutionBlock extends Object
| Modifier and Type | Field and Description |
|---|---|
protected Step<ResultDocument> |
resultStep
Result step of this block
|
protected List<Step<?>> |
steps
All steps of this block
|
| Constructor and Description |
|---|
ExecutionBlock(CompositeMetadata root,
QueryPlanNode qpNode) |
| Modifier and Type | Method and Description |
|---|---|
void |
addChildSlot(ResolvedReferenceField reference) |
void |
addSourceBlock(ExecutionBlock source)
Adds a source block
|
boolean |
childSlotsHaveArrays()
This returns true if at least one of the child slots contains an array
reference
|
com.fasterxml.jackson.databind.JsonNode |
explain(ExecutionContext ctx) |
AssociationQuery |
getAssociationQueryForEdge(ExecutionBlock sourceBlock)
Returns the association query for the edge coming from the source block
into this block
|
List<ChildSlot> |
getChildSlots()
Returns the slots for the child documents of the documents of this block
|
Path[] |
getIdentityFields()
Returns the identity fields for the entity
|
DocIdExtractor |
getIdExtractor()
Returns an ID extractor for the documents produced by this execution
block
|
CompositeMetadata |
getMetadata()
Returns the metadata for the entity associated with this block
|
QueryPlanNode |
getQueryPlanNode()
Returns the query plan node for this block
|
ResolvedReferenceField |
getReference()
Returns the resolved reference pointing to the entity of this block
|
Step<ResultDocument> |
getResultStep()
Returns the result step of this block
|
List<ExecutionBlock> |
getSourceBlocks()
Returns the source execution blocks
|
<X> X |
getStep(Class<X> clazz)
Returns a step of the given type
|
void |
initializeSteps() |
void |
linkBlocks()
This should be called after all execution blocks are built
|
void |
registerStep(Step<?> step) |
void |
setAssociationQuery(ExecutionBlock sourceBlock,
AssociationQuery q)
Sets an edge query
|
void |
setResultStep(Source<ResultDocument> resultStep) |
void |
setResultStep(Step<ResultDocument> resultStep)
Sets the result step of this block
|
com.fasterxml.jackson.databind.JsonNode |
toJson() |
String |
toString() |
protected Step<ResultDocument> resultStep
public ExecutionBlock(CompositeMetadata root, QueryPlanNode qpNode)
public void linkBlocks()
public void initializeSteps()
public List<ChildSlot> getChildSlots()
public boolean childSlotsHaveArrays()
public void addChildSlot(ResolvedReferenceField reference)
public void addSourceBlock(ExecutionBlock source)
public QueryPlanNode getQueryPlanNode()
public ResolvedReferenceField getReference()
public CompositeMetadata getMetadata()
public Path[] getIdentityFields()
public List<ExecutionBlock> getSourceBlocks()
public DocIdExtractor getIdExtractor()
public <X> X getStep(Class<X> clazz)
public void registerStep(Step<?> step)
public Step<ResultDocument> getResultStep()
public void setResultStep(Step<ResultDocument> resultStep)
public void setResultStep(Source<ResultDocument> resultStep)
public AssociationQuery getAssociationQueryForEdge(ExecutionBlock sourceBlock)
public void setAssociationQuery(ExecutionBlock sourceBlock, AssociationQuery q)
public com.fasterxml.jackson.databind.JsonNode toJson()
public com.fasterxml.jackson.databind.JsonNode explain(ExecutionContext ctx)
Copyright © 2016. All rights reserved.