Class DataStream
java.lang.Object
org.opensearch.client.opensearch.indices.DataStream
- All Implemented Interfaces:
JsonpSerializable,PlainJsonSerializable,ToCopyableBuilder<DataStream.Builder,DataStream>
@JsonpDeserializable
@Generated("org.opensearch.client.codegen.CodeGenerator")
public class DataStream
extends Object
implements PlainJsonSerializable, ToCopyableBuilder<DataStream.Builder,DataStream>
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final JsonpDeserializer<DataStream> Json deserializer forDataStream -
Method Summary
Modifier and TypeMethodDescriptionfinal BooleanWhentrue, the data stream allows custom routing on write request.static DataStream.Builderbuilder()booleanfinal longRequired - The current generation number for the data stream.inthashCode()final Booleanhidden()Whentrue, the data stream is hidden.final StringAPI name:ilm_policyfinal List<DataStreamIndex> indices()Required - An array of objects containing information about the data stream's backing indexes.meta()API name:_metafinal Stringname()Required - API name:namefinal ManagedByAPI name:next_generation_managed_bystatic DataStreamfinal BooleanIndicates if ILM should take precedence over DSL in case both are configured to managed this data stream.final BooleanWhentrue, the data stream is created and managed by cross-cluster replication and the local cluster can not write into this data stream or change its mappings.voidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) Serialize this object to JSON.protected voidserializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static voidfinal HealthStatusstatus()Required - API name:statusfinal Booleansystem()Whentrue, the data stream is created and managed by an OpenSearch stack component and cannot be modified through normal user interaction.final Stringtemplate()Required - API name:templatefinal DataStreamTimestampFieldRequired - API name:timestamp_fieldCreate a new builderToCopyableBuilderthat is initialised with the current state of this object.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.opensearch.client.json.PlainJsonSerializable
toJsonStringMethods inherited from interface org.opensearch.client.util.ToCopyableBuilder
copy
-
Field Details
-
_DESERIALIZER
Json deserializer forDataStream
-
-
Method Details
-
of
-
allowCustomRouting
Whentrue, the data stream allows custom routing on write request.API name:
allow_custom_routing -
generation
public final long generation()Required - The current generation number for the data stream. This number acts as a cumulative count of the stream's rollovers, starting at 1.API name:
generation -
ilmPolicy
API name:ilm_policy -
indices
Required - An array of objects containing information about the data stream's backing indexes. The last item in this array contains information about the stream's current write index.API name:
indices -
meta
API name:_meta -
name
Required - API name:name -
nextGenerationManagedBy
API name:next_generation_managed_by -
preferIlm
Indicates if ILM should take precedence over DSL in case both are configured to managed this data stream.API name:
prefer_ilm -
replicated
Whentrue, the data stream is created and managed by cross-cluster replication and the local cluster can not write into this data stream or change its mappings.API name:
replicated -
status
Required - API name:status -
system
Whentrue, the data stream is created and managed by an OpenSearch stack component and cannot be modified through normal user interaction.API name:
system -
template
Required - API name:template -
timestampField
Required - API name:timestamp_field -
serialize
Serialize this object to JSON.- Specified by:
serializein interfaceJsonpSerializable
-
serializeInternal
-
toBuilder
Description copied from interface:ToCopyableBuilderCreate a new builderToCopyableBuilderthat is initialised with the current state of this object.- Specified by:
toBuilderin interfaceToCopyableBuilder<DataStream.Builder,DataStream> - Returns:
- a new builder instance.
-
builder
-
setupDataStreamDeserializer
-
hashCode
public int hashCode() -
equals
-