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 String
absolutePath
protected List<? extends S>
nodeForEachIndex
protected SC
scope
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description String
absolutePath()
String[]
absolutePathComponents()
EventContext
eventContext()
protected <T> T
fromNodeIfCompatible(Function<S,T> getter, BiPredicate<T,T> compatibilityChecker, String attributeName)
protected <T> T
fromTypeIfCompatible(Function<NT,T> getter, BiPredicate<T,T> compatibilityChecker, String attributeName)
protected EventContext
indexesEventContext()
String
nestedDocumentPath()
List<String>
nestedPathHierarchy()
<T> T
queryElement(SearchQueryElementTypeKey<T> key, SC scope)
<T> SearchQueryElementFactory<? extends T,? super SC,? super S>
queryElementFactory(SearchQueryElementTypeKey<T> key)
EventContext
relativeEventContext()
protected abstract S
self()
protected abstract NT
selfAsNodeType()
protected abstract NT
typeOf(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:
absolutePath
in interfaceSearchIndexNodeContext<S extends SearchIndexNodeContext<SC>>
-
absolutePathComponents
public final String[] absolutePathComponents()
- Specified by:
absolutePathComponents
in interfaceSearchIndexNodeContext<S extends SearchIndexNodeContext<SC>>
-
nestedPathHierarchy
public final List<String> nestedPathHierarchy()
- Specified by:
nestedPathHierarchy
in interfaceSearchIndexNodeContext<S extends SearchIndexNodeContext<SC>>
-
nestedDocumentPath
public String nestedDocumentPath()
- Specified by:
nestedDocumentPath
in interfaceSearchIndexNodeContext<S extends SearchIndexNodeContext<SC>>
-
eventContext
public final EventContext eventContext()
- Specified by:
eventContext
in interfaceEventContextProvider
-
indexesEventContext
protected final EventContext indexesEventContext()
-
relativeEventContext
public final EventContext relativeEventContext()
- Specified by:
relativeEventContext
in interfaceSearchIndexNodeContext<S extends SearchIndexNodeContext<SC>>
-
queryElement
public final <T> T queryElement(SearchQueryElementTypeKey<T> key, SC scope)
- Specified by:
queryElement
in interfaceSearchIndexNodeContext<S extends SearchIndexNodeContext<SC>>
-
queryElementFactory
public final <T> SearchQueryElementFactory<? extends T,? super SC,? super S> queryElementFactory(SearchQueryElementTypeKey<T> key)
- Specified by:
queryElementFactory
in 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)
-
-