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

public class TableJoinSource extends Source
Represents a source that performs a join operation on two tables.
See Also:
  • Constructor Details

    • TableJoinSource

      public TableJoinSource(String type, List<Compute> computes, boolean forceSerialization, String leftTable, String rightTable, Integer leftKeyColumn, Integer rightKeyColumn, String defaultRightLine, String keyType, String key, ExecuteForEachEntryOf executeForEachEntryOf)
      Builder for creating instances of TableJoinSource.
      Parameters:
      type - The type of the source.
      computes - List of computations to be applied to the source.
      forceSerialization - Flag indicating whether to force serialization.
      leftTable - The name of the left table to join.
      rightTable - The name of the right table to join.
      leftKeyColumn - The column index from the left table to use as the key for the join.
      rightKeyColumn - The column index from the right table to use as the key for the join.
      defaultRightLine - The default line for right table entries when there is no match.
      keyType - The type of key used for the join.
      key - The key associated with the source.
      executeForEachEntryOf - The execution context for each entry of the source.
  • Method Details

    • copy

      public TableJoinSource 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.