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.
 
Method Summary
 void close()
          Closes the cache file.
 Itemset getFirstItemset()
          Return the first itemset from cache.
 Itemset getNextItemset()
          Return next itemset from cache.
static void main(java.lang.String[] args)
          sample usage and testing
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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 null
java.io.IOException - from java.io package
Method Detail

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 package
java.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 reached
java.io.IOException - from java.io package
java.lang.ClassNotFoundException - from java.io package

main

public static void main(java.lang.String[] args)
sample usage and testing