protected void generateRecord(long globalRecordIndex, int outputIndex){ final long customerKey = globalRecordIndex; final long nationKey = nationKeyRandom.nextValue(); this.customerKey.setSafe(outputIndex, customerKey); this.nationKey.setSafe(outputIndex, nationKey); this.accountBalance.setSafe(outputIndex, accountBalanceRandom.nextValue()); set(outputIndex, customerName, String.format(ENGLISH, "Customer#%09d", customerKey)); set(outputIndex, address, addressRandom.nextValue()); set(outputIndex, phone, phoneRandom.nextValue(nationKey)); set(outputIndex, marketSegment, marketSegmentRandom.nextValue()); set(outputIndex, comment, commentRandom.nextValue()); set(outputIndex, date, LocalDate.of(yearRandom.nextValue(),1,1).toString()); }