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