Class AbstractIndexObjectField<S extends AbstractIndexObjectField<S,SC,NT,C,F> , SC extends SearchIndexScope<?>, NT extends AbstractIndexCompositeNodeType<SC, ? super S>, C extends IndexCompositeNode<SC,NT,F> , 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.AbstractIndexField<S,SC,NT,C>
org.hibernate.search.engine.backend.document.model.spi.AbstractIndexObjectField<S,SC,NT,C,F>
- All Implemented Interfaces:
IndexCompositeNode<SC,NT, F>, IndexField<SC, C>, IndexNode<SC>, IndexObjectField<SC, NT, C, F>, IndexCompositeElementDescriptor, IndexFieldDescriptor, IndexObjectFieldDescriptor, SearchIndexCompositeNodeContext<SC>, SearchIndexNodeContext<SC>, EventContextProvider
public abstract class AbstractIndexObjectField<S extends AbstractIndexObjectField<S,SC,NT,C,F>, SC extends SearchIndexScope<?>, NT extends AbstractIndexCompositeNodeType<SC, ? super S>, C extends IndexCompositeNode<SC,NT,F>, F extends IndexField<SC,?>>
extends AbstractIndexField<S,SC,NT,C>
implements IndexObjectField<SC,NT,C,F>
-
Field Summary
Fields inherited from class AbstractIndexField
absolutePath, absolutePathComponents, inclusion, multiValued, parent, relativeNameFields inherited from class AbstractIndexNode
type -
Constructor Summary
ConstructorsConstructorDescriptionAbstractIndexObjectField(C parent, String relativeFieldName, NT type, TreeNodeInclusion inclusion, boolean multiValued, Map<String, F> notYetInitializedStaticChildren) -
Method Summary
Modifier and TypeMethodDescriptionfinal StringabsolutePath(String relativeFieldName) final booleanfinal booleanfinal booleanisRoot()final booleanGet all statically-defined, direct child fields for this element, mapped by theirrelative name.final SIndexValueField<SC, ?, C> Methods inherited from class AbstractIndexField
absolutePath, absolutePathComponents, closestMultiValuedParentAbsolutePath, inclusion, multiValued, multiValuedInRoot, parent, relativeEventContext, relativeName, toStringMethods 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 IndexCompositeNode
staticChildren, typeMethods inherited from interface IndexField
parent, toCompositeMethods inherited from interface IndexFieldDescriptor
absolutePath, multiValued, multiValuedInRoot, relativeNameMethods inherited from interface IndexObjectFieldDescriptor
typeMethods inherited from interface SearchIndexNodeContext
absolutePath, absolutePathComponents, cannotUseQueryElement, closestMultiValuedParentAbsolutePath, multiValued, multiValuedInRoot, nestedDocumentPath, queryElement, relativeEventContext
-
Constructor Details
-
AbstractIndexObjectField
-
-
Method Details
-
isRoot
public final boolean isRoot()- Specified by:
isRootin interfaceIndexCompositeElementDescriptor- Returns:
trueif this element represents the root of the index.
-
isComposite
public final boolean isComposite()- Specified by:
isCompositein interfaceSearchIndexNodeContext<S extends AbstractIndexObjectField<S,SC, NT, C, F>>
-
isObjectField
public final boolean isObjectField()- Specified by:
isObjectFieldin interfaceIndexCompositeElementDescriptor- Specified by:
isObjectFieldin interfaceIndexFieldDescriptor- Specified by:
isObjectFieldin interfaceSearchIndexNodeContext<S extends AbstractIndexObjectField<S,SC, NT, C, F>> - Returns:
trueif this field is an object field. In that case,IndexFieldDescriptor.toObjectField()can be called safely (it won't throw an exception).
-
isValueField
public final boolean isValueField()- Specified by:
isValueFieldin interfaceIndexFieldDescriptor- Specified by:
isValueFieldin interfaceSearchIndexNodeContext<S extends AbstractIndexObjectField<S,SC, NT, C, F>> - Returns:
trueif this field is a value field. In that case,IndexFieldDescriptor.toValueField()can be called safely (it won't throw an exception).
-
toObjectField
- Specified by:
toObjectFieldin interfaceIndexCompositeElementDescriptor- Specified by:
toObjectFieldin interfaceIndexField<S extends AbstractIndexObjectField<S,SC, NT, C, F>, SC extends SearchIndexScope<?>> - Specified by:
toObjectFieldin interfaceIndexFieldDescriptor- Specified by:
toObjectFieldin interfaceIndexNode<S extends AbstractIndexObjectField<S,SC, NT, C, F>> - Specified by:
toObjectFieldin interfaceSearchIndexNodeContext<S extends AbstractIndexObjectField<S,SC, NT, C, F>> - Returns:
- This field as an
IndexObjectFieldDescriptor, if possible. Nevernull.
-
toValueField
- Specified by:
toValueFieldin interfaceIndexField<S extends AbstractIndexObjectField<S,SC, NT, C, F>, SC extends SearchIndexScope<?>> - Specified by:
toValueFieldin interfaceIndexFieldDescriptor- Specified by:
toValueFieldin interfaceIndexNode<S extends AbstractIndexObjectField<S,SC, NT, C, F>> - Specified by:
toValueFieldin interfaceSearchIndexNodeContext<S extends AbstractIndexObjectField<S,SC, NT, C, F>> - Returns:
- This field as an
IndexValueFieldDescriptor, if possible. Nevernull.
-
absolutePath
- Specified by:
absolutePathin interfaceSearchIndexCompositeNodeContext<S extends AbstractIndexObjectField<S,SC, NT, C, F>>
-
nestedPathHierarchy
- Specified by:
nestedPathHierarchyin interfaceSearchIndexNodeContext<S extends AbstractIndexObjectField<S,SC, NT, C, 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 AbstractIndexObjectField<S,SC, NT, C, F>, SC extends SearchIndexScope<?>, NT extends AbstractIndexCompositeNodeType<SC, ? super S>> - Specified by:
staticChildrenByNamein interfaceSearchIndexCompositeNodeContext<S extends AbstractIndexObjectField<S,SC, NT, C, F>> - Returns:
- A map containing all static child fields.
-