Class MetadataCreateDataStreamService
java.lang.Object
org.elasticsearch.cluster.metadata.MetadataCreateDataStreamService
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
-
Constructor Summary
ConstructorDescriptionMetadataCreateDataStreamService(ThreadPool threadPool, ClusterService clusterService, MetadataCreateIndexService metadataCreateIndexService)
-
Method Summary
Modifier and TypeMethodDescriptionvoid
createDataStream(MetadataCreateDataStreamService.CreateDataStreamClusterStateUpdateRequest request, ActionListener<AcknowledgedResponse> finalListener)
createDataStream(MetadataCreateDataStreamService.CreateDataStreamClusterStateUpdateRequest request, ClusterState current)
static ComposableIndexTemplate
lookupTemplateForDataStream(String dataStreamName, Metadata metadata)
static void
validateTimestampFieldMapping(MappingLookup mappingLookup)
-
Constructor Details
-
MetadataCreateDataStreamService
public MetadataCreateDataStreamService(ThreadPool threadPool, ClusterService clusterService, MetadataCreateIndexService metadataCreateIndexService)
-
-
Method Details
-
createDataStream
public void createDataStream(MetadataCreateDataStreamService.CreateDataStreamClusterStateUpdateRequest request, 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
-