Class AbstractIndexValueField<S extends AbstractIndexValueField<S,SC,FT,C,F>,SC extends SearchIndexScope<?>,FT extends AbstractIndexValueFieldType<SC,? super S,F>,C extends IndexCompositeNode<SC,?,?>,F>
- 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,FT,C>
-
- org.hibernate.search.engine.backend.document.model.spi.AbstractIndexValueField<S,SC,FT,C,F>
-
- All Implemented Interfaces:
IndexField<SC,C>,IndexNode<SC>,IndexValueField<SC,FT,C>,IndexFieldDescriptor,IndexValueFieldDescriptor,SearchIndexNodeContext<SC>,SearchIndexValueFieldContext<SC>,EventContextProvider
public abstract class AbstractIndexValueField<S extends AbstractIndexValueField<S,SC,FT,C,F>,SC extends SearchIndexScope<?>,FT extends AbstractIndexValueFieldType<SC,? super S,F>,C extends IndexCompositeNode<SC,?,?>,F> extends AbstractIndexField<S,SC,FT,C> implements IndexValueField<SC,FT,C>, SearchIndexValueFieldContext<SC>
-
-
Field Summary
-
Fields inherited from class org.hibernate.search.engine.backend.document.model.spi.AbstractIndexField
absolutePath, absolutePathComponents, inclusion, multiValued, multiValuedInRoot, parent, relativeName
-
Fields inherited from class org.hibernate.search.engine.backend.document.model.spi.AbstractIndexNode
type
-
-
Constructor Summary
Constructors Constructor Description AbstractIndexValueField(C parent, String relativeFieldName, FT type, IndexFieldInclusion inclusion, boolean multiValued)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanisComposite()booleanisObjectField()booleanisValueField()List<String>nestedPathHierarchy()CtoComposite()IndexObjectField<SC,?,C,?>toObjectField()StoValueField()-
Methods inherited from class org.hibernate.search.engine.backend.document.model.spi.AbstractIndexField
absolutePath, absolutePathComponents, inclusion, multiValued, multiValuedInRoot, parent, relativeEventContext, relativeName, toString
-
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.IndexField
parent
-
Methods inherited from interface org.hibernate.search.engine.backend.metamodel.IndexFieldDescriptor
absolutePath, multiValued, multiValuedInRoot, relativeName
-
Methods inherited from interface org.hibernate.search.engine.backend.document.model.spi.IndexNode
inclusion, multiValuedInRoot
-
Methods inherited from interface org.hibernate.search.engine.backend.document.model.spi.IndexValueField
type
-
Methods inherited from interface org.hibernate.search.engine.search.common.spi.SearchIndexNodeContext
absolutePath, absolutePathComponents, nestedDocumentPath, queryElement, relativeEventContext
-
Methods inherited from interface org.hibernate.search.engine.search.common.spi.SearchIndexValueFieldContext
multiValuedInRoot, type
-
-
-
-
Constructor Detail
-
AbstractIndexValueField
public AbstractIndexValueField(C parent, String relativeFieldName, FT type, IndexFieldInclusion inclusion, boolean multiValued)
-
-
Method Detail
-
isComposite
public final boolean isComposite()
- Specified by:
isCompositein interfaceSearchIndexNodeContext<S extends AbstractIndexValueField<S,SC,FT,C,F>>
-
isObjectField
public final boolean isObjectField()
- Specified by:
isObjectFieldin interfaceIndexFieldDescriptor- 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 AbstractIndexValueField<S,SC,FT,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).
-
toComposite
public final C toComposite()
- Specified by:
toCompositein interfaceIndexField<S extends AbstractIndexValueField<S,SC,FT,C,F>,SC extends SearchIndexScope<?>>- Specified by:
toCompositein interfaceIndexNode<S extends AbstractIndexValueField<S,SC,FT,C,F>>- Specified by:
toCompositein interfaceSearchIndexNodeContext<S extends AbstractIndexValueField<S,SC,FT,C,F>>
-
toObjectField
public IndexObjectField<SC,?,C,?> toObjectField()
- Specified by:
toObjectFieldin interfaceIndexField<S extends AbstractIndexValueField<S,SC,FT,C,F>,SC extends SearchIndexScope<?>>- Specified by:
toObjectFieldin interfaceIndexFieldDescriptor- Specified by:
toObjectFieldin interfaceIndexNode<S extends AbstractIndexValueField<S,SC,FT,C,F>>- Returns:
- This field as an
IndexObjectFieldDescriptor, if possible. Nevernull.
-
toValueField
public final S toValueField()
- Specified by:
toValueFieldin interfaceIndexField<S extends AbstractIndexValueField<S,SC,FT,C,F>,SC extends SearchIndexScope<?>>- Specified by:
toValueFieldin interfaceIndexFieldDescriptor- Specified by:
toValueFieldin interfaceIndexNode<S extends AbstractIndexValueField<S,SC,FT,C,F>>- Specified by:
toValueFieldin interfaceSearchIndexNodeContext<S extends AbstractIndexValueField<S,SC,FT,C,F>>- Returns:
- This field as an
IndexValueFieldDescriptor, if possible. Nevernull.
-
nestedPathHierarchy
public List<String> nestedPathHierarchy()
- Specified by:
nestedPathHierarchyin interfaceSearchIndexNodeContext<S extends AbstractIndexValueField<S,SC,FT,C,F>>
-
-