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