org.apache.tinkerpop.gremlin.structure.Direction.values()方法的使用及代码示例

x33g5p2x  于2022-01-18 转载在 其他  
字(3.1k)|赞(0)|评价(0)|浏览(197)

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

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(),

相关文章