org.egothor.robot.index
Class ThickFastOut

java.lang.Object
  extended by org.egothor.robot.index.ThickFastOut
All Implemented Interfaces:
BarrelWriter

public class ThickFastOut
extends java.lang.Object
implements BarrelWriter

ThickFastOut.java Created on August 15, 2005, 2:53 AM

Author:
galambos

Constructor Summary
ThickFastOut(java.lang.String location)
          Constructor for the ThickBarrelOut object.
 
Method Summary
 void append(BarrelReader old)
          Appends the given Barrel to this one.
 void appendIList(long max_len, IListReader il)
          Appends the given inverted list to this Barrel.
 void close()
          Close this stream and mark resources for garbage collection.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ThickFastOut

public ThickFastOut(java.lang.String location)
             throws java.io.IOException
Constructor for the ThickBarrelOut object. Calling this constructor creates the location directory and initializes DB files for metadata in that new directory. This constructor allocates the inverted lists single file that is located in a directory location in a file with filename lists .

Parameters:
location - the directory to be created
Throws:
java.io.IOException - if the directory cannot be created
Method Detail

close

public void close()
Close this stream and mark resources for garbage collection.

Specified by:
close in interface BarrelWriter

append

public void append(BarrelReader old)
            throws java.io.IOException
Appends the given Barrel to this one. Access to this method should be synchronized,

Specified by:
append in interface BarrelWriter
Parameters:
old - the Barrel to add to this one
Throws:
java.io.IOException - if an I/O error occurs

appendIList

public void appendIList(long max_len,
                        IListReader il)
                 throws java.io.IOException
Appends the given inverted list to this Barrel. All document numbers are increased by the remap value.

Parameters:
max_len - Description of the Parameter
il - the inverted list to add
Throws:
java.io.IOException - if an I/O error occurs