当前位置: 首页>>代码示例>>Java>>正文


Java StreamingWriteVisitor类代码示例

本文整理汇总了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  );
    
}
 
开发者ID:oci-pronghorn,项目名称:Pronghorn,代码行数:11,代码来源:FuzzGeneratorStage.java

示例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  );
    
}
 
开发者ID:oci-pronghorn,项目名称:Pronghorn,代码行数:11,代码来源:TestGenerator.java

示例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  );
    
}
 
开发者ID:oci-pronghorn,项目名称:PronghornGateway,代码行数:11,代码来源:FuzzGeneratorStage.java


注:本文中的com.ociweb.pronghorn.pipe.stream.StreamingWriteVisitor类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。