Class AbstractExchangeRel

All Implemented Interfaces:
HasExtension, Rel
Direct Known Subclasses:
BroadcastExchange, MultiBucketExchange, RoundRobinExchange, ScatterExchange, SingleBucketExchange

public abstract class AbstractExchangeRel extends SingleInputRel implements HasExtension
Physical exchange relation with a single input and extension metadata. Provides partitioning and target information for data exchange.
  • Constructor Details

    • AbstractExchangeRel

      public AbstractExchangeRel()
  • Method Details

    • getPartitionCount

      public abstract Integer getPartitionCount()
      Returns the number of partitions for this exchange.
      Returns:
      the partition count, or null if unspecified
    • getTargets

      public abstract List<AbstractExchangeRel.ExchangeTarget> getTargets()
      Returns the configured exchange targets.
      Returns:
      the list of exchange targets (never null)
    • deriveRecordType

      protected Type.Struct deriveRecordType()
      Derives the output record type from the input.
      Specified by:
      deriveRecordType in class AbstractRel
      Returns:
      the output struct type