wpi.associations.arminerSequence
Class DBCacheWriter

java.lang.Object
  extended bywpi.associations.arminerSequence.DBCacheWriter

public class DBCacheWriter
extends java.lang.Object

Serializes itemsets to a cache file.

Author:
Dana Cristofor, Laurentiu Cristofor

Field Summary
private  java.lang.String filename
           
private  java.io.ObjectOutputStream outstream
           
 
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)
          for testing purposes only !!!
 void writeItemset(ARMinerItemset 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
 

Field Detail

outstream

private java.io.ObjectOutputStream outstream

filename

private java.lang.String filename
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(ARMinerItemset 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)
for testing purposes only !!!