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.http://docs.mongodb.org/manual/reference/aggregation/lookup/#stage._S_lookup
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 . |
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 com.mongodb.DBObject toDBObject(AggregationOperationContext context)
AggregationOperation
toDBObject
in interface AggregationOperation
public static LookupOperation.FromBuilder newLookup()
LookupOperation
.Copyright © 2011-2015–2017 Pivotal Software, Inc.. All rights reserved.