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(org.apache.lucene.index.IndexReader reader,
int docBase) |
acceptsDocsOutOfOrder, setScorer
public 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 FieldCacheCollector
IOException
public void setNextReader(org.apache.lucene.index.IndexReader reader, int docBase) throws IOException
setNextReader
in class FieldCacheCollector
IOException
public Object getValue(int docId)
getValue
in class FieldCacheCollector
Copyright © 2006–2015 Hibernate. All rights reserved.