VoltTable vtRev = CatalogUtil.getVoltTable(revTable);
int num_txt_cols = textTable.getColumns().size();
int num_rev_cols = revTable.getColumns().size();
int batchSize = 1;
Zipf h_users = new Zipf(this.randGenerator, 1, util.num_users, WikipediaConstants.REVISION_USER_SIGMA);
FlatHistogram<Integer> h_textLength = new FlatHistogram<Integer>(this.randGenerator, TextHistograms.TEXT_LENGTH);
FlatHistogram<Integer> h_nameLength = new FlatHistogram<Integer>(this.randGenerator, UserHistograms.NAME_LENGTH);
FlatHistogram<Integer> h_numRevisions = new FlatHistogram<Integer>(this.randGenerator, PageHistograms.REVISIONS_PER_PAGE);
int lastPercent = -1;
for (int pageId = firstPageId; pageId <= lastPageId; pageId++) {
// There must be at least one revision per page
int num_revised = h_numRevisions.nextValue().intValue();
// Generate what the new revision is going to be
int old_text_length = h_textLength.nextValue().intValue();
if (trace.val) LOG.trace("Max length:" + max_text_length + " old_text_length:" + old_text_length);
assert(old_text_length > 0);
assert(old_text_length < max_text_length);
char old_text[] = TextGenerator.randomChars(randGenerator, old_text_length);
long batchBytes = 0;
for (int i = 0; i < num_revised; i++) {
// Generate the User who's doing the revision and the Page revised
// Makes sure that we always update their counter
int user_id = h_users.nextInt();
assert(user_id > 0 && user_id <= util.num_users) : "Invalid UserId '" + user_id + "'";
this.user_revision_ctr[user_id-1]++;
TimestampType timestamp = new TimestampType();
// Generate what the new revision is going to be