laur.dm.ar
Class DBCacheWriter

java.lang.Object
  |
  +--laur.dm.ar.DBCacheWriter

public class DBCacheWriter
extends java.lang.Object

A DBCacheWriter serializes itemsets to a cache.


Constructor Summary
DBCacheWriter(java.lang.String name)
          Initializes a DBCacheWriter to write to the specified cache file.
 
Method Summary
 void close()
          Closes the cache file.
static void main(java.lang.String[] args)
          sample usage and testing
 void writeItemset(Itemset is)
          Write an itemset to the cache.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DBCacheWriter

public DBCacheWriter(java.lang.String name)
              throws java.io.IOException
Initializes a DBCacheWriter to write to 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

writeItemset

public void writeItemset(Itemset is)
                  throws java.io.IOException
Write an itemset to the cache.
Throws:
java.io.IOException - from java.io package

main

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