本文整理了Java中com.tinkerpop.blueprints.Direction.name()
方法的一些代码示例,展示了Direction.name()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Direction.name()
方法的具体详情如下:
包路径:com.tinkerpop.blueprints.Direction
类名称:Direction
方法名:name
暂无
代码示例来源:origin: thinkaurelius/faunus
public static Configuration createConfiguration(final Direction direction) {
final Configuration configuration = new EmptyConfiguration();
configuration.set(DIRECTION, direction.name());
return configuration;
}
代码示例来源:origin: thinkaurelius/faunus
public static Configuration createConfiguration(final Direction direction, final String... labels) {
final Configuration configuration = new EmptyConfiguration();
configuration.set(DIRECTION, direction.name());
configuration.setStrings(LABELS, labels);
return configuration;
}
代码示例来源:origin: thinkaurelius/faunus
public static Configuration createConfiguration(final Direction direction, final String... labels) {
final Configuration configuration = new EmptyConfiguration();
configuration.set(DIRECTION, direction.name());
configuration.setStrings(LABELS, labels);
return configuration;
}
代码示例来源:origin: com.tinkerpop/pipes
public String toString() {
return (this.branchFactor == Integer.MAX_VALUE) ?
PipeHelper.makePipeString(this, this.direction.name().toLowerCase(), Arrays.asList(this.labels), super.toString()) :
PipeHelper.makePipeString(this, this.direction.name().toLowerCase(), "branch:" + branchFactor, Arrays.asList(this.labels), super.toString());
}
代码示例来源:origin: com.tinkerpop/pipes
public String toString() {
return PipeHelper.makePipeString(this, direction.name().toLowerCase(), Arrays.asList(labels));
}
}
代码示例来源:origin: thinkaurelius/faunus
public static Configuration createConfiguration(final Direction direction, final String label, final int step, final String mergeWeightKey) {
final Configuration configuration = new EmptyConfiguration();
configuration.setInt(STEP, step);
configuration.set(DIRECTION, direction.name());
configuration.set(LABEL, label);
if (null == mergeWeightKey) {
configuration.setBoolean(MERGE_DUPLICATES, false);
configuration.set(MERGE_WEIGHT_KEY, NO_WEIGHT_KEY);
} else {
configuration.setBoolean(MERGE_DUPLICATES, true);
configuration.set(MERGE_WEIGHT_KEY, mergeWeightKey);
}
configuration.setBoolean(FaunusCompiler.PATH_ENABLED, true);
return configuration;
}
代码示例来源:origin: com.tinkerpop/pipes
public String toString() {
return PipeHelper.makePipeString(this, direction.name().toLowerCase());
}
代码示例来源:origin: com.tinkerpop/pipes
public String toString() {
return PipeHelper.makePipeString(this, direction.name().toLowerCase(), Arrays.asList(labels));
}
代码示例来源:origin: com.tinkerpop/pipes
public String toString() {
return PipeHelper.makePipeString(this, this.direction.name(), this.label, null == this.asPipe ? this.other : this.asPipe.getName());
}
}
代码示例来源:origin: thinkaurelius/faunus
private FaunusPipeline link(final Direction direction, final String label, final String step, final String mergeWeightKey) {
this.state.assertNotLocked();
this.state.assertNoProperty();
this.compiler.addMapReduce(LinkMapReduce.Map.class,
LinkMapReduce.Combiner.class,
LinkMapReduce.Reduce.class,
null,
LongWritable.class,
Holder.class,
NullWritable.class,
FaunusVertex.class,
LinkMapReduce.createConfiguration(direction, label, this.state.getStep(step), mergeWeightKey));
if (null != mergeWeightKey)
makeMapReduceString(LinkMapReduce.class, direction.name(), label, step, mergeWeightKey);
else
makeMapReduceString(LinkMapReduce.class, direction.name(), label, step);
return this;
}
代码示例来源:origin: thinkaurelius/faunus
private FaunusPipeline inOutBothE(final Direction direction, final String... labels) {
this.state.assertNotLocked();
this.state.assertNoProperty();
this.state.assertAtVertex();
this.state.incrStep();
this.compiler.addMapReduce(VerticesEdgesMapReduce.Map.class,
null,
VerticesEdgesMapReduce.Reduce.class,
null,
LongWritable.class,
Holder.class,
NullWritable.class,
FaunusVertex.class,
VerticesEdgesMapReduce.createConfiguration(direction, labels));
this.state.set(Edge.class);
makeMapReduceString(VerticesEdgesMapReduce.class, direction.name(), Arrays.asList(labels));
return this;
}
代码示例来源:origin: thinkaurelius/faunus
private FaunusPipeline inOutBoth(final Direction direction, final String... labels) {
this.state.assertNotLocked();
this.state.assertNoProperty();
this.state.assertAtVertex();
this.state.incrStep();
this.compiler.addMapReduce(VerticesVerticesMapReduce.Map.class,
null,
VerticesVerticesMapReduce.Reduce.class,
null,
LongWritable.class,
Holder.class,
NullWritable.class,
FaunusVertex.class,
VerticesVerticesMapReduce.createConfiguration(direction, labels));
this.state.set(Vertex.class);
makeMapReduceString(VerticesVerticesMapReduce.class, direction.name(), Arrays.asList(labels));
return this;
}
代码示例来源:origin: thinkaurelius/faunus
private FaunusPipeline inOutBothV(final Direction direction) {
this.state.assertNotLocked();
this.state.assertNoProperty();
this.state.assertAtEdge();
this.state.incrStep();
this.compiler.addMap(EdgesVerticesMap.Map.class,
NullWritable.class,
FaunusVertex.class,
EdgesVerticesMap.createConfiguration(direction));
this.state.set(Vertex.class);
makeMapReduceString(EdgesVerticesMap.class, direction.name());
return this;
}
内容来源于网络,如有侵权,请联系作者删除!