public static Global partitionedOn(PartitioningHandle nodePartitioningHandle, List<Symbol> nodePartitioning, Optional<List<Symbol>> streamPartitioning) { return new Global( Optional.of(Partitioning.create(nodePartitioningHandle, nodePartitioning)), streamPartitioning.map(columns -> Partitioning.create(SOURCE_DISTRIBUTION, columns)), false); }
public static Global partitionedOn(PartitioningHandle nodePartitioningHandle, List<Symbol> nodePartitioning, Optional<List<Symbol>> streamPartitioning) { return new Global( Optional.of(Partitioning.create(nodePartitioningHandle, nodePartitioning)), streamPartitioning.map(columns -> Partitioning.create(SOURCE_DISTRIBUTION, columns)), false); }
public static Global streamPartitionedOn(List<Symbol> streamPartitioning) { return new Global( Optional.empty(), Optional.of(Partitioning.create(SOURCE_DISTRIBUTION, streamPartitioning)), false); }
public static Global streamPartitionedOn(List<Symbol> streamPartitioning) { return new Global( Optional.empty(), Optional.of(Partitioning.create(SOURCE_DISTRIBUTION, streamPartitioning)), false); }
public static ExchangeNode mergingExchange(PlanNodeId id, Scope scope, PlanNode child, OrderingScheme orderingScheme) { PartitioningHandle partitioningHandle = scope == LOCAL ? FIXED_PASSTHROUGH_DISTRIBUTION : SINGLE_DISTRIBUTION; return new ExchangeNode( id, Type.GATHER, scope, new PartitioningScheme(Partitioning.create(partitioningHandle, ImmutableList.of()), child.getOutputSymbols()), ImmutableList.of(child), ImmutableList.of(child.getOutputSymbols()), Optional.of(orderingScheme)); }
public static ExchangeNode replicatedExchange(PlanNodeId id, Scope scope, PlanNode child) { return new ExchangeNode( id, ExchangeNode.Type.REPLICATE, scope, new PartitioningScheme(Partitioning.create(FIXED_BROADCAST_DISTRIBUTION, ImmutableList.of()), child.getOutputSymbols()), ImmutableList.of(child), ImmutableList.of(child.getOutputSymbols()), Optional.empty()); }
public static ExchangeNode gatheringExchange(PlanNodeId id, Scope scope, PlanNode child) { return new ExchangeNode( id, ExchangeNode.Type.GATHER, scope, new PartitioningScheme(Partitioning.create(SINGLE_DISTRIBUTION, ImmutableList.of()), child.getOutputSymbols()), ImmutableList.of(child), ImmutableList.of(child.getOutputSymbols()), Optional.empty()); }
public static ExchangeNode roundRobinExchange(PlanNodeId id, Scope scope, PlanNode child) { return partitionedExchange( id, scope, child, new PartitioningScheme(Partitioning.create(FIXED_ARBITRARY_DISTRIBUTION, ImmutableList.of()), child.getOutputSymbols())); }
public static ExchangeNode gatheringExchange(PlanNodeId id, Scope scope, PlanNode child) { return new ExchangeNode( id, ExchangeNode.Type.GATHER, scope, new PartitioningScheme(Partitioning.create(SINGLE_DISTRIBUTION, ImmutableList.of()), child.getOutputSymbols()), ImmutableList.of(child), ImmutableList.of(child.getOutputSymbols()), Optional.empty()); }
public static ExchangeNode mergingExchange(PlanNodeId id, Scope scope, PlanNode child, OrderingScheme orderingScheme) { PartitioningHandle partitioningHandle = scope == LOCAL ? FIXED_PASSTHROUGH_DISTRIBUTION : SINGLE_DISTRIBUTION; return new ExchangeNode( id, Type.GATHER, scope, new PartitioningScheme(Partitioning.create(partitioningHandle, ImmutableList.of()), child.getOutputSymbols()), ImmutableList.of(child), ImmutableList.of(child.getOutputSymbols()), Optional.of(orderingScheme)); }
public static ExchangeNode roundRobinExchange(PlanNodeId id, Scope scope, PlanNode child) { return partitionedExchange( id, scope, child, new PartitioningScheme(Partitioning.create(FIXED_ARBITRARY_DISTRIBUTION, ImmutableList.of()), child.getOutputSymbols())); }
public static ExchangeNode replicatedExchange(PlanNodeId id, Scope scope, PlanNode child) { return new ExchangeNode( id, ExchangeNode.Type.REPLICATE, scope, new PartitioningScheme(Partitioning.create(FIXED_BROADCAST_DISTRIBUTION, ImmutableList.of()), child.getOutputSymbols()), ImmutableList.of(child), ImmutableList.of(child.getOutputSymbols()), Optional.empty()); }
public static ExchangeNode partitionedExchange(PlanNodeId id, Scope scope, PlanNode child, List<Symbol> partitioningColumns, Optional<Symbol> hashColumns, boolean replicateNullsAndAny) { return partitionedExchange( id, scope, child, new PartitioningScheme( Partitioning.create(FIXED_HASH_DISTRIBUTION, partitioningColumns), child.getOutputSymbols(), hashColumns, replicateNullsAndAny, Optional.empty())); }
public ExchangeBuilder fixedHashDistributionParitioningScheme(List<Symbol> outputSymbols, List<Symbol> partitioningSymbols, Symbol hashSymbol) { return partitioningScheme(new PartitioningScheme(Partitioning.create( FIXED_HASH_DISTRIBUTION, ImmutableList.copyOf(partitioningSymbols)), ImmutableList.copyOf(outputSymbols), Optional.of(hashSymbol))); }
public ExchangeBuilder fixedHashDistributionParitioningScheme(List<Symbol> outputSymbols, List<Symbol> partitioningSymbols, Symbol hashSymbol) { return partitioningScheme(new PartitioningScheme(Partitioning.create( FIXED_HASH_DISTRIBUTION, ImmutableList.copyOf(partitioningSymbols)), ImmutableList.copyOf(outputSymbols), Optional.of(hashSymbol))); }
public ExchangeBuilder fixedHashDistributionParitioningScheme(List<Symbol> outputSymbols, List<Symbol> partitioningSymbols) { return partitioningScheme(new PartitioningScheme(Partitioning.create( FIXED_HASH_DISTRIBUTION, ImmutableList.copyOf(partitioningSymbols)), ImmutableList.copyOf(outputSymbols))); }
public ExchangeBuilder fixedHashDistributionParitioningScheme(List<Symbol> outputSymbols, List<Symbol> partitioningSymbols) { return partitioningScheme(new PartitioningScheme(Partitioning.create( FIXED_HASH_DISTRIBUTION, ImmutableList.copyOf(partitioningSymbols)), ImmutableList.copyOf(outputSymbols))); }
public ExchangeBuilder singleDistributionPartitioningScheme(List<Symbol> outputSymbols) { return partitioningScheme(new PartitioningScheme(Partitioning.create(SINGLE_DISTRIBUTION, ImmutableList.of()), outputSymbols)); }
public ExchangeBuilder singleDistributionPartitioningScheme(List<Symbol> outputSymbols) { return partitioningScheme(new PartitioningScheme(Partitioning.create(SINGLE_DISTRIBUTION, ImmutableList.of()), outputSymbols)); }
public static String graphvizLogicalPlan(PlanNode plan, TypeProvider types) { PlanFragment fragment = new PlanFragment( new PlanFragmentId("graphviz_plan"), plan, types.allTypes(), SINGLE_DISTRIBUTION, ImmutableList.of(plan.getId()), new PartitioningScheme(Partitioning.create(SINGLE_DISTRIBUTION, ImmutableList.of()), plan.getOutputSymbols()), ungroupedExecution(), StatsAndCosts.empty()); return GraphvizPrinter.printLogical(ImmutableList.of(fragment)); }