Class VertexDefinition.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<VertexDefinition.Builder>
co.elastic.clients.elasticsearch.graph.VertexDefinition.Builder
- All Implemented Interfaces:
WithJson<VertexDefinition.Builder>,ObjectBuilder<VertexDefinition>
- Enclosing class:
- VertexDefinition
public static class VertexDefinition.Builder
extends WithJsonObjectBuilderBase<VertexDefinition.Builder>
implements ObjectBuilder<VertexDefinition>
Builder for
VertexDefinition.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aVertexDefinition.final VertexDefinition.BuilderPrevents the specified terms from being included in the results.final VertexDefinition.BuilderPrevents the specified terms from being included in the results.final VertexDefinition.BuilderRequired - Identifies a field in the documents of interest.final VertexDefinition.Builderinclude(VertexInclude value, VertexInclude... values) Identifies the terms of interest that form the starting points from which you want to spider out.final VertexDefinition.BuilderIdentifies the terms of interest that form the starting points from which you want to spider out.final VertexDefinition.Builderinclude(List<VertexInclude> list) Identifies the terms of interest that form the starting points from which you want to spider out.final VertexDefinition.BuilderminDocCount(Long value) Specifies how many documents must contain a pair of terms before it is considered to be a useful connection.protected VertexDefinition.Builderself()final VertexDefinition.BuildershardMinDocCount(Long value) Controls how many documents on a particular shard have to contain a pair of terms before the connection is returned for global consideration.final VertexDefinition.BuilderSpecifies the maximum number of vertex terms returned for each field.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
-
exclude
Prevents the specified terms from being included in the results.API name:
excludeAdds all elements of
listtoexclude. -
exclude
Prevents the specified terms from being included in the results.API name:
excludeAdds one or more values to
exclude. -
field
Required - Identifies a field in the documents of interest.API name:
field -
include
Identifies the terms of interest that form the starting points from which you want to spider out.API name:
includeAdds all elements of
listtoinclude. -
include
Identifies the terms of interest that form the starting points from which you want to spider out.API name:
includeAdds one or more values to
include. -
include
public final VertexDefinition.Builder include(Function<VertexInclude.Builder, ObjectBuilder<VertexInclude>> fn) Identifies the terms of interest that form the starting points from which you want to spider out.API name:
includeAdds a value to
includeusing a builder lambda. -
minDocCount
Specifies how many documents must contain a pair of terms before it is considered to be a useful connection. This setting acts as a certainty threshold.API name:
min_doc_count -
shardMinDocCount
Controls how many documents on a particular shard have to contain a pair of terms before the connection is returned for global consideration.API name:
shard_min_doc_count -
size
Specifies the maximum number of vertex terms returned for each field.API name:
size -
self
- Specified by:
selfin classWithJsonObjectBuilderBase<VertexDefinition.Builder>
-
build
Builds aVertexDefinition.- Specified by:
buildin interfaceObjectBuilder<VertexDefinition>- Throws:
NullPointerException- if some of the required fields are null.
-