Class Hop.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<Hop.Builder>
co.elastic.clients.elasticsearch.graph.Hop.Builder
- All Implemented Interfaces:
WithJson<Hop.Builder>,ObjectBuilder<Hop>
- Enclosing class:
- Hop
public static class Hop.Builder
extends WithJsonObjectBuilderBase<Hop.Builder>
implements ObjectBuilder<Hop>
Builder for
Hop.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aHop.final Hop.Builderconnections(Hop value) Specifies one or more fields from which you want to extract terms that are associated with the specified vertices.final Hop.BuilderSpecifies one or more fields from which you want to extract terms that are associated with the specified vertices.final Hop.BuilderAn optional guiding query that constrains the Graph API as it explores connected terms.final Hop.Builderquery(QueryVariant value) An optional guiding query that constrains the Graph API as it explores connected terms.final Hop.BuilderAn optional guiding query that constrains the Graph API as it explores connected terms.protected Hop.Builderself()final Hop.Buildervertices(VertexDefinition value, VertexDefinition... values) Required - Contains the fields you are interested in.final Hop.BuilderRequired - Contains the fields you are interested in.final Hop.Buildervertices(List<VertexDefinition> list) Required - Contains the fields you are interested in.Methods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJsonMethods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
connections
Specifies one or more fields from which you want to extract terms that are associated with the specified vertices.API name:
connections -
connections
Specifies one or more fields from which you want to extract terms that are associated with the specified vertices.API name:
connections -
query
An optional guiding query that constrains the Graph API as it explores connected terms.API name:
query -
query
An optional guiding query that constrains the Graph API as it explores connected terms.API name:
query -
query
An optional guiding query that constrains the Graph API as it explores connected terms.API name:
query -
vertices
Required - Contains the fields you are interested in.API name:
verticesAdds all elements of
listtovertices. -
vertices
Required - Contains the fields you are interested in.API name:
verticesAdds one or more values to
vertices. -
vertices
public final Hop.Builder vertices(Function<VertexDefinition.Builder, ObjectBuilder<VertexDefinition>> fn) Required - Contains the fields you are interested in.API name:
verticesAdds a value to
verticesusing a builder lambda. -
self
- Specified by:
selfin classWithJsonObjectBuilderBase<Hop.Builder>
-
build
Builds aHop.- Specified by:
buildin interfaceObjectBuilder<Hop>- Throws:
NullPointerException- if some of the required fields are null.
-