use of org.apache.hyracks.api.partitions.PartitionId in project asterixdb by apache.
the class NetworkManager method readInitialMessage.
private static PartitionId readInitialMessage(ByteBuffer buffer) {
JobId jobId = new JobId(buffer.getLong());
ConnectorDescriptorId cdid = new ConnectorDescriptorId(buffer.getInt());
int senderIndex = buffer.getInt();
int receiverIndex = buffer.getInt();
return new PartitionId(jobId, cdid, senderIndex, receiverIndex);
}
use of org.apache.hyracks.api.partitions.PartitionId in project asterixdb by apache.
the class TaskProfile method readFields.
@Override
public void readFields(DataInput input) throws IOException {
super.readFields(input);
taskAttemptId = TaskAttemptId.create(input);
int size = input.readInt();
partitionSendProfile = new HashMap<PartitionId, PartitionProfile>();
for (int i = 0; i < size; i++) {
PartitionId key = PartitionId.create(input);
PartitionProfile value = PartitionProfile.create(input);
partitionSendProfile.put(key, value);
}
}
Aggregations