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