Class AbstractMultiIndexSearchIndexNodeContext<S extends SearchIndexNodeContext<SC>,SC extends SearchIndexScope<?>,NT extends SearchIndexNodeTypeContext<SC,S>>
- java.lang.Object
-
- org.hibernate.search.engine.search.common.spi.AbstractMultiIndexSearchIndexNodeContext<S,SC,NT>
-
- All Implemented Interfaces:
SearchIndexNodeContext<SC>,SearchIndexNodeTypeContext<SC,S>,EventContextProvider
- Direct Known Subclasses:
AbstractMultiIndexSearchIndexCompositeNodeContext,AbstractMultiIndexSearchIndexValueFieldContext
public abstract class AbstractMultiIndexSearchIndexNodeContext<S extends SearchIndexNodeContext<SC>,SC extends SearchIndexScope<?>,NT extends SearchIndexNodeTypeContext<SC,S>> extends Object implements SearchIndexNodeContext<SC>, SearchIndexNodeTypeContext<SC,S>
-
-
Field Summary
Fields Modifier and Type Field Description protected StringabsolutePathprotected List<? extends S>nodeForEachIndexprotected SCscope
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description StringabsolutePath()String[]absolutePathComponents()EventContexteventContext()protected <T> TfromNodeIfCompatible(Function<S,T> getter, BiPredicate<T,T> compatibilityChecker, String attributeName)protected <T> TfromTypeIfCompatible(Function<NT,T> getter, BiPredicate<T,T> compatibilityChecker, String attributeName)protected EventContextindexesEventContext()StringnestedDocumentPath()List<String>nestedPathHierarchy()<T> TqueryElement(SearchQueryElementTypeKey<T> key, SC scope)<T> SearchQueryElementFactory<? extends T,? super SC,? super S>queryElementFactory(SearchQueryElementTypeKey<T> key)EventContextrelativeEventContext()protected abstract Sself()protected abstract NTselfAsNodeType()protected abstract NTtypeOf(S indexElement)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.hibernate.search.engine.search.common.spi.SearchIndexNodeContext
isComposite, isValueField, toComposite, toValueField
-
-
-
-
Field Detail
-
scope
protected final SC extends SearchIndexScope<?> scope
-
absolutePath
protected final String absolutePath
-
nodeForEachIndex
protected final List<? extends S extends SearchIndexNodeContext<SC>> nodeForEachIndex
-
-
Method Detail
-
self
protected abstract S self()
-
selfAsNodeType
protected abstract NT selfAsNodeType()
-
absolutePath
public final String absolutePath()
- Specified by:
absolutePathin interfaceSearchIndexNodeContext<S extends SearchIndexNodeContext<SC>>
-
absolutePathComponents
public final String[] absolutePathComponents()
- Specified by:
absolutePathComponentsin interfaceSearchIndexNodeContext<S extends SearchIndexNodeContext<SC>>
-
nestedPathHierarchy
public final List<String> nestedPathHierarchy()
- Specified by:
nestedPathHierarchyin interfaceSearchIndexNodeContext<S extends SearchIndexNodeContext<SC>>
-
nestedDocumentPath
public String nestedDocumentPath()
- Specified by:
nestedDocumentPathin interfaceSearchIndexNodeContext<S extends SearchIndexNodeContext<SC>>
-
eventContext
public final EventContext eventContext()
- Specified by:
eventContextin interfaceEventContextProvider
-
indexesEventContext
protected final EventContext indexesEventContext()
-
relativeEventContext
public final EventContext relativeEventContext()
- Specified by:
relativeEventContextin interfaceSearchIndexNodeContext<S extends SearchIndexNodeContext<SC>>
-
queryElement
public final <T> T queryElement(SearchQueryElementTypeKey<T> key, SC scope)
- Specified by:
queryElementin interfaceSearchIndexNodeContext<S extends SearchIndexNodeContext<SC>>
-
queryElementFactory
public final <T> SearchQueryElementFactory<? extends T,? super SC,? super S> queryElementFactory(SearchQueryElementTypeKey<T> key)
- Specified by:
queryElementFactoryin interfaceSearchIndexNodeTypeContext<S extends SearchIndexNodeContext<SC>,SC extends SearchIndexScope<?>>
-
fromNodeIfCompatible
protected final <T> T fromNodeIfCompatible(Function<S,T> getter, BiPredicate<T,T> compatibilityChecker, String attributeName)
-
fromTypeIfCompatible
protected final <T> T fromTypeIfCompatible(Function<NT,T> getter, BiPredicate<T,T> compatibilityChecker, String attributeName)
-
-