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