org.apache.accumulo.core.iterators.Filter.setNegate()方法的使用及代码示例

x33g5p2x  于2022-01-19 转载在 其他  
字(3.3k)|赞(0)|评价(0)|浏览(206)

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

Filter.setNegate介绍

[英]A convenience method for setting the negation option on a filter.
[中]在过滤器上设置否定选项的简便方法。

代码示例

代码示例来源:origin: apache/incubator-rya

/**
 * Creates a {@link RegExFilter} setting to ignore the copy tool split time row in a table.
 * @return the {@link RegExFilter} {@link IteratorSetting}.
 */
public static IteratorSetting getCopyToolSplitTimeRegExFilterSetting() {
  final IteratorSetting regex = new IteratorSetting(32, COPY_TOOL_SPLIT_TIME_LOCAL_NAME + "_regex", RegExFilter.class);
  RegExFilter.setRegexs(regex, "(.*)urn:(.*)#" + COPY_TOOL_SPLIT_TIME_LOCAL_NAME + "[\u0000|\u0001](.*)", null, null, null, false);
  Filter.setNegate(regex, true);
  return regex;
}

代码示例来源:origin: org.apache.rya/rya.export.accumulo

/**
 * Creates a {@link RegExFilter} setting to ignore the version row in a table.
 * @return the {@link RegExFilter} {@link IteratorSetting}.
 */
public static IteratorSetting getVersionRegExFilterSetting() {
  final IteratorSetting regex = new IteratorSetting(30, "version_regex", RegExFilter.class);
  RegExFilter.setRegexs(regex, "(.*)urn:(.*)#version[\u0000|\u0001](.*)", null, null, null, false);
  Filter.setNegate(regex, true);
  return regex;
}

代码示例来源:origin: apache/incubator-rya

/**
 * Creates a {@link RegExFilter} setting to ignore the version row in a table.
 * @return the {@link RegExFilter} {@link IteratorSetting}.
 */
public static IteratorSetting getVersionRegExFilterSetting() {
  final IteratorSetting regex = new IteratorSetting(30, "version_regex", RegExFilter.class);
  RegExFilter.setRegexs(regex, "(.*)urn:(.*)#version[\u0000|\u0001](.*)", null, null, null, false);
  Filter.setNegate(regex, true);
  return regex;
}

代码示例来源:origin: apache/incubator-rya

/**
 * Creates a {@link RegExFilter} setting to ignore the version row in a table.
 * @return the {@link RegExFilter} {@link IteratorSetting}.
 */
public static IteratorSetting getVersionRegExFilterSetting() {
  final IteratorSetting regex = new IteratorSetting(30, "version_regex", RegExFilter.class);
  RegExFilter.setRegexs(regex, "(.*)urn:(.*)#version[\u0000|\u0001](.*)", null, null, null, false);
  Filter.setNegate(regex, true);
  return regex;
}

代码示例来源:origin: apache/incubator-rya

/**
 * Creates a {@link RegExFilter} setting to ignore the copy tool run time row in a table.
 * @return the {@link RegExFilter} {@link IteratorSetting}.
 */
public static IteratorSetting getCopyToolRunTimeRegExFilterSetting() {
  final IteratorSetting regex = new IteratorSetting(31, COPY_TOOL_RUN_TIME_LOCAL_NAME + "_regex", RegExFilter.class);
  RegExFilter.setRegexs(regex, "(.*)urn:(.*)#" + COPY_TOOL_RUN_TIME_LOCAL_NAME + "[\u0000|\u0001](.*)", null, null, null, false);
  Filter.setNegate(regex, true);
  return regex;
}

代码示例来源:origin: apache/incubator-rya

/**
 * Creates a {@link RegExFilter} setting to ignore the copy tool time setting row in a table.
 * @return the {@link RegExFilter} {@link IteratorSetting}.
 */
public static IteratorSetting getCopyToolTimeOffsetRegExFilterSetting() {
  final IteratorSetting regex = new IteratorSetting(33, COPY_TOOL_TIME_OFFSET_LOCAL_NAME + "_regex", RegExFilter.class);
  RegExFilter.setRegexs(regex, "(.*)urn:(.*)#" + COPY_TOOL_TIME_OFFSET_LOCAL_NAME + "[\u0000|\u0001](.*)", null, null, null, false);
  Filter.setNegate(regex, true);
  return regex;
}

相关文章