Package com.nt.udc.aggregator.util
Class AggrUtilityFields
java.lang.Object
com.nt.udc.aggregator.AggregatorModule
com.nt.udc.aggregator.util.AggrUtilityFields
This class handles those general, basic utility fields that
don't really fit in well.
Currently, the following fields are supported by this class:
- record count, as determined by the number of records aggregated
into the given record
-
Field Summary
Fields inherited from class com.nt.udc.aggregator.AggregatorModule
config, logger
-
Constructor Summary
ConstructorsConstructorDescriptionAggrUtilityFields
(ConfigIfc config, LoggerIfc logger) Creates the utility field object with the configuration and logger object -
Method Summary
Modifier and TypeMethodDescriptionprotected void
Retrives the utility-specific configuration parametersint
void
incrRecordCount
(NAR nar) Increases the "record count" field, where the field is defined with the "CountField" rules setting.int[]
Returns those fields id's needed by a newly created recordvoid
shutdown()
Performes shutdown-related procedures
-
Constructor Details
-
AggrUtilityFields
Creates the utility field object with the configuration and logger object
-
-
Method Details
-
getConfigData
protected void getConfigData()Retrives the utility-specific configuration parameters- Specified by:
getConfigData
in classAggregatorModule
-
getCountFieldID
public int getCountFieldID() -
recordInitFields
public int[] recordInitFields()Returns those fields id's needed by a newly created record- Specified by:
recordInitFields
in classAggregatorModule
- Returns:
- fields ids to include in a new record
-
shutdown
public void shutdown()Performes shutdown-related procedures- Specified by:
shutdown
in classAggregatorModule
-
incrRecordCount
Increases the "record count" field, where the field is defined with the "CountField" rules setting. The record count keeps track of how many records were aggregated into this particular record.- Parameters:
nar
- Record that needs its count increased
-