|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectat.dms.kjc.cluster.DataEstimate
public class DataEstimate
Estimates the data working set of an operator. Currently returns a magic number for splitters and joiners. For filters add the size of globals with the size of locals.
Constructor Summary | |
---|---|
DataEstimate()
|
Method Summary | |
---|---|
static int |
computeFilterGlobalsSize(SIRFilter filter)
Computes the size of globals for a SIRFilter . |
static int |
estimateDWS(SIROperator oper)
Estimates data working set for a SIROperator |
static int |
estimateIOSize(SIROperator oper)
Estimates the size of data buffers needed to store input and output for a single execution of a SIROperator |
static int |
filterGlobalsSize(SIRFilter filter)
Returns the size of globals for a SIRFilter . |
static int |
getTypeSize(CType type)
Returns the size of a variable with given type. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DataEstimate()
Method Detail |
---|
public static int getTypeSize(CType type)
type
- type of the variable
public static int estimateDWS(SIROperator oper)
SIROperator
oper
- the operator
public static int estimateIOSize(SIROperator oper)
SIROperator
oper
- the operator
public static int filterGlobalsSize(SIRFilter filter)
SIRFilter
.
Also implements a cache, so that if size of globals has
been calculated we just look up the value in the cache.
filter
- the filter
public static int computeFilterGlobalsSize(SIRFilter filter)
SIRFilter
.
filter
- the filter
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |