public enum ReportField extends Enum<ReportField>
| Modifier and Type | Class and Description |
|---|---|
static class |
ReportField.FilterType
Represents the type of a filter.
|
| Enum Constant and Description |
|---|
APPLICATION_NAME |
APPLICATION_VERSION |
ARTIFACT_NAME |
ARTIFACT_SCOPE |
ARTIFACT_VERSION |
DURATION |
END |
NAMESPACE |
NUM_LOG_ERRORS |
NUM_LOG_WARNINGS |
NUM_RECORDS_OUT |
PROGRAM |
PROGRAM_TYPE |
RUN |
RUNNING |
RUNTIME_ARGUMENTS |
START |
START_METHOD |
STATUS |
USER |
| Modifier and Type | Field and Description |
|---|---|
static Map<String,ReportField> |
FIELD_NAME_MAP
A map with all valid field names as keys and the corresponding
ReportField as values |
static List<String> |
SORTABLE_FIELDS
A list of the names of all fields that can be used to sort a report
|
| Modifier and Type | Method and Description |
|---|---|
List<ReportField.FilterType> |
getApplicableFilters() |
String |
getFieldName() |
Class |
getValueClass() |
boolean |
isSortable() |
static boolean |
isValidField(String fieldName)
Returns whether there exists a field with the given name.
|
static ReportField |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ReportField |
valueOfFieldName(String fieldName)
Returns the corresponding report field given a field's name.
|
static ReportField[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ReportField NAMESPACE
public static final ReportField ARTIFACT_SCOPE
public static final ReportField ARTIFACT_NAME
public static final ReportField ARTIFACT_VERSION
public static final ReportField APPLICATION_NAME
public static final ReportField APPLICATION_VERSION
public static final ReportField PROGRAM_TYPE
public static final ReportField PROGRAM
public static final ReportField RUN
public static final ReportField STATUS
public static final ReportField START
public static final ReportField RUNNING
public static final ReportField END
public static final ReportField DURATION
public static final ReportField USER
public static final ReportField START_METHOD
public static final ReportField RUNTIME_ARGUMENTS
public static final ReportField NUM_LOG_WARNINGS
public static final ReportField NUM_LOG_ERRORS
public static final ReportField NUM_RECORDS_OUT
public static final Map<String,ReportField> FIELD_NAME_MAP
ReportField as valuespublic static ReportField[] values()
for (ReportField c : ReportField.values()) System.out.println(c);
public static ReportField valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic String getFieldName()
public Class getValueClass()
public List<ReportField.FilterType> getApplicableFilters()
ReportField.FilterType's that are applicable to this fieldpublic boolean isSortable()
true if this field can be used to sort a report, false otherwise.@Nullable public static ReportField valueOfFieldName(String fieldName)
fieldName - the name of the fieldnull if no field with the given name existspublic static boolean isValidField(String fieldName)
fieldName - the field name to be checkedtrue if there exists a field with the given name, false otherwise.Copyright © 2018 Cask Data, Inc. Licensed under the Apache License, Version 2.0.