Class InterestingProperties
- java.lang.Object
-
- org.apache.flink.optimizer.dataproperties.InterestingProperties
-
- All Implemented Interfaces:
Cloneable
public class InterestingProperties extends Object implements Cloneable
Interesting properties are propagated from parent operators to child operators. They tell the child what data properties would help the parent in operating in a cheaper fashion. A reduce operator, for example, tells its child that partitioned data would help. If the child is a join operator, it can use that knowledge to favor strategies that leave the data in a partitioned form.More on optimization with interesting properties can be found in the works on the volcano- and cascades optimizer framework.
-
-
Constructor Summary
Constructors Constructor Description InterestingProperties()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddGlobalProperties(RequestedGlobalProperties props)voidaddInterestingProperties(InterestingProperties other)voidaddLocalProperties(RequestedLocalProperties props)InterestingPropertiesclone()voiddropTrivials()booleanequals(Object obj)InterestingPropertiesfilterByCodeAnnotations(OptimizerNode node, int input)Set<RequestedGlobalProperties>getGlobalProperties()Gets the interesting global properties.Set<RequestedLocalProperties>getLocalProperties()Gets the interesting local properties.inthashCode()StringtoString()
-
-
-
Method Detail
-
addGlobalProperties
public void addGlobalProperties(RequestedGlobalProperties props)
-
addLocalProperties
public void addLocalProperties(RequestedLocalProperties props)
-
addInterestingProperties
public void addInterestingProperties(InterestingProperties other)
-
getLocalProperties
public Set<RequestedLocalProperties> getLocalProperties()
Gets the interesting local properties.- Returns:
- The interesting local properties.
-
getGlobalProperties
public Set<RequestedGlobalProperties> getGlobalProperties()
Gets the interesting global properties.- Returns:
- The interesting global properties.
-
filterByCodeAnnotations
public InterestingProperties filterByCodeAnnotations(OptimizerNode node, int input)
-
dropTrivials
public void dropTrivials()
-
clone
public InterestingProperties clone()
-
-