org.paneris.bibliomania.fti
Class IndexOther

java.lang.Object
  extended by org.paneris.bibliomania.fti.IndexOther

public class IndexOther
extends java.lang.Object


Nested Class Summary
static class IndexOther.CorruptionException
           
 class IndexOther.WordIDExceededMaxException
           
 
Field Summary
static int contextWordsBeforeHit
           
static boolean debug
           
static int tiBytesLength
           
static int wordTruncationLength
           
 
Constructor Summary
IndexOther(java.io.File dbHome)
           
IndexOther(java.io.File dbHome, java.util.Properties config)
           
 
Method Summary
 IndexCursor allEntries()
           
 SearchResults andSearchResults(java.lang.String[] args)
           
 void appendTerms(java.util.Vector terms, java.lang.String query, boolean keywords)
           
 java.lang.String blockmarkerBeforeFirstOccurrence(long textID, java.lang.String word)
           
 void close()
           
protected  void finalize()
           
 void flush()
           
static long getTI_textID(byte[] bytes)
           
 SearchResults groupSearchResults(java.lang.String[] args)
           
 int idOfWord(java.lang.String word)
           
 void index(Text text)
           
static void main(java.lang.String[] args)
           
 SearchResults querySearchResults(java.lang.String query)
           
 SearchResults querySearchResults(java.lang.String textQuery, java.lang.String keywordsQuery)
           
static void setTI(byte[] bytes, long textID, int index)
           
 void stat()
           
 void unIndex(long textID)
           
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

wordTruncationLength

public static final int wordTruncationLength
See Also:
Constant Field Values

contextWordsBeforeHit

public static final int contextWordsBeforeHit
See Also:
Constant Field Values

tiBytesLength

public static final int tiBytesLength
See Also:
Constant Field Values

debug

public static boolean debug
Constructor Detail

IndexOther

public IndexOther(java.io.File dbHome)
           throws java.io.IOException,
                  com.sleepycat.db.DatabaseException,
                  org.melati.util.PropertyException
Throws:
java.io.IOException
com.sleepycat.db.DatabaseException
org.melati.util.PropertyException

IndexOther

public IndexOther(java.io.File dbHome,
                  java.util.Properties config)
           throws java.io.IOException,
                  com.sleepycat.db.DatabaseException,
                  org.melati.util.PropertyException
Throws:
java.io.IOException
com.sleepycat.db.DatabaseException
org.melati.util.PropertyException
Method Detail

idOfWord

public int idOfWord(java.lang.String word)
             throws FTIException,
                    com.sleepycat.db.DatabaseException
Throws:
FTIException
com.sleepycat.db.DatabaseException

setTI

public static void setTI(byte[] bytes,
                         long textID,
                         int index)

getTI_textID

public static long getTI_textID(byte[] bytes)

unIndex

public void unIndex(long textID)
             throws FTIException,
                    com.sleepycat.db.DatabaseException
Throws:
FTIException
com.sleepycat.db.DatabaseException

index

public void index(Text text)
           throws FTIException,
                  java.io.IOException,
                  com.sleepycat.db.DatabaseException
Throws:
FTIException
java.io.IOException
com.sleepycat.db.DatabaseException

andSearchResults

public SearchResults andSearchResults(java.lang.String[] args)
                               throws FTIException,
                                      com.sleepycat.db.DatabaseException
Throws:
FTIException
com.sleepycat.db.DatabaseException

groupSearchResults

public SearchResults groupSearchResults(java.lang.String[] args)
                                 throws FTIException,
                                        com.sleepycat.db.DatabaseException
Throws:
FTIException
com.sleepycat.db.DatabaseException

blockmarkerBeforeFirstOccurrence

public java.lang.String blockmarkerBeforeFirstOccurrence(long textID,
                                                         java.lang.String word)
                                                  throws com.sleepycat.db.DatabaseException
Throws:
com.sleepycat.db.DatabaseException

stat

public void stat()
          throws com.sleepycat.db.DatabaseException
Throws:
com.sleepycat.db.DatabaseException

flush

public void flush()
           throws com.sleepycat.db.DatabaseException
Throws:
com.sleepycat.db.DatabaseException

close

public void close()
           throws com.sleepycat.db.DatabaseException
Throws:
com.sleepycat.db.DatabaseException

finalize

protected void finalize()
                 throws java.lang.Throwable
Overrides:
finalize in class java.lang.Object
Throws:
java.lang.Throwable

appendTerms

public void appendTerms(java.util.Vector terms,
                        java.lang.String query,
                        boolean keywords)
                 throws com.sleepycat.db.DatabaseException
Throws:
com.sleepycat.db.DatabaseException

querySearchResults

public SearchResults querySearchResults(java.lang.String textQuery,
                                        java.lang.String keywordsQuery)
                                 throws com.sleepycat.db.DatabaseException,
                                        FTIException
Throws:
com.sleepycat.db.DatabaseException
FTIException

querySearchResults

public SearchResults querySearchResults(java.lang.String query)
                                 throws com.sleepycat.db.DatabaseException,
                                        FTIException
Throws:
com.sleepycat.db.DatabaseException
FTIException

allEntries

public IndexCursor allEntries()
                       throws com.sleepycat.db.DatabaseException
Throws:
com.sleepycat.db.DatabaseException

main

public static void main(java.lang.String[] args)
                 throws java.lang.Exception
Throws:
java.lang.Exception


Copyright © 2000-2009 PanEris. All Rights Reserved.