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 boolean
isComposite()
boolean
isObjectField()
boolean
isValueField()
List<String>
nestedPathHierarchy()
C
toComposite()
IndexObjectField<SC,?,C,?>
toObjectField()
S
toValueField()
-
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:
isComposite
in interfaceSearchIndexNodeContext<S extends AbstractIndexValueField<S,SC,FT,C,F>>
-
isObjectField
public final boolean isObjectField()
- Specified by:
isObjectField
in interfaceIndexFieldDescriptor
- Returns:
true
if 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:
isValueField
in interfaceIndexFieldDescriptor
- Specified by:
isValueField
in interfaceSearchIndexNodeContext<S extends AbstractIndexValueField<S,SC,FT,C,F>>
- Returns:
true
if 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:
toComposite
in interfaceIndexField<S extends AbstractIndexValueField<S,SC,FT,C,F>,SC extends SearchIndexScope<?>>
- Specified by:
toComposite
in interfaceIndexNode<S extends AbstractIndexValueField<S,SC,FT,C,F>>
- Specified by:
toComposite
in interfaceSearchIndexNodeContext<S extends AbstractIndexValueField<S,SC,FT,C,F>>
-
toObjectField
public IndexObjectField<SC,?,C,?> toObjectField()
- Specified by:
toObjectField
in interfaceIndexField<S extends AbstractIndexValueField<S,SC,FT,C,F>,SC extends SearchIndexScope<?>>
- Specified by:
toObjectField
in interfaceIndexFieldDescriptor
- Specified by:
toObjectField
in 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:
toValueField
in interfaceIndexField<S extends AbstractIndexValueField<S,SC,FT,C,F>,SC extends SearchIndexScope<?>>
- Specified by:
toValueField
in interfaceIndexFieldDescriptor
- Specified by:
toValueField
in interfaceIndexNode<S extends AbstractIndexValueField<S,SC,FT,C,F>>
- Specified by:
toValueField
in 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:
nestedPathHierarchy
in interfaceSearchIndexNodeContext<S extends AbstractIndexValueField<S,SC,FT,C,F>>
-
-