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>,LuceneStandardFieldCodec<OffsetDateTime,Long>
public final class LuceneOffsetDateTimeFieldCodec extends AbstractLuceneNumericFieldCodec<OffsetDateTime,Long>
-
-
Constructor Summary
Constructors Constructor Description LuceneOffsetDateTimeFieldCodec(Indexing indexing, DocValues docValues, Storage storage, OffsetDateTime indexNullAsValue)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description OffsetDateTimedecode(Long encoded)OffsetDateTimedecode(org.apache.lucene.index.IndexableField field)Extract the value from the given stored field.Longencode(OffsetDateTime value)Encode the given value.LuceneNumericDomain<Long>getDomain()-
Methods inherited from class org.hibernate.search.backend.lucene.types.codec.impl.AbstractLuceneNumericFieldCodec
addToDocument, isCompatibleWith
-
-
-
-
Constructor Detail
-
LuceneOffsetDateTimeFieldCodec
public LuceneOffsetDateTimeFieldCodec(Indexing indexing, DocValues docValues, Storage storage, OffsetDateTime indexNullAsValue)
-
-
Method Detail
-
decode
public OffsetDateTime decode(org.apache.lucene.index.IndexableField field)
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.
-
encode
public Long encode(OffsetDateTime value)
Description copied from interface:LuceneStandardFieldCodecEncode the given value.Useful for predicates and sorts in particular.
- Parameters:
value- The value to encode.
-
decode
public OffsetDateTime decode(Long encoded)
- Specified by:
decodein classAbstractLuceneNumericFieldCodec<OffsetDateTime,Long>
-
getDomain
public LuceneNumericDomain<Long> getDomain()
- Specified by:
getDomainin classAbstractLuceneNumericFieldCodec<OffsetDateTime,Long>
-
-