Search in sources :

Example 1 with ServerAnyAnyRow

use of com.tencent.angel.ps.storage.vector.ServerAnyAnyRow in project angel by Tencent.

the class GraphMatrixUtils method getPSAnyKeyRow.

public static ServerAnyAnyRow getPSAnyKeyRow(PSContext psContext, PartitionGetParam partParam) {
    ServerMatrix matrix = psContext.getMatrixStorageManager().getMatrix(partParam.getMatrixId());
    ServerPartition part = matrix.getPartition(partParam.getPartKey().getPartitionId());
    return (ServerAnyAnyRow) (((RowBasedPartition) part).getRow(0));
}
Also used : ServerAnyAnyRow(com.tencent.angel.ps.storage.vector.ServerAnyAnyRow) ServerMatrix(com.tencent.angel.ps.storage.matrix.ServerMatrix) RowBasedPartition(com.tencent.angel.ps.storage.partition.RowBasedPartition) ServerPartition(com.tencent.angel.ps.storage.partition.ServerPartition)

Example 2 with ServerAnyAnyRow

use of com.tencent.angel.ps.storage.vector.ServerAnyAnyRow in project angel by Tencent.

the class GraphMatrixUtils method getPSAnyKeyRow.

public static ServerAnyAnyRow getPSAnyKeyRow(PSContext psContext, PartitionUpdateParam partParam) {
    ServerMatrix matrix = psContext.getMatrixStorageManager().getMatrix(partParam.getMatrixId());
    ServerPartition part = matrix.getPartition(partParam.getPartKey().getPartitionId());
    return (ServerAnyAnyRow) (((RowBasedPartition) part).getRow(0));
}
Also used : ServerAnyAnyRow(com.tencent.angel.ps.storage.vector.ServerAnyAnyRow) ServerMatrix(com.tencent.angel.ps.storage.matrix.ServerMatrix) RowBasedPartition(com.tencent.angel.ps.storage.partition.RowBasedPartition) ServerPartition(com.tencent.angel.ps.storage.partition.ServerPartition)

Aggregations

ServerMatrix (com.tencent.angel.ps.storage.matrix.ServerMatrix)2 RowBasedPartition (com.tencent.angel.ps.storage.partition.RowBasedPartition)2 ServerPartition (com.tencent.angel.ps.storage.partition.ServerPartition)2 ServerAnyAnyRow (com.tencent.angel.ps.storage.vector.ServerAnyAnyRow)2