Search in sources :

Example 1 with IInputChannel

use of org.apache.hyracks.api.channels.IInputChannel in project asterixdb by apache.

the class PartitionCollector method addPartitions.

@Override
public void addPartitions(Collection<PartitionChannel> partitions) throws HyracksException {
    for (PartitionChannel pc : partitions) {
        PartitionId pid = pc.getPartitionId();
        IInputChannel channel = pc.getInputChannel();
        pa.addPartition(pid, channel);
        channel.open(ctx);
    }
}
Also used : PartitionChannel(org.apache.hyracks.api.comm.PartitionChannel) PartitionId(org.apache.hyracks.api.partitions.PartitionId) IInputChannel(org.apache.hyracks.api.channels.IInputChannel)

Aggregations

IInputChannel (org.apache.hyracks.api.channels.IInputChannel)1 PartitionChannel (org.apache.hyracks.api.comm.PartitionChannel)1 PartitionId (org.apache.hyracks.api.partitions.PartitionId)1