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>,org.hibernate.search.util.common.reporting.spi.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 Stringfinal StringabsolutePath(String relativeFieldName) final String[]final Stringfinal TreeNodeInclusionfinal booleanfinal booleanfinal booleanisRoot()final booleanfinal booleanbooleanfinal org.hibernate.search.util.common.reporting.EventContextGet 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, typeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.hibernate.search.util.common.reporting.spi.EventContextProvider
eventContextMethods inherited from interface org.hibernate.search.engine.backend.document.model.spi.IndexCompositeNode
staticChildren, typeMethods inherited from interface org.hibernate.search.engine.backend.document.model.spi.IndexNode
toValueFieldMethods inherited from interface org.hibernate.search.engine.search.common.spi.SearchIndexNodeContext
cannotUseQueryElement, nestedDocumentPath, queryElement
-
Constructor Details
-
AbstractIndexRoot
-
-
Method Details
-
toString
-
relativeEventContext
public final org.hibernate.search.util.common.reporting.EventContext relativeEventContext()- Specified by:
relativeEventContextin interfaceSearchIndexNodeContext<S extends AbstractIndexRoot<S,SC, NT, F>>
-
isComposite
public final boolean isComposite()- Specified by:
isCompositein interfaceSearchIndexNodeContext<S extends AbstractIndexRoot<S,SC, NT, F>>
-
isRoot
public final boolean isRoot()- Specified by:
isRootin interfaceIndexCompositeElementDescriptor- Returns:
trueif this element represents the root of the index.
-
isObjectField
public final boolean isObjectField()- Specified by:
isObjectFieldin interfaceIndexCompositeElementDescriptor- Specified by:
isObjectFieldin interfaceSearchIndexNodeContext<S extends AbstractIndexRoot<S,SC, NT, F>> - Returns:
trueif 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:
isValueFieldin interfaceSearchIndexNodeContext<S extends AbstractIndexRoot<S,SC, NT, F>>
-
toComposite
- Specified by:
toCompositein interfaceIndexNode<S extends AbstractIndexRoot<S,SC, NT, F>> - Specified by:
toCompositein interfaceSearchIndexNodeContext<S extends AbstractIndexRoot<S,SC, NT, F>>
-
toObjectField
- Specified by:
toObjectFieldin interfaceIndexCompositeElementDescriptor- Specified by:
toObjectFieldin interfaceIndexNode<S extends AbstractIndexRoot<S,SC, NT, F>> - Specified by:
toObjectFieldin interfaceSearchIndexNodeContext<S extends AbstractIndexRoot<S,SC, NT, F>> - Returns:
- This element as an
IndexObjectFieldDescriptor, if possible. Nevernull.
-
absolutePath
- Specified by:
absolutePathin interfaceSearchIndexNodeContext<S extends AbstractIndexRoot<S,SC, NT, F>>
-
absolutePath
- Specified by:
absolutePathin interfaceSearchIndexCompositeNodeContext<S extends AbstractIndexRoot<S,SC, NT, F>>
-
absolutePathComponents
- Specified by:
absolutePathComponentsin interfaceSearchIndexNodeContext<S extends AbstractIndexRoot<S,SC, NT, F>>
-
inclusion
-
nestedPathHierarchy
- Specified by:
nestedPathHierarchyin interfaceSearchIndexNodeContext<S extends AbstractIndexRoot<S,SC, NT, F>>
-
staticChildrenByName
Description copied from interface:IndexCompositeElementDescriptorGet all statically-defined, direct child fields for this element, mapped by theirrelative name.Only statically-defined fields are returned; fields created dynamically through
templatesare not included in the map.- Specified by:
staticChildrenByNamein interfaceIndexCompositeElementDescriptor- Specified by:
staticChildrenByNamein interfaceIndexCompositeNode<S extends AbstractIndexRoot<S,SC, NT, F>, SC extends SearchIndexScope<?>, NT extends AbstractIndexCompositeNodeType<SC, ? super S>> - Specified by:
staticChildrenByNamein interfaceSearchIndexCompositeNodeContext<S extends AbstractIndexRoot<S,SC, NT, F>> - Returns:
- A map containing all static child fields.
-
multiValued
public final boolean multiValued()- Specified by:
multiValuedin interfaceSearchIndexNodeContext<S extends AbstractIndexRoot<S,SC, NT, F>>
-
multiValuedInRoot
public boolean multiValuedInRoot()- Specified by:
multiValuedInRootin interfaceSearchIndexNodeContext<S extends AbstractIndexRoot<S,SC, NT, F>>
-
closestMultiValuedParentAbsolutePath
- Specified by:
closestMultiValuedParentAbsolutePathin interfaceSearchIndexNodeContext<S extends AbstractIndexRoot<S,SC, NT, F>>
-