org.egothor.store
Class ThickBarrelSortedOut

java.lang.Object
  extended by org.egothor.store.ThickBarrelOut
      extended by org.egothor.store.ThickBarrelSortedOut
All Implemented Interfaces:
BarrelWriter

public class ThickBarrelSortedOut
extends ThickBarrelOut

This object implements a barrel that writes its inverted lists to a single file. This class is a core implementation of a barrel writer with sorted inverted list by some criteria.

Author:
Leo Galambos

Constructor Summary
ThickBarrelSortedOut(java.lang.String location, IntegerArray rank)
           
 
Method Summary
 void append(BarrelReader old)
          Appends the given Barrel to this one.
 void close()
          Close this stream and mark resources for garbage collection.
 
Methods inherited from class org.egothor.store.ThickBarrelOut
appendIList, saveDocument, setListenBarrelWriter
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ThickBarrelSortedOut

public ThickBarrelSortedOut(java.lang.String location,
                            IntegerArray rank)
                     throws java.io.IOException
Throws:
java.io.IOException
Method Detail

close

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

Specified by:
close in interface BarrelWriter
Overrides:
close in class ThickBarrelOut

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
Overrides:
append in class ThickBarrelOut
Parameters:
old - the Barrel to add to this one
Throws:
java.io.IOException - if an I/O error occurs