org.hibernate.search.query.collector.impl
Class FieldCacheCollector

java.lang.Object
  extended by org.apache.lucene.search.Collector
      extended by org.hibernate.search.query.collector.impl.FieldCacheCollector
Direct Known Subclasses:
TwoWayTransformingFieldCacheCollector

public abstract class FieldCacheCollector
extends org.apache.lucene.search.Collector

Because Lucene's Collector is not an interface, we have to create extensions of it. All our implementations need a getValue(int), so we need an abstract superclass defining it.

Author:
Sanne Grinovero (C) 2011 Red Hat Inc.

Field Summary
protected  org.apache.lucene.search.Collector delegate
           
 
Constructor Summary
FieldCacheCollector(org.apache.lucene.search.Collector delegate)
           
 
Method Summary
 boolean acceptsDocsOutOfOrder()
           
abstract  void collect(int doc)
           
abstract  Object getValue(int docId)
           
abstract  void setNextReader(org.apache.lucene.index.IndexReader reader, int docBase)
           
 void setScorer(org.apache.lucene.search.Scorer scorer)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

delegate

protected final org.apache.lucene.search.Collector delegate
Constructor Detail

FieldCacheCollector

public FieldCacheCollector(org.apache.lucene.search.Collector delegate)
Method Detail

setScorer

public final void setScorer(org.apache.lucene.search.Scorer scorer)
                     throws IOException
Specified by:
setScorer in class org.apache.lucene.search.Collector
Throws:
IOException

acceptsDocsOutOfOrder

public final boolean acceptsDocsOutOfOrder()
Specified by:
acceptsDocsOutOfOrder in class org.apache.lucene.search.Collector

collect

public abstract void collect(int doc)
                      throws IOException
Specified by:
collect in class org.apache.lucene.search.Collector
Throws:
IOException

setNextReader

public abstract void setNextReader(org.apache.lucene.index.IndexReader reader,
                                   int docBase)
                            throws IOException
Specified by:
setNextReader in class org.apache.lucene.search.Collector
Throws:
IOException

getValue

public abstract Object getValue(int docId)


Copyright © 2006-2012 Red Hat Middleware, LLC. All Rights Reserved