java.lang.Object
org.sentrysoftware.metricshub.engine.strategy.source.compute.ComputeProcessor
All Implemented Interfaces:
IComputeProcessor

public class ComputeProcessor extends Object implements IComputeProcessor
Processor for handling various compute operations in the context of source data. This class includes methods to execute operations like ArrayTranslate, And, Add, and Awk, among others, on the source data table.

It relies on a TelemetryManager, connectorId, MatsyaClientsExecutor, sourceKey, hostname, SourceTable, and index for its operations. It also uses a predefined map of mathematical functions for certain operations.

  • Constructor Details

    • ComputeProcessor

      public ComputeProcessor()
  • Method Details

    • process

      public void process(ArrayTranslate arrayTranslate)
      Description copied from interface: IComputeProcessor
      Processes the ArrayTranslate compute operation on the source data.
      Specified by:
      process in interface IComputeProcessor
      Parameters:
      arrayTranslate - The ArrayTranslate compute operation to be processed.
    • process

      public void process(And and)
      Description copied from interface: IComputeProcessor
      Processes the And compute operation on the source data.
      Specified by:
      process in interface IComputeProcessor
      Parameters:
      and - The And compute operation to be processed.
    • process

      public void process(Add add)
      Description copied from interface: IComputeProcessor
      Processes the Add compute operation on the source data.
      Specified by:
      process in interface IComputeProcessor
      Parameters:
      add - The Add compute operation to be processed.
    • process

      public void process(Awk awk)
      Description copied from interface: IComputeProcessor
      Processes the Awk compute operation on the source data.
      Specified by:
      process in interface IComputeProcessor
      Parameters:
      awk - The Awk compute operation to be processed.
    • process

      public void process(Convert convert)
      Description copied from interface: IComputeProcessor
      Processes the Convert compute operation on the source data.
      Specified by:
      process in interface IComputeProcessor
      Parameters:
      convert - The Convert compute operation to be processed.
    • process

      public void process(Divide divide)
      Description copied from interface: IComputeProcessor
      Processes the Divide compute operation on the source data.
      Specified by:
      process in interface IComputeProcessor
      Parameters:
      divide - The Divide compute operation to be processed.
    • process

      public void process(DuplicateColumn duplicateColumn)
      This method processes DuplicateColumn compute
      Specified by:
      process in interface IComputeProcessor
      Parameters:
      duplicateColumn - DuplicateColumn instance
    • process

      public void process(ExcludeMatchingLines excludeMatchingLines)
      Description copied from interface: IComputeProcessor
      Processes the ExcludeMatchingLines compute operation on the source data.
      Specified by:
      process in interface IComputeProcessor
      Parameters:
      excludeMatchingLines - The ExcludeMatchingLines compute operation to be processed.
    • process

      public void process(Extract extract)
      This method processes Extract compute
      Specified by:
      process in interface IComputeProcessor
      Parameters:
      extract - Extract compute
    • process

      public void process(ExtractPropertyFromWbemPath extractPropertyFromWbemPath)
      Description copied from interface: IComputeProcessor
      Processes the ExtractPropertyFromWbemPath compute operation on the source data.
      Specified by:
      process in interface IComputeProcessor
      Parameters:
      extractPropertyFromWbemPath - The ExtractPropertyFromWbemPath compute operation to be processed.
    • process

      public void process(Json2Csv json2csv)
      This method processes Json2Csv compute
      Specified by:
      process in interface IComputeProcessor
      Parameters:
      json2csv - Json2Csv instance
    • process

      public void process(KeepColumns keepColumns)
      Description copied from interface: IComputeProcessor
      Processes the KeepColumns compute operation on the source data.
      Specified by:
      process in interface IComputeProcessor
      Parameters:
      keepColumns - The KeepColumns compute operation to be processed.
    • process

      public void process(KeepOnlyMatchingLines keepOnlyMatchingLines)
      This method processes the KeepOnlyMatchingLines compute
      Specified by:
      process in interface IComputeProcessor
      Parameters:
      keepOnlyMatchingLines - KeepOnlyMatchingLines instance
    • process

      public void process(Prepend prepend)
      Description copied from interface: IComputeProcessor
      Processes the Prepend compute operation on the source data.
      Specified by:
      process in interface IComputeProcessor
      Parameters:
      prepend - The Prepend compute operation to be processed.
    • process

      public void process(Multiply multiply)
      Description copied from interface: IComputeProcessor
      Processes the Multiply compute operation on the source data.
      Specified by:
      process in interface IComputeProcessor
      Parameters:
      multiply - The Multiply compute operation to be processed.
    • process

      public void process(PerBitTranslation perBitTranslation)
      This method processes the PerBitTranslation compute
      Specified by:
      process in interface IComputeProcessor
      Parameters:
      perBitTranslation - PerBitTranslation instance
    • process

      public void process(Replace replace)
      This method processes the replace compute operation.
      Specified by:
      process in interface IComputeProcessor
      Parameters:
      replace - The replace object containing details of the operation.
    • process

      public void process(Append append)
      Description copied from interface: IComputeProcessor
      Processes the Append compute operation on the source data.
      Specified by:
      process in interface IComputeProcessor
      Parameters:
      append - The Append compute operation to be processed.
    • process

      public void process(Subtract subtract)
      Description copied from interface: IComputeProcessor
      Processes the Subtract compute operation on the source data.
      Specified by:
      process in interface IComputeProcessor
      Parameters:
      subtract - The Subtract compute operation to be processed.
    • process

      public void process(Substring substring)
      Description copied from interface: IComputeProcessor
      Processes the Substring compute operation on the source data.
      Specified by:
      process in interface IComputeProcessor
      Parameters:
      substring - The Substring compute operation to be processed.
    • process

      public void process(Translate translate)
      Description copied from interface: IComputeProcessor
      Processes the Translate compute operation on the source data.
      Specified by:
      process in interface IComputeProcessor
      Parameters:
      translate - The Translate compute operation to be processed.
    • process

      public void process(Xml2Csv xml2csv)
      This method processes Xml2Csv compute
      Specified by:
      process in interface IComputeProcessor
      Parameters:
      xml2csv - Xml2Csv instance
    • findTranslations

      public Map<String,String> findTranslations(ITranslationTable translation)
      Find the translation map associated with the ITranslationTable in parameter.
      Parameters:
      translation - The translation table to find translations for.
      Returns:
      The translation map if found, otherwise null.