本文整理了Java中com.tinkerpop.blueprints.Direction.valueOf()
方法的一些代码示例,展示了Direction.valueOf()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Direction.valueOf()
方法的具体详情如下:
包路径:com.tinkerpop.blueprints.Direction
类名称: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);
内容来源于网络,如有侵权,请联系作者删除!