Package net.pricefx.formulaengine
Interface DatamartContext.DataSlice
- All Known Implementing Classes:
DMDataSlice
- Enclosing interface:
DatamartContext
public static interface DatamartContext.DataSlice
A DataSlice defines a set of filters to be applied to a PA DataSet (Datamart, DataSource...).
A typical case is set of FC dimension (field,value) pairs. In RebateManager a combination of a TimePeriod, CustomerGroup
and ProductGroup is quite common. Complete generic
Filter
s can be used as well.
Inclusions and exclusions are all OR-ed together. They are then combined as (inclusions AND NOT exclusions), i.e.
( (inclusion1 OR inclusion2 OR inclusion3...) AND NOT (exclusion1 OR exclusion2...) )
.
When a TimePeriod is used, the slice also needs to know the name of the date dimension field to match to. This field is set in the constructor and is common to all TimePeriods used.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
void
clear()
void
exclude
(CalendarUtil.TimePeriod timePeriod) void
exclude
(CustomerGroup customerGroup) void
exclude
(ProductGroup productGroup) void
include
(CalendarUtil.TimePeriod timePeriod) void
include
(CustomerGroup customerGroup) void
include
(ProductGroup productGroup)
-
Method Details
-
include
-
include
-
exclude
-
exclude
-
include
-
exclude
-
addFilter
-
clear
void clear()
-