org.hibernate.search.query.collector.impl
Class FieldCacheCollector
java.lang.Object
org.apache.lucene.search.Collector
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
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
delegate
protected final org.apache.lucene.search.Collector delegate
FieldCacheCollector
public FieldCacheCollector(org.apache.lucene.search.Collector delegate)
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