Class ElasticsearchShortFieldCodec
- java.lang.Object
-
- org.hibernate.search.backend.elasticsearch.types.codec.impl.ElasticsearchShortFieldCodec
-
- All Implemented Interfaces:
ElasticsearchFieldCodec<Short>
public class ElasticsearchShortFieldCodec extends Object implements ElasticsearchFieldCodec<Short>
-
-
Field Summary
Fields Modifier and Type Field Description static ElasticsearchShortFieldCodecINSTANCE
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Shortdecode(com.google.gson.JsonElement element)com.google.gson.JsonElementencode(Short value)booleanisCompatibleWith(ElasticsearchFieldCodec<?> other)Determine whether another codec is compatible with this one, i.e.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.hibernate.search.backend.elasticsearch.types.codec.impl.ElasticsearchFieldCodec
decodeAggregationKey, encodeForAggregation, encodeForMissing
-
-
-
-
Field Detail
-
INSTANCE
public static final ElasticsearchShortFieldCodec INSTANCE
-
-
Method Detail
-
encode
public com.google.gson.JsonElement encode(Short value)
- Specified by:
encodein interfaceElasticsearchFieldCodec<Short>
-
decode
public Short decode(com.google.gson.JsonElement element)
- Specified by:
decodein interfaceElasticsearchFieldCodec<Short>
-
isCompatibleWith
public boolean isCompatibleWith(ElasticsearchFieldCodec<?> other)
Description copied from interface:ElasticsearchFieldCodecDetermine whether another codec is compatible with this one, i.e. whether it will encode/decode the information to/from the document in a compatible way.- Specified by:
isCompatibleWithin interfaceElasticsearchFieldCodec<Short>- Parameters:
other- AnotherElasticsearchFieldCodec, nevernull.- Returns:
trueif the given codec is compatible.falseotherwise, or when in doubt.
-
-