Search in sources :

Example 1 with PartialInputChannelDeploymentDescriptor

use of org.apache.flink.runtime.deployment.PartialInputChannelDeploymentDescriptor in project flink by apache.

the class Execution method sendPartitionInfos.

void sendPartitionInfos() {
    // partial partition infos queue
    if (partialInputChannelDeploymentDescriptors != null && !partialInputChannelDeploymentDescriptors.isEmpty()) {
        PartialInputChannelDeploymentDescriptor partialInputChannelDeploymentDescriptor;
        List<PartitionInfo> partitionInfos = new ArrayList<>(partialInputChannelDeploymentDescriptors.size());
        while ((partialInputChannelDeploymentDescriptor = partialInputChannelDeploymentDescriptors.poll()) != null) {
            partitionInfos.add(new PartitionInfo(partialInputChannelDeploymentDescriptor.getResultId(), partialInputChannelDeploymentDescriptor.createInputChannelDeploymentDescriptor(this)));
        }
        sendUpdatePartitionInfoRpcCall(partitionInfos);
    }
}
Also used : ArrayList(java.util.ArrayList) PartialInputChannelDeploymentDescriptor(org.apache.flink.runtime.deployment.PartialInputChannelDeploymentDescriptor)

Aggregations

ArrayList (java.util.ArrayList)1 PartialInputChannelDeploymentDescriptor (org.apache.flink.runtime.deployment.PartialInputChannelDeploymentDescriptor)1