本文整理汇总了Java中org.apache.tinkerpop.gremlin.process.traversal.step.map.PathStep类的典型用法代码示例。如果您正苦于以下问题:Java PathStep类的具体用法?Java PathStep怎么用?Java PathStep使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
PathStep类属于org.apache.tinkerpop.gremlin.process.traversal.step.map包,在下文中一共展示了PathStep类的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: path
import org.apache.tinkerpop.gremlin.process.traversal.step.map.PathStep; //导入依赖的package包/类
/**
* Map the {@link Traverser} to its {@link Path} history via {@link Traverser#path}.
*
* @return the traversal with an appended {@link PathStep}.
*/
public default GraphTraversal<S, Path> path() {
return this.asAdmin().addStep(new PathStep<>(this.asAdmin()));
}
示例2: path
import org.apache.tinkerpop.gremlin.process.traversal.step.map.PathStep; //导入依赖的package包/类
/**
* Map the {@link Traverser} to its {@link Path} history via {@link Traverser#path}.
*
* @return the traversal with an appended {@link PathStep}.
* @see <a href="http://tinkerpop.apache.org/docs/${project.version}/reference/#path-step" target="_blank">Reference Documentation - Path Step</a>
* @since 3.0.0-incubating
*/
public default GraphTraversal<S, Path> path() {
this.asAdmin().getBytecode().addStep(Symbols.path);
return this.asAdmin().addStep(new PathStep<>(this.asAdmin()));
}