public interface IndexFieldTypeFactoryContext
| Modifier and Type | Method and Description |
|---|---|
<F> StandardIndexFieldTypeContext<?,F> |
as(Class<F> valueType)
Define a field type whose values are represented as a given type in Hibernate Search.
|
ScaledNumberIndexFieldTypeContext<?,BigDecimal> |
asBigDecimal()
Define a field type whose values are represented as a
BigDecimal in Hibernate Search. |
ScaledNumberIndexFieldTypeContext<?,BigInteger> |
asBigInteger()
Define a field type whose values are represented as a
BigInteger in Hibernate Search. |
StandardIndexFieldTypeContext<?,Boolean> |
asBoolean()
Define a field type whose values are represented as a
Boolean in Hibernate Search. |
StandardIndexFieldTypeContext<?,Byte> |
asByte()
Define a field type whose values are represented as a
Byte in Hibernate Search. |
StandardIndexFieldTypeContext<?,Double> |
asDouble()
Define a field type whose values are represented as a
Double in Hibernate Search. |
StandardIndexFieldTypeContext<?,Float> |
asFloat()
Define a field type whose values are represented as a
Float in Hibernate Search. |
StandardIndexFieldTypeContext<?,GeoPoint> |
asGeoPoint()
Define a field type whose values are represented as a
GeoPoint in Hibernate Search. |
StandardIndexFieldTypeContext<?,Instant> |
asInstant()
Define a field type whose values are represented as an
Instant in Hibernate Search. |
StandardIndexFieldTypeContext<?,Integer> |
asInteger()
Define a field type whose values are represented as an
Integer in Hibernate Search. |
StandardIndexFieldTypeContext<?,LocalDate> |
asLocalDate()
Define a field type whose values are represented as a
LocalDate in Hibernate Search. |
StandardIndexFieldTypeContext<?,LocalDateTime> |
asLocalDateTime()
Define a field type whose values are represented as a
LocalDateTime in Hibernate Search. |
StandardIndexFieldTypeContext<?,LocalTime> |
asLocalTime()
Define a field type whose values are represented as a
LocalTime in Hibernate Search. |
StandardIndexFieldTypeContext<?,Long> |
asLong()
Define a field type whose values are represented as a
Long in Hibernate Search. |
StandardIndexFieldTypeContext<?,MonthDay> |
asMonthDay()
Define a field type whose values are represented as a
MonthDay in Hibernate Search. |
StandardIndexFieldTypeContext<?,OffsetDateTime> |
asOffsetDateTime()
Define a field type whose values are represented as an
OffsetDateTime in Hibernate Search. |
StandardIndexFieldTypeContext<?,OffsetTime> |
asOffsetTime()
Define a field type whose values are represented as an
OffsetTime in Hibernate Search. |
StandardIndexFieldTypeContext<?,Short> |
asShort()
Define a field type whose values are represented as a
Short in Hibernate Search. |
StringIndexFieldTypeContext<?> |
asString()
Define a field type whose values are represented as a
String in Hibernate Search. |
StandardIndexFieldTypeContext<?,Year> |
asYear()
Define a field type whose values are represented as a
Year in Hibernate Search. |
StandardIndexFieldTypeContext<?,YearMonth> |
asYearMonth()
Define a field type whose values are represented as a
YearMonth in Hibernate Search. |
StandardIndexFieldTypeContext<?,ZonedDateTime> |
asZonedDateTime()
Define a field type whose values are represented as a
ZonedDateTime in Hibernate Search. |
default <T> T |
extension(IndexFieldTypeFactoryContextExtension<T> extension)
Extend the current context with the given extension,
resulting in an extended context offering more field types.
|
<F> StandardIndexFieldTypeContext<?,F> as(Class<F> valueType)
Note this method will return a "generic" context 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.get the resulting type.SearchException - If the given inputType is not supported.StringIndexFieldTypeContext<?> asString()
String in Hibernate Search.get the resulting type.StandardIndexFieldTypeContext<?,Integer> asInteger()
Integer in Hibernate Search.get the resulting type.StandardIndexFieldTypeContext<?,Long> asLong()
Long in Hibernate Search.get the resulting type.StandardIndexFieldTypeContext<?,Boolean> asBoolean()
Boolean in Hibernate Search.get the resulting type.StandardIndexFieldTypeContext<?,Byte> asByte()
Byte in Hibernate Search.get the resulting type.StandardIndexFieldTypeContext<?,Short> asShort()
Short in Hibernate Search.get the resulting type.StandardIndexFieldTypeContext<?,Float> asFloat()
Float in Hibernate Search.get the resulting type.StandardIndexFieldTypeContext<?,Double> asDouble()
Double in Hibernate Search.get the resulting type.StandardIndexFieldTypeContext<?,LocalDate> asLocalDate()
LocalDate in Hibernate Search.get the resulting type.StandardIndexFieldTypeContext<?,LocalDateTime> asLocalDateTime()
LocalDateTime in Hibernate Search.get the resulting type.StandardIndexFieldTypeContext<?,LocalTime> asLocalTime()
LocalTime in Hibernate Search.get the resulting type.StandardIndexFieldTypeContext<?,Instant> asInstant()
Instant in Hibernate Search.get the resulting type.StandardIndexFieldTypeContext<?,ZonedDateTime> asZonedDateTime()
ZonedDateTime in Hibernate Search.get the resulting type.StandardIndexFieldTypeContext<?,Year> asYear()
Year in Hibernate Search.get the resulting type.StandardIndexFieldTypeContext<?,YearMonth> asYearMonth()
YearMonth in Hibernate Search.get the resulting type.StandardIndexFieldTypeContext<?,MonthDay> asMonthDay()
MonthDay in Hibernate Search.get the resulting type.StandardIndexFieldTypeContext<?,OffsetDateTime> asOffsetDateTime()
OffsetDateTime in Hibernate Search.get the resulting type.StandardIndexFieldTypeContext<?,OffsetTime> asOffsetTime()
OffsetTime in Hibernate Search.get the resulting type.StandardIndexFieldTypeContext<?,GeoPoint> asGeoPoint()
GeoPoint in Hibernate Search.get the resulting type.ScaledNumberIndexFieldTypeContext<?,BigDecimal> asBigDecimal()
BigDecimal in Hibernate Search.get the resulting type.ScaledNumberIndexFieldTypeContext<?,BigInteger> asBigInteger()
BigInteger in Hibernate Search.get the resulting type.default <T> T extension(IndexFieldTypeFactoryContextExtension<T> extension)
T - The type of context provided by the extension.extension - The extension to apply.SearchException - If the extension cannot be applied (wrong underlying technology, ...).Copyright © 2006-2019 Red Hat, Inc. and others. Licensed under the GNU Lesser General Public License (LGPL), version 2.1 or later.