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) Specifiesinvalid input: 'variables) that can be used in the {@link PipelineBuilder#pipeline(AggregationOperation...) pipeline stages}. @param let must not be {@literal null}. @return never {@literal null}. @see PipelineBuilder'localField(String name) static LookupOperation.FromBuilderCreates new builder forLookupOperation.pipeline(AggregationPipeline pipeline) Specifies thepipelinethat determines the resulting documents.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface LookupOperation.LetBuilder
letMethods inherited from interface 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.LetBuilderSpecifiesinvalid input: 'variables) that can be used in the {@link PipelineBuilder#pipeline(AggregationOperation...) pipeline stages}. @param let must not be {@literal null}. @return never {@literal null}. @see PipelineBuilder'- Specified by:
letin interfaceLookupOperation.LetBuilder
-
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.
-