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


Java ExceptionFactory.bothIsNotSupported方法代码示例

本文整理汇总了Java中com.tinkerpop.blueprints.util.ExceptionFactory.bothIsNotSupported方法的典型用法代码示例。如果您正苦于以下问题:Java ExceptionFactory.bothIsNotSupported方法的具体用法?Java ExceptionFactory.bothIsNotSupported怎么用?Java ExceptionFactory.bothIsNotSupported使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在com.tinkerpop.blueprints.util.ExceptionFactory的用法示例。


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

示例1: getVertex

import com.tinkerpop.blueprints.util.ExceptionFactory; //导入方法依赖的package包/类
@Override
public TitanVertex getVertex(int pos) {
    if (pos==0) {
        return new FaunusVertex(configuration, outVertex);
    } else if (pos==1) {
        return new FaunusVertex(configuration, inVertex);
    } else {
        throw ExceptionFactory.bothIsNotSupported();
    }
}
 
开发者ID:graben1437,项目名称:titan0.5.4-hbase1.1.1-custom,代码行数:11,代码来源:StandardFaunusEdge.java

示例2: getVertexId

import com.tinkerpop.blueprints.util.ExceptionFactory; //导入方法依赖的package包/类
public long getVertexId(final Direction direction) {
    if (OUT.equals(direction)) {
        return this.outVertex;
    } else if (IN.equals(direction)) {
        return this.inVertex;
    } else {
        throw ExceptionFactory.bothIsNotSupported();
    }
}
 
开发者ID:graben1437,项目名称:titan0.5.4-hbase1.1.1-custom,代码行数:10,代码来源:StandardFaunusEdge.java

示例3: addEdge

import com.tinkerpop.blueprints.util.ExceptionFactory; //导入方法依赖的package包/类
public FaunusEdge addEdge(final Direction direction, final String label, final long otherVertexId) {
    if (direction == OUT)
        return this.addEdge(new StandardFaunusEdge(this.configuration, getLongId(), otherVertexId, label));
    else if (direction == Direction.IN)
        return this.addEdge(new StandardFaunusEdge(this.configuration, otherVertexId, getLongId(), label));
    else
        throw ExceptionFactory.bothIsNotSupported();
}
 
开发者ID:graben1437,项目名称:titan0.5.4-hbase1.1.1-custom,代码行数:9,代码来源:FaunusVertex.java

示例4: getVertexId

import com.tinkerpop.blueprints.util.ExceptionFactory; //导入方法依赖的package包/类
public String getVertexId(Direction direction) throws IllegalArgumentException {
  switch (direction) {
    case IN:
      return destinationId;
    case OUT:
      return sourceId;
    case BOTH:
    default:
      throw ExceptionFactory.bothIsNotSupported();
  }
}
 
开发者ID:JHUAPL,项目名称:AccumuloGraph,代码行数:12,代码来源:MapReduceEdge.java

示例5: getVertex

import com.tinkerpop.blueprints.util.ExceptionFactory; //导入方法依赖的package包/类
@Override
public Vertex getVertex(Direction direction) throws IllegalArgumentException {
    if (direction.equals(Direction.IN))
        return this.inVertex;
    else if (direction.equals(Direction.OUT))
        return this.outVertex;
    else
        throw ExceptionFactory.bothIsNotSupported();
}
 
开发者ID:dsiegel,项目名称:BlueprintsExperiment,代码行数:10,代码来源:NewTitanikEdge.java


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