com.redislabs.riot.gen.GenerateOptions Maven / Gradle / Ivy
The newest version!
package com.redislabs.riot.gen;
import lombok.Data;
import picocli.CommandLine;
import java.util.Locale;
import java.util.Map;
@Data
public class GenerateOptions {
@CommandLine.Parameters(arity = "0..*", description = "SpEL expressions", paramLabel = "SPEL")
private Map fakerFields;
@SuppressWarnings("unused")
@CommandLine.Option(names = "--infer", description = "Introspect given RediSearch index to introspect Faker fields", paramLabel = "")
private String fakerIndex;
@CommandLine.Option(names = "--locale", description = "Faker locale (default: ${DEFAULT-VALUE})", paramLabel = "")
private Locale locale = Locale.ENGLISH;
@SuppressWarnings("unused")
@CommandLine.Option(names = "--metadata", description = "Include metadata (index, partition)")
private boolean includeMetadata;
@CommandLine.Option(names = "--start", description = "Start index (default: ${DEFAULT-VALUE})", paramLabel = "")
private long start = 0;
@CommandLine.Option(names = "--end", description = "End index (default: ${DEFAULT-VALUE})", paramLabel = "")
private long end = 1000;
@CommandLine.Option(names = "--sleep", description = "Duration in ms to sleep before each item generation (default: ${DEFAULT-VALUE})", paramLabel = "")
private long sleep = 0;
}