|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<ColumnNamePolicy>
org.knime.base.node.preproc.groupby.ColumnNamePolicy
public enum ColumnNamePolicy
This enum defines the different aggregation column name versions.
Enum Constant Summary | |
---|---|
AGGREGATION_METHOD_COLUMN_NAME
Combines the aggregation method with the column name e.g. |
|
COLUMN_NAME_AGGREGATION_METHOD
Combines the column name with the aggregation method e.g. |
|
KEEP_ORIGINAL_NAME
Keeps the original column name. |
Method Summary | |
---|---|
String |
createColumName(String origName,
AggregationMethod aggrMethod)
|
static ColumnNamePolicy |
getDefault()
|
String |
getLabel()
|
static ColumnNamePolicy |
getPolicy4Label(String label)
|
static String[] |
getPolicyLabels()
|
static ColumnNamePolicy |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static ColumnNamePolicy[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final ColumnNamePolicy KEEP_ORIGINAL_NAME
public static final ColumnNamePolicy AGGREGATION_METHOD_COLUMN_NAME
public static final ColumnNamePolicy COLUMN_NAME_AGGREGATION_METHOD
Method Detail |
---|
public static ColumnNamePolicy[] values()
for (ColumnNamePolicy c : ColumnNamePolicy.values()) System.out.println(c);
public static ColumnNamePolicy valueOf(String name)
name
- the name of the enum constant to be returned.
IllegalArgumentException
- if this enum type has no constant
with the specified name
NullPointerException
- if the argument is nullpublic String getLabel()
public String createColumName(String origName, AggregationMethod aggrMethod)
origName
- the original name of the columnaggrMethod
- the AggregationMethod
to use
public static ColumnNamePolicy getPolicy4Label(String label)
label
- the label of the ColumnNamePolicy
ColumnNamePolicy
with the given labelpublic static String[] getPolicyLabels()
ColumnNamePolicy
optionspublic static ColumnNamePolicy getDefault()
ColumnNamePolicy
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |