Class DuplicateKeyTable
java.lang.Object
com.nt.udc.processor.enhancer.dupremover.DuplicateKeyTable
-
Constructor Summary
ConstructorsConstructorDescriptionDuplicateKeyTable
(ConfigIfc config, LoggerIfc logger, Factory factory, File scratchDir) Creates the base object. -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
Closes the tableboolean
containsKey
(NARKey key) Returns whether a given key exists in the tableboolean
containsKey
(Object key) Gets a NAR from the table according to the given key.protected void
boolean
isEmpty()
Returns whether the table is empty.boolean
keys()
Returns an Enumeration of keys.void
open()
Opens the table.void
Puts a NAR into the table, according to the given key.Removes a NAR from the table, and returns the element at the key.int
size()
Returns the size of the table.
-
Constructor Details
-
DuplicateKeyTable
Creates the base object.- Parameters:
table
- Active record storage table.
-
-
Method Details
-
getConfigData
protected void getConfigData() -
open
public void open()Opens the table. -
close
public void close()Closes the table -
containsKey
Returns whether a given key exists in the table- Parameters:
key
- Key to look for- Returns:
- true, if the key exists
-
containsKey
-
get
Gets a NAR from the table according to the given key.- Parameters:
key
- Key of the NAR in the table- Returns:
- NAR, according to the given key
-
get
-
isEmpty
public boolean isEmpty()Returns whether the table is empty.- Returns:
- true, if the table is empty
-
keys
Returns an Enumeration of keys.- Returns:
- Enumeration of all the keys
-
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.- Parameters:
key
- Key of the record to remove- Returns:
- record at the key, or NULL if no record was found
-
remove
-
size
public int size()Returns the size of the table. -
isHealthy
public boolean isHealthy()
-