org.hibernate.search.query.collector.impl
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(IndexReader reader,
int docBase) |
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 void setNextReader(IndexReader reader, int docBase) throws IOException
setNextReader in class FieldCacheCollectorIOExceptionpublic Object getValue(int docId)
getValue in class FieldCacheCollectorCopyright © 2006-2015 Red Hat, Inc. All Rights Reserved