Package com.mongodb.client.model
Class GraphLookupOptions
- java.lang.Object
-
- com.mongodb.client.model.GraphLookupOptions
-
public final class GraphLookupOptions extends Object
The options for a graphLookup aggregation pipeline stage- Since:
- 3.4
- MongoDB documentation
- graphLookup
- Since server release
- 3.4
-
-
Constructor Summary
Constructors Constructor Description GraphLookupOptions()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description GraphLookupOptions
depthFieldβ(String field)
The name of the field in which to store the depth valueboolean
equalsβ(Object o)
String
getDepthField()
Integer
getMaxDepth()
Bson
getRestrictSearchWithMatch()
int
hashCode()
GraphLookupOptions
maxDepthβ(Integer max)
Specifies a maximum recursive depth for the $graphLookup.GraphLookupOptions
restrictSearchWithMatchβ(Bson filter)
A document specifying additional conditions for the recursive searchString
toString()
-
-
-
Method Detail
-
depthField
public GraphLookupOptions depthFieldβ(@Nullable String field)
The name of the field in which to store the depth value- Parameters:
field
- the field name- Returns:
- this
-
maxDepth
public GraphLookupOptions maxDepthβ(@Nullable Integer max)
Specifies a maximum recursive depth for the $graphLookup. This number must be non-negative.- Parameters:
max
- the maximum depth- Returns:
- this
-
restrictSearchWithMatch
public GraphLookupOptions restrictSearchWithMatchβ(@Nullable Bson filter)
A document specifying additional conditions for the recursive search- Parameters:
filter
- the filter expression- Returns:
- this
- Since:
- 3.6
-
getRestrictSearchWithMatch
@Nullable public Bson getRestrictSearchWithMatch()
- Returns:
- the filter expression
- Since:
- 3.6
-
-