All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.alipay.rdf.file.meta.TemplateConfig Maven / Gradle / Ivy

There is a newer version: 2.2.11
Show newest version
package com.alipay.rdf.file.meta;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * Copyright (C) 2013-2018 Ant Financial Services Group
 *
 * 接受配置参数
 *
 * @author hongwei.quhw
 * @version $Id: TemplateConfig.java, v 0.1 2017年5月9日 上午10:26:52 hongwei.quhw Exp $
 */
public class TemplateConfig {
    /** 协议*/
    private String                protocol;
    /** 文件编码*/
    private String                fileEncoding;
    /** 字段分割*/
    private String                columnSplit          = "|";
    /** 换行符*/
    private String                lineBreak            = "\r\n";
    /** 文件尾是否需要换行 */
    private String                isAppendLinebreakAtLast      = "true";
    /** 文件以分隔符开始   head|body|tail*/
    private String                startWithSplit;
    /** 文件以分隔符结束   head|body|tail*/
    private String                endWithSplit;
    /** 头信息定义*/
    private List          head                 = new ArrayList();
    /** 文件体信息定义*/
    private List          body                 = new ArrayList();
    /** 文件体支持多模板*/
    private List multiBodys           = new ArrayList();
    /** 文件尾部信息定义*/
    private List          tail                 = new ArrayList();
    /** 配置汇总字段*/
    private List          summaryColumnPairs   = new ArrayList();
    /**配置统计字段*/
    private List          statisticColumnPairs = new ArrayList();
    /** 行校验器*/
    private List          rowValidators        = new ArrayList();
    /**定义或者覆盖协议文件的字段类型*/
    private List          protocolDataType     = new ArrayList();
    /**关系模式读行数据兼容模式*/
    private Boolean               relationReadRowCompatibility;
    /**行序列化反序列化模式*/
    private String                rowCodecMode;
    /**非通用参数,用于传递给插件*/
    private Map   params = new HashMap();

    public String getProtocol() {
        return protocol;
    }

    public void setProtocol(String protocol) {
        this.protocol = protocol;
    }

    public String getFileEncoding() {
        return fileEncoding;
    }

    public void setFileEncoding(String fileEncoding) {
        this.fileEncoding = fileEncoding;
    }

    public String getColumnSplit() {
        return columnSplit;
    }

    public void setColumnSplit(String columnSplit) {
        this.columnSplit = columnSplit;
    }

    public String getLineBreak() {
        return lineBreak;
    }

    public void setLineBreak(String lineBreak) {
        this.lineBreak = lineBreak;
    }

    public List getHead() {
        return head;
    }

    public void setHead(List head) {
        this.head = head;
    }

    public List getBody() {
        return body;
    }

    public void setBody(List body) {
        this.body = body;
    }

    public List getTail() {
        return tail;
    }

    public void setTail(List tail) {
        this.tail = tail;
    }

    public List getSummaryColumnPairs() {
        return summaryColumnPairs;
    }

    public void setSummaryColumnPairs(List summaryColumnPairs) {
        this.summaryColumnPairs = summaryColumnPairs;
    }

    public List getRowValidators() {
        return rowValidators;
    }

    public void setRowValidators(List rowValidators) {
        this.rowValidators = rowValidators;
    }

    public String getStartWithSplit() {
        return startWithSplit;
    }

    public void setStartWithSplit(String startWithSplit) {
        this.startWithSplit = startWithSplit;
    }

    public String getEndWithSplit() {
        return endWithSplit;
    }

    public void setEndWithSplit(String endWithSplit) {
        this.endWithSplit = endWithSplit;
    }

    public List getMultiBodys() {
        return multiBodys;
    }

    public void setMultiBodys(List multiBodys) {
        this.multiBodys = multiBodys;
    }

    public List getStatisticColumnPairs() {
        return statisticColumnPairs;
    }

    public void setStatisticColumnPairs(List statisticColumnPairs) {
        this.statisticColumnPairs = statisticColumnPairs;
    }

    public String getIsAppendLinebreakAtLast() {
        return isAppendLinebreakAtLast;
    }

    public void setIsAppendLinebreakAtLast(String isAppendLinebreakAtLast) {
        this.isAppendLinebreakAtLast = isAppendLinebreakAtLast;
    }
  
    public List getProtocolDataType() {
        return protocolDataType;
    }

    public void setProtocolDataType(List protocolDataType) {
        this.protocolDataType = protocolDataType;
    }

    public Boolean getRelationReadRowCompatibility() {
        return relationReadRowCompatibility;
    }

    public void setRelationReadRowCompatibility(Boolean relationReadRowCompatibility) {
        this.relationReadRowCompatibility = relationReadRowCompatibility;
    }

    public String getRowCodecMode() {
        return rowCodecMode;
    }

    public void setRowCodecMode(String rowCodecMode) {
        this.rowCodecMode = rowCodecMode;
    }

    public Map getParams() {
        return params;
    }

    public void setParams(Map params) {
        this.params = params;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy