本文整理汇总了Java中com.tinkerpop.pipes.Pipe.NO_PATH_MESSAGE属性的典型用法代码示例。如果您正苦于以下问题:Java Pipe.NO_PATH_MESSAGE属性的具体用法?Java Pipe.NO_PATH_MESSAGE怎么用?Java Pipe.NO_PATH_MESSAGE使用的例子?那么恭喜您, 这里精选的属性代码示例或许可以为您提供帮助。您也可以进一步了解该属性所在类com.tinkerpop.pipes.Pipe
的用法示例。
在下文中一共展示了Pipe.NO_PATH_MESSAGE属性的12个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: getCurrentPath
public List getCurrentPath() {
if (this.pathEnabled) {
final List list = this.pipeToCap.getCurrentPath();
list.add(this.currentEnd);
return list;
} else {
throw new RuntimeException(Pipe.NO_PATH_MESSAGE);
}
}
示例2: getCurrentPath
public List getCurrentPath() {
if (this.pathEnabled) {
final List list = this.pipeToCap.getCurrentPath();
list.add(this.currentEnd);
return list;
} else {
throw new RuntimeException(Pipe.NO_PATH_MESSAGE);
}
}
示例3: getCurrentPath
public List getCurrentPath() {
if (this.pathEnabled) {
final List pathElements = new ArrayList(this.currentPath);
final int size = pathElements.size();
if (this instanceof TransformPipe) {
pathElements.add(this.currentEnd);
} else if (size == 0 || pathElements.get(size - 1) != this.currentEnd) {
// do not repeat filters or side-effects as they dup the object
pathElements.add(this.currentEnd);
}
return pathElements;
} else {
throw new RuntimeException(Pipe.NO_PATH_MESSAGE);
}
}
示例4: getCurrentPath
public List getCurrentPath() {
if (this.pathEnabled) {
final List pathElements = new ArrayList(this.currentPath);
final int size = pathElements.size();
// do not repeat filters as they dup the object
if (size == 0 || pathElements.get(size - 1) != this.currentEnd) {
pathElements.add(this.currentEnd);
}
return pathElements;
} else {
throw new RuntimeException(Pipe.NO_PATH_MESSAGE);
}
}
示例5: getCurrentPath
public List getCurrentPath() {
if (this.pathEnabled) {
final List path = new ArrayList();
final List currentPath = this.expando.getCurrentPath();
if (null != currentPath)
path.addAll(currentPath);
path.addAll(this.pipe.getCurrentPath());
return path;
} else {
throw new RuntimeException(Pipe.NO_PATH_MESSAGE);
}
}
示例6: getCurrentPath
public List getCurrentPath() {
if (this.pathEnabled) {
int tempCurrent = this.current - 1;
if (tempCurrent < 0)
tempCurrent = this.total - 1;
return this.pipes.get(tempCurrent).getCurrentPath();
} else
throw new RuntimeException(Pipe.NO_PATH_MESSAGE);
}
示例7: getCurrentPath
public List getCurrentPath() {
if (this.pathEnabled) {
return this.currentPath;
} else {
throw new RuntimeException(Pipe.NO_PATH_MESSAGE);
}
}
示例8: getCurrentPath
public List getCurrentPath() {
if (this.pathEnabled)
return new ArrayList(this.listPaths);
else
throw new RuntimeException(Pipe.NO_PATH_MESSAGE);
}
示例9: getCurrentPath
public List getCurrentPath() {
if (pathEnabled)
return new ArrayList(this.listPaths);
else
throw new RuntimeException(Pipe.NO_PATH_MESSAGE);
}
示例10: getCurrentPath
public List getCurrentPath() {
if (this.pathEnabled)
return this.endPipe.getCurrentPath();
else
throw new RuntimeException(Pipe.NO_PATH_MESSAGE);
}
示例11: getCurrentPath
public List getCurrentPath() {
if (this.pathEnabled) {
return new ArrayList(this.paths.peek());
} else
throw new RuntimeException(Pipe.NO_PATH_MESSAGE);
}
示例12: getCurrentPath
public List getCurrentPath() {
if (this.pathEnabled)
return this.pipes.get(this.current).getCurrentPath();
else
throw new RuntimeException(Pipe.NO_PATH_MESSAGE);
}