@Documented @Target(value={METHOD,FIELD}) @Retention(value=RUNTIME) @Repeatable(value=ScaledNumberField.List.class) @PropertyMapping(processor=@PropertyMappingAnnotationProcessorRef(type=org.hibernate.search.mapper.pojo.mapping.definition.annotation.processing.impl.ScaledNumberFieldProcessor.class)) public @interface ScaledNumberField
Useful for BigDecimal and BigInteger in particular.
decimalScale()| Modifier and Type | Optional Element and Description |
|---|---|
Aggregable |
aggregable |
int |
decimalScale |
ContainerExtraction |
extraction |
String |
indexNullAs |
String |
name |
Projectable |
projectable |
Searchable |
searchable |
Sortable |
sortable |
ValueBinderRef |
valueBinder |
ValueBridgeRef |
valueBridge |
public abstract String name
public abstract int decimalScale
decimalScale will shift the decimal point to the right before rounding to the nearest integer and indexing,
effectively retaining that many digits after the decimal place in the index.
Since numbers are indexed with a fixed number of bits,
this increase in precision also means that the maximum value that can be indexed will be smaller.
A negative decimalScale will shift the decimal point to the left before rounding to the nearest integer and indexing,
effectively setting that many of the smaller digits to zero in the index.
Since numbers are indexed with a fixed number of bits,
this decrease in precision also means that the maximum value that can be indexed will be larger.public abstract Projectable projectable
GenericField.projectable(),
Projectablepublic abstract Sortable sortable
GenericField.sortable(),
Sortablepublic abstract Searchable searchable
GenericField.searchable(),
Searchablepublic abstract Aggregable aggregable
GenericField.aggregable(),
Aggregablepublic abstract String indexNullAs
GenericField.indexNullAs()public abstract ValueBridgeRef valueBridge
valueBinder() is set.GenericField.valueBridge(),
ValueBridgeRefpublic abstract ValueBinderRef valueBinder
valueBridge() is set.GenericField.valueBinder(),
ValueBinderRefpublic abstract ContainerExtraction extraction
GenericField.extraction()Copyright © 2006-2020 Red Hat, Inc. and others. Licensed under the GNU Lesser General Public License (LGPL), version 2.1 or later.