本文整理汇总了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;
}
示例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
}
}
示例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);
}
}
示例4: has
import com.tinkerpop.blueprints.Query.Compare; //导入依赖的package包/类
@Override
@Deprecated
public <T extends Comparable<T>> FramedGraphQuery has(String key, T value, Compare compare);
示例5: hasNot
import com.tinkerpop.blueprints.Query.Compare; //导入依赖的package包/类
public ArangoDBQuery hasNot(String key) {
propertyFilter.has(key, null, ArangoDBPropertyFilter.Compare.HAS_NOT);
return this;
}
示例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;
}