public class TimeGrouper extends AggregatorModule
config, logger| Constructor and Description |
|---|
TimeGrouper(ConfigIfc config,
LoggerIfc logger)
Creates the object with the node configuration and logger objects
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
getConfigData()
Retrieves time grouper related configuration settings
|
boolean |
groupRecord(NAR nar)
Groups the given NAR's time field.
|
boolean |
groupRecord(NAR nar,
int ID)
Groups the given NAR's time field.
|
int[] |
recordInitFields()
Returns those fields needed by a newly created record
|
void |
setMinutesPerGroup(int m)
Sets the minutes per time group to the given setting.
|
void |
shutdown()
Performs shutdown-related procedures
|
protected void getConfigData()
getConfigData in class AggregatorModulepublic int[] recordInitFields()
recordInitFields in class AggregatorModulepublic void shutdown()
shutdown in class AggregatorModulepublic void setMinutesPerGroup(int m)
m - new minutes-per-group settingpublic boolean groupRecord(NAR nar)
nar - NAR to grouppublic boolean groupRecord(NAR nar, int ID)
nar - NAR to groupID - time field ID to group