Class AbstractSearchIndexScope<S extends SearchQueryIndexScope<?>,M extends AbstractIndexModel<?,? extends C,? extends N>,N extends SearchIndexNodeContext<? super S>,C extends SearchIndexCompositeNodeContext<? super S>>
- java.lang.Object
-
- org.hibernate.search.engine.backend.scope.spi.AbstractSearchIndexScope<S,M,N,C>
-
- All Implemented Interfaces:
SearchAggregationIndexScope<S>
,SearchIndexScope<S>
,SearchPredicateIndexScope<S>
,SearchProjectionIndexScope<S>
,SearchQueryIndexScope<S>
,SearchSortIndexScope<S>
,EventContextProvider
public abstract class AbstractSearchIndexScope<S extends SearchQueryIndexScope<?>,M extends AbstractIndexModel<?,? extends C,? extends N>,N extends SearchIndexNodeContext<? super S>,C extends SearchIndexCompositeNodeContext<? super S>> extends Object implements SearchIndexScope<S>, SearchQueryIndexScope<S>
-
-
Constructor Summary
Constructors Modifier Constructor Description AbstractSearchIndexScope(BackendMappingContext mappingContext, Set<? extends M> indexModels)
protected
AbstractSearchIndexScope(AbstractSearchIndexScope<S,M,N,C> parentScope, C overriddenRoot)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description N
child(SearchIndexCompositeNodeContext<?> parent, String name)
protected abstract N
createMultiIndexSearchObjectFieldContext(String absolutePath, List<N> fieldForEachIndex)
protected abstract C
createMultiIndexSearchRootContext(List<C> rootForEachIndex)
protected abstract N
createMultiIndexSearchValueFieldContext(String absolutePath, List<N> fieldForEachIndex)
EventContext
eventContext()
protected N
field(String fieldPath)
<T> T
fieldQueryElement(String fieldPath, SearchQueryElementTypeKey<T> key)
Set<String>
hibernateSearchIndexNames()
SearchIndexIdentifierContext
identifier()
protected EventContext
indexesAndRootEventContext()
protected C
root()
<T> T
rootQueryElement(SearchQueryElementTypeKey<T> key)
protected abstract S
self()
String
toAbsolutePath(String relativeFieldPath)
ToDocumentValueConvertContext
toDocumentValueConvertContext()
-
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.aggregation.spi.SearchAggregationIndexScope
aggregationBuilders
-
Methods inherited from interface org.hibernate.search.engine.search.common.spi.SearchIndexScope
withRoot
-
Methods inherited from interface org.hibernate.search.engine.search.predicate.spi.SearchPredicateIndexScope
predicateBuilders
-
Methods inherited from interface org.hibernate.search.engine.search.projection.spi.SearchProjectionIndexScope
projectionBuilders
-
Methods inherited from interface org.hibernate.search.engine.search.query.spi.SearchQueryIndexScope
aggregationFactory, predicateFactory, projectionFactory, select, sortFactory
-
Methods inherited from interface org.hibernate.search.engine.search.sort.spi.SearchSortIndexScope
sortBuilders
-
-
-
-
Constructor Detail
-
AbstractSearchIndexScope
public AbstractSearchIndexScope(BackendMappingContext mappingContext, Set<? extends M> indexModels)
-
-
Method Detail
-
eventContext
public EventContext eventContext()
- Specified by:
eventContext
in interfaceEventContextProvider
-
indexesAndRootEventContext
protected final EventContext indexesAndRootEventContext()
-
self
protected abstract S self()
-
toDocumentValueConvertContext
public final ToDocumentValueConvertContext toDocumentValueConvertContext()
- Specified by:
toDocumentValueConvertContext
in interfaceSearchIndexScope<S extends SearchQueryIndexScope<?>>
-
hibernateSearchIndexNames
public final Set<String> hibernateSearchIndexNames()
- Specified by:
hibernateSearchIndexNames
in interfaceSearchIndexScope<S extends SearchQueryIndexScope<?>>
-
toAbsolutePath
public String toAbsolutePath(String relativeFieldPath)
- Specified by:
toAbsolutePath
in interfaceSearchIndexScope<S extends SearchQueryIndexScope<?>>
-
identifier
public SearchIndexIdentifierContext identifier()
- Specified by:
identifier
in interfaceSearchIndexScope<S extends SearchQueryIndexScope<?>>
-
root
protected C root()
-
child
public final N child(SearchIndexCompositeNodeContext<?> parent, String name)
- Specified by:
child
in interfaceSearchIndexScope<S extends SearchQueryIndexScope<?>>
-
rootQueryElement
public final <T> T rootQueryElement(SearchQueryElementTypeKey<T> key)
- Specified by:
rootQueryElement
in interfaceSearchIndexScope<S extends SearchQueryIndexScope<?>>
-
fieldQueryElement
public final <T> T fieldQueryElement(String fieldPath, SearchQueryElementTypeKey<T> key)
- Specified by:
fieldQueryElement
in interfaceSearchIndexScope<S extends SearchQueryIndexScope<?>>
-
createMultiIndexSearchRootContext
protected abstract C createMultiIndexSearchRootContext(List<C> rootForEachIndex)
-
createMultiIndexSearchValueFieldContext
protected abstract N createMultiIndexSearchValueFieldContext(String absolutePath, List<N> fieldForEachIndex)
-
-