public static final class GraphLookupOperation.GraphLookupOperationBuilder extends Object
| Modifier | Constructor and Description |
|---|---|
protected |
GraphLookupOperationBuilder(String from,
List<? extends Object> startWith,
String connectFrom,
String connectTo) |
| Modifier and Type | Method and Description |
|---|---|
GraphLookupOperation |
as(String fieldName)
Set the name of the array field added to each output document and return the final
GraphLookupOperation. |
GraphLookupOperation.GraphLookupOperationBuilder |
depthField(String fieldName)
Optionally add a depth field fieldName to each traversed document in the search path.
|
GraphLookupOperation.GraphLookupOperationBuilder |
maxDepth(long numberOfRecursions)
Optionally limit the number of recursions.
|
GraphLookupOperation.GraphLookupOperationBuilder |
restrict(CriteriaDefinition criteriaDefinition)
Optionally add a query specifying conditions to the recursive search.
|
public GraphLookupOperation.GraphLookupOperationBuilder maxDepth(long numberOfRecursions)
numberOfRecursions - must be greater or equal to zero.public GraphLookupOperation.GraphLookupOperationBuilder depthField(String fieldName)
fieldName - must not be null or empty.public GraphLookupOperation.GraphLookupOperationBuilder restrict(CriteriaDefinition criteriaDefinition)
criteriaDefinition - must not be null.public GraphLookupOperation as(String fieldName)
GraphLookupOperation.
Contains the documents traversed in the $graphLookup stage to reach the document.fieldName - must not be null or empty.GraphLookupOperation.Copyright © 2011–2020 Pivotal Software, Inc.. All rights reserved.