java.lang.Object
co.elastic.clients.elasticsearch.graph.Hop
All Implemented Interfaces:
JsonpSerializable

@JsonpDeserializable public class Hop extends Object implements JsonpSerializable
See Also:
  • Field Details

  • Method Details

    • of

      public static Hop of(Function<Hop.Builder,ObjectBuilder<Hop>> fn)
    • connections

      @Nullable public final Hop connections()
      Specifies one or more fields from which you want to extract terms that are associated with the specified vertices.

      API name: connections

    • query

      public final Query query()
      Required - An optional guiding query that constrains the Graph API as it explores connected terms.

      API name: query

    • vertices

      public final List<VertexDefinition> vertices()
      Required - Contains the fields you are interested in.

      API name: vertices

    • serialize

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

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

      public String toString()
      Overrides:
      toString in class Object
    • setupHopDeserializer

      protected static void setupHopDeserializer(ObjectDeserializer<Hop.Builder> op)