Class DuplicateKeyTableFlush
java.lang.Object
com.nt.udc.processor.enhancer.dupremover.DuplicateKeyTableFlush
- All Implemented Interfaces:
FlushHandler
This class handles basic flushing-related functionality.
Complicated flushing procedures should go in separate classes that
are specifically written for their needs. All and any flushing-related
capabilities do not necessarily belong in here.
-
Constructor Summary
ConstructorsConstructorDescriptionDuplicateKeyTableFlush(ConfigIfc config, LoggerIfc logger, DuplicateKeyTable table) -
Method Summary
Modifier and TypeMethodDescriptionvoidFlushes the complete table.voidflushRecord(Object obj) Flushes the given key from the table.protected voidvoidFlushes the table based on whether the "FlushOnStartup" configuration setting is set to true.int[]Returns the fields that should be stored in a newly created record entry.
-
Constructor Details
-
DuplicateKeyTableFlush
-
-
Method Details
-
recordInitFields
public int[] recordInitFields()Returns the fields that should be stored in a newly created record entry. The fields returned are those that this object uses/knows about.- Returns:
- Array of integers, representing the fields to initialize.
-
flushRecord
Flushes the given key from the table.- Specified by:
flushRecordin interfaceFlushHandler- Parameters:
nar- NAR to flush to the next node
-
initialFlush
public void initialFlush()Flushes the table based on whether the "FlushOnStartup" configuration setting is set to true. -
completeFlush
public void completeFlush()Flushes the complete table. -
getConfigData
protected void getConfigData()
-