Class LuceneIndexValueField<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<LuceneIndexValueField<F>,LuceneSearchIndexScope<?>,LuceneIndexValueFieldType<F>,LuceneIndexCompositeNode,F>
org.hibernate.search.backend.lucene.document.model.impl.LuceneIndexValueField<F>
- All Implemented Interfaces:
LuceneIndexField,LuceneIndexNode,LuceneSearchEncodingContext<F>,LuceneSearchIndexNodeContext,LuceneSearchIndexValueFieldContext<F>,IndexField<LuceneSearchIndexScope<?>,,LuceneIndexCompositeNode> IndexNode<LuceneSearchIndexScope<?>>,IndexValueField<LuceneSearchIndexScope<?>,,LuceneIndexValueFieldType<F>, LuceneIndexCompositeNode> IndexFieldDescriptor,IndexValueFieldDescriptor,SearchIndexNodeContext<LuceneSearchIndexScope<?>>,SearchIndexValueFieldContext<LuceneSearchIndexScope<?>>,EventContextProvider
public final class LuceneIndexValueField<F>
extends AbstractIndexValueField<LuceneIndexValueField<F>,LuceneSearchIndexScope<?>,LuceneIndexValueFieldType<F>,LuceneIndexCompositeNode,F>
implements LuceneIndexField, LuceneSearchIndexValueFieldContext<F>, LuceneSearchEncodingContext<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
ConstructorsConstructorDescriptionLuceneIndexValueField(LuceneIndexCompositeNode parent, String relativeFieldName, LuceneIndexValueFieldType<F> type, TreeNodeInclusion inclusion, boolean multiValued, boolean dynamic) -
Method Summary
Modifier and TypeMethodDescription<E> EconvertAndEncode(LuceneSearchIndexScope<?> scope, LuceneSearchIndexValueFieldContext<F> field, LuceneFieldCodec<F, E> codec, Object value, ValueModel valueModel) booleandynamic()<E,T> Function<T, E> encoder(LuceneSearchIndexScope<?> scope, LuceneSearchIndexValueFieldContext<F> field, LuceneFieldCodec<F, E> codec, Class<T> expectedType, ValueModel valueModel) booleanisCompatibleWith(LuceneSearchEncodingContext<?> other) protected LuceneIndexValueField<F>self()<T> LuceneIndexValueField<? 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.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.backend.lucene.document.model.impl.LuceneIndexNode
toComposite, toValueFieldMethods inherited from interface org.hibernate.search.backend.lucene.search.common.impl.LuceneSearchIndexNodeContext
toCompositeMethods inherited from interface org.hibernate.search.backend.lucene.search.common.impl.LuceneSearchIndexValueFieldContext
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
-
LuceneIndexValueField
public LuceneIndexValueField(LuceneIndexCompositeNode parent, String relativeFieldName, LuceneIndexValueFieldType<F> type, TreeNodeInclusion inclusion, boolean multiValued, boolean dynamic)
-
-
Method Details
-
self
- Specified by:
selfin classAbstractIndexNode<LuceneIndexValueField<F>,LuceneSearchIndexScope<?>, LuceneIndexValueFieldType<F>>
-
toObjectField
- Specified by:
toObjectFieldin interfaceIndexField<LuceneSearchIndexScope<?>,LuceneIndexCompositeNode> - Specified by:
toObjectFieldin interfaceIndexFieldDescriptor- Specified by:
toObjectFieldin interfaceIndexNode<F>- Specified by:
toObjectFieldin interfaceLuceneIndexNode- Specified by:
toObjectFieldin interfaceLuceneSearchIndexNodeContext- Specified by:
toObjectFieldin interfaceSearchIndexNodeContext<F>- Overrides:
toObjectFieldin classAbstractIndexValueField<LuceneIndexValueField<F>,LuceneSearchIndexScope<?>, LuceneIndexValueFieldType<F>, LuceneIndexCompositeNode, F> - Returns:
- This field as an
IndexObjectFieldDescriptor, if possible. Nevernull.
-
dynamic
public boolean dynamic()- Specified by:
dynamicin interfaceLuceneIndexNode
-
withValueType
public <T> LuceneIndexValueField<? super T> withValueType(Class<T> expectedSubType, EventContext eventContext) -
encoder
public <E,T> Function<T,E> encoder(LuceneSearchIndexScope<?> scope, LuceneSearchIndexValueFieldContext<F> field, LuceneFieldCodec<F, E> codec, Class<T> expectedType, ValueModel valueModel) - Specified by:
encoderin interfaceLuceneSearchEncodingContext<F>
-
convertAndEncode
public <E> E convertAndEncode(LuceneSearchIndexScope<?> scope, LuceneSearchIndexValueFieldContext<F> field, LuceneFieldCodec<F, E> codec, Object value, ValueModel valueModel) - Specified by:
convertAndEncodein interfaceLuceneSearchEncodingContext<F>
-
isCompatibleWith
- Specified by:
isCompatibleWithin interfaceLuceneSearchEncodingContext<F>
-
encodingContext
- Specified by:
encodingContextin interfaceLuceneSearchIndexValueFieldContext<F>
-