java.lang.Object
org.apache.hadoop.yarn.server.resourcemanager.webapp.DeSelectFields

public class DeSelectFields extends Object
DeSelectFields make the /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)
  • Constructor Details

    • DeSelectFields

      public DeSelectFields()
  • Method Details

    • initFields

      public void initFields(Set<String> unselectedFields)
      Initial DeSelectFields with unselected fields.
      Parameters:
      unselectedFields - a set of unselected field.
    • contains

      public boolean contains(DeSelectFields.DeSelectType type)
      Determine to deselect type should be handled or not.
      Parameters:
      type - deselected type
      Returns:
      true if the deselect type should be handled