Class NodeStats
java.lang.Object
org.apache.beam.sdk.extensions.sql.impl.planner.NodeStats
This is a utility class to represent rowCount, rate and window.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic 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
abstract double
This method returns the number of tuples in each window.boolean
If any of the values for rowCount, rate or window is infinite, it returns true.multiply
(double factor)
-
Field Details
-
UNKNOWN
Returns an instance with all values set to INFINITY. This will be only used when the node is not a BeamRelNode and we don't have an estimation implementation for it in the metadata handler. In this case we return INFINITE and it will be propagated up in the estimates.
-
-
Constructor Details
-
NodeStats
public NodeStats()
-
-
Method Details
-
getRowCount
public abstract double getRowCount() -
getRate
public abstract double getRate() -
getWindow
public abstract double getWindow()This method returns the number of tuples in each window. It is different than the windowing notion of Beam. -
create
-
create
It creates an instance with rate=0 and window=rowCount for bounded sources. -
isUnknown
public boolean isUnknown()If any of the values for rowCount, rate or window is infinite, it returns true. -
multiply
-
plus
-
minus
-