use of com.tencent.angel.psagent.matrix.transport.router.KeyPart in project angel by Tencent.
the class GetHyperLogLogParam method split.
@Override
public List<PartitionGetParam> split() {
MatrixMeta matrixMeta = PSAgentContext.get().getMatrixMetaManager().getMatrixMeta(matrixId);
PartitionKey[] parts = matrixMeta.getPartitionKeys();
KeyPart[] keyParts = RouterUtils.split(matrixMeta, 0, nodes);
List<PartitionGetParam> params = new ArrayList<>(parts.length);
for (int i = 0; i < parts.length; i++) {
if (keyParts[i] != null && keyParts[i].size() > 0) {
params.add(new GetHyperLogLogPartParam(matrixId, parts[i], keyParts[i], n, isDirected));
}
}
return params;
}
Aggregations