dragon.ir.index
Class BasicIndexWriter

java.lang.Object
  |
  +--dragon.ir.index.AbstractIndexWriter
        |
        +--dragon.ir.index.BasicIndexWriter
All Implemented Interfaces:
IndexWriter

public class BasicIndexWriter
extends AbstractIndexWriter

The class is used to initialize and write index to disk

Copyright: Copyright (c) 2005

Company: IST, Drexel University

Version:
1.0
Author:
Davis Zhou

Field Summary
 
Fields inherited from class dragon.ir.index.AbstractIndexWriter
collection, doc_cache_size, doc_in_cache, docIndexList, docrelationMatrix, doctermMatrix, initialized, relationIndexList, relationSupported, termIndexList
 
Constructor Summary
BasicIndexWriter(java.lang.String directory, boolean relationSupported)
           
 
Method Summary
 void clean()
          For disk-based indexing, this method delete all files under the indexing folder.
 void close()
           
 void flush()
          For disk-based indexing, this method dump all information in memory to the files on disk.
 void initialize()
          It is required to call this method before calling the write method
 
Methods inherited from class dragon.ir.index.AbstractIndexWriter
size, write, write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BasicIndexWriter

public BasicIndexWriter(java.lang.String directory,
                        boolean relationSupported)
Method Detail

initialize

public void initialize()
Description copied from interface: IndexWriter
It is required to call this method before calling the write method


flush

public void flush()
Description copied from interface: IndexWriter
For disk-based indexing, this method dump all information in memory to the files on disk.


close

public void close()

clean

public void clean()
Description copied from interface: IndexWriter
For disk-based indexing, this method delete all files under the indexing folder.