本文整理汇总了Java中com.ociweb.pronghorn.pipe.stream.StreamingWriteVisitor类的典型用法代码示例。如果您正苦于以下问题:Java StreamingWriteVisitor类的具体用法?Java StreamingWriteVisitor怎么用?Java StreamingWriteVisitor使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
StreamingWriteVisitor类属于com.ociweb.pronghorn.pipe.stream包,在下文中一共展示了StreamingWriteVisitor类的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: FuzzGeneratorStage
import com.ociweb.pronghorn.pipe.stream.StreamingWriteVisitor; //导入依赖的package包/类
public FuzzGeneratorStage(GraphManager gm, Random random, long duration, Pipe output) {
super(gm, NONE, output);
this.duration = duration;
StreamingWriteVisitor visitor = new StreamingWriteVisitorGenerator(Pipe.from(output), random,
output.maxVarLen>>3, //room for UTF8
output.maxVarLen>>1); //just use half
this.writer = new StreamingVisitorWriter(output, visitor );
}
示例2: TestGenerator
import com.ociweb.pronghorn.pipe.stream.StreamingWriteVisitor; //导入依赖的package包/类
public TestGenerator(GraphManager gm, long seed, int iterations, Pipe output) {
super(gm, NONE, output);
this.iterations = iterations;
StreamingWriteVisitor visitor = new StreamingWriteVisitorGenerator(Pipe.from(output), new Random(seed),
output.maxVarLen>>3, //room for UTF8
output.maxVarLen>>1); //just use half
this.writer = new StreamingVisitorWriter(output, visitor );
}
示例3: FuzzGeneratorStage
import com.ociweb.pronghorn.pipe.stream.StreamingWriteVisitor; //导入依赖的package包/类
public FuzzGeneratorStage(GraphManager gm, Random random, long duration, Pipe output) {
super(gm, NONE, output);
this.duration = duration;
StreamingWriteVisitor visitor = new StreamingWriteVisitorGenerator(Pipe.from(output), random,
output.maxAvgVarLen>>3, //room for UTF8
output.maxAvgVarLen>>1); //just use half
this.writer = new StreamingVisitorWriter(output, visitor );
}