psize: Return sizes of each partition of the input distributed...

Description Usage Arguments Value References See Also Examples

View source: R/dobject.R

Description

Return sizes of each partition of the input distributed object.

Usage

1
psize(dobj, index = NULL)

Arguments

dobj

input distributed object

index

a numeric vector or list containing the indices of the partitions. Default is NULL.

Value

A matrix that denotes the number of rows and columns in the partition. Row i of the matrix corresponds or size of i'th partition. For a dlist, the returned matrix has only 1 column.

References

Prasad, S., Fard, A., Gupta, V., Martinez, J., LeFevre, J., Xu, V., Hsu, M., Roy, I. Large scale predictive analytics in Vertica: Fast data transfer, distributed model creation and in-database prediction. _Sigmod 2015_, 1657-1668.

Venkataraman, S., Bodzsar, E., Roy, I., AuYoung, A., and Schreiber, R. (2013) Presto: Distributed Machine Learning and Graph Processing with Sparse Matrices. _EuroSys 2013_, 197-210.

Homepage: https://github.com/vertica/ddR

See Also

nparts, parts

Examples

1
2
3
4
5
## Not run: 
a <- darray(psize=c(3,3),dim=c(9,9)) # 9 partitions of 3x3
b <- psize(a) # A 9x2 matrix, with each row containing c(3,3)

## End(Not run)

ddR documentation built on May 29, 2017, 6:52 p.m.