public class ResultDocument extends Object
| Constructor and Description |
|---|
ResultDocument(ExecutionBlock block,
JsonDoc doc) |
ResultDocument(JsonDoc newDoc,
ResultDocument copy)
Copy constructor, copies everything from 'copy', but replaces the
document with 'newDoc'
|
| Modifier and Type | Method and Description |
|---|---|
Map<ChildSlot,BindQuery> |
getBindersForChild(AssociationQuery childAq)
If this document is the parent document of a destination block documents,
then the child documents will be inserted into the slots of this
document.
|
List<BindQuery> |
getBindersForParent(AssociationQuery parentAq)
This document is a child document, and it will be used to locate the
parent.
|
BindQuery |
getBindersForSlot(ChildSlot slot,
AssociationQuery childAq)
Returns a query binder for a slot.
|
ExecutionBlock |
getBlock()
Returns the execution block produced this document
|
JsonDoc |
getDoc() |
DocId |
getDocId()
Returns the document identifier.
|
Map<ResolvedReferenceField,List<ChildSlot>> |
getSlots()
Returns the slots for this document
|
void |
insertChildDocs(ChildSlot slot,
java.util.stream.Stream<ResultDocument> childDocs)
Insert the child documents into a slot of this document
|
String |
toString() |
public ResultDocument(ExecutionBlock block, JsonDoc doc)
public ResultDocument(JsonDoc newDoc, ResultDocument copy)
public JsonDoc getDoc()
public ExecutionBlock getBlock()
public DocId getDocId()
public Map<ResolvedReferenceField,List<ChildSlot>> getSlots()
public Map<ChildSlot,BindQuery> getBindersForChild(AssociationQuery childAq)
public BindQuery getBindersForSlot(ChildSlot slot, AssociationQuery childAq)
public List<BindQuery> getBindersForParent(AssociationQuery parentAq)
public void insertChildDocs(ChildSlot slot, java.util.stream.Stream<ResultDocument> childDocs)
parentDoc - The parent documentchildDocs - A list of child docsdest - The destination field name to insert the result setCopyright © 2016. All rights reserved.