use of com.tencent.angel.psagent.matrix.oplog.cache.CompLongDoubleRowUpdateSplit in project angel by Tencent.
the class CompLongDoubleVectorSplitter method split.
@Override
public Map<PartitionKey, RowUpdateSplit> split(Vector vector, List<PartitionKey> parts) {
LongDoubleVector[] vecParts = ((CompLongDoubleVector) vector).getPartitions();
assert vecParts.length == parts.size();
Map<PartitionKey, RowUpdateSplit> updateSplitMap = new HashMap<>(parts.size());
for (int i = 0; i < vecParts.length; i++) {
updateSplitMap.put(parts.get(i), new CompLongDoubleRowUpdateSplit(vector.getRowId(), vecParts[i]));
}
return updateSplitMap;
}
Aggregations