Module org.elasticsearch.xcore
Class InferenceProcessorInfoExtractor
java.lang.Object
org.elasticsearch.xpack.core.ml.utils.InferenceProcessorInfoExtractor
Utilities for extracting information around inference processors from IngestMetadata
-
Method Summary
Modifier and TypeMethodDescriptionstatic intgetModelIdsFromInferenceProcessors(IngestMetadata ingestMetadata) pipelineIdsByResource(ClusterState state, Set<String> ids) pipelineIdsForResource(ClusterState state, Set<String> ids)
-
Method Details
-
countInferenceProcessors
- Parameters:
state- The current cluster state- Returns:
- The current count of inference processors
-
getModelIdsFromInferenceProcessors
- Parameters:
ingestMetadata- The ingestMetadata of current ClusterState- Returns:
- The set of model IDs referenced by inference processors
-
pipelineIdsByResource
- Parameters:
state- Current cluster state- Returns:
- a map from Model or Deployment IDs or Aliases to each pipeline referencing them.
-
pipelineIdsForResource
- Parameters:
state- CurrentClusterState- Returns:
- a map from Model or Deployment IDs or Aliases to each pipeline referencing them.
-