use of com.tencent.angel.psagent.matrix.oplog.cache.CompLongFloatRowUpdateSplit in project angel by Tencent.
the class CompLongFloatVectorSplitter method split.
@Override
public Map<PartitionKey, RowUpdateSplit> split(Vector vector, List<PartitionKey> parts) {
LongFloatVector[] vecParts = ((CompLongFloatVector) 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 CompLongFloatRowUpdateSplit(vector.getRowId(), vecParts[i]));
}
return updateSplitMap;
}
Aggregations