public class LookupOperation extends Object implements FieldsExposingAggregationOperation, FieldsExposingAggregationOperation.InheritsFieldsAggregationOperation
$lookup
-operation. We recommend to use the static factory method
Aggregation.lookup(String, String, String, String)
instead of creating instances of this class directly.Modifier and Type | Class and Description |
---|---|
static interface |
LookupOperation.AsBuilder |
static interface |
LookupOperation.ForeignFieldBuilder |
static interface |
LookupOperation.FromBuilder |
static interface |
LookupOperation.LocalFieldBuilder |
static class |
LookupOperation.LookupOperationBuilder
Builder for fluent
LookupOperation creation. |
FieldsExposingAggregationOperation.InheritsFieldsAggregationOperation
Constructor and Description |
---|
LookupOperation(Field from,
Field localField,
Field foreignField,
Field as)
Creates a new
LookupOperation for the given Field s. |
Modifier and Type | Method and Description |
---|---|
ExposedFields |
getFields()
Returns the fields exposed by the
AggregationOperation . |
boolean |
inheritsFields() |
static LookupOperation.FromBuilder |
newLookup()
Get a builder that allows creation of
LookupOperation . |
com.mongodb.DBObject |
toDBObject(AggregationOperationContext context)
|
public ExposedFields getFields()
FieldsExposingAggregationOperation
AggregationOperation
.getFields
in interface FieldsExposingAggregationOperation
public boolean inheritsFields()
inheritsFields
in interface FieldsExposingAggregationOperation
public com.mongodb.DBObject toDBObject(AggregationOperationContext context)
AggregationOperation
toDBObject
in interface AggregationOperation
public static LookupOperation.FromBuilder newLookup()
LookupOperation
.Copyright © 2011–2018 Pivotal Software, Inc.. All rights reserved.