Class ElasticsearchByteFieldCodec
java.lang.Object
org.hibernate.search.backend.elasticsearch.types.codec.impl.AbstractElasticsearchFieldCodec<Byte>
org.hibernate.search.backend.elasticsearch.types.codec.impl.ElasticsearchByteFieldCodec
- All Implemented Interfaces:
ElasticsearchFieldCodec<Byte>
-
Field Summary
Fields inherited from class org.hibernate.search.backend.elasticsearch.types.codec.impl.AbstractElasticsearchFieldCodec
gson -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondecode(com.google.gson.JsonElement element) com.google.gson.JsonElementbooleanisCompatibleWith(ElasticsearchFieldCodec<?> other) Determine 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.Methods inherited from class org.hibernate.search.backend.elasticsearch.types.codec.impl.AbstractElasticsearchFieldCodec
fromJsonElementToString, fromJsonStringToElementMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.hibernate.search.backend.elasticsearch.types.codec.impl.ElasticsearchFieldCodec
canDecodeArrays, decodeAggregationKey, encodeForAggregation, encodeForMissing
-
Constructor Details
-
ElasticsearchByteFieldCodec
public ElasticsearchByteFieldCodec(com.google.gson.Gson gson)
-
-
Method Details
-
encode
-
decode
-
isCompatibleWith
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.- Parameters:
other- AnotherElasticsearchFieldCodec, nevernull.- Returns:
trueif the given codec is compatible.falseotherwise, or when in doubt.
-