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