Class ElasticsearchIntegerFieldCodec
- java.lang.Object
-
- org.hibernate.search.backend.elasticsearch.types.codec.impl.ElasticsearchIntegerFieldCodec
-
- All Implemented Interfaces:
ElasticsearchFieldCodec<Integer>
public class ElasticsearchIntegerFieldCodec extends Object implements ElasticsearchFieldCodec<Integer>
-
-
Field Summary
Fields Modifier and Type Field Description static ElasticsearchIntegerFieldCodecINSTANCE
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Integerdecode(com.google.gson.JsonElement element)com.google.gson.JsonElementencode(Integer 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 ElasticsearchIntegerFieldCodec INSTANCE
-
-
Method Detail
-
encode
public com.google.gson.JsonElement encode(Integer value)
- Specified by:
encodein interfaceElasticsearchFieldCodec<Integer>
-
decode
public Integer decode(com.google.gson.JsonElement element)
- Specified by:
decodein interfaceElasticsearchFieldCodec<Integer>
-
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<Integer>- Parameters:
other- AnotherElasticsearchFieldCodec, nevernull.- Returns:
trueif the given codec is compatible.falseotherwise, or when in doubt.
-
-