Class DeSelectFields
java.lang.Object
org.apache.hadoop.yarn.server.resourcemanager.webapp.DeSelectFields
DeSelectFields make the
1. add a
2. write your logical based on the return of method contains(DeSelectType)
/apps api more flexible.
It can be used to strip off more fields if there's such use case in the future.
You can simply extend it via two steps:
1. add a
DeSelectType enum with a string literals
2. write your logical based on the return of method contains(DeSelectType)
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumDeselect field type, can be boosted in the future. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanDetermine to deselect type should be handled or not.voidinitFields(Set<String> unselectedFields) Initial DeSelectFields with unselected fields.
-
Constructor Details
-
DeSelectFields
public DeSelectFields()
-
-
Method Details
-
initFields
Initial DeSelectFields with unselected fields.- Parameters:
unselectedFields- a set of unselected field.
-
contains
Determine to deselect type should be handled or not.- Parameters:
type- deselected type- Returns:
- true if the deselect type should be handled
-