Learn R Programming

ddR (version 0.1.2)

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

Description

Return sizes of each partition of the input distributed object.

Usage

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

Run this code
## 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)

Run the code above in your browser using DataLab