Class PutDatasetRequest.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<BuilderT>
co.elastic.clients.elasticsearch._types.RequestBase.AbstractBuilder<PutDatasetRequest.Builder>
co.elastic.clients.elasticsearch.esql.PutDatasetRequest.Builder
- All Implemented Interfaces:
WithJson<PutDatasetRequest.Builder>,ObjectBuilder<PutDatasetRequest>
- Enclosing class:
- PutDatasetRequest
public static class PutDatasetRequest.Builder
extends RequestBase.AbstractBuilder<PutDatasetRequest.Builder>
implements ObjectBuilder<PutDatasetRequest>
Builder for
PutDatasetRequest.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aPutDatasetRequest.dataSource(String value) Required - The name of the referenced data source.description(String value) A free-text description of the dataset.mappings(DatasetMapping value) User-declared mapping on the dataset definitionUser-declared mapping on the dataset definitionmasterTimeout(Time value) Period to wait for a connection to the master node.Period to wait for a connection to the master node.Required - The dataset name to create or update.Required - The URI that identifies the data to read, resolved against the referenced data source.protected PutDatasetRequest.Builderself()Format and parsing-specific settings that configure how the resource is read.Format and parsing-specific settings that configure how the resource is read.The time to wait for the request to be completed.The time to wait for the request to be completed.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
-
dataSource
Required - The name of the referenced data source. The data source must already exist.API name:
data_source -
description
A free-text description of the dataset.API name:
description -
mappings
User-declared mapping on the dataset definitionAPI name:
mappings -
mappings
public final PutDatasetRequest.Builder mappings(Function<DatasetMapping.Builder, ObjectBuilder<DatasetMapping>> fn) User-declared mapping on the dataset definitionAPI name:
mappings -
masterTimeout
Period to wait for a connection to the master node.API name:
master_timeout -
masterTimeout
Period to wait for a connection to the master node.API name:
master_timeout -
name
Required - The dataset name to create or update.API name:
name -
resource
Required - The URI that identifies the data to read, resolved against the referenced data source. It can include glob patterns. For example, a recursive pattern can match all Parquet files under thes3://logs-bucket/accessprefix.API name:
resource -
settings
Format and parsing-specific settings that configure how the resource is read. Common keys includeformat, which explicitly selects a registered format, andpartition_detection, which acceptsauto,hive,template, ornone. Additional keys depend on the format reader. Compression can be inferred from the resource URI.API name:
settingsAdds all entries of
maptosettings. -
settings
Format and parsing-specific settings that configure how the resource is read. Common keys includeformat, which explicitly selects a registered format, andpartition_detection, which acceptsauto,hive,template, ornone. Additional keys depend on the format reader. Compression can be inferred from the resource URI.API name:
settingsAdds an entry to
settings. -
timeout
The time to wait for the request to be completed.API name:
timeout -
timeout
The time to wait for the request to be completed.API name:
timeout -
self
- Specified by:
selfin classRequestBase.AbstractBuilder<PutDatasetRequest.Builder>
-
build
Builds aPutDatasetRequest.- Specified by:
buildin interfaceObjectBuilder<PutDatasetRequest>- Throws:
NullPointerException- if some of the required fields are null.
-