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
-
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.Document
Obtain the document representation of the window in the givencontext
.Set theunit
for the step field.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.springframework.data.mongodb.core.aggregation.DensifyOperation.Range
toDocument
-
Constructor Details
-
DensifyRange
-
-
Method Details
-
toDocument
Description copied from interface:DensifyOperation.Range
Obtain the document representation of the window in the givencontext
.- Specified by:
toDocument
in 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 theunit
for the step field.- Parameters:
unit
-- Returns:
- this.
-