org.datacleaner.api.Alias类的使用及代码示例

x33g5p2x  于2022-01-17 转载在 其他  
字(5.7k)|赞(0)|评价(0)|浏览(145)

本文整理了Java中org.datacleaner.api.Alias类的一些代码示例,展示了Alias类的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Alias类的具体详情如下:
包路径:org.datacleaner.api.Alias
类名称:Alias

Alias介绍

暂无

代码示例

代码示例来源:origin: datacleaner/DataCleaner

@Metric("Number")
@Alias("Some number")
public Number getNumber() {
  return number;
}

代码示例来源:origin: datacleaner/DataCleaner

@Override
public final String[] getAliases() {
  final Alias alias = getAnnotation(Alias.class);
  if (alias == null) {
    return new String[0];
  }
  return alias.value();
}

代码示例来源:origin: datacleaner/DataCleaner

@Alias("a file")
File someFile;

代码示例来源:origin: datacleaner/DataCleaner

@Override
  public String[] getAliases() {
    final Alias alias = getAnnotation(Alias.class);
    if (alias == null) {
      return new String[0];
    }
    return alias.value();
  }
}

代码示例来源:origin: datacleaner/DataCleaner

@Named("Null check")
@Alias("Not null")
@Description("Filter rows that contain null values.")
@Categorized(FilterCategory.class)
    @Alias("INVALID")
    NULL,
    @Alias("VALID")
    NOT_NULL

代码示例来源:origin: datacleaner/DataCleaner

@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;
}

代码示例来源:origin: datacleaner/DataCleaner

@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];

代码示例来源:origin: datacleaner/DataCleaner

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)) {

代码示例来源:origin: datacleaner/DataCleaner

@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.")

代码示例来源:origin: datacleaner/DataCleaner

@Named("Validate in dictionary")
@Alias("Dictionary lookup")
@Description("Filters values based on their existence in a dictionary")
@Categorized(FilterCategory.class)

代码示例来源:origin: datacleaner/DataCleaner

@Alias("Schema")
@SchemaProperty
@MappedProperty(PROPERTY_NAME_DATASTORE)
@Alias("Table")
@TableProperty
@MappedProperty(PROPERTY_NAME_SCHEMA_NAME)

代码示例来源:origin: datacleaner/DataCleaner

@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.")

代码示例来源:origin: datacleaner/DataCleaner

@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.")

代码示例来源:origin: datacleaner/DataCleaner

@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)

代码示例来源:origin: datacleaner/DataCleaner

@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 "

代码示例来源:origin: datacleaner/DataCleaner

@Alias("JavaScript transformer")
@Description("Supply your own piece of JavaScript to do a custom transformation")
@Categorized(ScriptingCategory.class)

代码示例来源:origin: datacleaner/DataCleaner

@Named("Validate with string pattern")
@Alias("String pattern match")
@Description("Filters values that matches and does not match string patterns")
@Categorized(FilterCategory.class)

代码示例来源:origin: datacleaner/DataCleaner

@Alias("Column")
InputColumn<?>[] input;

代码示例来源:origin: datacleaner/DataCleaner

@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.")

代码示例来源:origin: datacleaner/DataCleaner

@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 "

相关文章

Alias类方法