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 Fields. |
| 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()
FieldsExposingAggregationOperationAggregationOperation.getFields in interface FieldsExposingAggregationOperationpublic com.mongodb.DBObject toDBObject(AggregationOperationContext context)
AggregationOperationtoDBObject in interface AggregationOperationpublic static LookupOperation.FromBuilder newLookup()
LookupOperation.Copyright © 2011–2018 Pivotal Software, Inc.. All rights reserved.