类 KStarCache.CacheTable

java.lang.Object
weka.classifiers.lazy.kstar.KStarCache.CacheTable
所有已实现的接口:
Serializable, RevisionHandler
封闭类:
KStarCache

public class KStarCache.CacheTable extends Object implements Serializable, RevisionHandler
A custom hashtable class to support the caching system.
另请参阅:
  • 构造器概要

    构造器
    构造器
    说明
    Constructs a new hashtable with a default capacity and load factor.
    CacheTable(int size, float loadFactor)
    Constructs a new hashtable with a default capacity and load factor.
  • 方法概要

    修饰符和类型
    方法
    说明
    void
    Clears this hashtable so that it contains no keys.
    boolean
    containsKey(double key)
    Tests if the specified double is a key in this hashtable.
    getEntry(double key)
    Returns the table entry to which the specified key is mapped in this hashtable.
    Returns the revision string.
    void
    insert(double key, double value, double pmiss)
    Inserts a new entry in the hashtable using the specified key.
    boolean
    Tests if this hashtable maps no keys to values.
    int
    Returns the number of keys in this hashtable.

    从类继承的方法 java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 构造器详细资料

    • CacheTable

      public CacheTable(int size, float loadFactor)
      Constructs a new hashtable with a default capacity and load factor.
    • CacheTable

      public CacheTable()
      Constructs a new hashtable with a default capacity and load factor.
  • 方法详细资料

    • containsKey

      public boolean containsKey(double key)
      Tests if the specified double is a key in this hashtable.
    • insert

      public void insert(double key, double value, double pmiss)
      Inserts a new entry in the hashtable using the specified key. If the key already exist in the hashtable, do nothing.
    • getEntry

      public KStarCache.TableEntry getEntry(double key)
      Returns the table entry to which the specified key is mapped in this hashtable.
      返回:
      a table entry.
    • size

      public int size()
      Returns the number of keys in this hashtable.
      返回:
      the number of keys in this hashtable.
    • isEmpty

      public boolean isEmpty()
      Tests if this hashtable maps no keys to values.
      返回:
      true if this hastable maps no keys to values.
    • clear

      public void clear()
      Clears this hashtable so that it contains no keys.
    • getRevision

      public String getRevision()
      Returns the revision string.
      指定者:
      getRevision 在接口中 RevisionHandler
      返回:
      the revision