public class TwoWayTransformingFieldCacheCollector extends FieldCacheCollector
getValue(int) returns objects as transformed
by a TwoWayStringBridge to transform from String form to the object.delegate| Constructor and Description |
|---|
TwoWayTransformingFieldCacheCollector(FieldCacheCollector delegate,
TwoWayStringBridge twoWayStringBridge) |
| Modifier and Type | Method and Description |
|---|---|
void |
collect(int doc) |
Object |
getValue(int docId) |
void |
setNextReader(org.apache.lucene.index.AtomicReaderContext context) |
acceptsDocsOutOfOrder, setScorerpublic TwoWayTransformingFieldCacheCollector(FieldCacheCollector delegate, TwoWayStringBridge twoWayStringBridge)
delegate - Actually uses the delegate Collector implementationtwoWayStringBridge - Converts returned values using this TwoWayStringBridge.stringToObject(String)public void collect(int doc)
throws IOException
collect in class FieldCacheCollectorIOExceptionpublic Object getValue(int docId)
getValue in class FieldCacheCollectorpublic void setNextReader(org.apache.lucene.index.AtomicReaderContext context)
throws IOException
setNextReader in class org.apache.lucene.search.CollectorIOExceptionCopyright © 2006–2014 Hibernate. All rights reserved.