Module spring.data.mongodb
Class LookupOperation.LookupOperationBuilder
java.lang.Object
org.springframework.data.mongodb.core.aggregation.LookupOperation.LookupOperationBuilder
- All Implemented Interfaces:
LookupOperation.AsBuilder,LookupOperation.ForeignFieldBuilder,LookupOperation.FromBuilder,LookupOperation.LetBuilder,LookupOperation.LocalFieldBuilder,LookupOperation.PipelineBuilder
- Enclosing class:
- LookupOperation
public static final class LookupOperation.LookupOperationBuilder
extends Object
implements LookupOperation.FromBuilder, LookupOperation.LocalFieldBuilder, LookupOperation.ForeignFieldBuilder, LookupOperation.AsBuilder
Builder for fluent
LookupOperation creation.- Since:
- 1.9
- Author:
- Christoph Strobl
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionforeignField(String name) let(VariableOperators.Let let) Specifiesvariables) that can be used in the {@link PipelineBuilder#pipeline(AggregationOperation...) pipeline stages}.localField(String name) static LookupOperation.FromBuilderCreates new builder forLookupOperation.pipeline(AggregationPipeline pipeline) Specifies thepipelinethat determines the resulting documents.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.data.mongodb.core.aggregation.LookupOperation.LetBuilder
letMethods inherited from interface org.springframework.data.mongodb.core.aggregation.LookupOperation.PipelineBuilder
pipeline
-
Constructor Details
-
LookupOperationBuilder
public LookupOperationBuilder()
-
-
Method Details
-
newBuilder
Creates new builder forLookupOperation.- Returns:
- never null.
-
from
- Specified by:
fromin interfaceLookupOperation.FromBuilder- Parameters:
name- the collection in the same database to perform the join with, must not be null or empty.- Returns:
- never null.
-
foreignField
- Specified by:
foreignFieldin interfaceLookupOperation.ForeignFieldBuilder- Parameters:
name- the field from the documents in thefromcollection, must not be null or empty.- Returns:
- never null.
-
localField
- Specified by:
localFieldin interfaceLookupOperation.LocalFieldBuilder- Parameters:
name- the field from the documents input to the$lookupstage, must not be null or empty.- Returns:
- never null.
-
let
Description copied from interface:LookupOperation.LetBuilderSpecifiesvariables) that can be used in the {@link PipelineBuilder#pipeline(AggregationOperation...) pipeline stages}.- Specified by:
letin interfaceLookupOperation.LetBuilder- Parameters:
let- must not be null.- Returns:
- never null.
- See Also:
-
pipeline
Description copied from interface:LookupOperation.PipelineBuilderSpecifies thepipelinethat determines the resulting documents.- Specified by:
pipelinein interfaceLookupOperation.PipelineBuilder- Parameters:
pipeline- must not be null.- Returns:
- never null.
-
as
- Specified by:
asin interfaceLookupOperation.AsBuilder- Specified by:
asin interfaceLookupOperation.PipelineBuilder- Parameters:
name- the name of the new array field to add to the input documents, must not be null or empty.- Returns:
- new instance of
LookupOperation.
-