laur.dm.ar
Class DBCacheReader
java.lang.Object
|
+--laur.dm.ar.DBCacheReader
- public class DBCacheReader
- extends java.lang.Object
A DBCacheReader deserializes itemsets from cache.
Constructor Summary |
DBCacheReader(java.lang.String name)
Initializes a DBCacheReader to read from the specified cache file. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DBCacheReader
public DBCacheReader(java.lang.String name)
throws java.io.IOException
- Initializes a DBCacheReader to read from the specified cache file.
- Parameters:
name
- name of the cache file- Throws:
java.lang.IllegalArgumentException
- name
is nulljava.io.IOException
- from java.io package
close
public void close()
throws java.io.IOException
- Closes the cache file.
- Throws:
java.io.IOException
- from java.io package
getFirstItemset
public Itemset getFirstItemset()
throws java.io.IOException,
java.lang.ClassNotFoundException
- Return the first itemset from cache.
- Returns:
- first itemset in cache
- Throws:
java.io.IOException
- from java.io packagejava.lang.ClassNotFoundException
- from java.io package
getNextItemset
public Itemset getNextItemset()
throws java.io.IOException,
java.lang.ClassNotFoundException
- Return next itemset from cache.
- Returns:
- next itemset in cache
- Throws:
java.io.EOFException
- from java.io package, when end of cache
is reachedjava.io.IOException
- from java.io packagejava.lang.ClassNotFoundException
- from java.io package
main
public static void main(java.lang.String[] args)
- sample usage and testing