Class AbstractIndexRoot<S extends AbstractIndexRoot<S,SC,NT,F>,SC extends SearchIndexScope<?>,NT extends AbstractIndexCompositeNodeType<SC,? super S>,F extends IndexField<SC,?>>
java.lang.Object
org.hibernate.search.engine.backend.document.model.spi.AbstractIndexNode<S,SC,NT>
org.hibernate.search.engine.backend.document.model.spi.AbstractIndexRoot<S,SC,NT,F>
- All Implemented Interfaces:
IndexCompositeNode<SC,
,NT, F> IndexNode<SC>
,IndexCompositeElementDescriptor
,SearchIndexCompositeNodeContext<SC>
,SearchIndexNodeContext<SC>
,EventContextProvider
public abstract class AbstractIndexRoot<S extends AbstractIndexRoot<S,SC,NT,F>,SC extends SearchIndexScope<?>,NT extends AbstractIndexCompositeNodeType<SC,? super S>,F extends IndexField<SC,?>>
extends AbstractIndexNode<S,SC,NT>
implements IndexCompositeNode<SC,NT,F>
-
Field Summary
Fields inherited from class org.hibernate.search.engine.backend.document.model.spi.AbstractIndexNode
type
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal String
final String
absolutePath
(String relativeFieldName) final String[]
final String
final TreeNodeInclusion
final boolean
final boolean
final boolean
isRoot()
final boolean
final boolean
boolean
final EventContext
Get all statically-defined, direct child fields for this element, mapped by theirrelative name
.IndexObjectField<SC,
?, ?, ?> toString()
Methods inherited from class org.hibernate.search.engine.backend.document.model.spi.AbstractIndexNode
cannotUseQueryElement, eventContext, queryElement, self, type
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.hibernate.search.util.common.reporting.spi.EventContextProvider
eventContext
Methods inherited from interface org.hibernate.search.engine.backend.document.model.spi.IndexCompositeNode
staticChildren, type
Methods inherited from interface org.hibernate.search.engine.backend.document.model.spi.IndexNode
toValueField
Methods inherited from interface org.hibernate.search.engine.search.common.spi.SearchIndexNodeContext
cannotUseQueryElement, nestedDocumentPath, queryElement
-
Constructor Details
-
AbstractIndexRoot
-
-
Method Details
-
toString
-
relativeEventContext
- Specified by:
relativeEventContext
in interfaceSearchIndexNodeContext<S extends AbstractIndexRoot<S,
SC, NT, F>>
-
isComposite
public final boolean isComposite()- Specified by:
isComposite
in interfaceSearchIndexNodeContext<S extends AbstractIndexRoot<S,
SC, NT, F>>
-
isRoot
public final boolean isRoot()- Specified by:
isRoot
in interfaceIndexCompositeElementDescriptor
- Returns:
true
if this element represents the root of the index.
-
isObjectField
public final boolean isObjectField()- Specified by:
isObjectField
in interfaceIndexCompositeElementDescriptor
- Specified by:
isObjectField
in interfaceSearchIndexNodeContext<S extends AbstractIndexRoot<S,
SC, NT, F>> - Returns:
true
if this element represents an object field. In that case,IndexCompositeElementDescriptor.toObjectField()
can be called safely (it won't throw an exception).
-
isValueField
public final boolean isValueField()- Specified by:
isValueField
in interfaceSearchIndexNodeContext<S extends AbstractIndexRoot<S,
SC, NT, F>>
-
toComposite
- Specified by:
toComposite
in interfaceIndexNode<S extends AbstractIndexRoot<S,
SC, NT, F>> - Specified by:
toComposite
in interfaceSearchIndexNodeContext<S extends AbstractIndexRoot<S,
SC, NT, F>>
-
toObjectField
- Specified by:
toObjectField
in interfaceIndexCompositeElementDescriptor
- Specified by:
toObjectField
in interfaceIndexNode<S extends AbstractIndexRoot<S,
SC, NT, F>> - Specified by:
toObjectField
in interfaceSearchIndexNodeContext<S extends AbstractIndexRoot<S,
SC, NT, F>> - Returns:
- This element as an
IndexObjectFieldDescriptor
, if possible. Nevernull
.
-
absolutePath
- Specified by:
absolutePath
in interfaceSearchIndexNodeContext<S extends AbstractIndexRoot<S,
SC, NT, F>>
-
absolutePath
- Specified by:
absolutePath
in interfaceSearchIndexCompositeNodeContext<S extends AbstractIndexRoot<S,
SC, NT, F>>
-
absolutePathComponents
- Specified by:
absolutePathComponents
in interfaceSearchIndexNodeContext<S extends AbstractIndexRoot<S,
SC, NT, F>>
-
inclusion
-
nestedPathHierarchy
- Specified by:
nestedPathHierarchy
in interfaceSearchIndexNodeContext<S extends AbstractIndexRoot<S,
SC, NT, F>>
-
staticChildrenByName
Description copied from interface:IndexCompositeElementDescriptor
Get all statically-defined, direct child fields for this element, mapped by theirrelative name
.Only statically-defined fields are returned; fields created dynamically through
templates
are not included in the map.- Specified by:
staticChildrenByName
in interfaceIndexCompositeElementDescriptor
- Specified by:
staticChildrenByName
in interfaceIndexCompositeNode<S extends AbstractIndexRoot<S,
SC, NT, F>, SC extends SearchIndexScope<?>, NT extends AbstractIndexCompositeNodeType<SC, ? super S>> - Specified by:
staticChildrenByName
in interfaceSearchIndexCompositeNodeContext<S extends AbstractIndexRoot<S,
SC, NT, F>> - Returns:
- A map containing all static child fields.
-
multiValued
public final boolean multiValued()- Specified by:
multiValued
in interfaceSearchIndexNodeContext<S extends AbstractIndexRoot<S,
SC, NT, F>>
-
multiValuedInRoot
public boolean multiValuedInRoot()- Specified by:
multiValuedInRoot
in interfaceSearchIndexNodeContext<S extends AbstractIndexRoot<S,
SC, NT, F>>
-
closestMultiValuedParentAbsolutePath
- Specified by:
closestMultiValuedParentAbsolutePath
in interfaceSearchIndexNodeContext<S extends AbstractIndexRoot<S,
SC, NT, F>>
-