|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.knime.base.data.aggregation.AggregationMethods
public final class AggregationMethods
Singleton that lists all available aggregation methods including helper methods to retrieve meaningful methods.
| Field Summary | |
|---|---|
static String |
EXT_POINT_ATTR_DF
The attribute of the aggregation method extension point. |
static String |
EXT_POINT_ID
The id of the AggregationMethod extension point. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String EXT_POINT_ID
public static final String EXT_POINT_ATTR_DF
| Method Detail |
|---|
public static void registerOperator(AggregationOperator operator)
throws DuplicateOperatorException
AggregationOperators.
Check first if an AggregationOperator with the same name
is already registered using the {operatorExists(String) method.
operator - the AggregationOperator to register
DuplicateOperatorException - if an operator with the same name
already existspublic static boolean operatorExists(String id)
id - the unique id to check
true if an operator with the given name is already
registered
public static AggregationMethod getAggregationMethod(DataColumnSpec colSpec,
AggregationMethod numericColMethod,
AggregationMethod nominalColMethod)
colSpec - the DataColumnSpec to checknumericColMethod - the AggregationMethod for
numerical columnsnominalColMethod - the AggregationMethod for none
numerical columns
AggregationMethod to usepublic static List<AggregationMethod> getCompatibleMethods(DataType type)
type - the DataType to check
AggregationOperators that are compatible with
the given DataType or an empty list if none is compatiblepublic static Map<Class<? extends DataValue>,List<AggregationMethod>> getCompatibleMethodGroups(DataType type)
type - the DataType to check
DataType group by the supported data typepublic static Collection<Class<? extends DataValue>> getSupportedTypes()
AggregationOperator.
AggregationOperatorpublic static String getUserTypeLabel(Class<? extends DataValue> type)
type - the type to get the user readable name starting with
a capital letter such as General, Numerical or Date.
public static Map<Class<? extends DataValue>,List<AggregationMethod>> groupMethodsByType(List<AggregationMethod> methods)
methods - the methods to group
Map with the given aggregation methods grouped
by their supported data type.public static AggregationMethod getDefaultMethod(DataColumnSpec spec)
spec - the DataColumnSpec to get the default method for
AggregationMethod for the given column specpublic static AggregationMethod getMethod4SettingsModel(SettingsModelString model)
model - the SettingsModelString with the id of the
AggregationMethod
AggregationMethod for the given id
public static AggregationMethod getMethod4Id(String id)
throws IllegalArgumentException
id - the id to get the AggregationMethod for.
AggregationMethod with the given id
IllegalArgumentException - if no AggregationMethod
exists for the given idpublic static JScrollPane createDescriptionPane()
JScrollPane that lists all available aggregation
methods and a short description of each method.
JScrollPane that can be added to any dialog to display
all available aggregation methods and their description.public static StringBuilder getHTMLDescription()
public static List<AggregationMethod> getAvailableMethods()
public static AggregationMethod getDefaultNotNumericalMethod()
public static AggregationMethod getDefaultNumericalMethod()
public static AggregationMethod getRowOrderMethod()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||