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

com.github.javaclub.cdl.client.matrix.rule.TableShardInfo Maven / Gradle / Ivy

There is a newer version: 2.3.9
Show newest version
package com.github.javaclub.cdl.client.matrix.rule;

import java.util.List;

public class TableShardInfo {
	private String table; // 逻辑表
	private String shardColumn; // 切分字段
	private int tableShardNum = 1; // 总的分表数量
	private String tablePrefix; // 分表名称前缀
	private int tableBeginIndex; // 分表开始编号
	private int indexBits; // 编号位数,不够前面补0
	private List groupList;// 数据源组名称,按字母排序

	public String getTable() {
		return table;
	}

	public void setTable(String table) {
		this.table = table;
	}

	public String getShardColumn() {
		return shardColumn;
	}

	public void setShardColumn(String shardColumn) {
		this.shardColumn = shardColumn;
	}

	public int getTableShardNum() {
		return tableShardNum;
	}

	public void setTableShardNum(int tableShardNum) {
		this.tableShardNum = tableShardNum;
	}

	public String getTablePrefix() {
		return tablePrefix;
	}

	public void setTablePrefix(String tablePrefix) {
		this.tablePrefix = tablePrefix;
	}

	public List getGroupList() {
		return groupList;
	}

	public void setGroupList(List groupList) {
		this.groupList = groupList;
	}

	public int getTableBeginIndex() {
		return tableBeginIndex;
	}

	public void setTableBeginIndex(int tableBeginIndex) {
		this.tableBeginIndex = tableBeginIndex;
	}

	public int getIndexBits() {
		return indexBits;
	}

	public void setIndexBits(int indexBits) {
		this.indexBits = indexBits;
	}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy