Class FieldCacheCollectorFactory
java.lang.Object
org.hibernate.search.query.collector.FieldCacheCollectorFactory
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.-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionFieldCacheCollectorFactory(String fieldName, FieldCacheLoadingType type, TwoWayStringBridge twoWayStringBridge) FieldCacheCollectorFactory(String fieldName, FieldCacheLoadingType type, TwoWayStringBridge twoWayStringBridge, int implementationSwitchThreshold) -
Method Summary
Modifier and TypeMethodDescriptioncreateFieldCollector(Collector collector, int totalMaxDocs, int expectedMatchesCount) booleaninthashCode()
-
Field Details
-
CLASS_TYPE_FIELD_CACHE_COLLECTOR_FACTORY
-
-
Constructor Details
-
FieldCacheCollectorFactory
public FieldCacheCollectorFactory(String fieldName, FieldCacheLoadingType type, TwoWayStringBridge twoWayStringBridge) -
FieldCacheCollectorFactory
public FieldCacheCollectorFactory(String fieldName, FieldCacheLoadingType type, TwoWayStringBridge twoWayStringBridge, int implementationSwitchThreshold)
-
-
Method Details