org.apache.lenya.lucene.index
Class IndexInformation

java.lang.Object
  extended by org.apache.lenya.lucene.index.IndexInformation

public class IndexInformation
extends java.lang.Object

Helper class to hold indexing information


Nested Class Summary
 class IndexInformation.CreateHandler
          DOCUMENT ME!
 class IndexInformation.UpdateHandler
          DOCUMENT ME!
 
Constructor Summary
IndexInformation(java.lang.String index, java.io.File dumpDirectory, java.io.FileFilter filter, boolean create)
          Creates a new IndexInformation object.
 
Method Summary
protected  void addFile(java.io.File file)
           
protected  void collectFiles(java.io.File dumpDirectory, java.io.FileFilter filter, java.lang.String _index)
          Collect files
 int getCurrentFile()
          DOCUMENT ME!
protected  java.util.Calendar getEstimatedTime()
           
protected  java.lang.String getIndex()
           
 java.util.Calendar getStartTime()
          DOCUMENT ME!
 void increase()
          DOCUMENT ME!
protected  boolean isCreating()
           
 java.lang.String printProgress()
          Generate string which tells about the indexing progress
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IndexInformation

public IndexInformation(java.lang.String index,
                        java.io.File dumpDirectory,
                        java.io.FileFilter filter,
                        boolean create)
Creates a new IndexInformation object.

Parameters:
index - DOCUMENT ME!
dumpDirectory - DOCUMENT ME!
filter - DOCUMENT ME!
create - DOCUMENT ME!
Method Detail

getIndex

protected java.lang.String getIndex()

isCreating

protected boolean isCreating()

addFile

protected void addFile(java.io.File file)

increase

public void increase()
DOCUMENT ME!


getCurrentFile

public int getCurrentFile()
DOCUMENT ME!

Returns:
DOCUMENT ME!

getStartTime

public java.util.Calendar getStartTime()
DOCUMENT ME!

Returns:
DOCUMENT ME!

printProgress

public java.lang.String printProgress()
Generate string which tells about the indexing progress

Returns:
indexing progress

getEstimatedTime

protected java.util.Calendar getEstimatedTime()

collectFiles

protected void collectFiles(java.io.File dumpDirectory,
                            java.io.FileFilter filter,
                            java.lang.String _index)
Collect files



Copyright © 1999-2005 Apache Software Foundation. All Rights Reserved.