org.hibernate.search.engine.impl
Class DocumentBuilderHelper

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

public final class DocumentBuilderHelper
extends Object

Author:
Hardy Ferentschik, Sanne Grinovero

Method Summary
static String extractStringFromFieldable(org.apache.lucene.document.Fieldable field)
           
static Class getDocumentClass(String className)
           
static Object[] getDocumentFields(SearchFactoryImplementor searchFactoryImplementor, Class<?> clazz, org.apache.lucene.document.Document document, String[] fields, ConversionContext conversionContext)
           
static Serializable getDocumentId(SearchFactoryImplementor searchFactoryImplementor, Class<?> clazz, org.apache.lucene.document.Document document, ConversionContext conversionContext)
           
static String getDocumentIdName(SearchFactoryImplementor searchFactoryImplementor, Class<?> clazz)
           
static int getFieldPosition(String[] fields, String fieldName)
           
static void populateResult(String fieldName, FieldBridge fieldBridge, Store store, Object[] result, org.apache.lucene.document.Document document, ConversionContext conversionContext, int matchingPosition)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getDocumentClass

public static Class getDocumentClass(String className)

getDocumentId

public static Serializable getDocumentId(SearchFactoryImplementor searchFactoryImplementor,
                                         Class<?> clazz,
                                         org.apache.lucene.document.Document document,
                                         ConversionContext conversionContext)

getDocumentIdName

public static String getDocumentIdName(SearchFactoryImplementor searchFactoryImplementor,
                                       Class<?> clazz)

getDocumentFields

public static Object[] getDocumentFields(SearchFactoryImplementor searchFactoryImplementor,
                                         Class<?> clazz,
                                         org.apache.lucene.document.Document document,
                                         String[] fields,
                                         ConversionContext conversionContext)

populateResult

public static void populateResult(String fieldName,
                                  FieldBridge fieldBridge,
                                  Store store,
                                  Object[] result,
                                  org.apache.lucene.document.Document document,
                                  ConversionContext conversionContext,
                                  int matchingPosition)

extractStringFromFieldable

public static String extractStringFromFieldable(org.apache.lucene.document.Fieldable field)

getFieldPosition

public static int getFieldPosition(String[] fields,
                                   String fieldName)


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