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


Java Compare类代码示例

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


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

示例1: has

import com.tinkerpop.blueprints.Query.Compare; //导入依赖的package包/类
public <T extends Comparable<T>> ArangoDBQuery has(final String key, final T value, final Compare compare) {
	switch (compare) {
	case EQUAL:
		propertyFilter.has(key, value, ArangoDBPropertyFilter.Compare.EQUAL);
		break;
	case NOT_EQUAL:
		propertyFilter.has(key, value, ArangoDBPropertyFilter.Compare.NOT_EQUAL);
		break;
	case GREATER_THAN:
		propertyFilter.has(key, value, ArangoDBPropertyFilter.Compare.GREATER_THAN);
		break;
	case LESS_THAN:
		propertyFilter.has(key, value, ArangoDBPropertyFilter.Compare.LESS_THAN);
		break;
	case GREATER_THAN_EQUAL:
		propertyFilter.has(key, value, ArangoDBPropertyFilter.Compare.GREATER_THAN_EQUAL);
		break;
	case LESS_THAN_EQUAL:
		propertyFilter.has(key, value, ArangoDBPropertyFilter.Compare.LESS_THAN_EQUAL);
		break;
	default:
		// do nothing
	}
	return this;
}
 
开发者ID:arangodb,项目名称:blueprints-arangodb-graph,代码行数:26,代码来源:ArangoDBQuery.java

示例2: hasCompare

import com.tinkerpop.blueprints.Query.Compare; //导入依赖的package包/类
private void hasCompare(String key, Object value, com.tinkerpop.blueprints.Compare compare) {
	switch (compare) {
	case EQUAL:
		propertyFilter.has(key, value, ArangoDBPropertyFilter.Compare.EQUAL);
		break;
	case NOT_EQUAL:
		propertyFilter.has(key, value, ArangoDBPropertyFilter.Compare.NOT_EQUAL);
		break;
	case GREATER_THAN:
		propertyFilter.has(key, value, ArangoDBPropertyFilter.Compare.GREATER_THAN);
		break;
	case LESS_THAN:
		propertyFilter.has(key, value, ArangoDBPropertyFilter.Compare.LESS_THAN);
		break;
	case GREATER_THAN_EQUAL:
		propertyFilter.has(key, value, ArangoDBPropertyFilter.Compare.GREATER_THAN_EQUAL);
		break;
	case LESS_THAN_EQUAL:
		propertyFilter.has(key, value, ArangoDBPropertyFilter.Compare.LESS_THAN_EQUAL);
		break;
	default:
		// do nothing
	}
}
 
开发者ID:arangodb,项目名称:blueprints-arangodb-graph,代码行数:25,代码来源:ArangoDBQuery.java

示例3: hasContains

import com.tinkerpop.blueprints.Query.Compare; //导入依赖的package包/类
private void hasContains(String key, com.tinkerpop.blueprints.Contains contains, Object value) {
	if (contains == Contains.IN) {
		propertyFilter.has(key, value, ArangoDBPropertyFilter.Compare.IN);
	} else if (contains == Contains.NOT_IN) {
		propertyFilter.has(key, value, ArangoDBPropertyFilter.Compare.NOT_IN);
	}
}
 
开发者ID:arangodb,项目名称:blueprints-arangodb-graph,代码行数:8,代码来源:ArangoDBQuery.java

示例4: has

import com.tinkerpop.blueprints.Query.Compare; //导入依赖的package包/类
@Override
@Deprecated
public <T extends Comparable<T>> FramedGraphQuery has(String key, T value, Compare compare);
 
开发者ID:OpenNTF,项目名称:org.openntf.domino,代码行数:4,代码来源:FramedGraphQuery.java

示例5: hasNot

import com.tinkerpop.blueprints.Query.Compare; //导入依赖的package包/类
public ArangoDBQuery hasNot(String key) {
	propertyFilter.has(key, null, ArangoDBPropertyFilter.Compare.HAS_NOT);
	return this;
}
 
开发者ID:arangodb,项目名称:blueprints-arangodb-graph,代码行数:5,代码来源:ArangoDBQuery.java

示例6: interval

import com.tinkerpop.blueprints.Query.Compare; //导入依赖的package包/类
public <T extends Comparable<?>> ArangoDBQuery interval(String key, T startValue, T endValue) {
	propertyFilter.has(key, startValue, ArangoDBPropertyFilter.Compare.GREATER_THAN_EQUAL);
	propertyFilter.has(key, endValue, ArangoDBPropertyFilter.Compare.LESS_THAN);
	return this;
}
 
开发者ID:arangodb,项目名称:blueprints-arangodb-graph,代码行数:6,代码来源:ArangoDBQuery.java


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