Package io.substrait.relation.physical
Class AbstractExchangeRel
java.lang.Object
io.substrait.relation.AbstractRel
io.substrait.relation.SingleInputRel
io.substrait.relation.physical.AbstractExchangeRel
- All Implemented Interfaces:
HasExtension,Rel
- Direct Known Subclasses:
BroadcastExchange,MultiBucketExchange,RoundRobinExchange,ScatterExchange,SingleBucketExchange
Physical exchange relation with a single input and extension metadata. Provides partitioning and
target information for data exchange.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classExchange target specification: partition IDs and target type. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected Type.StructDerives the output record type from the input.abstract IntegerReturns the number of partitions for this exchange.abstract List<AbstractExchangeRel.ExchangeTarget>Returns the configured exchange targets.Methods inherited from class io.substrait.relation.SingleInputRel
getInput, getInputsMethods inherited from class io.substrait.relation.AbstractRel
getRecordTypeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.substrait.relation.HasExtension
getExtensionMethods inherited from interface io.substrait.relation.Rel
accept, getCommonExtension, getHint, getRemap
-
Constructor Details
-
AbstractExchangeRel
public AbstractExchangeRel()
-
-
Method Details
-
getPartitionCount
Returns the number of partitions for this exchange.- Returns:
- the partition count, or
nullif unspecified
-
getTargets
Returns the configured exchange targets.- Returns:
- the list of exchange targets (never
null)
-
deriveRecordType
Derives the output record type from the input.- Specified by:
deriveRecordTypein classAbstractRel- Returns:
- the output struct type
-