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 Constructor Description AbstractIndexRoot(NT type, Map<String,F> notYetInitializedStaticChildren)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringabsolutePath()StringabsolutePath(String relativeFieldName)String[]absolutePathComponents()IndexFieldInclusioninclusion()booleanisComposite()booleanisObjectField()booleanisRoot()booleanisValueField()booleanmultiValuedInRoot()List<String>nestedPathHierarchy()EventContextrelativeEventContext()Map<String,F>staticChildrenByName()Get all statically-defined, direct child fields for this element, mapped by theirrelative name.StoComposite()IndexObjectField<SC,?,?,?>toObjectField()StringtoString()-
Methods inherited from class org.hibernate.search.engine.backend.document.model.spi.AbstractIndexNode
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
nestedDocumentPath, queryElement
-
-
-
-
Method Detail
-
relativeEventContext
public final 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- 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
public S toComposite()
- Specified by:
toCompositein interfaceIndexNode<S extends AbstractIndexRoot<S,SC,NT,F>>- Specified by:
toCompositein interfaceSearchIndexNodeContext<S extends AbstractIndexRoot<S,SC,NT,F>>
-
toObjectField
public IndexObjectField<SC,?,?,?> toObjectField()
- Specified by:
toObjectFieldin interfaceIndexCompositeElementDescriptor- Specified by:
toObjectFieldin interfaceIndexNode<S extends AbstractIndexRoot<S,SC,NT,F>>- Returns:
- This element as an
IndexObjectFieldDescriptor, if possible. Nevernull.
-
absolutePath
public final String absolutePath()
- Specified by:
absolutePathin interfaceSearchIndexNodeContext<S extends AbstractIndexRoot<S,SC,NT,F>>
-
absolutePath
public final String absolutePath(String relativeFieldName)
- Specified by:
absolutePathin interfaceSearchIndexCompositeNodeContext<S extends AbstractIndexRoot<S,SC,NT,F>>
-
absolutePathComponents
public final String[] absolutePathComponents()
- Specified by:
absolutePathComponentsin interfaceSearchIndexNodeContext<S extends AbstractIndexRoot<S,SC,NT,F>>
-
inclusion
public final IndexFieldInclusion inclusion()
-
nestedPathHierarchy
public final List<String> nestedPathHierarchy()
- Specified by:
nestedPathHierarchyin interfaceSearchIndexNodeContext<S extends AbstractIndexRoot<S,SC,NT,F>>
-
staticChildrenByName
public final Map<String,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.
-
multiValuedInRoot
public boolean multiValuedInRoot()
- Specified by:
multiValuedInRootin interfaceIndexNode<S extends AbstractIndexRoot<S,SC,NT,F>>
-
-