Class LuceneShortFieldCodec
java.lang.Object
org.hibernate.search.backend.lucene.types.codec.impl.AbstractLuceneNumericFieldCodec<Short,Integer>
org.hibernate.search.backend.lucene.types.codec.impl.LuceneShortFieldCodec
- All Implemented Interfaces:
LuceneFieldCodec<Short,Integer>
-
Constructor Summary
ConstructorsConstructorDescriptionLuceneShortFieldCodec(Indexing indexing, DocValues docValues, Storage storage, Short indexNullAsValue) -
Method Summary
Methods inherited from class org.hibernate.search.backend.lucene.types.codec.impl.AbstractLuceneNumericFieldCodec
addToDocument, isCompatibleWith
-
Constructor Details
-
LuceneShortFieldCodec
-
-
Method Details
-
decode
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.
-
raw
-
encode
Description copied from interface:LuceneFieldCodecEncode the given value.Useful for predicates and sorts in particular.
- Parameters:
value- The value to encode.
-
decode
-
getDomain
- Specified by:
getDomainin classAbstractLuceneNumericFieldCodec<Short,Integer>
-
encodedType
- Returns:
- The type of the encoded value.
-