|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.knime.base.data.aggregation.GlobalSettings
public class GlobalSettings
Utility class that contains general information such as the column delimiter and the total number of rows. The informations might be provided by the user in the node dialog.
| Field Summary | |
|---|---|
static GlobalSettings |
DEFAULT
Default global settings object used in operator templates. |
static String |
STANDARD_DELIMITER
The standard delimiter used in concatenation operators. |
| Constructor Summary | |
|---|---|
GlobalSettings()
Constructor for class GlobalSettings. |
|
GlobalSettings(int maxUniqueValues)
Constructor for class GlobalSettings that uses the standard value delimiter. |
|
GlobalSettings(int maxUniqueValues,
String valueDelimiter,
DataTableSpec spec,
int noOfRows)
Constructor for class GlobalSettings. |
|
| Method Summary | |
|---|---|
int |
findColumnIndex(String columnName)
Finds the column with the specified name in the TableSpec of the original input table and returns its index, or -1 if the name doesn't exist in the table. |
int |
getMaxUniqueValues()
|
int |
getNoOfColumns()
Returns the number of columns of the original input table. |
int |
getNoOfRows()
|
DataColumnSpec |
getOriginalColumnSpec(int index)
Returns column information of the original column with the provided index. |
DataColumnSpec |
getOriginalColumnSpec(String column)
Returns the DataColumnSpec of the original column with the
provided name. |
String |
getValueDelimiter()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final GlobalSettings DEFAULT
public static final String STANDARD_DELIMITER
| Constructor Detail |
|---|
GlobalSettings()
public GlobalSettings(int maxUniqueValues)
maxUniqueValues - the maximum number of unique values to consider
public GlobalSettings(int maxUniqueValues,
String valueDelimiter,
DataTableSpec spec,
int noOfRows)
maxUniqueValues - the maximum number of unique values to considervalueDelimiter - the delimiter to use for value separationspec - the DataTableSpec of the input tablenoOfRows - the number of rows of the input table| Method Detail |
|---|
public int getMaxUniqueValues()
public String getValueDelimiter()
public int getNoOfRows()
public int getNoOfColumns()
public int findColumnIndex(String columnName)
null.
columnName - the name to search for
public DataColumnSpec getOriginalColumnSpec(int index)
index - the column index within the table
ArrayIndexOutOfBoundsException - if the index is out of rangepublic DataColumnSpec getOriginalColumnSpec(String column)
DataColumnSpec of the original column with the
provided name.
This method returns null if the argument is
null.
column - the column name to find the spec for
null if not available
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||