Class ElasticsearchIndexValueField<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<ElasticsearchIndexValueField<F>,ElasticsearchSearchIndexScope<?>,ElasticsearchIndexValueFieldType<F>,ElasticsearchIndexCompositeNode,F>
org.hibernate.search.backend.elasticsearch.document.model.impl.ElasticsearchIndexValueField<F>
- All Implemented Interfaces:
ElasticsearchIndexField,ElasticsearchIndexNode,ElasticsearchSearchEncodingContext<F>,ElasticsearchSearchIndexNodeContext,ElasticsearchSearchIndexValueFieldContext<F>,IndexField<ElasticsearchSearchIndexScope<?>,,ElasticsearchIndexCompositeNode> IndexNode<ElasticsearchSearchIndexScope<?>>,IndexValueField<ElasticsearchSearchIndexScope<?>,,ElasticsearchIndexValueFieldType<F>, ElasticsearchIndexCompositeNode> IndexFieldDescriptor,IndexValueFieldDescriptor,SearchIndexNodeContext<ElasticsearchSearchIndexScope<?>>,SearchIndexValueFieldContext<ElasticsearchSearchIndexScope<?>>,EventContextProvider
public final class ElasticsearchIndexValueField<F>
extends AbstractIndexValueField<ElasticsearchIndexValueField<F>,ElasticsearchSearchIndexScope<?>,ElasticsearchIndexValueFieldType<F>,ElasticsearchIndexCompositeNode,F>
implements ElasticsearchIndexField, ElasticsearchSearchIndexValueFieldContext<F>, ElasticsearchSearchEncodingContext<F>
-
Field Summary
Fields inherited from class org.hibernate.search.engine.backend.document.model.spi.AbstractIndexField
absolutePath, absolutePathComponents, inclusion, multiValued, parent, relativeNameFields inherited from class org.hibernate.search.engine.backend.document.model.spi.AbstractIndexNode
type -
Constructor Summary
ConstructorsConstructorDescriptionElasticsearchIndexValueField(ElasticsearchIndexCompositeNode parent, String relativeFieldName, ElasticsearchIndexValueFieldType<F> type, TreeNodeInclusion inclusion, boolean multiValued) -
Method Summary
Modifier and TypeMethodDescriptioncom.google.gson.JsonElementconvertAndEncode(ElasticsearchSearchIndexScope<?> scope, ElasticsearchSearchIndexValueFieldContext<F> field, Object value, ValueModel valueModel, BiFunction<ElasticsearchFieldCodec<F>, F, com.google.gson.JsonElement> encodeFunction) <T> Function<T,com.google.gson.JsonElement> encoder(ElasticsearchSearchIndexScope<?> scope, ElasticsearchSearchIndexValueFieldContext<F> field, Class<T> expectedType, ValueModel valueModel) booleanprotected ElasticsearchIndexValueField<F>self()<T> ElasticsearchIndexValueField<? super T>withValueType(Class<T> expectedSubType, EventContext eventContext) Methods inherited from class org.hibernate.search.engine.backend.document.model.spi.AbstractIndexValueField
isComposite, isObjectField, isValueField, nestedPathHierarchy, toComposite, toValueFieldMethods inherited from class org.hibernate.search.engine.backend.document.model.spi.AbstractIndexField
absolutePath, absolutePathComponents, closestMultiValuedParentAbsolutePath, inclusion, multiValued, multiValuedInRoot, parent, relativeEventContext, relativeName, toStringMethods inherited from class org.hibernate.search.engine.backend.document.model.spi.AbstractIndexNode
cannotUseQueryElement, eventContext, queryElement, typeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.hibernate.search.backend.elasticsearch.document.model.impl.ElasticsearchIndexNode
toComposite, toValueFieldMethods inherited from interface org.hibernate.search.backend.elasticsearch.search.common.impl.ElasticsearchSearchIndexNodeContext
toComposite, toValueFieldMethods inherited from interface org.hibernate.search.backend.elasticsearch.search.common.impl.ElasticsearchSearchIndexValueFieldContext
typeMethods inherited from interface org.hibernate.search.util.common.reporting.spi.EventContextProvider
eventContextMethods inherited from interface org.hibernate.search.engine.backend.document.model.spi.IndexField
parent, toComposite, toValueFieldMethods inherited from interface org.hibernate.search.engine.backend.metamodel.IndexFieldDescriptor
absolutePath, isObjectField, isValueField, multiValued, multiValuedInRoot, relativeNameMethods inherited from interface org.hibernate.search.engine.backend.document.model.spi.IndexNode
inclusionMethods inherited from interface org.hibernate.search.engine.backend.document.model.spi.IndexValueField
typeMethods inherited from interface org.hibernate.search.engine.search.common.spi.SearchIndexNodeContext
absolutePath, absolutePathComponents, cannotUseQueryElement, closestMultiValuedParentAbsolutePath, isComposite, isObjectField, isValueField, multiValued, multiValuedInRoot, nestedDocumentPath, nestedPathHierarchy, queryElement, relativeEventContext
-
Constructor Details
-
ElasticsearchIndexValueField
public ElasticsearchIndexValueField(ElasticsearchIndexCompositeNode parent, String relativeFieldName, ElasticsearchIndexValueFieldType<F> type, TreeNodeInclusion inclusion, boolean multiValued)
-
-
Method Details
-
self
- Specified by:
selfin classAbstractIndexNode<ElasticsearchIndexValueField<F>,ElasticsearchSearchIndexScope<?>, ElasticsearchIndexValueFieldType<F>>
-
toObjectField
- Specified by:
toObjectFieldin interfaceElasticsearchIndexNode- Specified by:
toObjectFieldin interfaceElasticsearchSearchIndexNodeContext- Specified by:
toObjectFieldin interfaceIndexField<ElasticsearchSearchIndexScope<?>,ElasticsearchIndexCompositeNode> - Specified by:
toObjectFieldin interfaceIndexFieldDescriptor- Specified by:
toObjectFieldin interfaceIndexNode<F>- Specified by:
toObjectFieldin interfaceSearchIndexNodeContext<F>- Overrides:
toObjectFieldin classAbstractIndexValueField<ElasticsearchIndexValueField<F>,ElasticsearchSearchIndexScope<?>, ElasticsearchIndexValueFieldType<F>, ElasticsearchIndexCompositeNode, F> - Returns:
- This field as an
IndexObjectFieldDescriptor, if possible. Nevernull.
-
withValueType
public <T> ElasticsearchIndexValueField<? super T> withValueType(Class<T> expectedSubType, EventContext eventContext) -
encoder
public <T> Function<T,com.google.gson.JsonElement> encoder(ElasticsearchSearchIndexScope<?> scope, ElasticsearchSearchIndexValueFieldContext<F> field, Class<T> expectedType, ValueModel valueModel) - Specified by:
encoderin interfaceElasticsearchSearchEncodingContext<F>
-
convertAndEncode
public com.google.gson.JsonElement convertAndEncode(ElasticsearchSearchIndexScope<?> scope, ElasticsearchSearchIndexValueFieldContext<F> field, Object value, ValueModel valueModel, BiFunction<ElasticsearchFieldCodec<F>, F, com.google.gson.JsonElement> encodeFunction) - Specified by:
convertAndEncodein interfaceElasticsearchSearchEncodingContext<F>
-
isCompatibleWith
- Specified by:
isCompatibleWithin interfaceElasticsearchSearchEncodingContext<F>
-
encodingContext
- Specified by:
encodingContextin interfaceElasticsearchSearchIndexValueFieldContext<F>
-