public interface IndexFieldTypeFactory
| Modifier and Type | Method and Description |
|---|---|
<F> StandardIndexFieldTypeOptionsStep<?,F> |
as(Class<F> valueType)
Define a field type whose values are represented as a given type in Hibernate Search.
|
ScaledNumberIndexFieldTypeOptionsStep<?,BigDecimal> |
asBigDecimal()
Define a field type whose values are represented as a
BigDecimal in Hibernate Search. |
ScaledNumberIndexFieldTypeOptionsStep<?,BigInteger> |
asBigInteger()
Define a field type whose values are represented as a
BigInteger in Hibernate Search. |
StandardIndexFieldTypeOptionsStep<?,Boolean> |
asBoolean()
Define a field type whose values are represented as a
Boolean in Hibernate Search. |
StandardIndexFieldTypeOptionsStep<?,Byte> |
asByte()
Define a field type whose values are represented as a
Byte in Hibernate Search. |
StandardIndexFieldTypeOptionsStep<?,Double> |
asDouble()
Define a field type whose values are represented as a
Double in Hibernate Search. |
StandardIndexFieldTypeOptionsStep<?,Float> |
asFloat()
Define a field type whose values are represented as a
Float in Hibernate Search. |
StandardIndexFieldTypeOptionsStep<?,GeoPoint> |
asGeoPoint()
Define a field type whose values are represented as a
GeoPoint in Hibernate Search. |
StandardIndexFieldTypeOptionsStep<?,Instant> |
asInstant()
Define a field type whose values are represented as an
Instant in Hibernate Search. |
StandardIndexFieldTypeOptionsStep<?,Integer> |
asInteger()
Define a field type whose values are represented as an
Integer in Hibernate Search. |
StandardIndexFieldTypeOptionsStep<?,LocalDate> |
asLocalDate()
Define a field type whose values are represented as a
LocalDate in Hibernate Search. |
StandardIndexFieldTypeOptionsStep<?,LocalDateTime> |
asLocalDateTime()
Define a field type whose values are represented as a
LocalDateTime in Hibernate Search. |
StandardIndexFieldTypeOptionsStep<?,LocalTime> |
asLocalTime()
Define a field type whose values are represented as a
LocalTime in Hibernate Search. |
StandardIndexFieldTypeOptionsStep<?,Long> |
asLong()
Define a field type whose values are represented as a
Long in Hibernate Search. |
StandardIndexFieldTypeOptionsStep<?,MonthDay> |
asMonthDay()
Define a field type whose values are represented as a
MonthDay in Hibernate Search. |
StandardIndexFieldTypeOptionsStep<?,OffsetDateTime> |
asOffsetDateTime()
Define a field type whose values are represented as an
OffsetDateTime in Hibernate Search. |
StandardIndexFieldTypeOptionsStep<?,OffsetTime> |
asOffsetTime()
Define a field type whose values are represented as an
OffsetTime in Hibernate Search. |
StandardIndexFieldTypeOptionsStep<?,Short> |
asShort()
Define a field type whose values are represented as a
Short in Hibernate Search. |
StringIndexFieldTypeOptionsStep<?> |
asString()
Define a field type whose values are represented as a
String in Hibernate Search. |
StandardIndexFieldTypeOptionsStep<?,Year> |
asYear()
Define a field type whose values are represented as a
Year in Hibernate Search. |
StandardIndexFieldTypeOptionsStep<?,YearMonth> |
asYearMonth()
Define a field type whose values are represented as a
YearMonth in Hibernate Search. |
StandardIndexFieldTypeOptionsStep<?,ZonedDateTime> |
asZonedDateTime()
Define a field type whose values are represented as a
ZonedDateTime in Hibernate Search. |
default <T> T |
extension(IndexFieldTypeFactoryExtension<T> extension)
Extend the current factory with the given extension,
resulting in an extended factory offering more field types.
|
<F> StandardIndexFieldTypeOptionsStep<?,F> as(Class<F> valueType)
Note this method will return a "generic" DSL step that does not offer any type-specific options.
When possible, prefer the other methods such as asString() or asInteger().
F - The type of values for this field type.valueType - The type of values for this field type.SearchException - If the given inputType is not supported.StringIndexFieldTypeOptionsStep<?> asString()
String in Hibernate Search.StandardIndexFieldTypeOptionsStep<?,Integer> asInteger()
Integer in Hibernate Search.StandardIndexFieldTypeOptionsStep<?,Long> asLong()
Long in Hibernate Search.StandardIndexFieldTypeOptionsStep<?,Boolean> asBoolean()
Boolean in Hibernate Search.StandardIndexFieldTypeOptionsStep<?,Byte> asByte()
Byte in Hibernate Search.StandardIndexFieldTypeOptionsStep<?,Short> asShort()
Short in Hibernate Search.StandardIndexFieldTypeOptionsStep<?,Float> asFloat()
Float in Hibernate Search.StandardIndexFieldTypeOptionsStep<?,Double> asDouble()
Double in Hibernate Search.StandardIndexFieldTypeOptionsStep<?,LocalDate> asLocalDate()
LocalDate in Hibernate Search.StandardIndexFieldTypeOptionsStep<?,LocalDateTime> asLocalDateTime()
LocalDateTime in Hibernate Search.StandardIndexFieldTypeOptionsStep<?,LocalTime> asLocalTime()
LocalTime in Hibernate Search.StandardIndexFieldTypeOptionsStep<?,Instant> asInstant()
Instant in Hibernate Search.StandardIndexFieldTypeOptionsStep<?,ZonedDateTime> asZonedDateTime()
ZonedDateTime in Hibernate Search.StandardIndexFieldTypeOptionsStep<?,Year> asYear()
Year in Hibernate Search.StandardIndexFieldTypeOptionsStep<?,YearMonth> asYearMonth()
YearMonth in Hibernate Search.StandardIndexFieldTypeOptionsStep<?,MonthDay> asMonthDay()
MonthDay in Hibernate Search.StandardIndexFieldTypeOptionsStep<?,OffsetDateTime> asOffsetDateTime()
OffsetDateTime in Hibernate Search.StandardIndexFieldTypeOptionsStep<?,OffsetTime> asOffsetTime()
OffsetTime in Hibernate Search.StandardIndexFieldTypeOptionsStep<?,GeoPoint> asGeoPoint()
GeoPoint in Hibernate Search.ScaledNumberIndexFieldTypeOptionsStep<?,BigDecimal> asBigDecimal()
BigDecimal in Hibernate Search.ScaledNumberIndexFieldTypeOptionsStep<?,BigInteger> asBigInteger()
BigInteger in Hibernate Search.default <T> T extension(IndexFieldTypeFactoryExtension<T> extension)
T - The type of factory provided by the extension.extension - The extension to apply.SearchException - If the extension cannot be applied (wrong underlying technology, ...).Copyright © 2006-2020 Red Hat, Inc. and others. Licensed under the GNU Lesser General Public License (LGPL), version 2.1 or later.