Class AggrUtilityFields

java.lang.Object
com.nt.udc.aggregator.AggregatorModule
com.nt.udc.aggregator.util.AggrUtilityFields

public class AggrUtilityFields extends AggregatorModule
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
  • Constructor Details

    • AggrUtilityFields

      public AggrUtilityFields(ConfigIfc config, LoggerIfc logger)
      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 class AggregatorModule
    • getCountFieldID

      public int getCountFieldID()
    • recordInitFields

      public int[] recordInitFields()
      Returns those fields id's needed by a newly created record
      Specified by:
      recordInitFields in class AggregatorModule
      Returns:
      fields ids to include in a new record
    • shutdown

      public void shutdown()
      Performes shutdown-related procedures
      Specified by:
      shutdown in class AggregatorModule
    • incrRecordCount

      public void incrRecordCount(NAR nar)
      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