public final class Searches extends Object
| Modifier and Type | Method and Description |
|---|---|
static QueryExpression |
and(List<QueryExpression> list) |
static QueryExpression |
and(QueryExpression... q)
Combines queries with AND.
|
static void |
associateDocs(ResultDocument parentDoc,
ChildSlot parentSlot,
List<ResultDocument> childDocs,
AssociationQuery aq)
Associate child documents with their parents.
|
static void |
associateDocs(ResultDocument parentDoc,
List<ResultDocument> childDocs,
AssociationQuery aq)
Associates child documents obtained from 'aq' to all the slots in the
parent document
|
static QueryExpression |
combine(NaryLogicalOperator op,
List<QueryExpression> list) |
static Map<ChildSlot,QueryExpression> |
writeChildQueriesFromParentDoc(AssociationQuery aq,
ResultDocument parentDocument)
Given a parent document and an association query, returns a query for
each slot that will be used to retrieve the child documents that will be
attached to that slot
|
static List<QueryExpression> |
writeQueriesForJoinTuple(JoinTuple tuple,
ExecutionBlock childBlock)
Writes queries form a join tuple
|
public static Map<ChildSlot,QueryExpression> writeChildQueriesFromParentDoc(AssociationQuery aq, ResultDocument parentDocument)
public static List<QueryExpression> writeQueriesForJoinTuple(JoinTuple tuple, ExecutionBlock childBlock)
public static void associateDocs(ResultDocument parentDoc, List<ResultDocument> childDocs, AssociationQuery aq)
public static void associateDocs(ResultDocument parentDoc, ChildSlot parentSlot, List<ResultDocument> childDocs, AssociationQuery aq)
parentDoc - The parent documentparentSlot - The slot in parent docuemnt to which the results will
be attachedchildDocs - The child documentsaq - The association query from parent to child. This may not be the
same association query between the blocks. If the child block is before
the parent block, a new aq must be constructed for the association from
the parent to the childpublic static QueryExpression and(QueryExpression... q)
public static QueryExpression and(List<QueryExpression> list)
public static QueryExpression combine(NaryLogicalOperator op, List<QueryExpression> list)
Copyright © 2016. All rights reserved.