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