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 FieldList
EMPTY_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 FieldList
addField(Integer fieldID)
FieldList
addFields(int... fieldIDs)
FieldList
addFields(FieldSet set)
Integer
get(int pos)
protected String
getDescriptionPrefix()
protected String
getDescriptionSuffix()
boolean
isExactMatch(FieldList list)
boolean
isValidSubset(FieldList list)
boolean
isValidSubset(FieldSet set)
Checks if the given set of fields is a valid subset of this set of fields.boolean
isValidUnorderedPrefix(FieldSet set)
FieldList
toFieldList()
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:FieldSet
Turns the FieldSet into an ordered FieldList.- Overrides:
toFieldList
in classFieldSet
- Returns:
- An ordered FieldList.
-
isValidSubset
public boolean isValidSubset(FieldSet set)
Description copied from class:FieldSet
Checks 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:
isValidSubset
in 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:
getDescriptionPrefix
in classFieldSet
-
getDescriptionSuffix
protected String getDescriptionSuffix()
- Overrides:
getDescriptionSuffix
in classFieldSet
-
-