public static final class LookupOperation.LookupOperationBuilder extends Object implements LookupOperation.FromBuilder, LookupOperation.LocalFieldBuilder, LookupOperation.ForeignFieldBuilder, LookupOperation.AsBuilder
LookupOperation creation.| Constructor and Description |
|---|
LookupOperationBuilder() |
| Modifier and Type | Method and Description |
|---|---|
LookupOperation |
as(String name) |
LookupOperation.AsBuilder |
foreignField(String name) |
LookupOperation.LocalFieldBuilder |
from(String name) |
LookupOperation.ForeignFieldBuilder |
localField(String name) |
static LookupOperation.FromBuilder |
newBuilder()
Creates new builder for
LookupOperation. |
public static LookupOperation.FromBuilder newBuilder()
LookupOperation.public LookupOperation.LocalFieldBuilder from(String name)
from in interface LookupOperation.FromBuildername - the collection in the same database to perform the join with, must not be null or empty.public LookupOperation as(String name)
as in interface LookupOperation.AsBuildername - the name of the new array field to add to the input documents, must not be null or empty.public LookupOperation.AsBuilder foreignField(String name)
foreignField in interface LookupOperation.ForeignFieldBuildername - the field from the documents in the from collection, must not be null or empty.public LookupOperation.ForeignFieldBuilder localField(String name)
localField in interface LookupOperation.LocalFieldBuildername - the field from the documents input to the $lookup stage, must not be null or
empty.Copyright © 2011–2020 Pivotal Software, Inc.. All rights reserved.