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, Ales Justin

Method Summary
static Object extractObjectFromFieldable(org.apache.lucene.document.Fieldable field)
           
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)

extractObjectFromFieldable

public static Object extractObjectFromFieldable(org.apache.lucene.document.Fieldable field)

extractStringFromFieldable

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

getFieldPosition

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


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