Class ClassLoadingStrategySelector

java.lang.Object
org.hibernate.search.query.fieldcache.ClassLoadingStrategySelector

public class ClassLoadingStrategySelector extends Object
A FieldCacheCollectorFactory requires two parameters which are inferred from the type of field and it's applied bridges. Not all cases can be covered. This class contains helpers to extract the proper parameters to create such a factory.
  • Constructor Details

    • ClassLoadingStrategySelector

      public ClassLoadingStrategySelector()
  • Method Details

    • guessAppropriateCollectorType

      public static FieldCacheLoadingType guessAppropriateCollectorType(TwoWayFieldBridge fieldBridge)
    • getTwoWayStringBridge

      public static TwoWayStringBridge getTwoWayStringBridge(TwoWayFieldBridge fieldBridge)
      Extracts (if possible) the two way string bridge from a given two way field bridge
      Parameters:
      fieldBridge - the field bridge from which to extract (unwrap) the two way string bridge
      Returns:
      the underlying string bridge or null if we can't extract it