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
-
-
-
Method Detail
-
timeWindow
public WindowAggregationProperties.WindowAggregationPropertiesBuilder timeWindow(@NonNull @NonNull java.time.Instant startTime, @NonNull @NonNull java.time.Instant endTime)
-
timeWindow
public WindowAggregationProperties.WindowAggregationPropertiesBuilder timeWindow(@NonNull @NonNull TimeWindow tw)
-
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
.
-
fundamentalFilter
public WindowAggregationProperties.WindowAggregationPropertiesBuilder fundamentalFilter(cern.nxcals.api.custom.domain.FundamentalFilter fundamentalFilter)
-
fundamentalFilters
public WindowAggregationProperties.WindowAggregationPropertiesBuilder fundamentalFilters(java.util.Collection<? extends cern.nxcals.api.custom.domain.FundamentalFilter> fundamentalFilters)
-
clearFundamentalFilters
public WindowAggregationProperties.WindowAggregationPropertiesBuilder clearFundamentalFilters()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-