org.opensolaris.opengrok.search.context
Class HistoryContext

java.lang.Object
  extended by org.opensolaris.opengrok.search.context.HistoryContext

public class HistoryContext
extends java.lang.Object

it is supposed to get the matching lines from history log files. since lucene does not easily give the match context.


Constructor Summary
HistoryContext(org.apache.lucene.search.Query query)
           
 
Method Summary
 boolean getContext(java.lang.String filename, java.lang.String path, java.util.List<Hit> hits)
           
 boolean getContext(java.lang.String parent, java.lang.String basename, java.lang.String path, java.io.Writer out)
           
 boolean isEmpty()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HistoryContext

public HistoryContext(org.apache.lucene.search.Query query)
Method Detail

isEmpty

public boolean isEmpty()

getContext

public boolean getContext(java.lang.String filename,
                          java.lang.String path,
                          java.util.List<Hit> hits)
                   throws HistoryException
Throws:
HistoryException

getContext

public boolean getContext(java.lang.String parent,
                          java.lang.String basename,
                          java.lang.String path,
                          java.io.Writer out)
                   throws HistoryException
Throws:
HistoryException