Package org.apache.sysds.resource.cost
Class VarStats
- java.lang.Object
-
- org.apache.sysds.resource.cost.VarStats
-
public class VarStats extends Object
-
-
Constructor Summary
Constructors Constructor Description VarStats(String name, DataCharacteristics dc)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description longgetCells()longgetCellsWithSparsity()longgetM()longgetN()longgetNNZ()RDDStatsgetRddStats()Meant to be used at testingdoublegetSparsity()booleanisScalar()booleanisSparse()voidsetAllocatedMemory(long memory)Meant to be used at testingvoidsetRddStats(RDDStats rddStats)Meant to be used at testing
-
-
-
Constructor Detail
-
VarStats
public VarStats(String name, DataCharacteristics dc)
-
-
Method Detail
-
isScalar
public boolean isScalar()
-
getM
public long getM()
-
getN
public long getN()
-
getNNZ
public long getNNZ()
-
getSparsity
public double getSparsity()
-
getCells
public long getCells()
-
getCellsWithSparsity
public long getCellsWithSparsity()
-
isSparse
public boolean isSparse()
-
setAllocatedMemory
public void setAllocatedMemory(long memory)
Meant to be used at testing- Parameters:
memory- size to allocate
-
getRddStats
public RDDStats getRddStats()
Meant to be used at testing- Returns:
- corresponding RDD statistics
-
setRddStats
public void setRddStats(RDDStats rddStats)
Meant to be used at testing- Parameters:
rddStats- corresponding RDD statistics
-
-