Package org.dashbuilder.dataset.filter
Enum CoreFunctionType
- java.lang.Object
-
- java.lang.Enum<CoreFunctionType>
-
- org.dashbuilder.dataset.filter.CoreFunctionType
-
- All Implemented Interfaces:
Serializable,Comparable<CoreFunctionType>
public enum CoreFunctionType extends Enum<CoreFunctionType>
Type of core filter functions available
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BETWEENEQUALS_TOGREATER_OR_EQUALS_TOGREATER_THANINIS_NULLLIKE_TOTheLIKE_TOoperator is intended to emulate the SQL like operator.It's used to search for a specified pattern in a data set's column.LOWER_OR_EQUALS_TOLOWER_THANNOT_EQUALS_TONOT_INNOT_NULLTIME_FRAME
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static CoreFunctionTypegetByIndex(int index)static CoreFunctionTypegetByName(String type)intgetIndex()static intgetNumberOfParameters(String type)intgetParametersCount()static List<CoreFunctionType>getSupportedTypes(ColumnType columnType)booleansupportsType(ColumnType type)static CoreFunctionTypevalueOf(String name)Returns the enum constant of this type with the specified name.static CoreFunctionType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
IS_NULL
public static final CoreFunctionType IS_NULL
-
NOT_NULL
public static final CoreFunctionType NOT_NULL
-
EQUALS_TO
public static final CoreFunctionType EQUALS_TO
-
NOT_EQUALS_TO
public static final CoreFunctionType NOT_EQUALS_TO
-
LIKE_TO
public static final CoreFunctionType LIKE_TO
The
LIKE_TOoperator is intended to emulate the SQL like operator.It's used to search for a specified pattern in a data set's column.Allowed wildcards are:
_- A substitute for a single character.%- A substitute for zero or more characters.[charlist]- Sets and ranges of characters to match.[^charlist]- Matches only a character NOT specified within the brackets.
The implementation is supported for TEXT or LABEL column types and it's case sensitive or unsensitive depending on the boolean value returned by its second parameter.
-
GREATER_THAN
public static final CoreFunctionType GREATER_THAN
-
GREATER_OR_EQUALS_TO
public static final CoreFunctionType GREATER_OR_EQUALS_TO
-
LOWER_THAN
public static final CoreFunctionType LOWER_THAN
-
LOWER_OR_EQUALS_TO
public static final CoreFunctionType LOWER_OR_EQUALS_TO
-
BETWEEN
public static final CoreFunctionType BETWEEN
-
TIME_FRAME
public static final CoreFunctionType TIME_FRAME
-
IN
public static final CoreFunctionType IN
-
NOT_IN
public static final CoreFunctionType NOT_IN
-
-
Method Detail
-
values
public static CoreFunctionType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (CoreFunctionType c : CoreFunctionType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static CoreFunctionType valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
getIndex
public int getIndex()
-
getParametersCount
public int getParametersCount()
-
supportsType
public boolean supportsType(ColumnType type)
-
getByIndex
public static CoreFunctionType getByIndex(int index)
-
getByName
public static CoreFunctionType getByName(String type)
-
getNumberOfParameters
public static int getNumberOfParameters(String type)
-
getSupportedTypes
public static List<CoreFunctionType> getSupportedTypes(ColumnType columnType)
-
-