use of edu.iu.dsc.tws.api.compute.graph.Edge in project twister2 by DSC-SPIDAL.
the class KeyedDirectTLink method getEdge.
@Override
public Edge getEdge() {
// NOTE: There is no keyed direct in the communication layer!!! Hence this is an keyed direct
// emulation. Therefore, we can not use user provided data types here because we will be using
// Tuple<K, V> object through a DirectLink here.
// todo fix this ambiguity!
Edge e = new Edge(getId(), OperationNames.DIRECT, MessageTypes.OBJECT);
e.addProperty(CommunicationContext.USE_DISK, this.useDisk);
TLinkUtils.generateKeyedCommsSchema(getSchema(), e);
return e;
}
use of edu.iu.dsc.tws.api.compute.graph.Edge in project twister2 by DSC-SPIDAL.
the class KeyedGatherUngroupedTLink method getEdge.
@Override
public Edge getEdge() {
Edge e = new Edge(getId(), OperationNames.KEYED_GATHER, this.getSchema().getDataType());
e.setKeyed(true);
e.setKeyType(this.getSchema().getKeyType());
e.setPartitioner(partitionFunction);
e.addProperty(CommunicationContext.SORT_BY_KEY, this.keyCompartor != null);
e.addProperty(CommunicationContext.GROUP_BY_KEY, this.groupByKey);
if (this.keyCompartor != null) {
e.addProperty(CommunicationContext.KEY_COMPARATOR, this.keyCompartor);
}
e.addProperty(CommunicationContext.USE_DISK, this.useDisk);
TLinkUtils.generateKeyedCommsSchema(getSchema(), e);
return e;
}
use of edu.iu.dsc.tws.api.compute.graph.Edge in project twister2 by DSC-SPIDAL.
the class KeyedPipeTLink method getEdge.
@Override
public Edge getEdge() {
// NOTE: There is no keyed direct in the communication layer!!! Hence this is an keyed direct
// emulation. Therefore, we can not use user provided data types here because we will be using
// Tuple<K, V> object through a DirectLink here.
// todo fix this ambiguity!
Edge e = new Edge(getId(), OperationNames.PIPE, MessageTypes.OBJECT);
TLinkUtils.generateKeyedCommsSchema(getSchema(), e);
return e;
}
use of edu.iu.dsc.tws.api.compute.graph.Edge in project twister2 by DSC-SPIDAL.
the class ReduceTLink method getEdge.
@Override
public Edge getEdge() {
Edge e = new Edge(getId(), OperationNames.REDUCE, this.getSchema().getDataType(), reduceFn);
TLinkUtils.generateCommsSchema(getSchema(), e);
return e;
}
use of edu.iu.dsc.tws.api.compute.graph.Edge in project twister2 by DSC-SPIDAL.
the class SAllGatherTLink method getEdge.
@Override
public Edge getEdge() {
Edge e = new Edge(getId(), OperationNames.ALLGATHER, this.getSchema().getDataType());
TLinkUtils.generateCommsSchema(getSchema(), e);
return e;
}
Aggregations