本文整理匯總了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();
}