org.hibernate.search.query.collector.impl
Class FieldCacheCollectorFactory

java.lang.Object
  extended by 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.

Field Summary
static FieldCacheCollectorFactory CLASS_TYPE_FIELD_CACHE_COLLECTOR_FACTORY
           
 
Constructor Summary
FieldCacheCollectorFactory(String fieldName, FieldCacheLoadingType type, TwoWayStringBridge twoWayStringBridge)
           
FieldCacheCollectorFactory(String fieldName, FieldCacheLoadingType type, TwoWayStringBridge twoWayStringBridge, int implementationSwitchThreshold)
           
 
Method Summary
 FieldCacheCollector createFieldCollector(Collector collector, int totalMaxDocs, int expectedMatchesCount)
           
 boolean equals(Object obj)
           
 int hashCode()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CLASS_TYPE_FIELD_CACHE_COLLECTOR_FACTORY

public static final FieldCacheCollectorFactory CLASS_TYPE_FIELD_CACHE_COLLECTOR_FACTORY
Constructor Detail

FieldCacheCollectorFactory

public FieldCacheCollectorFactory(String fieldName,
                                  FieldCacheLoadingType type,
                                  TwoWayStringBridge twoWayStringBridge)

FieldCacheCollectorFactory

public FieldCacheCollectorFactory(String fieldName,
                                  FieldCacheLoadingType type,
                                  TwoWayStringBridge twoWayStringBridge,
                                  int implementationSwitchThreshold)
Method Detail

createFieldCollector

public FieldCacheCollector createFieldCollector(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-2013 Red Hat Middleware, LLC. All Rights Reserved