Class ESQLDataset
java.lang.Object
co.elastic.clients.elasticsearch.esql.ESQLDataset
- All Implemented Interfaces:
JsonpSerializable
Represents a dataset definition stored in cluster state. A dataset is a named
reference to external data that participates in the index namespace alongside
indices, aliases, and views. Datasets inherit credentials from their
referenced data source at query time.
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final JsonpDeserializer<ESQLDataset>Json deserializer forESQLDataset -
Method Summary
Modifier and TypeMethodDescriptionfinal StringRequired - The name of the referenced data source.final StringA free-text description.final DatasetMappingmappings()The user-declared mapping on the dataset definition.final Stringname()Required - The dataset name.static ESQLDatasetrebuild()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 voidtoString()
-
Field Details
-
_DESERIALIZER
Json deserializer forESQLDataset
-
-
Method Details
-
of
-
name
Required - The dataset name.API name:
name -
dataSource
Required - The name of the referenced data source.API name:
data_source -
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 that matches Parquet files unders3://logs-bucket/access.API name:
resource -
description
A free-text description.API name:
description -
settings
Format- and parsing-specific settings that configure how the resource is read. Common keys includeformatandpartition_detection. Additional keys depend on the format reader; compression can be inferred from the resource URI.API name:
settings -
mappings
The user-declared mapping on the dataset definition.API name:
mappings -
serialize
Serialize this object to JSON.- Specified by:
serializein interfaceJsonpSerializable
-
serializeInternal
-
toString
-
rebuild
- Returns:
- New
ESQLDataset.Builderinitialized with field values of this instance
-
setupESQLDatasetDeserializer
-