Generating fictitious data - 7.1

Talend Real-time Big Data Platform Studio User Guide

author
Talend Documentation Team
EnrichVersion
7.1
EnrichProdName
Talend Real-Time Big Data Platform
task
Design and Development
EnrichPlatform
Talend Studio

It is easy to use the different functions to generate data randomly. Using a tJava component, you can, for example, create a list of fictitious client data using functions such as getFirstName(), getLastName(), getUSCity():

System.out.println(TalendDataGenerator.getFirstName()); 
System.out.println(TalendDataGenerator.getLastName()); 
System.out.println(TalendDataGenerator.getUsCity()); 
System.out.println(TalendDataGenerator.getUsState());
System.out.println(TalendDataGenerator.getUsStateId());
System.out.println(TalendDataGenerator.getUsStreet());

The set of data taken randomly from the list of fictitious data is displayed in the Run view: