Esempio n. 1
0
File: main.go Progetto: BaiGang/bwmf
func loadPbBuffer(config *bwmf.Config, path string) (*pb.MatrixShard, error) {
	client, err := bwmf.GetFsClient(config)
	if err != nil {
		return nil, fmt.Errorf("Failed getting filesystem.Client: %s", err)
	}
	return bwmf.LoadMatrixShard(client, path)
}
Esempio n. 2
0
File: main.go Progetto: BaiGang/bwmf
func saveResult(shard *pb.MatrixShard, config *bwmf.Config, path string) error {
	client, err := bwmf.GetFsClient(config)
	if err != nil {
		return fmt.Errorf("Failed getting filesystem.Client: %s", err)
	}
	return bwmf.SaveMatrixShard(client, shard, path)
}