com.xiaomi.infra.galaxy.sds.thrift.TableMetadata Maven / Gradle / Ivy
/**
* Autogenerated by Thrift Compiler (0.9.2)
*
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
* @generated
*/
package com.xiaomi.infra.galaxy.sds.thrift;
import libthrift091.scheme.IScheme;
import libthrift091.scheme.SchemeFactory;
import libthrift091.scheme.StandardScheme;
import libthrift091.scheme.TupleScheme;
import libthrift091.protocol.TTupleProtocol;
import libthrift091.protocol.TProtocolException;
import libthrift091.EncodingUtils;
import libthrift091.TException;
import libthrift091.async.AsyncMethodCallback;
import libthrift091.server.AbstractNonblockingServer.*;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.util.HashMap;
import java.util.EnumMap;
import java.util.Set;
import java.util.HashSet;
import java.util.EnumSet;
import java.util.Collections;
import java.util.BitSet;
import java.nio.ByteBuffer;
import java.util.Arrays;
import javax.annotation.Generated;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"})
/**
* 表元信息
*/
@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2016-8-10")
public class TableMetadata implements libthrift091.TBase, java.io.Serializable, Cloneable, Comparable {
private static final libthrift091.protocol.TStruct STRUCT_DESC = new libthrift091.protocol.TStruct("TableMetadata");
private static final libthrift091.protocol.TField TABLE_ID_FIELD_DESC = new libthrift091.protocol.TField("tableId", libthrift091.protocol.TType.STRING, (short)1);
private static final libthrift091.protocol.TField DEVELOPER_ID_FIELD_DESC = new libthrift091.protocol.TField("developerId", libthrift091.protocol.TType.STRING, (short)2);
private static final libthrift091.protocol.TField APP_ACL_FIELD_DESC = new libthrift091.protocol.TField("appAcl", libthrift091.protocol.TType.MAP, (short)3);
private static final libthrift091.protocol.TField QUOTA_FIELD_DESC = new libthrift091.protocol.TField("quota", libthrift091.protocol.TType.STRUCT, (short)4);
private static final libthrift091.protocol.TField THROUGHPUT_FIELD_DESC = new libthrift091.protocol.TField("throughput", libthrift091.protocol.TType.STRUCT, (short)5);
private static final libthrift091.protocol.TField DESCRIPTION_FIELD_DESC = new libthrift091.protocol.TField("description", libthrift091.protocol.TType.STRING, (short)6);
private static final libthrift091.protocol.TField STREAM_FIELD_DESC = new libthrift091.protocol.TField("stream", libthrift091.protocol.TType.STRUCT, (short)7);
private static final libthrift091.protocol.TField ENABLE_SYS_SNAPSHOT_FIELD_DESC = new libthrift091.protocol.TField("enableSysSnapshot", libthrift091.protocol.TType.BOOL, (short)8);
private static final libthrift091.protocol.TField EXCEEDED_THROUGHPUT_FIELD_DESC = new libthrift091.protocol.TField("exceededThroughput", libthrift091.protocol.TType.STRUCT, (short)9);
private static final libthrift091.protocol.TField SLAVE_THROUGHPUT_FIELD_DESC = new libthrift091.protocol.TField("slaveThroughput", libthrift091.protocol.TType.STRUCT, (short)10);
private static final libthrift091.protocol.TField EXCEEDED_SLAVE_THROUGHPUT_FIELD_DESC = new libthrift091.protocol.TField("exceededSlaveThroughput", libthrift091.protocol.TType.STRUCT, (short)11);
private static final libthrift091.protocol.TField ACL_FIELD_DESC = new libthrift091.protocol.TField("acl", libthrift091.protocol.TType.MAP, (short)12);
private static final libthrift091.protocol.TField SPACE_ID_FIELD_DESC = new libthrift091.protocol.TField("spaceId", libthrift091.protocol.TType.STRING, (short)13);
private static final libthrift091.protocol.TField ENABLE_EG_ACL_FIELD_DESC = new libthrift091.protocol.TField("enableEgAcl", libthrift091.protocol.TType.BOOL, (short)14);
private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>();
static {
schemes.put(StandardScheme.class, new TableMetadataStandardSchemeFactory());
schemes.put(TupleScheme.class, new TableMetadataTupleSchemeFactory());
}
/**
* 表ID
* 仅作为输出值,作为输入时无需指定
*/
public String tableId; // optional
/**
* 所有者的开发者ID,
* 对于CreateTable/AlterTable,值不设置时,默认为当前登录用户。
*/
public String developerId; // optional
/**
* 权限控制设置
*/
public Map> appAcl; // optional
/**
* @Deprecated 空间配额
*/
public TableQuota quota; // optional
/**
* 吞吐量配额
*/
public ProvisionThroughput throughput; // optional
/**
* 表备注信息
*/
public String description; // optional
/**
* stream设置,deprecated
*/
public StreamSpec stream; // optional
/**
* 是否支持系统定期做snapshot, 默认为true
*/
public boolean enableSysSnapshot; // optional
/**
* 主集群最大超发的读写配额,即系统空闲时可能达到的最大吞吐,设置比throughput大即允许超发
*/
public ProvisionThroughput exceededThroughput; // optional
/**
* 预设备集群读写配额
*/
public ProvisionThroughput slaveThroughput; // optional
/**
* 备集群最大超发的读写配额,即系统空闲时可能达到最大的吞吐,设置比slaveThroughput大即允许超发
*/
public ProvisionThroughput exceededSlaveThroughput; // optional
/**
* 融合云权限模型的acl
*/
public Map> acl; // optional
/**
* 表所在的命名空间
*/
public String spaceId; // optional
/**
* entityGroup acl 开关
*/
public boolean enableEgAcl; // optional
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
public enum _Fields implements libthrift091.TFieldIdEnum {
/**
* 表ID
* 仅作为输出值,作为输入时无需指定
*/
TABLE_ID((short)1, "tableId"),
/**
* 所有者的开发者ID,
* 对于CreateTable/AlterTable,值不设置时,默认为当前登录用户。
*/
DEVELOPER_ID((short)2, "developerId"),
/**
* 权限控制设置
*/
APP_ACL((short)3, "appAcl"),
/**
* @Deprecated 空间配额
*/
QUOTA((short)4, "quota"),
/**
* 吞吐量配额
*/
THROUGHPUT((short)5, "throughput"),
/**
* 表备注信息
*/
DESCRIPTION((short)6, "description"),
/**
* stream设置,deprecated
*/
STREAM((short)7, "stream"),
/**
* 是否支持系统定期做snapshot, 默认为true
*/
ENABLE_SYS_SNAPSHOT((short)8, "enableSysSnapshot"),
/**
* 主集群最大超发的读写配额,即系统空闲时可能达到的最大吞吐,设置比throughput大即允许超发
*/
EXCEEDED_THROUGHPUT((short)9, "exceededThroughput"),
/**
* 预设备集群读写配额
*/
SLAVE_THROUGHPUT((short)10, "slaveThroughput"),
/**
* 备集群最大超发的读写配额,即系统空闲时可能达到最大的吞吐,设置比slaveThroughput大即允许超发
*/
EXCEEDED_SLAVE_THROUGHPUT((short)11, "exceededSlaveThroughput"),
/**
* 融合云权限模型的acl
*/
ACL((short)12, "acl"),
/**
* 表所在的命名空间
*/
SPACE_ID((short)13, "spaceId"),
/**
* entityGroup acl 开关
*/
ENABLE_EG_ACL((short)14, "enableEgAcl");
private static final Map byName = new HashMap();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 1: // TABLE_ID
return TABLE_ID;
case 2: // DEVELOPER_ID
return DEVELOPER_ID;
case 3: // APP_ACL
return APP_ACL;
case 4: // QUOTA
return QUOTA;
case 5: // THROUGHPUT
return THROUGHPUT;
case 6: // DESCRIPTION
return DESCRIPTION;
case 7: // STREAM
return STREAM;
case 8: // ENABLE_SYS_SNAPSHOT
return ENABLE_SYS_SNAPSHOT;
case 9: // EXCEEDED_THROUGHPUT
return EXCEEDED_THROUGHPUT;
case 10: // SLAVE_THROUGHPUT
return SLAVE_THROUGHPUT;
case 11: // EXCEEDED_SLAVE_THROUGHPUT
return EXCEEDED_SLAVE_THROUGHPUT;
case 12: // ACL
return ACL;
case 13: // SPACE_ID
return SPACE_ID;
case 14: // ENABLE_EG_ACL
return ENABLE_EG_ACL;
default:
return null;
}
}
/**
* Find the _Fields constant that matches fieldId, throwing an exception
* if it is not found.
*/
public static _Fields findByThriftIdOrThrow(int fieldId) {
_Fields fields = findByThriftId(fieldId);
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
return fields;
}
/**
* Find the _Fields constant that matches name, or null if its not found.
*/
public static _Fields findByName(String name) {
return byName.get(name);
}
private final short _thriftId;
private final String _fieldName;
_Fields(short thriftId, String fieldName) {
_thriftId = thriftId;
_fieldName = fieldName;
}
public short getThriftFieldId() {
return _thriftId;
}
public String getFieldName() {
return _fieldName;
}
}
// isset id assignments
private static final int __ENABLESYSSNAPSHOT_ISSET_ID = 0;
private static final int __ENABLEEGACL_ISSET_ID = 1;
private byte __isset_bitfield = 0;
private static final _Fields optionals[] = {_Fields.TABLE_ID,_Fields.DEVELOPER_ID,_Fields.APP_ACL,_Fields.QUOTA,_Fields.THROUGHPUT,_Fields.DESCRIPTION,_Fields.STREAM,_Fields.ENABLE_SYS_SNAPSHOT,_Fields.EXCEEDED_THROUGHPUT,_Fields.SLAVE_THROUGHPUT,_Fields.EXCEEDED_SLAVE_THROUGHPUT,_Fields.ACL,_Fields.SPACE_ID,_Fields.ENABLE_EG_ACL};
public static final Map<_Fields, libthrift091.meta_data.FieldMetaData> metaDataMap;
static {
Map<_Fields, libthrift091.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, libthrift091.meta_data.FieldMetaData>(_Fields.class);
tmpMap.put(_Fields.TABLE_ID, new libthrift091.meta_data.FieldMetaData("tableId", libthrift091.TFieldRequirementType.OPTIONAL,
new libthrift091.meta_data.FieldValueMetaData(libthrift091.protocol.TType.STRING)));
tmpMap.put(_Fields.DEVELOPER_ID, new libthrift091.meta_data.FieldMetaData("developerId", libthrift091.TFieldRequirementType.OPTIONAL,
new libthrift091.meta_data.FieldValueMetaData(libthrift091.protocol.TType.STRING)));
tmpMap.put(_Fields.APP_ACL, new libthrift091.meta_data.FieldMetaData("appAcl", libthrift091.TFieldRequirementType.OPTIONAL,
new libthrift091.meta_data.FieldValueMetaData(libthrift091.protocol.TType.MAP , "AclConf")));
tmpMap.put(_Fields.QUOTA, new libthrift091.meta_data.FieldMetaData("quota", libthrift091.TFieldRequirementType.OPTIONAL,
new libthrift091.meta_data.StructMetaData(libthrift091.protocol.TType.STRUCT, TableQuota.class)));
tmpMap.put(_Fields.THROUGHPUT, new libthrift091.meta_data.FieldMetaData("throughput", libthrift091.TFieldRequirementType.OPTIONAL,
new libthrift091.meta_data.StructMetaData(libthrift091.protocol.TType.STRUCT, ProvisionThroughput.class)));
tmpMap.put(_Fields.DESCRIPTION, new libthrift091.meta_data.FieldMetaData("description", libthrift091.TFieldRequirementType.OPTIONAL,
new libthrift091.meta_data.FieldValueMetaData(libthrift091.protocol.TType.STRING)));
tmpMap.put(_Fields.STREAM, new libthrift091.meta_data.FieldMetaData("stream", libthrift091.TFieldRequirementType.OPTIONAL,
new libthrift091.meta_data.StructMetaData(libthrift091.protocol.TType.STRUCT, StreamSpec.class)));
tmpMap.put(_Fields.ENABLE_SYS_SNAPSHOT, new libthrift091.meta_data.FieldMetaData("enableSysSnapshot", libthrift091.TFieldRequirementType.OPTIONAL,
new libthrift091.meta_data.FieldValueMetaData(libthrift091.protocol.TType.BOOL)));
tmpMap.put(_Fields.EXCEEDED_THROUGHPUT, new libthrift091.meta_data.FieldMetaData("exceededThroughput", libthrift091.TFieldRequirementType.OPTIONAL,
new libthrift091.meta_data.StructMetaData(libthrift091.protocol.TType.STRUCT, ProvisionThroughput.class)));
tmpMap.put(_Fields.SLAVE_THROUGHPUT, new libthrift091.meta_data.FieldMetaData("slaveThroughput", libthrift091.TFieldRequirementType.OPTIONAL,
new libthrift091.meta_data.StructMetaData(libthrift091.protocol.TType.STRUCT, ProvisionThroughput.class)));
tmpMap.put(_Fields.EXCEEDED_SLAVE_THROUGHPUT, new libthrift091.meta_data.FieldMetaData("exceededSlaveThroughput", libthrift091.TFieldRequirementType.OPTIONAL,
new libthrift091.meta_data.StructMetaData(libthrift091.protocol.TType.STRUCT, ProvisionThroughput.class)));
tmpMap.put(_Fields.ACL, new libthrift091.meta_data.FieldMetaData("acl", libthrift091.TFieldRequirementType.OPTIONAL,
new libthrift091.meta_data.MapMetaData(libthrift091.protocol.TType.MAP,
new libthrift091.meta_data.FieldValueMetaData(libthrift091.protocol.TType.STRING),
new libthrift091.meta_data.ListMetaData(libthrift091.protocol.TType.LIST,
new libthrift091.meta_data.EnumMetaData(libthrift091.protocol.TType.ENUM, Permission.class)))));
tmpMap.put(_Fields.SPACE_ID, new libthrift091.meta_data.FieldMetaData("spaceId", libthrift091.TFieldRequirementType.OPTIONAL,
new libthrift091.meta_data.FieldValueMetaData(libthrift091.protocol.TType.STRING)));
tmpMap.put(_Fields.ENABLE_EG_ACL, new libthrift091.meta_data.FieldMetaData("enableEgAcl", libthrift091.TFieldRequirementType.OPTIONAL,
new libthrift091.meta_data.FieldValueMetaData(libthrift091.protocol.TType.BOOL)));
metaDataMap = Collections.unmodifiableMap(tmpMap);
libthrift091.meta_data.FieldMetaData.addStructMetaDataMap(TableMetadata.class, metaDataMap);
}
public TableMetadata() {
this.enableEgAcl = false;
}
/**
* Performs a deep copy on other.
*/
public TableMetadata(TableMetadata other) {
__isset_bitfield = other.__isset_bitfield;
if (other.isSetTableId()) {
this.tableId = other.tableId;
}
if (other.isSetDeveloperId()) {
this.developerId = other.developerId;
}
if (other.isSetAppAcl()) {
this.appAcl = other.appAcl;
}
if (other.isSetQuota()) {
this.quota = new TableQuota(other.quota);
}
if (other.isSetThroughput()) {
this.throughput = new ProvisionThroughput(other.throughput);
}
if (other.isSetDescription()) {
this.description = other.description;
}
if (other.isSetStream()) {
this.stream = new StreamSpec(other.stream);
}
this.enableSysSnapshot = other.enableSysSnapshot;
if (other.isSetExceededThroughput()) {
this.exceededThroughput = new ProvisionThroughput(other.exceededThroughput);
}
if (other.isSetSlaveThroughput()) {
this.slaveThroughput = new ProvisionThroughput(other.slaveThroughput);
}
if (other.isSetExceededSlaveThroughput()) {
this.exceededSlaveThroughput = new ProvisionThroughput(other.exceededSlaveThroughput);
}
if (other.isSetAcl()) {
Map> __this__acl = new HashMap>(other.acl.size());
for (Map.Entry> other_element : other.acl.entrySet()) {
String other_element_key = other_element.getKey();
List other_element_value = other_element.getValue();
String __this__acl_copy_key = other_element_key;
List __this__acl_copy_value = new ArrayList(other_element_value.size());
for (Permission other_element_value_element : other_element_value) {
__this__acl_copy_value.add(other_element_value_element);
}
__this__acl.put(__this__acl_copy_key, __this__acl_copy_value);
}
this.acl = __this__acl;
}
if (other.isSetSpaceId()) {
this.spaceId = other.spaceId;
}
this.enableEgAcl = other.enableEgAcl;
}
public TableMetadata deepCopy() {
return new TableMetadata(this);
}
@Override
public void clear() {
this.tableId = null;
this.developerId = null;
this.appAcl = null;
this.quota = null;
this.throughput = null;
this.description = null;
this.stream = null;
setEnableSysSnapshotIsSet(false);
this.enableSysSnapshot = false;
this.exceededThroughput = null;
this.slaveThroughput = null;
this.exceededSlaveThroughput = null;
this.acl = null;
this.spaceId = null;
this.enableEgAcl = false;
}
/**
* 表ID
* 仅作为输出值,作为输入时无需指定
*/
public String getTableId() {
return this.tableId;
}
/**
* 表ID
* 仅作为输出值,作为输入时无需指定
*/
public TableMetadata setTableId(String tableId) {
this.tableId = tableId;
return this;
}
public void unsetTableId() {
this.tableId = null;
}
/** Returns true if field tableId is set (has been assigned a value) and false otherwise */
public boolean isSetTableId() {
return this.tableId != null;
}
public void setTableIdIsSet(boolean value) {
if (!value) {
this.tableId = null;
}
}
/**
* 所有者的开发者ID,
* 对于CreateTable/AlterTable,值不设置时,默认为当前登录用户。
*/
public String getDeveloperId() {
return this.developerId;
}
/**
* 所有者的开发者ID,
* 对于CreateTable/AlterTable,值不设置时,默认为当前登录用户。
*/
public TableMetadata setDeveloperId(String developerId) {
this.developerId = developerId;
return this;
}
public void unsetDeveloperId() {
this.developerId = null;
}
/** Returns true if field developerId is set (has been assigned a value) and false otherwise */
public boolean isSetDeveloperId() {
return this.developerId != null;
}
public void setDeveloperIdIsSet(boolean value) {
if (!value) {
this.developerId = null;
}
}
public int getAppAclSize() {
return (this.appAcl == null) ? 0 : this.appAcl.size();
}
public void putToAppAcl(String key, List val) {
if (this.appAcl == null) {
this.appAcl = new HashMap>();
}
this.appAcl.put(key, val);
}
/**
* 权限控制设置
*/
public Map> getAppAcl() {
return this.appAcl;
}
/**
* 权限控制设置
*/
public TableMetadata setAppAcl(Map> appAcl) {
this.appAcl = appAcl;
return this;
}
public void unsetAppAcl() {
this.appAcl = null;
}
/** Returns true if field appAcl is set (has been assigned a value) and false otherwise */
public boolean isSetAppAcl() {
return this.appAcl != null;
}
public void setAppAclIsSet(boolean value) {
if (!value) {
this.appAcl = null;
}
}
/**
* @Deprecated 空间配额
*/
public TableQuota getQuota() {
return this.quota;
}
/**
* @Deprecated 空间配额
*/
public TableMetadata setQuota(TableQuota quota) {
this.quota = quota;
return this;
}
public void unsetQuota() {
this.quota = null;
}
/** Returns true if field quota is set (has been assigned a value) and false otherwise */
public boolean isSetQuota() {
return this.quota != null;
}
public void setQuotaIsSet(boolean value) {
if (!value) {
this.quota = null;
}
}
/**
* 吞吐量配额
*/
public ProvisionThroughput getThroughput() {
return this.throughput;
}
/**
* 吞吐量配额
*/
public TableMetadata setThroughput(ProvisionThroughput throughput) {
this.throughput = throughput;
return this;
}
public void unsetThroughput() {
this.throughput = null;
}
/** Returns true if field throughput is set (has been assigned a value) and false otherwise */
public boolean isSetThroughput() {
return this.throughput != null;
}
public void setThroughputIsSet(boolean value) {
if (!value) {
this.throughput = null;
}
}
/**
* 表备注信息
*/
public String getDescription() {
return this.description;
}
/**
* 表备注信息
*/
public TableMetadata setDescription(String description) {
this.description = description;
return this;
}
public void unsetDescription() {
this.description = null;
}
/** Returns true if field description is set (has been assigned a value) and false otherwise */
public boolean isSetDescription() {
return this.description != null;
}
public void setDescriptionIsSet(boolean value) {
if (!value) {
this.description = null;
}
}
/**
* stream设置,deprecated
*/
public StreamSpec getStream() {
return this.stream;
}
/**
* stream设置,deprecated
*/
public TableMetadata setStream(StreamSpec stream) {
this.stream = stream;
return this;
}
public void unsetStream() {
this.stream = null;
}
/** Returns true if field stream is set (has been assigned a value) and false otherwise */
public boolean isSetStream() {
return this.stream != null;
}
public void setStreamIsSet(boolean value) {
if (!value) {
this.stream = null;
}
}
/**
* 是否支持系统定期做snapshot, 默认为true
*/
public boolean isEnableSysSnapshot() {
return this.enableSysSnapshot;
}
/**
* 是否支持系统定期做snapshot, 默认为true
*/
public TableMetadata setEnableSysSnapshot(boolean enableSysSnapshot) {
this.enableSysSnapshot = enableSysSnapshot;
setEnableSysSnapshotIsSet(true);
return this;
}
public void unsetEnableSysSnapshot() {
__isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __ENABLESYSSNAPSHOT_ISSET_ID);
}
/** Returns true if field enableSysSnapshot is set (has been assigned a value) and false otherwise */
public boolean isSetEnableSysSnapshot() {
return EncodingUtils.testBit(__isset_bitfield, __ENABLESYSSNAPSHOT_ISSET_ID);
}
public void setEnableSysSnapshotIsSet(boolean value) {
__isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __ENABLESYSSNAPSHOT_ISSET_ID, value);
}
/**
* 主集群最大超发的读写配额,即系统空闲时可能达到的最大吞吐,设置比throughput大即允许超发
*/
public ProvisionThroughput getExceededThroughput() {
return this.exceededThroughput;
}
/**
* 主集群最大超发的读写配额,即系统空闲时可能达到的最大吞吐,设置比throughput大即允许超发
*/
public TableMetadata setExceededThroughput(ProvisionThroughput exceededThroughput) {
this.exceededThroughput = exceededThroughput;
return this;
}
public void unsetExceededThroughput() {
this.exceededThroughput = null;
}
/** Returns true if field exceededThroughput is set (has been assigned a value) and false otherwise */
public boolean isSetExceededThroughput() {
return this.exceededThroughput != null;
}
public void setExceededThroughputIsSet(boolean value) {
if (!value) {
this.exceededThroughput = null;
}
}
/**
* 预设备集群读写配额
*/
public ProvisionThroughput getSlaveThroughput() {
return this.slaveThroughput;
}
/**
* 预设备集群读写配额
*/
public TableMetadata setSlaveThroughput(ProvisionThroughput slaveThroughput) {
this.slaveThroughput = slaveThroughput;
return this;
}
public void unsetSlaveThroughput() {
this.slaveThroughput = null;
}
/** Returns true if field slaveThroughput is set (has been assigned a value) and false otherwise */
public boolean isSetSlaveThroughput() {
return this.slaveThroughput != null;
}
public void setSlaveThroughputIsSet(boolean value) {
if (!value) {
this.slaveThroughput = null;
}
}
/**
* 备集群最大超发的读写配额,即系统空闲时可能达到最大的吞吐,设置比slaveThroughput大即允许超发
*/
public ProvisionThroughput getExceededSlaveThroughput() {
return this.exceededSlaveThroughput;
}
/**
* 备集群最大超发的读写配额,即系统空闲时可能达到最大的吞吐,设置比slaveThroughput大即允许超发
*/
public TableMetadata setExceededSlaveThroughput(ProvisionThroughput exceededSlaveThroughput) {
this.exceededSlaveThroughput = exceededSlaveThroughput;
return this;
}
public void unsetExceededSlaveThroughput() {
this.exceededSlaveThroughput = null;
}
/** Returns true if field exceededSlaveThroughput is set (has been assigned a value) and false otherwise */
public boolean isSetExceededSlaveThroughput() {
return this.exceededSlaveThroughput != null;
}
public void setExceededSlaveThroughputIsSet(boolean value) {
if (!value) {
this.exceededSlaveThroughput = null;
}
}
public int getAclSize() {
return (this.acl == null) ? 0 : this.acl.size();
}
public void putToAcl(String key, List val) {
if (this.acl == null) {
this.acl = new HashMap>();
}
this.acl.put(key, val);
}
/**
* 融合云权限模型的acl
*/
public Map> getAcl() {
return this.acl;
}
/**
* 融合云权限模型的acl
*/
public TableMetadata setAcl(Map> acl) {
this.acl = acl;
return this;
}
public void unsetAcl() {
this.acl = null;
}
/** Returns true if field acl is set (has been assigned a value) and false otherwise */
public boolean isSetAcl() {
return this.acl != null;
}
public void setAclIsSet(boolean value) {
if (!value) {
this.acl = null;
}
}
/**
* 表所在的命名空间
*/
public String getSpaceId() {
return this.spaceId;
}
/**
* 表所在的命名空间
*/
public TableMetadata setSpaceId(String spaceId) {
this.spaceId = spaceId;
return this;
}
public void unsetSpaceId() {
this.spaceId = null;
}
/** Returns true if field spaceId is set (has been assigned a value) and false otherwise */
public boolean isSetSpaceId() {
return this.spaceId != null;
}
public void setSpaceIdIsSet(boolean value) {
if (!value) {
this.spaceId = null;
}
}
/**
* entityGroup acl 开关
*/
public boolean isEnableEgAcl() {
return this.enableEgAcl;
}
/**
* entityGroup acl 开关
*/
public TableMetadata setEnableEgAcl(boolean enableEgAcl) {
this.enableEgAcl = enableEgAcl;
setEnableEgAclIsSet(true);
return this;
}
public void unsetEnableEgAcl() {
__isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __ENABLEEGACL_ISSET_ID);
}
/** Returns true if field enableEgAcl is set (has been assigned a value) and false otherwise */
public boolean isSetEnableEgAcl() {
return EncodingUtils.testBit(__isset_bitfield, __ENABLEEGACL_ISSET_ID);
}
public void setEnableEgAclIsSet(boolean value) {
__isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __ENABLEEGACL_ISSET_ID, value);
}
public void setFieldValue(_Fields field, Object value) {
switch (field) {
case TABLE_ID:
if (value == null) {
unsetTableId();
} else {
setTableId((String)value);
}
break;
case DEVELOPER_ID:
if (value == null) {
unsetDeveloperId();
} else {
setDeveloperId((String)value);
}
break;
case APP_ACL:
if (value == null) {
unsetAppAcl();
} else {
setAppAcl((Map>)value);
}
break;
case QUOTA:
if (value == null) {
unsetQuota();
} else {
setQuota((TableQuota)value);
}
break;
case THROUGHPUT:
if (value == null) {
unsetThroughput();
} else {
setThroughput((ProvisionThroughput)value);
}
break;
case DESCRIPTION:
if (value == null) {
unsetDescription();
} else {
setDescription((String)value);
}
break;
case STREAM:
if (value == null) {
unsetStream();
} else {
setStream((StreamSpec)value);
}
break;
case ENABLE_SYS_SNAPSHOT:
if (value == null) {
unsetEnableSysSnapshot();
} else {
setEnableSysSnapshot((Boolean)value);
}
break;
case EXCEEDED_THROUGHPUT:
if (value == null) {
unsetExceededThroughput();
} else {
setExceededThroughput((ProvisionThroughput)value);
}
break;
case SLAVE_THROUGHPUT:
if (value == null) {
unsetSlaveThroughput();
} else {
setSlaveThroughput((ProvisionThroughput)value);
}
break;
case EXCEEDED_SLAVE_THROUGHPUT:
if (value == null) {
unsetExceededSlaveThroughput();
} else {
setExceededSlaveThroughput((ProvisionThroughput)value);
}
break;
case ACL:
if (value == null) {
unsetAcl();
} else {
setAcl((Map>)value);
}
break;
case SPACE_ID:
if (value == null) {
unsetSpaceId();
} else {
setSpaceId((String)value);
}
break;
case ENABLE_EG_ACL:
if (value == null) {
unsetEnableEgAcl();
} else {
setEnableEgAcl((Boolean)value);
}
break;
}
}
public Object getFieldValue(_Fields field) {
switch (field) {
case TABLE_ID:
return getTableId();
case DEVELOPER_ID:
return getDeveloperId();
case APP_ACL:
return getAppAcl();
case QUOTA:
return getQuota();
case THROUGHPUT:
return getThroughput();
case DESCRIPTION:
return getDescription();
case STREAM:
return getStream();
case ENABLE_SYS_SNAPSHOT:
return Boolean.valueOf(isEnableSysSnapshot());
case EXCEEDED_THROUGHPUT:
return getExceededThroughput();
case SLAVE_THROUGHPUT:
return getSlaveThroughput();
case EXCEEDED_SLAVE_THROUGHPUT:
return getExceededSlaveThroughput();
case ACL:
return getAcl();
case SPACE_ID:
return getSpaceId();
case ENABLE_EG_ACL:
return Boolean.valueOf(isEnableEgAcl());
}
throw new IllegalStateException();
}
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
public boolean isSet(_Fields field) {
if (field == null) {
throw new IllegalArgumentException();
}
switch (field) {
case TABLE_ID:
return isSetTableId();
case DEVELOPER_ID:
return isSetDeveloperId();
case APP_ACL:
return isSetAppAcl();
case QUOTA:
return isSetQuota();
case THROUGHPUT:
return isSetThroughput();
case DESCRIPTION:
return isSetDescription();
case STREAM:
return isSetStream();
case ENABLE_SYS_SNAPSHOT:
return isSetEnableSysSnapshot();
case EXCEEDED_THROUGHPUT:
return isSetExceededThroughput();
case SLAVE_THROUGHPUT:
return isSetSlaveThroughput();
case EXCEEDED_SLAVE_THROUGHPUT:
return isSetExceededSlaveThroughput();
case ACL:
return isSetAcl();
case SPACE_ID:
return isSetSpaceId();
case ENABLE_EG_ACL:
return isSetEnableEgAcl();
}
throw new IllegalStateException();
}
@Override
public boolean equals(Object that) {
if (that == null)
return false;
if (that instanceof TableMetadata)
return this.equals((TableMetadata)that);
return false;
}
public boolean equals(TableMetadata that) {
if (that == null)
return false;
boolean this_present_tableId = true && this.isSetTableId();
boolean that_present_tableId = true && that.isSetTableId();
if (this_present_tableId || that_present_tableId) {
if (!(this_present_tableId && that_present_tableId))
return false;
if (!this.tableId.equals(that.tableId))
return false;
}
boolean this_present_developerId = true && this.isSetDeveloperId();
boolean that_present_developerId = true && that.isSetDeveloperId();
if (this_present_developerId || that_present_developerId) {
if (!(this_present_developerId && that_present_developerId))
return false;
if (!this.developerId.equals(that.developerId))
return false;
}
boolean this_present_appAcl = true && this.isSetAppAcl();
boolean that_present_appAcl = true && that.isSetAppAcl();
if (this_present_appAcl || that_present_appAcl) {
if (!(this_present_appAcl && that_present_appAcl))
return false;
if (!this.appAcl.equals(that.appAcl))
return false;
}
boolean this_present_quota = true && this.isSetQuota();
boolean that_present_quota = true && that.isSetQuota();
if (this_present_quota || that_present_quota) {
if (!(this_present_quota && that_present_quota))
return false;
if (!this.quota.equals(that.quota))
return false;
}
boolean this_present_throughput = true && this.isSetThroughput();
boolean that_present_throughput = true && that.isSetThroughput();
if (this_present_throughput || that_present_throughput) {
if (!(this_present_throughput && that_present_throughput))
return false;
if (!this.throughput.equals(that.throughput))
return false;
}
boolean this_present_description = true && this.isSetDescription();
boolean that_present_description = true && that.isSetDescription();
if (this_present_description || that_present_description) {
if (!(this_present_description && that_present_description))
return false;
if (!this.description.equals(that.description))
return false;
}
boolean this_present_stream = true && this.isSetStream();
boolean that_present_stream = true && that.isSetStream();
if (this_present_stream || that_present_stream) {
if (!(this_present_stream && that_present_stream))
return false;
if (!this.stream.equals(that.stream))
return false;
}
boolean this_present_enableSysSnapshot = true && this.isSetEnableSysSnapshot();
boolean that_present_enableSysSnapshot = true && that.isSetEnableSysSnapshot();
if (this_present_enableSysSnapshot || that_present_enableSysSnapshot) {
if (!(this_present_enableSysSnapshot && that_present_enableSysSnapshot))
return false;
if (this.enableSysSnapshot != that.enableSysSnapshot)
return false;
}
boolean this_present_exceededThroughput = true && this.isSetExceededThroughput();
boolean that_present_exceededThroughput = true && that.isSetExceededThroughput();
if (this_present_exceededThroughput || that_present_exceededThroughput) {
if (!(this_present_exceededThroughput && that_present_exceededThroughput))
return false;
if (!this.exceededThroughput.equals(that.exceededThroughput))
return false;
}
boolean this_present_slaveThroughput = true && this.isSetSlaveThroughput();
boolean that_present_slaveThroughput = true && that.isSetSlaveThroughput();
if (this_present_slaveThroughput || that_present_slaveThroughput) {
if (!(this_present_slaveThroughput && that_present_slaveThroughput))
return false;
if (!this.slaveThroughput.equals(that.slaveThroughput))
return false;
}
boolean this_present_exceededSlaveThroughput = true && this.isSetExceededSlaveThroughput();
boolean that_present_exceededSlaveThroughput = true && that.isSetExceededSlaveThroughput();
if (this_present_exceededSlaveThroughput || that_present_exceededSlaveThroughput) {
if (!(this_present_exceededSlaveThroughput && that_present_exceededSlaveThroughput))
return false;
if (!this.exceededSlaveThroughput.equals(that.exceededSlaveThroughput))
return false;
}
boolean this_present_acl = true && this.isSetAcl();
boolean that_present_acl = true && that.isSetAcl();
if (this_present_acl || that_present_acl) {
if (!(this_present_acl && that_present_acl))
return false;
if (!this.acl.equals(that.acl))
return false;
}
boolean this_present_spaceId = true && this.isSetSpaceId();
boolean that_present_spaceId = true && that.isSetSpaceId();
if (this_present_spaceId || that_present_spaceId) {
if (!(this_present_spaceId && that_present_spaceId))
return false;
if (!this.spaceId.equals(that.spaceId))
return false;
}
boolean this_present_enableEgAcl = true && this.isSetEnableEgAcl();
boolean that_present_enableEgAcl = true && that.isSetEnableEgAcl();
if (this_present_enableEgAcl || that_present_enableEgAcl) {
if (!(this_present_enableEgAcl && that_present_enableEgAcl))
return false;
if (this.enableEgAcl != that.enableEgAcl)
return false;
}
return true;
}
@Override
public int hashCode() {
List
© 2015 - 2025 Weber Informatics LLC | Privacy Policy