29 lines
670 B
Java
29 lines
670 B
Java
package org.fog.application.selectivity;
|
|
|
|
/**
|
|
* Class representing the input-output relationships of application modules.
|
|
* @author Harshit Gupta
|
|
*
|
|
*/
|
|
public interface SelectivityModel {
|
|
|
|
/**
|
|
* Function called to check whether incoming tuple can generate an output tuple.
|
|
* @return true if a tuple can be emitted (selection possible)
|
|
*/
|
|
public boolean canSelect();
|
|
|
|
/**
|
|
* Average number of tuples generated per incoming input tuple.
|
|
* @return avg tuple generation rate
|
|
*/
|
|
public double getMeanRate();
|
|
|
|
/**
|
|
* Maximum number of tuples generated per incoming input tuple.
|
|
* @return max tuple generation rate
|
|
*/
|
|
public double getMaxRate();
|
|
|
|
}
|