Class LuceneOffsetDateTimeFieldCodec
java.lang.Object
org.hibernate.search.backend.lucene.types.codec.impl.AbstractLuceneNumericFieldCodec<OffsetDateTime,Long>
org.hibernate.search.backend.lucene.types.codec.impl.LuceneOffsetDateTimeFieldCodec
- All Implemented Interfaces:
LuceneFieldCodec<OffsetDateTime,Long>
public final class LuceneOffsetDateTimeFieldCodec
extends AbstractLuceneNumericFieldCodec<OffsetDateTime,Long>
-
Constructor Summary
ConstructorsConstructorDescriptionLuceneOffsetDateTimeFieldCodec(Indexing indexing, DocValues docValues, Storage storage, OffsetDateTime indexNullAsValue) -
Method Summary
Modifier and TypeMethodDescriptiondecode(org.apache.lucene.index.IndexableField field) Extract the value from the given stored field.encode(OffsetDateTime 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
-
LuceneOffsetDateTimeFieldCodec
public LuceneOffsetDateTimeFieldCodec(Indexing indexing, DocValues docValues, Storage storage, OffsetDateTime 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<OffsetDateTime,Long>
-
encodedType
- Returns:
- The type of the encoded value.
-