All Packages  Class Hierarchy  This Package  Previous  Next  Index  WEKA's home

Class weka.classifiers.kstar.KStarCache.CacheTable

java.lang.Object
    |
    +----weka.classifiers.kstar.KStarCache.CacheTable

public class KStarCache.CacheTable
extends java.lang.Object
A custom hashtable class to support the caching system.


Constructor Index

 o KStarCache.CacheTable(KStarCache)
Constructs a new hashtable with a default capacity and load factor.
 o KStarCache.CacheTable(KStarCache, int, float)
Constructs a new hashtable with a default capacity and load factor.

Method Index

 o clear()
Clears this hashtable so that it contains no keys.
 o containsKey(double)
Tests if the specified double is a key in this hashtable.
 o getEntry(double)
Returns the table entry to which the specified key is mapped in this hashtable.
 o insert(double, double, double)
Inserts a new entry in the hashtable using the specified key.
 o isEmpty()
Tests if this hashtable maps no keys to values.
 o size()
Returns the number of keys in this hashtable.

Constructor Detail

 o KStarCache.CacheTable
public KStarCache.CacheTable(KStarCache this$0,
                             int size,
                             float loadFactor)
          Constructs a new hashtable with a default capacity and load factor.
 o KStarCache.CacheTable
public KStarCache.CacheTable(KStarCache this$0)
          Constructs a new hashtable with a default capacity and load factor.

Method Detail

 o containsKey
public boolean containsKey(double key)
          Tests if the specified double is a key in this hashtable.
 o 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.
 o getEntry
public KStarCache.TableEntry getEntry(double key)
          Returns the table entry to which the specified key is mapped in this hashtable.
Returns:
a table entry.
 o size
public int size()
          Returns the number of keys in this hashtable.
Returns:
the number of keys in this hashtable.
 o isEmpty
public boolean isEmpty()
          Tests if this hashtable maps no keys to values.
Returns:
true if this hastable maps no keys to values.
 o clear
public void clear()
          Clears this hashtable so that it contains no keys.

All Packages  Class Hierarchy  This Package  Previous  Next  Index  WEKA's home