@Metric("Number") @Alias("Some number") public Number getNumber() { return number; }
@Override public final String[] getAliases() { final Alias alias = getAnnotation(Alias.class); if (alias == null) { return new String[0]; } return alias.value(); }
@Alias("a file") File someFile;
@Override public String[] getAliases() { final Alias alias = getAnnotation(Alias.class); if (alias == null) { return new String[0]; } return alias.value(); } }
@Override public Enum<C> getOutcomeCategoryByName(final String categoryName) { if (categoryName == null) { return null; } final EnumSet<C> categories = getOutcomeCategories(); for (final Enum<C> c : categories) { if (c.name().equals(categoryName)) { return c; } } for (final Enum<C> c : categories) { // check aliases final Alias aliasAnnotation = ReflectionUtils.getAnnotation(c, Alias.class); if (aliasAnnotation != null) { final String[] aliases = aliasAnnotation.value(); for (final String alias : aliases) { if (categoryName.equals(alias)) { return c; } } } } return null; }
@Alias("VALID") @Description("Outcome when the operands of the filter are equal.")EQUALS, @Alias("INVALID") @Description("Outcome when the operands of the filter are not equal.")NOT_EQUALS @Alias("Column") @Description("The column to compare values of") InputColumn<?> inputColumn; @Alias("Values") @Description("Value(s) to compare with") String[] compareValues = new String[1];
final Alias alias = ReflectionUtils.getAnnotation(field, Alias.class); if (alias != null) { final String[] aliasValues = alias.value(); for (final String aliasValue : aliasValues) { if (aliasValue.equals(str)) {
@Alias("Build map") @Description("Build a map with a variable amount of keys and values. " + "Adds the capability to store complex structures with named entries within it.")
@Named("Validate in dictionary") @Alias("Dictionary lookup") @Description("Filters values based on their existence in a dictionary") @Categorized(FilterCategory.class)
@Named("Create staging table") @Alias("Write to Datastore") @Description("Write data to DataCleaner's embedded staging database (based on H2), which provides a convenient " + "location for staging data or simply storing data temporarily for further analysis.")
@Named("Create CSV file") @Alias("Write to CSV file") @Description("Write data to a CSV file. CSV file writing is extremely fast and the file format is commonly " + "used in many tools. But CSV files do not preserve data types.")
@Alias("Datastore lookup") @Description("Perform a lookup based on a table in any of your registered datastore (like a LEFT join).") @Concurrent(true) @Alias("LEFT") LEFT_JOIN_MAX_ONE("Left join (max 1 record)"), @Alias("INNER") INNER_JOIN("Inner join"), @Alias("INNER_MIN_ONE") LEFT_JOIN("Left join"); @Inject @Configured(value = PROPERTY_NAME_SCHEMA_NAME) @Alias("Schema") @SchemaProperty @MappedProperty(PROPERTY_NAME_DATASTORE) @Inject @Configured(value = PROPERTY_NAME_TABLE_NAME) @Alias("Table") @TableProperty @MappedProperty(PROPERTY_NAME_SCHEMA_NAME)
@Named("Fuse / Coalesce fields") @Alias("Coalesce multiple fields") @Description("Lets you combine multiple fields into one, selecting the first value that is non-null.\n\n" + "Use it to fuse data streams coming from different filter requirements. You can define new fields whose "
@Alias("JavaScript transformer") @Description("Supply your own piece of JavaScript to do a custom transformation") @Categorized(ScriptingCategory.class)
@Named("Validate with string pattern") @Alias("String pattern match") @Description("Filters values that matches and does not match string patterns") @Categorized(FilterCategory.class)
@Alias("Column") InputColumn<?>[] input;
@Alias("Synonym replacement") @Description("Replaces strings with their synonyms") @ExternalDocumentation({ @DocumentationLink(title = "Segmenting customers on messy data", @Alias("Look up every token") @Description("Replace synonyms that occur as a substring within the complete text? If turned off, " + "only synonyms that match the complete text value will be replaced.")
@Named("Reference data matcher") @Alias("Matching analyzer") @Description("Check your data values against multiple forms of reference data in one simple analyzer step.\n" + "This analyzer provides a handy shortcut for doing matching with dictionaries, synonym lookups or "