Class FieldList
- java.lang.Object
-
- org.apache.flink.api.common.operators.util.FieldSet
-
- org.apache.flink.api.common.operators.util.FieldList
-
-
Field Summary
Fields Modifier and Type Field Description static FieldListEMPTY_LIST-
Fields inherited from class org.apache.flink.api.common.operators.util.FieldSet
collection, EMPTY_SET
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FieldListaddField(Integer fieldID)FieldListaddFields(int... fieldIDs)FieldListaddFields(FieldSet set)Integerget(int pos)protected StringgetDescriptionPrefix()protected StringgetDescriptionSuffix()booleanisExactMatch(FieldList list)booleanisValidSubset(FieldList list)booleanisValidSubset(FieldSet set)Checks if the given set of fields is a valid subset of this set of fields.booleanisValidUnorderedPrefix(FieldSet set)FieldListtoFieldList()Turns the FieldSet into an ordered FieldList.-
Methods inherited from class org.apache.flink.api.common.operators.util.FieldSet
clone, contains, equals, hashCode, iterator, size, toArray, toString
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
-
-
-
Field Detail
-
EMPTY_LIST
public static final FieldList EMPTY_LIST
-
-
Constructor Detail
-
FieldList
public FieldList()
-
FieldList
public FieldList(int fieldId)
-
FieldList
public FieldList(Integer fieldId)
-
FieldList
public FieldList(int... columnIndexes)
-
-
Method Detail
-
get
public Integer get(int pos)
-
toFieldList
public FieldList toFieldList()
Description copied from class:FieldSetTurns the FieldSet into an ordered FieldList.- Overrides:
toFieldListin classFieldSet- Returns:
- An ordered FieldList.
-
isValidSubset
public boolean isValidSubset(FieldSet set)
Description copied from class:FieldSetChecks if the given set of fields is a valid subset of this set of fields. For unordered sets, this is the case if all of the given set's fields are also part of this field.Subclasses that describe field sets where the field order matters must override this method to implement a field ordering sensitive check.
- Overrides:
isValidSubsetin classFieldSet- Parameters:
set- The set that is a candidate subset.- Returns:
- True, if the given set is a subset of this set, false otherwise.
-
isValidSubset
public boolean isValidSubset(FieldList list)
-
isValidUnorderedPrefix
public boolean isValidUnorderedPrefix(FieldSet set)
-
isExactMatch
public boolean isExactMatch(FieldList list)
-
getDescriptionPrefix
protected String getDescriptionPrefix()
- Overrides:
getDescriptionPrefixin classFieldSet
-
getDescriptionSuffix
protected String getDescriptionSuffix()
- Overrides:
getDescriptionSuffixin classFieldSet
-
-