com.redis.riot.file.FileWriterOptions Maven / Gradle / Ivy
package com.redis.riot.file;
import java.util.Map;
import java.util.function.Supplier;
import com.google.cloud.spring.core.GcpScope;
import lombok.ToString;
@ToString
public class FileWriterOptions {
public static final String DEFAULT_LINE_SEPARATOR = System.getProperty("line.separator");
public static final boolean DEFAULT_SHOULD_DELETE_IF_EXISTS = true;
public static final boolean DEFAULT_TRANSACTIONAL = true;
public static final String DEFAULT_ELEMENT_NAME = "record";
public static final String DEFAULT_ROOT_NAME = "root";
private FileOptions fileOptions = new FileOptions();
private String formatterString;
private boolean append;
private boolean forceSync;
private String lineSeparator = DEFAULT_LINE_SEPARATOR;
private boolean shouldDeleteIfEmpty;
private boolean shouldDeleteIfExists = DEFAULT_SHOULD_DELETE_IF_EXISTS;
private boolean transactional = DEFAULT_TRANSACTIONAL;
private String rootName = DEFAULT_ROOT_NAME;
private String elementName = DEFAULT_ELEMENT_NAME;
private Supplier