public abstract class NodeStats
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static NodeStats |
UNKNOWN
Returns an instance with all values set to INFINITY.
|
Constructor and Description |
---|
NodeStats() |
Modifier and Type | Method and Description |
---|---|
static NodeStats |
create(double rowCount)
It creates an instance with rate=0 and window=rowCount for bounded sources.
|
static NodeStats |
create(double rowCount,
double rate,
double window) |
abstract double |
getRate() |
abstract double |
getRowCount() |
abstract double |
getWindow()
This method returns the number of tuples in each window.
|
boolean |
isUnknown()
If any of the values for rowCount, rate or window is infinite, it returns true.
|
NodeStats |
minus(NodeStats that) |
NodeStats |
multiply(double factor) |
NodeStats |
plus(NodeStats that) |
public static final NodeStats UNKNOWN
public abstract double getRowCount()
public abstract double getRate()
public abstract double getWindow()
public static NodeStats create(double rowCount, double rate, double window)
public static NodeStats create(double rowCount)
public boolean isUnknown()
public NodeStats multiply(double factor)