Class DensifyOperation.DensifyOperationBuilder
java.lang.Object
org.springframework.data.mongodb.core.aggregation.DensifyOperation.DensifyOperationBuilder
- Enclosing class:
- DensifyOperation
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Set the field to densify.fullRange
(Consumer<DensifyOperation.DensifyRange> consumer) Operate on full range.partitionBy
(String... fields) Set the fields used for grouping documents.partitionRange
(Consumer<DensifyOperation.DensifyRange> consumer) Operate on full range.range
(DensifyOperation.Range range) Set the operational range.
-
Constructor Details
-
DensifyOperationBuilder
public DensifyOperationBuilder()
-
-
Method Details
-
densify
Set the field to densify.- Parameters:
fieldname
- must not be null.- Returns:
- this.
-
partitionBy
Set the fields used for grouping documents.- Parameters:
fields
- must not be null.- Returns:
- this.
-
range
Set the operational range.- Parameters:
range
- must not be null.- Returns:
- this.
-
fullRange
public DensifyOperation.DensifyOperationBuilder fullRange(Consumer<DensifyOperation.DensifyRange> consumer) Operate on full range.- Parameters:
consumer
-- Returns:
- this.
-
partitionRange
public DensifyOperation.DensifyOperationBuilder partitionRange(Consumer<DensifyOperation.DensifyRange> consumer) Operate on full range.- Parameters:
consumer
-- Returns:
- this.
-
build
-