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