Package org.apache.hadoop.zebra.tfile.RandomDistribution

Examples of org.apache.hadoop.zebra.tfile.RandomDistribution.Flat


  ArticleGenerator(int dictWordCnt, int minWordLen, int maxWordLen,
      int pageWidth) {
    random = new Random(System.nanoTime());
    dict = new Dictionary(random, dictWordCnt, minWordLen, maxWordLen, 100);
    this.pageWidth = pageWidth;
    lastLineLenGen = new Flat(random, 1, pageWidth);
    paragraphLineLenGen = new Flat(random, pageWidth * 3 / 4, pageWidth);
    paragraphLenGen = new Flat(random, 1, 40);
  }
View Full Code Here


  ArticleGenerator(int dictWordCnt, int minWordLen, int maxWordLen,
      int pageWidth) {
    random = new Random(System.nanoTime());
    dict = new Dictionary(random, dictWordCnt, minWordLen, maxWordLen, 100);
    this.pageWidth = pageWidth;
    lastLineLenGen = new Flat(random, 1, pageWidth);
    paragraphLineLenGen = new Flat(random, pageWidth * 3 / 4, pageWidth);
    paragraphLenGen = new Flat(random, 1, 40);
  }
View Full Code Here

TOP

Related Classes of org.apache.hadoop.zebra.tfile.RandomDistribution.Flat

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.