Class AbstractIndexValueFieldType<SC extends SearchIndexScope<?>,N extends SearchIndexValueFieldContext<SC>,F>
java.lang.Object
org.hibernate.search.engine.backend.types.spi.AbstractIndexNodeType<SC,N>
org.hibernate.search.engine.backend.types.spi.AbstractIndexValueFieldType<SC,N,F>
- All Implemented Interfaces:
IndexFieldTypeDescriptor,IndexValueFieldTypeDescriptor,IndexFieldType<F>,SearchIndexNodeTypeContext<SC,,N> SearchIndexValueFieldTypeContext<SC,N, F>
public abstract class AbstractIndexValueFieldType<SC extends SearchIndexScope<?>,N extends SearchIndexValueFieldContext<SC>,F>
extends AbstractIndexNodeType<SC,N>
implements IndexValueFieldTypeDescriptor, IndexFieldType<F>, SearchIndexValueFieldTypeContext<SC,N,F>
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classAbstractIndexValueFieldType.Builder<SC extends SearchIndexScope<?>,N extends SearchIndexValueFieldContext<SC>, F> -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanfinal Class<?> booleanfinal DslConverter<F, F> final ProjectionConverter<F, F> final DslConverter<?, F> final ProjectionConverter<F, ?> booleanDslConverter<?, F> final booleanfinal Class<?> final booleanfinal booleansortable()toString()Methods inherited from class org.hibernate.search.engine.backend.types.spi.AbstractIndexNodeType
queryElementFactory, traitsMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.hibernate.search.engine.backend.metamodel.IndexFieldTypeDescriptor
traitsMethods inherited from interface org.hibernate.search.engine.search.common.spi.SearchIndexNodeTypeContext
queryElementFactoryMethods inherited from interface org.hibernate.search.engine.search.common.spi.SearchIndexValueFieldTypeContext
dslConverter, projectionConverter, rawDslConverter, rawProjectionConverter
-
Constructor Details
-
AbstractIndexValueFieldType
-
-
Method Details
-
toString
- Overrides:
toStringin classAbstractIndexNodeType<SC extends SearchIndexScope<?>,N extends SearchIndexValueFieldContext<SC>>
-
valueClass
- Specified by:
valueClassin interfaceIndexValueFieldTypeDescriptor- Specified by:
valueClassin interfaceSearchIndexValueFieldTypeContext<SC extends SearchIndexScope<?>,N extends SearchIndexValueFieldContext<SC>, F> - Returns:
- The raw Java type of values for this field.
This may not be the expected type for arguments passed to the DSL for this field,
nor the type of projected values for this field.
See
IndexValueFieldTypeDescriptor.dslArgumentClass()
-
searchable
public final boolean searchable()- Specified by:
searchablein interfaceIndexValueFieldTypeDescriptor- Returns:
trueif search predicates are supported on fields of this type. Some sorts may still be unsupported because they don't make sense (e.g. a "within circle" predicate on a string field).
-
sortable
public final boolean sortable()- Specified by:
sortablein interfaceIndexValueFieldTypeDescriptor- Returns:
trueif sorts are supported on fields of this type. Some sorts may still be unsupported because they don't make sense (e.g. a distance sort aggregation on a string field).
-
projectable
public final boolean projectable()- Specified by:
projectablein interfaceIndexValueFieldTypeDescriptor- Returns:
trueif projections are supported on fields of this type. Some projections may still be unsupported because they don't make sense (e.g. a distance projection aggregation on a string field).
-
aggregable
public final boolean aggregable()- Specified by:
aggregablein interfaceIndexValueFieldTypeDescriptor- Returns:
trueif aggregations are supported on fields of this type. Some aggregations may still be unsupported because they don't make sense (e.g. a range aggregation on an analyzed string field).
-
multivaluable
public boolean multivaluable()- Specified by:
multivaluablein interfaceIndexValueFieldTypeDescriptor- Returns:
trueif the field type allows storing multiple values,falseotherwise.
-
dslArgumentClass
- Specified by:
dslArgumentClassin interfaceIndexValueFieldTypeDescriptor- Returns:
- The expected raw Java type of arguments passed to the DSL for this field.
- See Also:
-
mappingDslConverter
- Specified by:
mappingDslConverterin interfaceSearchIndexValueFieldTypeContext<SC extends SearchIndexScope<?>,N extends SearchIndexValueFieldContext<SC>, F>
-
parserDslConverter
- Specified by:
parserDslConverterin interfaceSearchIndexValueFieldTypeContext<SC extends SearchIndexScope<?>,N extends SearchIndexValueFieldContext<SC>, F>
-
formatterProjectionConverter
- Specified by:
formatterProjectionConverterin interfaceSearchIndexValueFieldTypeContext<SC extends SearchIndexScope<?>,N extends SearchIndexValueFieldContext<SC>, F>
-
indexDslConverter
- Specified by:
indexDslConverterin interfaceSearchIndexValueFieldTypeContext<SC extends SearchIndexScope<?>,N extends SearchIndexValueFieldContext<SC>, F>
-
projectedValueClass
- Specified by:
projectedValueClassin interfaceIndexValueFieldTypeDescriptor- Returns:
- The raw Java type of projected values for this field.
- See Also:
-
mappingProjectionConverter
- Specified by:
mappingProjectionConverterin interfaceSearchIndexValueFieldTypeContext<SC extends SearchIndexScope<?>,N extends SearchIndexValueFieldContext<SC>, F>
-
indexProjectionConverter
- Specified by:
indexProjectionConverterin interfaceSearchIndexValueFieldTypeContext<SC extends SearchIndexScope<?>,N extends SearchIndexValueFieldContext<SC>, F>
-
analyzerName
- Specified by:
analyzerNamein interfaceIndexValueFieldTypeDescriptor- Returns:
- The name of the analyzer assigned to this type, if any. Only ever set for String fields.
-
normalizerName
- Specified by:
normalizerNamein interfaceIndexValueFieldTypeDescriptor- Returns:
- The name of the normalizer assigned to this type, if any. Only ever set for String fields.
-
searchAnalyzerName
- Specified by:
searchAnalyzerNamein interfaceIndexValueFieldTypeDescriptor- Returns:
- The name of the search analyzer assigned to this type, if any.
Only ever set for String fields.
By default, the search analyzer is the same as the
analyzer.
-
highlighterTypeSupported
- Specified by:
highlighterTypeSupportedin interfaceSearchIndexValueFieldTypeContext<SC extends SearchIndexScope<?>,N extends SearchIndexValueFieldContext<SC>, F>
-