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(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(AtomicReaderContext context) throws IOException
setNextReader in class CollectorIOExceptionCopyright © 2006-2015 Red Hat, Inc. All Rights Reserved