com.redis.riot.faker.FakerItemReader Maven / Gradle / Ivy
package com.redis.riot.faker;
import java.util.AbstractMap;
import java.util.HashMap;
import java.util.LinkedHashMap;
import java.util.Locale;
import java.util.Map;
import java.util.Map.Entry;
import java.util.stream.Collectors;
import org.springframework.batch.item.ItemReader;
import org.springframework.batch.item.support.AbstractItemCountingItemStreamItemReader;
import org.springframework.util.Assert;
import org.springframework.util.ClassUtils;
import net.datafaker.Faker;
/**
* {@link ItemReader} that generates HashMaps using Faker.
*
* @author Julien Ruaux
*/
public class FakerItemReader extends AbstractItemCountingItemStreamItemReader