Class FlexibleAggrTable
java.lang.Object
com.nt.udc.flexibleAggregator.table.FlexibleAggrTable
Currently, this class handles the table functionality of an
aggregator. For the most part, this is just table-related
procedures, including access, initialization and shutdown.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionFlexibleAggrTable(LoggerIfc loggerObj, Factory factory, File scratchDir, int compressionThresholdSetting, String fileNameExtender) Creates the base object. -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Closes the tablebooleanReturns whether a given key exists in the tableget(FlexibleNARKey key) Don't use this.booleankeys()Keys of all the records in the tablevoidopen()Opens the table.voidput(FlexibleNARKey key, NAR record) Puts a NAR into the table, according to the given key.remove(FlexibleNARKey key) Removes a NAR from the table, and returns the element at the key.Clone of remove(), but with delayed NAR Parsing.voidshutdown()Shuts down this object.
-
Field Details
-
tableName
-
-
Constructor Details
-
Method Details
-
open
public void open()Opens the table. -
close
public void close()Closes the table -
shutdown
public void shutdown()Shuts down this object. -
put
Puts a NAR into the table, according to the given key.- Parameters:
key- Index of the NARrecord- NAR to put
-
remove
Removes a NAR from the table, and returns the element at the key. Only ever allow returning the NAR when removing, otherwise there would be synchronization issues.- Parameters:
key- Key of the record to remove- Returns:
- record at the key, or NULL if no record was found
-
removeDelayedNARParsing
Clone of remove(), but with delayed NAR Parsing. For use by MTAggrDispatcher ONLY.- Parameters:
key-- Returns:
- whatever FileHashTable.removeDelayedNARParsing returns, either NAR or ByteArray object.
-
keys
Keys of all the records in the table- Returns:
- Enumeration of all the keys
-
containsKey
Returns whether a given key exists in the table- Parameters:
key- Key to look for- Returns:
- true, if the key exists
-
isHealthy
public boolean isHealthy() -
get
Don't use this. Use remove*() for normal operations. (MXAggrDispatcher is using this for specific data recovery scenerios...)- Parameters:
key-- Returns:
-