com.tinkerpop.blueprints.Direction.valueOf()方法的使用及代码示例

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

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

Direction.valueOf介绍

暂无

代码示例

代码示例来源:origin: thinkaurelius/faunus

@Override
public void setup(final Mapper.Context context) throws IOException, InterruptedException {
  this.direction = Direction.valueOf(context.getConfiguration().get(DIRECTION));
}

代码示例来源:origin: thinkaurelius/faunus

@Override
public void setup(final Mapper.Context context) throws IOException, InterruptedException {
  this.step = context.getConfiguration().getInt(STEP, -1);
  this.direction = Direction.valueOf(context.getConfiguration().get(DIRECTION));
  this.label = context.getConfiguration().get(LABEL);
  this.mergeDuplicates = context.getConfiguration().getBoolean(MERGE_DUPLICATES, false);
  this.mergeWeightKey = context.getConfiguration().get(MERGE_WEIGHT_KEY, NO_WEIGHT_KEY);
  this.pathEnabled = context.getConfiguration().getBoolean(FaunusCompiler.PATH_ENABLED, false);
  if (!this.pathEnabled)
    throw new IllegalStateException(LinkMapReduce.class.getSimpleName() + " requires that paths be enabled");
}

代码示例来源:origin: thinkaurelius/faunus

@Override
public void setup(final Mapper.Context context) throws IOException, InterruptedException {
  this.direction = Direction.valueOf(context.getConfiguration().get(DIRECTION));
  this.labels = context.getConfiguration().getStrings(LABELS, new String[0]);
  this.pathEnabled = context.getConfiguration().getBoolean(FaunusCompiler.PATH_ENABLED, false);
  this.edge = new FaunusEdge(this.pathEnabled);
}

代码示例来源:origin: thinkaurelius/faunus

@Override
public void setup(final Mapper.Context context) throws IOException, InterruptedException {
  this.direction = Direction.valueOf(context.getConfiguration().get(DIRECTION));
  this.labels = context.getConfiguration().getStrings(LABELS, new String[0]);
  this.vertex = new FaunusVertex(context.getConfiguration().getBoolean(FaunusCompiler.PATH_ENABLED, false));
}

代码示例来源:origin: thinkaurelius/faunus

@Override
public void setup(final Reducer.Context context) throws IOException, InterruptedException {
  this.direction = Direction.valueOf(context.getConfiguration().get(LinkMapReduce.DIRECTION));
  this.direction = this.direction.opposite();
  this.vertex = new FaunusVertex(context.getConfiguration().getBoolean(FaunusCompiler.PATH_ENABLED, false));
}

代码示例来源:origin: thinkaurelius/faunus

@Override
public void setup(final Reducer.Context context) throws IOException, InterruptedException {
  this.direction = Direction.valueOf(context.getConfiguration().get(DIRECTION));
  this.direction = this.direction.opposite();
  this.vertex = new FaunusVertex(context.getConfiguration().getBoolean(FaunusCompiler.PATH_ENABLED, false));
}

代码示例来源:origin: thinkaurelius/faunus

@Override
public void setup(final Reducer.Context context) throws IOException, InterruptedException {
  this.direction = Direction.valueOf(context.getConfiguration().get(DIRECTION));
  if (!this.direction.equals(BOTH))
    this.direction = this.direction.opposite();
  this.labels = context.getConfiguration().getStrings(LABELS);
  this.vertex = new FaunusVertex(context.getConfiguration().getBoolean(FaunusCompiler.PATH_ENABLED, false));
}

代码示例来源:origin: com.orientechnologies/orientdb-graphdb

if (mapParams.get(OSQLFunctionAstar.PARAM_DIRECTION) instanceof String) {
 ctx.paramDirection = Direction
   .valueOf(stringOrDefault(mapParams.get(OSQLFunctionAstar.PARAM_DIRECTION), "OUT").toUpperCase(Locale.ENGLISH));
} else {
 ctx.paramDirection = (Direction) mapParams.get(OSQLFunctionAstar.PARAM_DIRECTION);

相关文章