public class FlushConditions
extends java.lang.Object
Constructor and Description |
---|
FlushConditions(AggrConfig config,
LoggerIfc logger,
AggrTable table,
java.io.File traceFile)
Creates an object to handle the flushing conditions
|
Modifier and Type | Method and Description |
---|---|
boolean |
checkFinishedRecord(NAR nar)
Checks if the given record should be removed from the table,
based on two configuration items: "FinishAttrID" and "FinishValue".
|
boolean |
checkImmediateFlush(NAR nar)
Checks the immediate record flush criteria, as defined by
the configuration settings "ImmediateFinishAttrID" and
"ImmediateFinishValue".
|
NARKey[] |
checkRecordSetFlush(NAR nar)
This method finds those records of a set, where the
set is defined by a field in the given NAR.
|
protected void |
getConfigData() |
int[] |
recordInitFields()
Returns the fields that should be stored in a newly created
record entry.
|
void |
shutdown() |
public FlushConditions(AggrConfig config, LoggerIfc logger, AggrTable table, java.io.File traceFile)
public int[] recordInitFields()
public void shutdown()
public boolean checkFinishedRecord(NAR nar)
nar
- NAR to checkpublic NARKey[] checkRecordSetFlush(NAR nar)
nar
- NAR, which is used to determine whether
to do the set based flush, and used to define
the setpublic boolean checkImmediateFlush(NAR nar)
nar
- NAR to check for immediate flushprotected void getConfigData()