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 AggregatorModule
public int[] recordInitFields()
recordInitFields
in class AggregatorModule
public void shutdown()
shutdown
in class AggregatorModule
public 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