org.egothor.robot.index
Class TermsFastWriter

java.lang.Object
  extended by org.egothor.robot.index.TermsFastWriter

public class TermsFastWriter
extends java.lang.Object

TermsFastWriter implements a writer of the structure that is described in Terms.

Author:
Leo Galambos

Constructor Summary
TermsFastWriter(java.lang.String location)
          Constructor for the TermsFastWriter object.
 
Method Summary
 boolean addElement(IListMetadataWrite obj)
          Appends the given element with the given key to the structure.
 void close()
          Flush all open buffers and close the files of the data structure.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TermsFastWriter

public TermsFastWriter(java.lang.String location)
                throws java.io.IOException
Constructor for the TermsFastWriter object. The writer will store the data structure to the given directory which must exist.

Parameters:
location - the directory to store the data structure in
Throws:
java.io.IOException - if an I/O error occurs
java.io.IOException - if an I/O error occurs
Method Detail

addElement

public boolean addElement(IListMetadataWrite obj)
Appends the given element with the given key to the structure.

Parameters:
obj - the element.
Returns:
Description of the Return Value

close

public void close()
Flush all open buffers and close the files of the data structure.