org.apache.servicemix.jbi.audit.lucene
Class DefaultLuceneCallback

java.lang.Object
  extended by org.apache.servicemix.jbi.audit.lucene.DefaultLuceneCallback
All Implemented Interfaces:
LuceneCallback

public class DefaultLuceneCallback
extends Object
implements LuceneCallback

Default Lucene Callback implementation. Used on LuceneAuditor

Since:
2.1
Version:
$Revision: 34165 $
Author:
George Gastaldi (gastaldi)

Constructor Summary
DefaultLuceneCallback(String field, String query)
           
 
Method Summary
 Object doCallback(org.apache.lucene.search.IndexSearcher is)
          Called by the LuceneIndexer
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultLuceneCallback

public DefaultLuceneCallback(String field,
                             String query)
Method Detail

doCallback

public Object doCallback(org.apache.lucene.search.IndexSearcher is)
                  throws IOException
Description copied from interface: LuceneCallback
Called by the LuceneIndexer

Specified by:
doCallback in interface LuceneCallback
Parameters:
is - IndexSearcher provided by the indexer
Returns:
an object from the query
Throws:
IOException - if an error occurs during opening/searching of the index


Copyright © 2005-2008 The Apache Software Foundation. All Rights Reserved.