Search in sources :

Example 1 with RandomPartitionComputerFactory

use of org.apache.hyracks.dataflow.common.data.partition.RandomPartitionComputerFactory in project asterixdb by apache.

the class RandomPartitionExchangePOperator method createConnectorDescriptor.

@Override
public Pair<IConnectorDescriptor, TargetConstraint> createConnectorDescriptor(IConnectorDescriptorRegistry spec, ILogicalOperator op, IOperatorSchema opSchema, JobGenContext context) throws AlgebricksException {
    ITuplePartitionComputerFactory tpcf = new RandomPartitionComputerFactory();
    MToNPartitioningConnectorDescriptor conn = new MToNPartitioningConnectorDescriptor(spec, tpcf);
    return new Pair<IConnectorDescriptor, TargetConstraint>(conn, null);
}
Also used : ITuplePartitionComputerFactory(org.apache.hyracks.api.dataflow.value.ITuplePartitionComputerFactory) RandomPartitionComputerFactory(org.apache.hyracks.dataflow.common.data.partition.RandomPartitionComputerFactory) MToNPartitioningConnectorDescriptor(org.apache.hyracks.dataflow.std.connectors.MToNPartitioningConnectorDescriptor) Pair(org.apache.hyracks.algebricks.common.utils.Pair)

Aggregations

Pair (org.apache.hyracks.algebricks.common.utils.Pair)1 ITuplePartitionComputerFactory (org.apache.hyracks.api.dataflow.value.ITuplePartitionComputerFactory)1 RandomPartitionComputerFactory (org.apache.hyracks.dataflow.common.data.partition.RandomPartitionComputerFactory)1 MToNPartitioningConnectorDescriptor (org.apache.hyracks.dataflow.std.connectors.MToNPartitioningConnectorDescriptor)1