Interface IndexFieldTypeFactory
-
public interface IndexFieldTypeFactoryA factory for types of index fields.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method 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 aBigDecimalin Hibernate Search.ScaledNumberIndexFieldTypeOptionsStep<?,BigInteger>asBigInteger()Define a field type whose values are represented as aBigIntegerin Hibernate Search.StandardIndexFieldTypeOptionsStep<?,Boolean>asBoolean()Define a field type whose values are represented as aBooleanin Hibernate Search.StandardIndexFieldTypeOptionsStep<?,Byte>asByte()Define a field type whose values are represented as aBytein Hibernate Search.StandardIndexFieldTypeOptionsStep<?,Double>asDouble()Define a field type whose values are represented as aDoublein Hibernate Search.StandardIndexFieldTypeOptionsStep<?,Float>asFloat()Define a field type whose values are represented as aFloatin Hibernate Search.StandardIndexFieldTypeOptionsStep<?,GeoPoint>asGeoPoint()Define a field type whose values are represented as aGeoPointin Hibernate Search.StandardIndexFieldTypeOptionsStep<?,Instant>asInstant()Define a field type whose values are represented as anInstantin Hibernate Search.StandardIndexFieldTypeOptionsStep<?,Integer>asInteger()Define a field type whose values are represented as anIntegerin Hibernate Search.StandardIndexFieldTypeOptionsStep<?,LocalDate>asLocalDate()Define a field type whose values are represented as aLocalDatein Hibernate Search.StandardIndexFieldTypeOptionsStep<?,LocalDateTime>asLocalDateTime()Define a field type whose values are represented as aLocalDateTimein Hibernate Search.StandardIndexFieldTypeOptionsStep<?,LocalTime>asLocalTime()Define a field type whose values are represented as aLocalTimein Hibernate Search.StandardIndexFieldTypeOptionsStep<?,Long>asLong()Define a field type whose values are represented as aLongin Hibernate Search.StandardIndexFieldTypeOptionsStep<?,MonthDay>asMonthDay()Define a field type whose values are represented as aMonthDayin Hibernate Search.StandardIndexFieldTypeOptionsStep<?,OffsetDateTime>asOffsetDateTime()Define a field type whose values are represented as anOffsetDateTimein Hibernate Search.StandardIndexFieldTypeOptionsStep<?,OffsetTime>asOffsetTime()Define a field type whose values are represented as anOffsetTimein Hibernate Search.StandardIndexFieldTypeOptionsStep<?,Short>asShort()Define a field type whose values are represented as aShortin Hibernate Search.StringIndexFieldTypeOptionsStep<?>asString()Define a field type whose values are represented as aStringin Hibernate Search.StandardIndexFieldTypeOptionsStep<?,Year>asYear()Define a field type whose values are represented as aYearin Hibernate Search.StandardIndexFieldTypeOptionsStep<?,YearMonth>asYearMonth()Define a field type whose values are represented as aYearMonthin Hibernate Search.StandardIndexFieldTypeOptionsStep<?,ZonedDateTime>asZonedDateTime()Define a field type whose values are represented as aZonedDateTimein Hibernate Search.default <T> Textension(IndexFieldTypeFactoryExtension<T> extension)Extend the current factory with the given extension, resulting in an extended factory offering more field types.
-
-
-
Method Detail
-
as
<F> StandardIndexFieldTypeOptionsStep<?,F> as(Class<F> valueType)
Define a field type whose values are represented as a given type in Hibernate Search.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()orasInteger().- Type Parameters:
F- The type of values for this field type.- Parameters:
valueType- The type of values for this field type.- Returns:
- A DSL step where the index field type can be defined in more details.
- Throws:
SearchException- If the giveninputTypeis not supported.
-
asString
StringIndexFieldTypeOptionsStep<?> asString()
Define a field type whose values are represented as aStringin Hibernate Search.- Returns:
- A DSL step where the index field type can be defined in more details.
-
asInteger
StandardIndexFieldTypeOptionsStep<?,Integer> asInteger()
Define a field type whose values are represented as anIntegerin Hibernate Search.- Returns:
- A DSL step where the index field type can be defined in more details.
-
asLong
StandardIndexFieldTypeOptionsStep<?,Long> asLong()
Define a field type whose values are represented as aLongin Hibernate Search.- Returns:
- A DSL step where the index field type can be defined in more details.
-
asBoolean
StandardIndexFieldTypeOptionsStep<?,Boolean> asBoolean()
Define a field type whose values are represented as aBooleanin Hibernate Search.- Returns:
- A DSL step where the index field type can be defined in more details.
-
asByte
StandardIndexFieldTypeOptionsStep<?,Byte> asByte()
Define a field type whose values are represented as aBytein Hibernate Search.- Returns:
- A DSL step where the index field type can be defined in more details.
-
asShort
StandardIndexFieldTypeOptionsStep<?,Short> asShort()
Define a field type whose values are represented as aShortin Hibernate Search.- Returns:
- A DSL step where the index field type can be defined in more details.
-
asFloat
StandardIndexFieldTypeOptionsStep<?,Float> asFloat()
Define a field type whose values are represented as aFloatin Hibernate Search.- Returns:
- A DSL step where the index field type can be defined in more details.
-
asDouble
StandardIndexFieldTypeOptionsStep<?,Double> asDouble()
Define a field type whose values are represented as aDoublein Hibernate Search.- Returns:
- A DSL step where the index field type can be defined in more details.
-
asLocalDate
StandardIndexFieldTypeOptionsStep<?,LocalDate> asLocalDate()
Define a field type whose values are represented as aLocalDatein Hibernate Search.- Returns:
- A DSL step where the index field type can be defined in more details.
-
asLocalDateTime
StandardIndexFieldTypeOptionsStep<?,LocalDateTime> asLocalDateTime()
Define a field type whose values are represented as aLocalDateTimein Hibernate Search.- Returns:
- A DSL step where the index field type can be defined in more details.
-
asLocalTime
StandardIndexFieldTypeOptionsStep<?,LocalTime> asLocalTime()
Define a field type whose values are represented as aLocalTimein Hibernate Search.- Returns:
- A DSL step where the index field type can be defined in more details.
-
asInstant
StandardIndexFieldTypeOptionsStep<?,Instant> asInstant()
Define a field type whose values are represented as anInstantin Hibernate Search.- Returns:
- A DSL step where the index field type can be defined in more details.
-
asZonedDateTime
StandardIndexFieldTypeOptionsStep<?,ZonedDateTime> asZonedDateTime()
Define a field type whose values are represented as aZonedDateTimein Hibernate Search.- Returns:
- A DSL step where the index field type can be defined in more details.
-
asYear
StandardIndexFieldTypeOptionsStep<?,Year> asYear()
Define a field type whose values are represented as aYearin Hibernate Search.- Returns:
- A DSL step where the index field type can be defined in more details.
-
asYearMonth
StandardIndexFieldTypeOptionsStep<?,YearMonth> asYearMonth()
Define a field type whose values are represented as aYearMonthin Hibernate Search.- Returns:
- A DSL step where the index field type can be defined in more details.
-
asMonthDay
StandardIndexFieldTypeOptionsStep<?,MonthDay> asMonthDay()
Define a field type whose values are represented as aMonthDayin Hibernate Search.- Returns:
- A DSL step where the index field type can be defined in more details.
-
asOffsetDateTime
StandardIndexFieldTypeOptionsStep<?,OffsetDateTime> asOffsetDateTime()
Define a field type whose values are represented as anOffsetDateTimein Hibernate Search.- Returns:
- A DSL step where the index field type can be defined in more details.
-
asOffsetTime
StandardIndexFieldTypeOptionsStep<?,OffsetTime> asOffsetTime()
Define a field type whose values are represented as anOffsetTimein Hibernate Search.- Returns:
- A DSL step where the index field type can be defined in more details.
-
asGeoPoint
StandardIndexFieldTypeOptionsStep<?,GeoPoint> asGeoPoint()
Define a field type whose values are represented as aGeoPointin Hibernate Search.- Returns:
- A DSL step where the index field type can be defined in more details.
-
asBigDecimal
ScaledNumberIndexFieldTypeOptionsStep<?,BigDecimal> asBigDecimal()
Define a field type whose values are represented as aBigDecimalin Hibernate Search.- Returns:
- A DSL step where the index field type can be defined in more details.
-
asBigInteger
ScaledNumberIndexFieldTypeOptionsStep<?,BigInteger> asBigInteger()
Define a field type whose values are represented as aBigIntegerin Hibernate Search.- Returns:
- A DSL step where the index field type can be defined in more details.
-
extension
default <T> T extension(IndexFieldTypeFactoryExtension<T> extension)
Extend the current factory with the given extension, resulting in an extended factory offering more field types.- Type Parameters:
T- The type of factory provided by the extension.- Parameters:
extension- The extension to apply.- Returns:
- The extended factory.
- Throws:
SearchException- If the extension cannot be applied (wrong underlying technology, ...).
-
-