Package org.opensearch.cluster.metadata
Class MetadataCreateDataStreamService
java.lang.Object
org.opensearch.cluster.metadata.MetadataCreateDataStreamService
Creates a data stream of metadata
- Opensearch.internal:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final class
A request to create a data stream cluster state update -
Constructor Summary
ConstructorDescriptionMetadataCreateDataStreamService
(ThreadPool threadPool, ClusterService clusterService, MetadataCreateIndexService metadataCreateIndexService) -
Method Summary
Modifier and TypeMethodDescriptioncreateDataStream
(MetadataCreateDataStreamService.CreateDataStreamClusterStateUpdateRequest request, ClusterState current) void
createDataStream
(MetadataCreateDataStreamService.CreateDataStreamClusterStateUpdateRequest request, org.opensearch.core.action.ActionListener<AcknowledgedResponse> finalListener) static ComposableIndexTemplate
lookupTemplateForDataStream
(String dataStreamName, Metadata metadata) static void
validateTimestampFieldMapping
(MapperService mapperService)
-
Constructor Details
-
MetadataCreateDataStreamService
public MetadataCreateDataStreamService(ThreadPool threadPool, ClusterService clusterService, MetadataCreateIndexService metadataCreateIndexService)
-
-
Method Details
-
createDataStream
public void createDataStream(MetadataCreateDataStreamService.CreateDataStreamClusterStateUpdateRequest request, org.opensearch.core.action.ActionListener<AcknowledgedResponse> finalListener) -
createDataStream
public ClusterState createDataStream(MetadataCreateDataStreamService.CreateDataStreamClusterStateUpdateRequest request, ClusterState current) throws Exception - Throws:
Exception
-
lookupTemplateForDataStream
public static ComposableIndexTemplate lookupTemplateForDataStream(String dataStreamName, Metadata metadata) -
validateTimestampFieldMapping
- Throws:
IOException
-