Class DuplicateKeyTable

java.lang.Object
com.nt.udc.processor.enhancer.dupremover.DuplicateKeyTable

public class DuplicateKeyTable extends Object
  • Constructor Details

    • DuplicateKeyTable

      public DuplicateKeyTable(ConfigIfc config, LoggerIfc logger, Factory factory, File scratchDir)
      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

      public boolean containsKey(NARKey key)
      Returns whether a given key exists in the table
      Parameters:
      key - Key to look for
      Returns:
      true, if the key exists
    • containsKey

      public boolean containsKey(Object key)
    • get

      public NARKey get(NARKey key)
      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

      public Object get(Object key)
    • isEmpty

      public boolean isEmpty()
      Returns whether the table is empty.
      Returns:
      true, if the table is empty
    • keys

      public Enumeration keys()
      Returns an Enumeration of keys.
      Returns:
      Enumeration of all the keys
    • put

      public void put(NARKey key, NARKey record)
      Puts a NAR into the table, according to the given key.
      Parameters:
      key - Index of the NAR
      record - NAR to put
    • remove

      public NARKey remove(NARKey key)
      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

      public Object remove(Object key)
    • size

      public int size()
      Returns the size of the table.
    • isHealthy

      public boolean isHealthy()