org.paneris.bibliomania.fti
Class ContextSearchResults

java.lang.Object
  extended by org.paneris.bibliomania.fti.ContextSearchResults
All Implemented Interfaces:
org.melati.poem.transaction.ToTidyList.Closeable, SearchResults, TextSearchResults

public class ContextSearchResults
extends java.lang.Object
implements SearchResults


Field Summary
static java.lang.String contextUnavailable
           
static int contextWordsAfterHit
           
static int wordsGapBetweenAreas
           
 
Constructor Summary
ContextSearchResults(Library library, SearchResults results, IndexOther fti)
           
 
Method Summary
 void close()
           
 java.lang.String currentAnchor()
           
 int currentOffset()
           
 Text currentText()
           
 long currentTextID()
           
 int currentWordIndex()
           
 int frequency()
           
 long getPosition()
           
 void gotoPosition(long position)
           
 void gotoText(long textID)
           
 int hitWordsCount()
           
 void init()
           
static void main(java.lang.String[] args)
           
 java.lang.String nextArea()
           
 void skipToNextHit()
           
 void skipToWordIndex(int wordIndex)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

contextUnavailable

public static final java.lang.String contextUnavailable
See Also:
Constant Field Values

contextWordsAfterHit

public static final int contextWordsAfterHit
See Also:
Constant Field Values

wordsGapBetweenAreas

public static final int wordsGapBetweenAreas
See Also:
Constant Field Values
Constructor Detail

ContextSearchResults

public ContextSearchResults(Library library,
                            SearchResults results,
                            IndexOther fti)
Method Detail

frequency

public int frequency()
Specified by:
frequency in interface SearchResults

hitWordsCount

public int hitWordsCount()
Specified by:
hitWordsCount in interface TextSearchResults

init

public void init()
Specified by:
init in interface TextSearchResults

skipToNextHit

public void skipToNextHit()
Specified by:
skipToNextHit in interface TextSearchResults

skipToWordIndex

public void skipToWordIndex(int wordIndex)
Specified by:
skipToWordIndex in interface TextSearchResults

currentWordIndex

public int currentWordIndex()
Specified by:
currentWordIndex in interface TextSearchResults

currentOffset

public int currentOffset()
Specified by:
currentOffset in interface TextSearchResults

gotoText

public void gotoText(long textID)
              throws com.sleepycat.db.DatabaseException
Specified by:
gotoText in interface SearchResults
Throws:
com.sleepycat.db.DatabaseException

gotoPosition

public void gotoPosition(long position)
                  throws com.sleepycat.db.DatabaseException
Throws:
com.sleepycat.db.DatabaseException

getPosition

public long getPosition()

currentTextID

public long currentTextID()
Specified by:
currentTextID in interface SearchResults

currentText

public Text currentText()

currentAnchor

public java.lang.String currentAnchor()
                               throws com.sleepycat.db.DatabaseException
Throws:
com.sleepycat.db.DatabaseException

nextArea

public java.lang.String nextArea()

main

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

close

public void close()
Specified by:
close in interface org.melati.poem.transaction.ToTidyList.Closeable


Copyright © 2000-2009 PanEris. All Rights Reserved.