Class InferenceProcessorInfoExtractor

java.lang.Object
org.elasticsearch.xpack.core.ml.utils.InferenceProcessorInfoExtractor

public final class InferenceProcessorInfoExtractor extends Object
Utilities for extracting information around inference processors from IngestMetadata
  • Method Details

    • countInferenceProcessors

      public static int countInferenceProcessors(ClusterState state)
      Parameters:
      state - The current cluster state
      Returns:
      The current count of inference processors
    • getModelIdsFromInferenceProcessors

      public static Set<String> getModelIdsFromInferenceProcessors(IngestMetadata ingestMetadata)
      Parameters:
      ingestMetadata - The ingestMetadata of current ClusterState
      Returns:
      The set of model IDs referenced by inference processors
    • pipelineIdsByResource

      public static Map<String,Set<String>> pipelineIdsByResource(ClusterState state, Set<String> ids)
      Parameters:
      state - Current cluster state
      Returns:
      a map from Model or Deployment IDs or Aliases to each pipeline referencing them.
    • pipelineIdsForResource

      public static Set<String> pipelineIdsForResource(ClusterState state, Set<String> ids)
      Parameters:
      state - Current ClusterState
      Returns:
      a map from Model or Deployment IDs or Aliases to each pipeline referencing them.