Class PutDatasetRequest
java.lang.Object
co.elastic.clients.elasticsearch._types.RequestBase
co.elastic.clients.elasticsearch.esql.PutDatasetRequest
- All Implemented Interfaces:
JsonpSerializable
@JsonpDeserializable
public class PutDatasetRequest
extends RequestBase
implements JsonpSerializable
Create or update an ES|QL dataset.
Creates or replaces a dataset that references a data source in ES|QL data
federation. Dataset names participate in the index namespace and must follow
index or alias naming rules. Returns 404 if the referenced data
source does not exist.
- See Also:
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class co.elastic.clients.elasticsearch._types.RequestBase
RequestBase.AbstractBuilder<BuilderT extends RequestBase.AbstractBuilder<BuilderT>> -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final JsonpDeserializer<PutDatasetRequest>Json deserializer forPutDatasetRequeststatic final Endpoint<PutDatasetRequest,PutDatasetResponse, ErrorResponse> Endpoint "esql.put_dataset". -
Method Summary
Modifier and TypeMethodDescriptionfinal StringRequired - The name of the referenced data source.final StringA free-text description of the dataset.final DatasetMappingmappings()User-declared mapping on the dataset definitionfinal TimePeriod to wait for a connection to the master node.final Stringname()Required - The dataset name to create or update.static PutDatasetRequestrebuild()final Stringresource()Required - The URI that identifies the data to read, resolved against the referenced data source.voidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) Serialize this object to JSON.protected voidserializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) settings()Format and parsing-specific settings that configure how the resource is read.protected static voidfinal Timetimeout()The time to wait for the request to be completed.Methods inherited from class co.elastic.clients.elasticsearch._types.RequestBase
toString
-
Field Details
-
_DESERIALIZER
Json deserializer forPutDatasetRequest -
_ENDPOINT
Endpoint "esql.put_dataset".
-
-
Method Details
-
of
public static PutDatasetRequest of(Function<PutDatasetRequest.Builder, ObjectBuilder<PutDatasetRequest>> fn) -
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 -
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:
settings -
timeout
The time to wait for the request to be completed.API name:
timeout -
serialize
Serialize this object to JSON.- Specified by:
serializein interfaceJsonpSerializable
-
serializeInternal
-
rebuild
- Returns:
- New
PutDatasetRequest.Builderinitialized with field values of this instance
-
setupPutDatasetRequestDeserializer
protected static void setupPutDatasetRequestDeserializer(ObjectDeserializer<PutDatasetRequest.Builder> op)
-