Class LocalProperties
- java.lang.Object
-
- org.apache.flink.optimizer.dataproperties.LocalProperties
-
-
Field Summary
Fields Modifier and Type Field Description static LocalPropertiesEMPTYstatic org.slf4j.LoggerLOG
-
Constructor Summary
Constructors Constructor Description LocalProperties()Default constructor for trivial local properties.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description LocalPropertiesaddUniqueFields(org.apache.flink.api.common.operators.util.FieldSet uniqueFields)Adds a combination of fields that are unique in these data properties.booleanareFieldsUnique(org.apache.flink.api.common.operators.util.FieldSet set)Checks whether the given set of fields is unique, as specified in these local properties.LocalPropertiesclearUniqueFieldSets()LocalPropertiesclone()static LocalPropertiescombine(LocalProperties lp1, LocalProperties lp2)booleanequals(Object obj)LocalPropertiesfilterBySemanticProperties(org.apache.flink.api.common.operators.SemanticProperties props, int input)Filters these LocalProperties by the fields that are forwarded to the output as described by the SemanticProperties.static LocalPropertiesforGrouping(org.apache.flink.api.common.operators.util.FieldList groupedFields)static LocalPropertiesforOrdering(org.apache.flink.api.common.operators.Ordering o)org.apache.flink.api.common.operators.util.FieldListgetGroupedFields()Gets the grouped fields.org.apache.flink.api.common.operators.OrderinggetOrdering()Gets the key order.Set<org.apache.flink.api.common.operators.util.FieldSet>getUniqueFields()Gets the fields whose combination is unique within the data set.inthashCode()booleanisTrivial()Checks, if the properties in this object are trivial, i.e.StringtoString()
-
-
-
Field Detail
-
LOG
public static final org.slf4j.Logger LOG
-
EMPTY
public static final LocalProperties EMPTY
-
-
Method Detail
-
getOrdering
public org.apache.flink.api.common.operators.Ordering getOrdering()
Gets the key order.- Returns:
- The key order, or
nullif nothing is ordered.
-
getGroupedFields
public org.apache.flink.api.common.operators.util.FieldList getGroupedFields()
Gets the grouped fields.- Returns:
- The grouped fields, or
nullif nothing is grouped.
-
getUniqueFields
public Set<org.apache.flink.api.common.operators.util.FieldSet> getUniqueFields()
Gets the fields whose combination is unique within the data set.- Returns:
- The unique field combination, or
nullif nothing is unique.
-
areFieldsUnique
public boolean areFieldsUnique(org.apache.flink.api.common.operators.util.FieldSet set)
Checks whether the given set of fields is unique, as specified in these local properties.- Parameters:
set- The set to check.- Returns:
- True, if the given column combination is unique, false if not.
-
addUniqueFields
public LocalProperties addUniqueFields(org.apache.flink.api.common.operators.util.FieldSet uniqueFields)
Adds a combination of fields that are unique in these data properties.- Parameters:
uniqueFields- The fields that are unique in these data properties.
-
clearUniqueFieldSets
public LocalProperties clearUniqueFieldSets()
-
isTrivial
public boolean isTrivial()
Checks, if the properties in this object are trivial, i.e. only standard values.
-
filterBySemanticProperties
public LocalProperties filterBySemanticProperties(org.apache.flink.api.common.operators.SemanticProperties props, int input)
Filters these LocalProperties by the fields that are forwarded to the output as described by the SemanticProperties.- Parameters:
props- The semantic properties holding information about forwarded fields.input- The index of the input.- Returns:
- The filtered LocalProperties
-
clone
public LocalProperties clone()
-
combine
public static LocalProperties combine(LocalProperties lp1, LocalProperties lp2)
-
forOrdering
public static LocalProperties forOrdering(org.apache.flink.api.common.operators.Ordering o)
-
forGrouping
public static LocalProperties forGrouping(org.apache.flink.api.common.operators.util.FieldList groupedFields)
-
-