Module spring.data.mongodb
Class DensifyOperation.DensifyRange
java.lang.Object
org.springframework.data.mongodb.core.aggregation.DensifyOperation.DensifyRange
- All Implemented Interfaces:
DensifyOperation.Range
- Direct Known Subclasses:
DensifyOperation.BoundedRange
- Enclosing class:
- DensifyOperation
public abstract static class DensifyOperation.DensifyRange
extends Object
implements DensifyOperation.Range
Base
DensifyOperation.Range implementation.- Author:
- Christoph Strobl
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionincrementBy(Number step) Set the increment for the value.incrementBy(Number step, DensifyOperation.DensifyUnit unit) Set the increment for the value.org.bson.DocumentObtain the document representation of the window in the givencontext.Set theunitfor the step field.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.DensifyOperation.Range
toDocument
-
Constructor Details
-
DensifyRange
-
-
Method Details
-
toDocument
Description copied from interface:DensifyOperation.RangeObtain the document representation of the window in the givencontext.- Specified by:
toDocumentin interfaceDensifyOperation.Range- Returns:
- never null.
-
incrementBy
Set the increment for the value.- Parameters:
step- must not be null.- Returns:
- this.
-
incrementBy
Set the increment for the value.- Parameters:
step- must not be null.- Returns:
- this.
-
unit
Set theunitfor the step field.- Parameters:
unit-- Returns:
- this.
-