Class DictionaryResponse<TKey,​TValue>

java.lang.Object
co.elastic.clients.transport.endpoints.DictionaryResponse<TKey,​TValue>
All Implemented Interfaces:
JsonpSerializable

public abstract class DictionaryResponse<TKey,​TValue>
extends java.lang.Object
implements JsonpSerializable
Base class for dictionary responses, i.e. a series of key/value pairs.
  • Constructor Details

  • Method Details

    • result

      public java.util.Map<java.lang.String,​TValue> result()
      Returns the response as a map.
    • get

      public TValue get​(java.lang.String key)
    • serialize

      public void serialize​(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
      Serialize this value to JSON.
      Specified by:
      serialize in interface JsonpSerializable
    • serializeInternal

      protected void serializeInternal​(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
    • toString

      public java.lang.String toString()
      Overrides:
      toString in class java.lang.Object
    • setupDictionaryResponseDeserializer

      protected static <TKey,​ TValue,​ BuilderT extends DictionaryResponse.AbstractBuilder<TKey,​ TValue,​ BuilderT>> void setupDictionaryResponseDeserializer​(ObjectDeserializer<BuilderT> op, JsonpDeserializer<TKey> tKeyParser, JsonpDeserializer<TValue> tValueParser)