本文整理了Java中org.apache.tinkerpop.gremlin.structure.Direction.values()
方法的一些代码示例,展示了Direction.values()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Direction.values()
方法的具体详情如下:
包路径:org.apache.tinkerpop.gremlin.structure.Direction
类名称:Direction
方法名:values
暂无
代码示例来源:origin: thinkaurelius/titan
@Override
public List<SliceQuery> getQueries() {
if (isGlobalGraphIndex()) {
//Everything
return ImmutableList.of(new SliceQuery(BufferUtil.zeroBuffer(1), BufferUtil.oneBuffer(128)));
} else {
RelationTypeIndexWrapper wrapper = (RelationTypeIndexWrapper)index;
InternalRelationType wrappedType = wrapper.getWrappedType();
Direction direction=null;
for (Direction dir : Direction.values()) if (wrappedType.isUnidirected(dir)) direction=dir;
assert direction!=null;
StandardTitanTx tx = (StandardTitanTx)graph.get().buildTransaction().readOnly().start();
try {
QueryContainer qc = new QueryContainer(tx);
qc.addQuery().type(wrappedType).direction(direction).relations();
return qc.getSliceQueries();
} finally {
tx.rollback();
}
}
}
代码示例来源:origin: JanusGraph/janusgraph
@Override
public List<SliceQuery> getQueries() {
if (isGlobalGraphIndex()) {
//Everything
return ImmutableList.of(new SliceQuery(BufferUtil.zeroBuffer(1), BufferUtil.oneBuffer(128)));
} else {
RelationTypeIndexWrapper wrapper = (RelationTypeIndexWrapper)index;
InternalRelationType wrappedType = wrapper.getWrappedType();
Direction direction=null;
for (Direction dir : Direction.values()) if (wrappedType.isUnidirected(dir)) direction=dir;
assert direction!=null;
StandardJanusGraphTx tx = (StandardJanusGraphTx)graph.get().buildTransaction().readOnly().start();
try {
QueryContainer qc = new QueryContainer(tx);
qc.addQuery().type(wrappedType).direction(direction).relations();
return qc.getSliceQueries();
} finally {
tx.rollback();
}
}
}
代码示例来源:origin: apache/tinkerpop
Stream.of(VertexProperty.Cardinality.values(),
Column.values(),
Direction.values(),
Operator.values(),
Order.values(),
代码示例来源:origin: apache/tinkerpop
Stream.of(VertexProperty.Cardinality.values(),
Column.values(),
Direction.values(),
Operator.values(),
Order.values(),
代码示例来源:origin: com.thinkaurelius.titan/titan-core
@Override
public List<SliceQuery> getQueries() {
if (isGlobalGraphIndex()) {
//Everything
return ImmutableList.of(new SliceQuery(BufferUtil.zeroBuffer(1), BufferUtil.oneBuffer(128)));
} else {
RelationTypeIndexWrapper wrapper = (RelationTypeIndexWrapper)index;
InternalRelationType wrappedType = wrapper.getWrappedType();
Direction direction=null;
for (Direction dir : Direction.values()) if (wrappedType.isUnidirected(dir)) direction=dir;
assert direction!=null;
StandardTitanTx tx = (StandardTitanTx)graph.get().buildTransaction().readOnly().start();
try {
QueryContainer qc = new QueryContainer(tx);
qc.addQuery().type(wrappedType).direction(direction).relations();
return qc.getSliceQueries();
} finally {
tx.rollback();
}
}
}
代码示例来源:origin: org.apache.tinkerpop/gremlin-core
Stream.of(VertexProperty.Cardinality.values(),
Column.values(),
Direction.values(),
Operator.values(),
Order.values(),
代码示例来源:origin: org.apache.tinkerpop/gremlin-core
Stream.of(VertexProperty.Cardinality.values(),
Column.values(),
Direction.values(),
Operator.values(),
Order.values(),
内容来源于网络,如有侵权,请联系作者删除!