本文整理汇总了Java中com.tinkerpop.pipes.util.PipeHelper类的典型用法代码示例。如果您正苦于以下问题:Java PipeHelper类的具体用法?Java PipeHelper怎么用?Java PipeHelper使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
PipeHelper类属于com.tinkerpop.pipes.util包,在下文中一共展示了PipeHelper类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: testBulkEdgeDerivations
import com.tinkerpop.pipes.util.PipeHelper; //导入依赖的package包/类
@Test
public void testBulkEdgeDerivations() throws Exception {
bulkLoadGraphOfTheGods(f1);
new HadoopPipeline(f2).V().as("x").out("father").out("father").linkIn("grandfather", "x").submit();
clopen();
assertEquals(12, new GremlinPipeline(g).V().count());
assertEquals(18, new GremlinPipeline(g).E().count());
assertTrue(PipeHelper.areEqual(
new GremlinPipeline(g).V("name", "hercules").out("father").out("father"),
new GremlinPipeline(g).V("name", "hercules").out("grandfather")));
}
示例2: getOrCreate
import com.tinkerpop.pipes.util.PipeHelper; //导入依赖的package包/类
private void getOrCreate(final S s) {
if (this.map.containsKey(s)) {
this.currentIterator = this.map.get(s).iterator();
} else {
this.expando.add(s);
final List<E> results = new ArrayList<E>();
PipeHelper.fillCollection(this.pipe, results);
this.map.put(s, results);
this.currentIterator = results.iterator();
}
}
示例3: reset
import com.tinkerpop.pipes.util.PipeHelper; //导入依赖的package包/类
public void reset() {
this.currentIterator = PipeHelper.emptyIterator();
try {
this.map = this.map.getClass().getConstructor().newInstance();
} catch (Exception e) {
throw new RuntimeException(e.getMessage(), e);
}
super.reset();
}
示例4: addValue
import com.tinkerpop.pipes.util.PipeHelper; //导入依赖的package包/类
public void addValue(final V value, final Collection values) {
if (value instanceof Pipe) {
PipeHelper.fillCollection((Pipe) value, values);
} else {
values.add(value);
}
}
示例5: toString
import com.tinkerpop.pipes.util.PipeHelper; //导入依赖的package包/类
public String toString() {
return PipeHelper.makePipeString(this, this.pipeToCap);
}
示例6: toList
import com.tinkerpop.pipes.util.PipeHelper; //导入依赖的package包/类
/**
* Return a list of all the objects in the pipeline.
*
* @return a list of all the objects
*/
public List<E> toList() {
final List<E> list = new ArrayList<E>();
PipeHelper.fillCollection(this, list);
return list;
}
示例7: toString
import com.tinkerpop.pipes.util.PipeHelper; //导入依赖的package包/类
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());
}
示例8: toString
import com.tinkerpop.pipes.util.PipeHelper; //导入依赖的package包/类
public String toString() {
return (this.branchFactor == Integer.MAX_VALUE) ?
PipeHelper.makePipeString(this, Arrays.asList(this.labels)) :
PipeHelper.makePipeString(this, this.branchFactor, Arrays.asList(this.labels));
}
示例9: reset
import com.tinkerpop.pipes.util.PipeHelper; //导入依赖的package包/类
@Override
public void reset() {
this.tempIterator = PipeHelper.emptyIterator();
super.reset();
}
示例10: toString
import com.tinkerpop.pipes.util.PipeHelper; //导入依赖的package包/类
public String toString() {
if (null == this.stepNames)
return PipeHelper.makePipeString(this);
else
return PipeHelper.makePipeString(this, this.stepNames.toArray());
}
示例11: toString
import com.tinkerpop.pipes.util.PipeHelper; //导入依赖的package包/类
public String toString() {
return PipeHelper.makePipeString(this, this.key);
}
示例12: toString
import com.tinkerpop.pipes.util.PipeHelper; //导入依赖的package包/类
public String toString() {
return PipeHelper.makePipeString(this, this.pipeToCap);
}
示例13: toString
import com.tinkerpop.pipes.util.PipeHelper; //导入依赖的package包/类
public String toString() {
return PipeHelper.makePipeString(this, this.pipe);
}
示例14: toString
import com.tinkerpop.pipes.util.PipeHelper; //导入依赖的package包/类
public String toString() {
return PipeHelper.makePipeString(this);
}
示例15: reset
import com.tinkerpop.pipes.util.PipeHelper; //导入依赖的package包/类
public void reset() {
this.nextEnds = PipeHelper.emptyIterator();
super.reset();
}