Package org.hibernate.search.engine
Class DocumentBuilderHelper
java.lang.Object
org.hibernate.search.engine.DocumentBuilderHelper
-
Method Summary
Modifier and TypeMethodDescriptionstatic ClassgetDocumentClass(String className) static Object[]getDocumentFields(SearchFactoryImplementor searchFactoryImplementor, Class<?> clazz, Document document, String[] fields) static SerializablegetDocumentId(SearchFactoryImplementor searchFactoryImplementor, Class<?> clazz, Document document) static StringgetDocumentIdName(SearchFactoryImplementor searchFactoryImplementor, Class<?> clazz) static intgetFieldPosition(String[] fields, String fieldName) static voidpopulateResult(String fieldName, FieldBridge fieldBridge, Store store, String[] fields, Object[] result, Document document, ContextualException2WayBridge contextualBridge) static voidprocessFieldsForProjection(AbstractDocumentBuilder.PropertiesMetadata metadata, String[] fields, Object[] result, Document document, ContextualException2WayBridge contextualBridge)
-
Method Details
-
getDocumentClass
-
getDocumentId
public static Serializable getDocumentId(SearchFactoryImplementor searchFactoryImplementor, Class<?> clazz, Document document) -
getDocumentIdName
public static String getDocumentIdName(SearchFactoryImplementor searchFactoryImplementor, Class<?> clazz) -
getDocumentFields
public static Object[] getDocumentFields(SearchFactoryImplementor searchFactoryImplementor, Class<?> clazz, Document document, String[] fields) -
populateResult
public static void populateResult(String fieldName, FieldBridge fieldBridge, Store store, String[] fields, Object[] result, Document document, ContextualException2WayBridge contextualBridge) -
processFieldsForProjection
public static void processFieldsForProjection(AbstractDocumentBuilder.PropertiesMetadata metadata, String[] fields, Object[] result, Document document, ContextualException2WayBridge contextualBridge) -
getFieldPosition
-