Class LuceneZonedDateTimeFieldCodec
java.lang.Object
org.hibernate.search.backend.lucene.types.codec.impl.AbstractLuceneNumericFieldCodec<ZonedDateTime,Long>
org.hibernate.search.backend.lucene.types.codec.impl.LuceneZonedDateTimeFieldCodec
- All Implemented Interfaces:
LuceneFieldCodec<ZonedDateTime,Long>
public final class LuceneZonedDateTimeFieldCodec
extends AbstractLuceneNumericFieldCodec<ZonedDateTime,Long>
-
Constructor Summary
ConstructorsConstructorDescriptionLuceneZonedDateTimeFieldCodec(Indexing indexing, DocValues docValues, Storage storage, ZonedDateTime indexNullAsValue) -
Method Summary
Modifier and TypeMethodDescriptiondecode(org.apache.lucene.index.IndexableField field) Extract the value from the given stored field.encode(ZonedDateTime value) Encode the given value.raw(org.apache.lucene.index.IndexableField field) Methods inherited from class org.hibernate.search.backend.lucene.types.codec.impl.AbstractLuceneNumericFieldCodec
addToDocument, isCompatibleWith
-
Constructor Details
-
LuceneZonedDateTimeFieldCodec
public LuceneZonedDateTimeFieldCodec(Indexing indexing, DocValues docValues, Storage storage, ZonedDateTime indexNullAsValue)
-
-
Method Details
-
decode
Description copied from interface:LuceneFieldCodecExtract the value from the given stored field.Typically used in projections.
- Parameters:
field- The document field. Nevernull.- Returns:
- The decoded value.
-
raw
-
encode
Description copied from interface:LuceneFieldCodecEncode the given value.Useful for predicates and sorts in particular.
- Parameters:
value- The value to encode.
-
decode
-
getDomain
- Specified by:
getDomainin classAbstractLuceneNumericFieldCodec<ZonedDateTime,Long>
-
encodedType
- Returns:
- The type of the encoded value.
-