Package org.apache.sysds.resource.cost
Class RDDStats
java.lang.Object
org.apache.sysds.resource.cost.RDDStats
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondoublegetCost()Meant to be used at testingbooleanMeant to be used at testing
-
Constructor Details
-
RDDStats
Initiates RDD statistics object bound to an existingVarStatsobject. Uses HDFS block size to adjust automatically the number of partitions for the current RDD.- Parameters:
sourceStats- bound variables statistics
-
RDDStats
public RDDStats(long size, int partitions) Initiates RDD statistics object for intermediate variables (not bound toVarStats). Intended to be used for intermediate shuffle estimations.- Parameters:
size- distributed size of the objectpartitions- target number of partitions; -1 for fitting to HDFS block size
-
-
Method Details
-
getCost
public double getCost()Meant to be used at testing- Returns:
- estimated time (seconds) for generation of the current RDD
-
isCollected
public boolean isCollected()Meant to be used at testing- Returns:
- flag if the current RDD is collected
-