org.hibernate.search.engine.impl
Class AnnotationProcessingHelper

java.lang.Object
  extended by org.hibernate.search.engine.impl.AnnotationProcessingHelper

public final class AnnotationProcessingHelper
extends Object

A helper classes dealing with the processing of annotation. It is there to share some annotation processing between the document builder and other metadata classes, eg FieldMetadata. In the long run this class might become obsolete.

Author:
Hardy Ferentschik

Constructor Summary
AnnotationProcessingHelper()
           
 
Method Summary
static org.apache.lucene.analysis.Analyzer getAnalyzer(Analyzer analyzerAnn, ConfigContext context)
           
static Float getBoost(org.hibernate.annotations.common.reflection.XProperty member, Field fieldAnn)
           
static BoostStrategy getDynamicBoost(org.hibernate.annotations.common.reflection.XProperty member)
           
static org.apache.lucene.document.Field.Index getIndex(Index index, Analyze analyze, Norms norms)
          Using the passed field (or class bridge) settings determines the Lucene Field.Index
static Integer getPrecisionStep(NumericField numericFieldAnn)
           
static org.apache.lucene.document.Field.TermVector getTermVector(TermVector vector)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AnnotationProcessingHelper

public AnnotationProcessingHelper()
Method Detail

getIndex

public static org.apache.lucene.document.Field.Index getIndex(Index index,
                                                              Analyze analyze,
                                                              Norms norms)
Using the passed field (or class bridge) settings determines the Lucene Field.Index

Parameters:
index - is the field indexed or not
analyze - should the field be analyzed
norms - are norms to be added to index
Returns:
Returns the Lucene Field.Index value for a given field

getBoost

public static Float getBoost(org.hibernate.annotations.common.reflection.XProperty member,
                             Field fieldAnn)

getDynamicBoost

public static BoostStrategy getDynamicBoost(org.hibernate.annotations.common.reflection.XProperty member)

getTermVector

public static org.apache.lucene.document.Field.TermVector getTermVector(TermVector vector)

getAnalyzer

public static org.apache.lucene.analysis.Analyzer getAnalyzer(Analyzer analyzerAnn,
                                                              ConfigContext context)

getPrecisionStep

public static Integer getPrecisionStep(NumericField numericFieldAnn)


Copyright © 2006-2012 Red Hat Middleware, LLC. All Rights Reserved