org.hibernate.search.query.collector.impl
Class FieldCacheCollectorFactory
java.lang.Object
org.hibernate.search.query.collector.impl.FieldCacheCollectorFactory
public class FieldCacheCollectorFactory
- extends Object
Every search needs a fresh instance of a Collector, still for
each field the same name and type are going to be used.
So reuse a FieldCollectorFactory
for each field, to create
Collector
instances as needed.
- Author:
- Sanne Grinovero (C) 2011 Red Hat Inc.
CLASS_TYPE_FIELD_CACHE_COLLECTOR_FACTORY
public static final FieldCacheCollectorFactory CLASS_TYPE_FIELD_CACHE_COLLECTOR_FACTORY
FieldCacheCollectorFactory
public FieldCacheCollectorFactory(String fieldName,
FieldCacheLoadingType type,
TwoWayStringBridge twoWayStringBridge)
FieldCacheCollectorFactory
public FieldCacheCollectorFactory(String fieldName,
FieldCacheLoadingType type,
TwoWayStringBridge twoWayStringBridge,
int implementationSwitchThreshold)
createFieldCollector
public FieldCacheCollector createFieldCollector(org.apache.lucene.search.Collector collector,
int totalMaxDocs,
int expectedMatchesCount)
hashCode
public int hashCode()
- Overrides:
hashCode
in class Object
equals
public boolean equals(Object obj)
- Overrides:
equals
in class Object
Copyright © 2006-2012 Red Hat Middleware, LLC. All Rights Reserved