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