java.lang.Object
org.sentrysoftware.metricshub.engine.connector.model.monitor.task.source.compute.Compute
org.sentrysoftware.metricshub.engine.connector.model.monitor.task.source.compute.Substring
All Implemented Interfaces:
Serializable

public class Substring extends Compute
Represents a Substring computation task for monitoring.
See Also:
  • Constructor Details

    • Substring

      public Substring(String type, @NonNull @NonNull Integer column, @NonNull @NonNull String start, @NonNull @NonNull String length)
      Construct a new instance of Substring.
      Parameters:
      type - The type of the computation task.
      column - The column index used in the computation.
      start - The starting position for the Substring operation.
      length - The length of the substring to extract.
  • Method Details

    • copy

      public Substring copy()
      Copy the current instance
      Specified by:
      copy in class Compute
      Returns:
      new Substring instance
    • toString

      public String toString()
      Description copied from class: Compute
      Returns a formatted string representation of the compute operation, indicating its type.
      Overrides:
      toString in class Compute
      Returns:
      A string representation of the compute operation.
    • update

      public void update(UnaryOperator<String> updater)
      Description copied from class: Compute
      Updates the compute operation using the provided updater function.
      Specified by:
      update in class Compute
      Parameters:
      updater - The unary operator to apply updates to the compute operation.
    • accept

      public void accept(IComputeProcessor computeProcessor)
      Description copied from class: Compute
      Accepts a compute processor for further processing.
      Specified by:
      accept in class Compute
      Parameters:
      computeProcessor - The compute processor to accept.