Class WindowAggregationProperties.WindowAggregationPropertiesBuilder
java.lang.Object
cern.nxcals.api.custom.service.aggregation.WindowAggregationProperties.WindowAggregationPropertiesBuilder
- Enclosing class:
WindowAggregationProperties
-
Method Summary
Modifier and TypeMethodDescriptionaggregationField(String aggregationField) build()function(@NonNull AggregationFunction function) fundamentalFilter(FundamentalFilter fundamentalFilter) fundamentalFilters(Collection<? extends FundamentalFilter> fundamentalFilters) interval(long amount, @NonNull TemporalUnit unit) Defines the interval duration for the time window of the data aggregation action.timeWindow(@NonNull TimeWindow tw) timeWindow(@NonNull Instant startTime, @NonNull Instant endTime) toString()
-
Method Details
-
timeWindow
public WindowAggregationProperties.WindowAggregationPropertiesBuilder timeWindow(@NonNull @NonNull Instant startTime, @NonNull @NonNull Instant endTime) -
timeWindow
public WindowAggregationProperties.WindowAggregationPropertiesBuilder timeWindow(@NonNull @NonNull TimeWindow tw) -
interval
public WindowAggregationProperties.WindowAggregationPropertiesBuilder interval(long amount, @NonNull @NonNull 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
-
function
public WindowAggregationProperties.WindowAggregationPropertiesBuilder function(@NonNull @NonNull AggregationFunction function) - Returns:
this.
-
aggregationField
public WindowAggregationProperties.WindowAggregationPropertiesBuilder aggregationField(String aggregationField) - Returns:
this.
-
fundamentalFilter
public WindowAggregationProperties.WindowAggregationPropertiesBuilder fundamentalFilter(FundamentalFilter fundamentalFilter) -
fundamentalFilters
public WindowAggregationProperties.WindowAggregationPropertiesBuilder fundamentalFilters(Collection<? extends FundamentalFilter> fundamentalFilters) -
clearFundamentalFilters
-
toString
-