Class ElasticsearchJsonElementFieldCodec

    • Constructor Detail

      • ElasticsearchJsonElementFieldCodec

        public ElasticsearchJsonElementFieldCodec​(com.google.gson.Gson gson)
    • Method Detail

      • encode

        public com.google.gson.JsonElement encode​(com.google.gson.JsonElement value)
        Specified by:
        encode in interface ElasticsearchFieldCodec<com.google.gson.JsonElement>
      • decode

        public com.google.gson.JsonElement decode​(com.google.gson.JsonElement element)
        Specified by:
        decode in interface ElasticsearchFieldCodec<com.google.gson.JsonElement>
      • isCompatibleWith

        public boolean isCompatibleWith​(ElasticsearchFieldCodec<?> other)
        Description copied from interface: ElasticsearchFieldCodec
        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.
        Specified by:
        isCompatibleWith in interface ElasticsearchFieldCodec<com.google.gson.JsonElement>
        Parameters:
        other - Another ElasticsearchFieldCodec, never null.
        Returns:
        true if the given codec is compatible. false otherwise, or when in doubt.