当前位置: 首页>>代码示例>>Java>>正文


Java Filter类代码示例

本文整理汇总了Java中org.apache.accumulo.core.iterators.Filter的典型用法代码示例。如果您正苦于以下问题:Java Filter类的具体用法?Java Filter怎么用?Java Filter使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


Filter类属于org.apache.accumulo.core.iterators包,在下文中一共展示了Filter类的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: getVersionRegExFilterSetting

import org.apache.accumulo.core.iterators.Filter; //导入依赖的package包/类
/**
 * 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;
}
 
开发者ID:apache,项目名称:incubator-rya,代码行数:11,代码来源:AccumuloRyaUtils.java

示例2: getCopyToolRunTimeRegExFilterSetting

import org.apache.accumulo.core.iterators.Filter; //导入依赖的package包/类
/**
 * 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;
}
 
开发者ID:apache,项目名称:incubator-rya,代码行数:11,代码来源:AccumuloRyaUtils.java

示例3: getCopyToolSplitTimeRegExFilterSetting

import org.apache.accumulo.core.iterators.Filter; //导入依赖的package包/类
/**
 * 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;
}
 
开发者ID:apache,项目名称:incubator-rya,代码行数:11,代码来源:AccumuloRyaUtils.java

示例4: getCopyToolTimeOffsetRegExFilterSetting

import org.apache.accumulo.core.iterators.Filter; //导入依赖的package包/类
/**
 * 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;
}
 
开发者ID:apache,项目名称:incubator-rya,代码行数:11,代码来源:AccumuloRyaUtils.java

示例5: findTopEnhanced

import org.apache.accumulo.core.iterators.Filter; //导入依赖的package包/类
protected static void findTopEnhanced(
		final SortedKeyValueIterator<Key, Value> source,
		final Filter filter ) {
	Key key;
	if (source.hasTop()) {
		key = source.getTopKey();
	}
	else {
		return;
	}
	while (!key.isDeleted() && !filter.accept(
			key,
			source.getTopValue())) {
		try {
			source.next();
			if (source.hasTop()) {
				key = source.getTopKey();
			}
			else {
				return;
			}
		}
		catch (final IOException e) {
			throw new RuntimeException(
					e);
		}
	}
}
 
开发者ID:locationtech,项目名称:geowave,代码行数:29,代码来源:QueryFilterIterator.java


注:本文中的org.apache.accumulo.core.iterators.Filter类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。