in amoro-common/src/main/gen-java/org/apache/amoro/api/CatalogMeta.java [682:777]
public void read(org.apache.amoro.shade.thrift.org.apache.thrift.protocol.TProtocol iprot, CatalogMeta struct) throws org.apache.amoro.shade.thrift.org.apache.thrift.TException {
org.apache.amoro.shade.thrift.org.apache.thrift.protocol.TField schemeField;
iprot.readStructBegin();
while (true)
{
schemeField = iprot.readFieldBegin();
if (schemeField.type == org.apache.amoro.shade.thrift.org.apache.thrift.protocol.TType.STOP) {
break;
}
switch (schemeField.id) {
case 1: // CATALOG_NAME
if (schemeField.type == org.apache.amoro.shade.thrift.org.apache.thrift.protocol.TType.STRING) {
struct.catalogName = iprot.readString();
struct.setCatalogNameIsSet(true);
} else {
org.apache.amoro.shade.thrift.org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
case 2: // CATALOG_TYPE
if (schemeField.type == org.apache.amoro.shade.thrift.org.apache.thrift.protocol.TType.STRING) {
struct.catalogType = iprot.readString();
struct.setCatalogTypeIsSet(true);
} else {
org.apache.amoro.shade.thrift.org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
case 3: // STORAGE_CONFIGS
if (schemeField.type == org.apache.amoro.shade.thrift.org.apache.thrift.protocol.TType.MAP) {
{
org.apache.amoro.shade.thrift.org.apache.thrift.protocol.TMap _map0 = iprot.readMapBegin();
struct.storageConfigs = new java.util.HashMap<java.lang.String,java.lang.String>(2*_map0.size);
@org.apache.amoro.shade.thrift.org.apache.thrift.annotation.Nullable java.lang.String _key1;
@org.apache.amoro.shade.thrift.org.apache.thrift.annotation.Nullable java.lang.String _val2;
for (int _i3 = 0; _i3 < _map0.size; ++_i3)
{
_key1 = iprot.readString();
_val2 = iprot.readString();
struct.storageConfigs.put(_key1, _val2);
}
iprot.readMapEnd();
}
struct.setStorageConfigsIsSet(true);
} else {
org.apache.amoro.shade.thrift.org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
case 4: // AUTH_CONFIGS
if (schemeField.type == org.apache.amoro.shade.thrift.org.apache.thrift.protocol.TType.MAP) {
{
org.apache.amoro.shade.thrift.org.apache.thrift.protocol.TMap _map4 = iprot.readMapBegin();
struct.authConfigs = new java.util.HashMap<java.lang.String,java.lang.String>(2*_map4.size);
@org.apache.amoro.shade.thrift.org.apache.thrift.annotation.Nullable java.lang.String _key5;
@org.apache.amoro.shade.thrift.org.apache.thrift.annotation.Nullable java.lang.String _val6;
for (int _i7 = 0; _i7 < _map4.size; ++_i7)
{
_key5 = iprot.readString();
_val6 = iprot.readString();
struct.authConfigs.put(_key5, _val6);
}
iprot.readMapEnd();
}
struct.setAuthConfigsIsSet(true);
} else {
org.apache.amoro.shade.thrift.org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
case 5: // CATALOG_PROPERTIES
if (schemeField.type == org.apache.amoro.shade.thrift.org.apache.thrift.protocol.TType.MAP) {
{
org.apache.amoro.shade.thrift.org.apache.thrift.protocol.TMap _map8 = iprot.readMapBegin();
struct.catalogProperties = new java.util.HashMap<java.lang.String,java.lang.String>(2*_map8.size);
@org.apache.amoro.shade.thrift.org.apache.thrift.annotation.Nullable java.lang.String _key9;
@org.apache.amoro.shade.thrift.org.apache.thrift.annotation.Nullable java.lang.String _val10;
for (int _i11 = 0; _i11 < _map8.size; ++_i11)
{
_key9 = iprot.readString();
_val10 = iprot.readString();
struct.catalogProperties.put(_key9, _val10);
}
iprot.readMapEnd();
}
struct.setCatalogPropertiesIsSet(true);
} else {
org.apache.amoro.shade.thrift.org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
default:
org.apache.amoro.shade.thrift.org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
iprot.readFieldEnd();
}
iprot.readStructEnd();
// check for required fields of primitive type, which can't be checked in the validate method
struct.validate();
}