java.lang.Object
org.sentrysoftware.metricshub.engine.connector.model.monitor.task.source.Source
org.sentrysoftware.metricshub.engine.connector.model.monitor.task.source.TableUnionSource
All Implemented Interfaces:
Serializable

public class TableUnionSource extends Source
Represents a source that performs a union operation on multiple tables.
See Also:
  • Constructor Details

    • TableUnionSource

      public TableUnionSource(String type, List<Compute> computes, boolean forceSerialization, @NonNull @NonNull List<String> tables, String key, ExecuteForEachEntryOf executeForEachEntryOf)
      Builder for creating instances of TableUnionSource.
      Parameters:
      type - The type of the source.
      computes - List of computations to be applied to the source.
      forceSerialization - Flag indicating whether to force serialization.
      tables - List of tables to be included in the union operation.
      key - The key associated with the source.
      executeForEachEntryOf - The execution context for each entry of the source.
  • Method Details

    • copy

      public TableUnionSource copy()
      Description copied from class: Source
      Creates a copy of the source.
      Specified by:
      copy in class Source
      Returns:
      A new Source instance that is a copy of the original.
    • update

      public void update(UnaryOperator<String> updater)
      Description copied from class: Source
      Updates the source based on the provided updater function.
      Specified by:
      update in class Source
      Parameters:
      updater - The updater function to modify the source.
    • toString

      public String toString()
      Overrides:
      toString in class Source
    • accept

      public SourceTable accept(ISourceProcessor sourceProcessor)
      Description copied from class: Source
      Accepts a source processor to perform processing on the source.
      Specified by:
      accept in class Source
      Parameters:
      sourceProcessor - The source processor to accept.
      Returns:
      A SourceTable representing the processed source.