Module spring.data.mongodb
Class UnwindOperation.UnwindOperationBuilder
java.lang.Object
org.springframework.data.mongodb.core.aggregation.UnwindOperation.UnwindOperationBuilder
- All Implemented Interfaces:
UnwindOperation.EmptyArraysBuilder,UnwindOperation.IndexBuilder,UnwindOperation.PathBuilder
- Enclosing class:
- UnwindOperation
public static final class UnwindOperation.UnwindOperationBuilder
extends Object
implements UnwindOperation.PathBuilder, UnwindOperation.IndexBuilder, UnwindOperation.EmptyArraysBuilder
Builder for fluent
UnwindOperation creation.- Since:
- 1.10
- Author:
- Mark Paluch
-
Method Summary
Modifier and TypeMethodDescriptionarrayIndex(String field) Exposes the array index asfield.static UnwindOperation.PathBuilderCreates new builder forUnwindOperation.Do not expose the array index.Output documents if the array is null or empty.Do not output documents if the array is null or empty.
-
Method Details
-
newBuilder
Creates new builder forUnwindOperation.- Returns:
- never null.
-
preserveNullAndEmptyArrays
Description copied from interface:UnwindOperation.EmptyArraysBuilderOutput documents if the array is null or empty.- Specified by:
preserveNullAndEmptyArraysin interfaceUnwindOperation.EmptyArraysBuilder- Returns:
-
skipNullAndEmptyArrays
Description copied from interface:UnwindOperation.EmptyArraysBuilderDo not output documents if the array is null or empty.- Specified by:
skipNullAndEmptyArraysin interfaceUnwindOperation.EmptyArraysBuilder- Returns:
-
arrayIndex
Description copied from interface:UnwindOperation.IndexBuilderExposes the array index asfield.- Specified by:
arrayIndexin interfaceUnwindOperation.IndexBuilder- Parameters:
field- field name to expose the field array index, must not be null or empty.- Returns:
-
noArrayIndex
Description copied from interface:UnwindOperation.IndexBuilderDo not expose the array index.- Specified by:
noArrayIndexin interfaceUnwindOperation.IndexBuilder- Returns:
-
path
- Specified by:
pathin interfaceUnwindOperation.PathBuilder- Parameters:
path- the path to unwind, must not be null or empty.- Returns:
-