Class AbstractIndexField<S extends AbstractIndexField<S,SC,?,C> , SC extends SearchIndexScope<?>, NT extends AbstractIndexNodeType<SC, ? super S>, C extends IndexCompositeNode<SC,?,?> >
java.lang.Object
org.hibernate.search.engine.backend.document.model.spi.AbstractIndexNode<S,SC,NT>
org.hibernate.search.engine.backend.document.model.spi.AbstractIndexField<S,SC,NT,C>
- All Implemented Interfaces:
IndexField<SC,C>, IndexNode<SC>, IndexFieldDescriptor, SearchIndexNodeContext<SC>, EventContextProvider
- Direct Known Subclasses:
AbstractIndexObjectField, AbstractIndexValueField
public abstract class AbstractIndexField<S extends AbstractIndexField<S,SC,?,C>, SC extends SearchIndexScope<?>, NT extends AbstractIndexNodeType<SC, ? super S>, C extends IndexCompositeNode<SC,?,?>>
extends AbstractIndexNode<S,SC,NT>
implements IndexField<SC,C>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final Stringprotected final String[]protected final TreeNodeInclusionprotected final booleanprotected final Cprotected final StringFields inherited from class AbstractIndexNode
type -
Constructor Summary
ConstructorsConstructorDescriptionAbstractIndexField(C parent, String relativeFieldName, NT type, TreeNodeInclusion inclusion, boolean multiValued) -
Method Summary
Modifier and TypeMethodDescriptionfinal Stringfinal String[]final TreeNodeInclusionfinal booleanbooleanfinal Cparent()final EventContextfinal StringtoString()Methods inherited from class AbstractIndexNode
cannotUseQueryElement, eventContext, queryElement, self, typeMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface EventContextProvider
eventContextMethods inherited from interface IndexField
toComposite, toObjectField, toValueFieldMethods inherited from interface IndexFieldDescriptor
isObjectField, isValueField, typeMethods inherited from interface SearchIndexNodeContext
cannotUseQueryElement, isComposite, isObjectField, isValueField, nestedDocumentPath, nestedPathHierarchy, queryElement
-
Field Details
-
parent
-
absolutePath
-
absolutePathComponents
-
relativeName
-
inclusion
-
multiValued
protected final boolean multiValued
-
-
Constructor Details
-
AbstractIndexField
public AbstractIndexField(C parent, String relativeFieldName, NT type, TreeNodeInclusion inclusion, boolean multiValued)
-
-
Method Details
-
toString
-
relativeEventContext
- Specified by:
relativeEventContextin interfaceSearchIndexNodeContext<S extends AbstractIndexField<S,SC, ?, C>>
-
parent
- Specified by:
parentin interfaceIndexField<S extends AbstractIndexField<S,SC, ?, C>, SC extends SearchIndexScope<?>> - Specified by:
parentin interfaceIndexFieldDescriptor- Returns:
- The parent of this field, either the
index rootor anobject field.
-
absolutePath
- Specified by:
absolutePathin interfaceIndexFieldDescriptor- Specified by:
absolutePathin interfaceSearchIndexNodeContext<S extends AbstractIndexField<S,SC, ?, C>> - Returns:
- The absolute, dot-separated path of this field.
-
absolutePathComponents
- Specified by:
absolutePathComponentsin interfaceSearchIndexNodeContext<S extends AbstractIndexField<S,SC, ?, C>>
-
relativeName
- Specified by:
relativeNamein interfaceIndexFieldDescriptor- Returns:
- The name of this field relative to its
parent.
-
inclusion
-
multiValued
public final boolean multiValued()- Specified by:
multiValuedin interfaceIndexFieldDescriptor- Specified by:
multiValuedin interfaceSearchIndexNodeContext<S extends AbstractIndexField<S,SC, ?, C>> - Returns:
trueif this field can have multiple values in the same parent document.
-
multiValuedInRoot
public boolean multiValuedInRoot()- Specified by:
multiValuedInRootin interfaceIndexFieldDescriptor- Specified by:
multiValuedInRootin interfaceSearchIndexNodeContext<S extends AbstractIndexField<S,SC, ?, C>> - Returns:
trueif this field can have multiple values in the same root document or if it is contained, directly or indirectly, in an object field that can have multiple values.
-
closestMultiValuedParentAbsolutePath
- Specified by:
closestMultiValuedParentAbsolutePathin interfaceSearchIndexNodeContext<S extends AbstractIndexField<S,SC, ?, C>>
-