Class WindowAggregationProperties.WindowAggregationPropertiesBuilder
- java.lang.Object
-
- cern.nxcals.api.custom.service.aggregation.WindowAggregationProperties.WindowAggregationPropertiesBuilder
-
- Enclosing class:
- WindowAggregationProperties
public static class WindowAggregationProperties.WindowAggregationPropertiesBuilder extends java.lang.Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description WindowAggregationProperties.WindowAggregationPropertiesBuilderaggregationField(java.lang.String aggregationField)WindowAggregationPropertiesbuild()WindowAggregationProperties.WindowAggregationPropertiesBuilderfunction(@NonNull AggregationFunction function)WindowAggregationProperties.WindowAggregationPropertiesBuilderinterval(long amount, @NonNull java.time.temporal.TemporalUnit unit)Defines the interval duration for the time window of the data aggregation action.WindowAggregationProperties.WindowAggregationPropertiesBuildertimeWindow(@NonNull java.time.Instant startTime, @NonNull java.time.Instant endTime)java.lang.StringtoString()
-
-
-
Method Detail
-
timeWindow
public WindowAggregationProperties.WindowAggregationPropertiesBuilder timeWindow(@NonNull @NonNull java.time.Instant startTime, @NonNull @NonNull java.time.Instant endTime)
-
interval
public WindowAggregationProperties.WindowAggregationPropertiesBuilder interval(long amount, @NonNull @NonNull java.time.temporal.TemporalUnit unit)
Defines the interval duration for the time window of the data aggregation action.- Parameters:
amount- the amount of the interval duration, measured in terms of the unit. Parameter should be a positive value and would be validated against that expectationunit- the unit that the duration is measured in, must have an exact duration, not null
-
build
public WindowAggregationProperties build()
-
function
public WindowAggregationProperties.WindowAggregationPropertiesBuilder function(@NonNull @NonNull AggregationFunction function)
- Returns:
this.
-
aggregationField
public WindowAggregationProperties.WindowAggregationPropertiesBuilder aggregationField(java.lang.String aggregationField)
- Returns:
this.
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-