diff --git a/core/src/main/scripts/generate-thrift.sh b/core/src/main/scripts/generate-thrift.sh index 73768770de7..54bb124bf62 100755 --- a/core/src/main/scripts/generate-thrift.sh +++ b/core/src/main/scripts/generate-thrift.sh @@ -29,7 +29,7 @@ # INCLUDED_MODULES should be an array that includes other Maven modules with src/main/thrift directories # Use INCLUDED_MODULES=(-) in calling scripts that require no other modules # ======================================================================================================================== -[[ -z $REQUIRED_THRIFT_VERSION ]] && REQUIRED_THRIFT_VERSION='0.17.0' +[[ -z $REQUIRED_THRIFT_VERSION ]] && REQUIRED_THRIFT_VERSION='0.23.0' [[ -z $INCLUDED_MODULES ]] && INCLUDED_MODULES=() [[ -z $BASE_OUTPUT_PACKAGE ]] && BASE_OUTPUT_PACKAGE='org.apache.accumulo.core' [[ -z $PACKAGES_TO_GENERATE ]] && PACKAGES_TO_GENERATE=(process gc manager tabletserver securityImpl clientImpl dataImpl compaction tabletingest tablet tabletscan) diff --git a/core/src/main/thrift-gen-java/org/apache/accumulo/core/clientImpl/thrift/ClientService.java b/core/src/main/thrift-gen-java/org/apache/accumulo/core/clientImpl/thrift/ClientService.java index d869e508d6c..3e808fdf1ac 100644 --- a/core/src/main/thrift-gen-java/org/apache/accumulo/core/clientImpl/thrift/ClientService.java +++ b/core/src/main/thrift-gen-java/org/apache/accumulo/core/clientImpl/thrift/ClientService.java @@ -17,7 +17,7 @@ * under the License. */ /* - * Autogenerated by Thrift Compiler (0.17.0) + * Autogenerated by Thrift Compiler (0.23.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -2536,14 +2536,14 @@ public java.lang.Boolean getResult() throws ThriftSecurityException, ThriftTable public static class Processor extends org.apache.thrift.TBaseProcessor implements org.apache.thrift.TProcessor { private static final org.slf4j.Logger _LOGGER = org.slf4j.LoggerFactory.getLogger(Processor.class.getName()); public Processor(I iface) { - super(iface, getProcessMap(new java.util.HashMap>())); + super(iface, getProcessMap(new java.util.HashMap>())); } - protected Processor(I iface, java.util.Map> processMap) { + protected Processor(I iface, java.util.Map> processMap) { super(iface, getProcessMap(processMap)); } - private static java.util.Map> getProcessMap(java.util.Map> processMap) { + private static java.util.Map> getProcessMap(java.util.Map> processMap) { processMap.put("ping", new ping()); processMap.put("getDiskUsage", new getDiskUsage()); processMap.put("listLocalUsers", new listLocalUsers()); @@ -2579,7 +2579,7 @@ protected Processor(I iface, java.util.Map extends org.apache.thrift.ProcessFunction { + public static class ping extends org.apache.thrift.ProcessFunction { public ping() { super("ping"); } @@ -2590,7 +2590,7 @@ public ping_args getEmptyArgsInstance() { } @Override - protected boolean isOneway() { + public boolean isOneway() { return false; } @@ -2599,9 +2599,14 @@ protected boolean rethrowUnhandledExceptions() { return false; } + @Override + public ping_result getEmptyResultInstance() { + return new ping_result(); + } + @Override public ping_result getResult(I iface, ping_args args) throws org.apache.thrift.TException { - ping_result result = new ping_result(); + ping_result result = getEmptyResultInstance(); try { iface.ping(args.credentials); } catch (ThriftSecurityException sec) { @@ -2611,7 +2616,7 @@ public ping_result getResult(I iface, ping_args args) throws org.apache.thrift.T } } - public static class getDiskUsage extends org.apache.thrift.ProcessFunction { + public static class getDiskUsage extends org.apache.thrift.ProcessFunction { public getDiskUsage() { super("getDiskUsage"); } @@ -2622,7 +2627,7 @@ public getDiskUsage_args getEmptyArgsInstance() { } @Override - protected boolean isOneway() { + public boolean isOneway() { return false; } @@ -2631,9 +2636,14 @@ protected boolean rethrowUnhandledExceptions() { return false; } + @Override + public getDiskUsage_result getEmptyResultInstance() { + return new getDiskUsage_result(); + } + @Override public getDiskUsage_result getResult(I iface, getDiskUsage_args args) throws org.apache.thrift.TException { - getDiskUsage_result result = new getDiskUsage_result(); + getDiskUsage_result result = getEmptyResultInstance(); try { result.success = iface.getDiskUsage(args.tables, args.credentials); } catch (ThriftSecurityException sec) { @@ -2645,7 +2655,7 @@ public getDiskUsage_result getResult(I iface, getDiskUsage_args args) throws org } } - public static class listLocalUsers extends org.apache.thrift.ProcessFunction { + public static class listLocalUsers extends org.apache.thrift.ProcessFunction { public listLocalUsers() { super("listLocalUsers"); } @@ -2656,7 +2666,7 @@ public listLocalUsers_args getEmptyArgsInstance() { } @Override - protected boolean isOneway() { + public boolean isOneway() { return false; } @@ -2665,9 +2675,14 @@ protected boolean rethrowUnhandledExceptions() { return false; } + @Override + public listLocalUsers_result getEmptyResultInstance() { + return new listLocalUsers_result(); + } + @Override public listLocalUsers_result getResult(I iface, listLocalUsers_args args) throws org.apache.thrift.TException { - listLocalUsers_result result = new listLocalUsers_result(); + listLocalUsers_result result = getEmptyResultInstance(); try { result.success = iface.listLocalUsers(args.tinfo, args.credentials); } catch (ThriftSecurityException sec) { @@ -2677,7 +2692,7 @@ public listLocalUsers_result getResult(I iface, listLocalUsers_args args) throws } } - public static class createLocalUser extends org.apache.thrift.ProcessFunction { + public static class createLocalUser extends org.apache.thrift.ProcessFunction { public createLocalUser() { super("createLocalUser"); } @@ -2688,7 +2703,7 @@ public createLocalUser_args getEmptyArgsInstance() { } @Override - protected boolean isOneway() { + public boolean isOneway() { return false; } @@ -2697,9 +2712,14 @@ protected boolean rethrowUnhandledExceptions() { return false; } + @Override + public createLocalUser_result getEmptyResultInstance() { + return new createLocalUser_result(); + } + @Override public createLocalUser_result getResult(I iface, createLocalUser_args args) throws org.apache.thrift.TException { - createLocalUser_result result = new createLocalUser_result(); + createLocalUser_result result = getEmptyResultInstance(); try { iface.createLocalUser(args.tinfo, args.credentials, args.principal, args.password); } catch (ThriftSecurityException sec) { @@ -2709,7 +2729,7 @@ public createLocalUser_result getResult(I iface, createLocalUser_args args) thro } } - public static class dropLocalUser extends org.apache.thrift.ProcessFunction { + public static class dropLocalUser extends org.apache.thrift.ProcessFunction { public dropLocalUser() { super("dropLocalUser"); } @@ -2720,7 +2740,7 @@ public dropLocalUser_args getEmptyArgsInstance() { } @Override - protected boolean isOneway() { + public boolean isOneway() { return false; } @@ -2729,9 +2749,14 @@ protected boolean rethrowUnhandledExceptions() { return false; } + @Override + public dropLocalUser_result getEmptyResultInstance() { + return new dropLocalUser_result(); + } + @Override public dropLocalUser_result getResult(I iface, dropLocalUser_args args) throws org.apache.thrift.TException { - dropLocalUser_result result = new dropLocalUser_result(); + dropLocalUser_result result = getEmptyResultInstance(); try { iface.dropLocalUser(args.tinfo, args.credentials, args.principal); } catch (ThriftSecurityException sec) { @@ -2741,7 +2766,7 @@ public dropLocalUser_result getResult(I iface, dropLocalUser_args args) throws o } } - public static class changeLocalUserPassword extends org.apache.thrift.ProcessFunction { + public static class changeLocalUserPassword extends org.apache.thrift.ProcessFunction { public changeLocalUserPassword() { super("changeLocalUserPassword"); } @@ -2752,7 +2777,7 @@ public changeLocalUserPassword_args getEmptyArgsInstance() { } @Override - protected boolean isOneway() { + public boolean isOneway() { return false; } @@ -2761,9 +2786,14 @@ protected boolean rethrowUnhandledExceptions() { return false; } + @Override + public changeLocalUserPassword_result getEmptyResultInstance() { + return new changeLocalUserPassword_result(); + } + @Override public changeLocalUserPassword_result getResult(I iface, changeLocalUserPassword_args args) throws org.apache.thrift.TException { - changeLocalUserPassword_result result = new changeLocalUserPassword_result(); + changeLocalUserPassword_result result = getEmptyResultInstance(); try { iface.changeLocalUserPassword(args.tinfo, args.credentials, args.principal, args.password); } catch (ThriftSecurityException sec) { @@ -2773,7 +2803,7 @@ public changeLocalUserPassword_result getResult(I iface, changeLocalUserPassword } } - public static class authenticate extends org.apache.thrift.ProcessFunction { + public static class authenticate extends org.apache.thrift.ProcessFunction { public authenticate() { super("authenticate"); } @@ -2784,7 +2814,7 @@ public authenticate_args getEmptyArgsInstance() { } @Override - protected boolean isOneway() { + public boolean isOneway() { return false; } @@ -2793,9 +2823,14 @@ protected boolean rethrowUnhandledExceptions() { return false; } + @Override + public authenticate_result getEmptyResultInstance() { + return new authenticate_result(); + } + @Override public authenticate_result getResult(I iface, authenticate_args args) throws org.apache.thrift.TException { - authenticate_result result = new authenticate_result(); + authenticate_result result = getEmptyResultInstance(); try { result.success = iface.authenticate(args.tinfo, args.credentials); result.setSuccessIsSet(true); @@ -2806,7 +2841,7 @@ public authenticate_result getResult(I iface, authenticate_args args) throws org } } - public static class authenticateUser extends org.apache.thrift.ProcessFunction { + public static class authenticateUser extends org.apache.thrift.ProcessFunction { public authenticateUser() { super("authenticateUser"); } @@ -2817,7 +2852,7 @@ public authenticateUser_args getEmptyArgsInstance() { } @Override - protected boolean isOneway() { + public boolean isOneway() { return false; } @@ -2826,9 +2861,14 @@ protected boolean rethrowUnhandledExceptions() { return false; } + @Override + public authenticateUser_result getEmptyResultInstance() { + return new authenticateUser_result(); + } + @Override public authenticateUser_result getResult(I iface, authenticateUser_args args) throws org.apache.thrift.TException { - authenticateUser_result result = new authenticateUser_result(); + authenticateUser_result result = getEmptyResultInstance(); try { result.success = iface.authenticateUser(args.tinfo, args.credentials, args.toAuth); result.setSuccessIsSet(true); @@ -2839,7 +2879,7 @@ public authenticateUser_result getResult(I iface, authenticateUser_args args) th } } - public static class changeAuthorizations extends org.apache.thrift.ProcessFunction { + public static class changeAuthorizations extends org.apache.thrift.ProcessFunction { public changeAuthorizations() { super("changeAuthorizations"); } @@ -2850,7 +2890,7 @@ public changeAuthorizations_args getEmptyArgsInstance() { } @Override - protected boolean isOneway() { + public boolean isOneway() { return false; } @@ -2859,9 +2899,14 @@ protected boolean rethrowUnhandledExceptions() { return false; } + @Override + public changeAuthorizations_result getEmptyResultInstance() { + return new changeAuthorizations_result(); + } + @Override public changeAuthorizations_result getResult(I iface, changeAuthorizations_args args) throws org.apache.thrift.TException { - changeAuthorizations_result result = new changeAuthorizations_result(); + changeAuthorizations_result result = getEmptyResultInstance(); try { iface.changeAuthorizations(args.tinfo, args.credentials, args.principal, args.authorizations); } catch (ThriftSecurityException sec) { @@ -2871,7 +2916,7 @@ public changeAuthorizations_result getResult(I iface, changeAuthorizations_args } } - public static class getUserAuthorizations extends org.apache.thrift.ProcessFunction { + public static class getUserAuthorizations extends org.apache.thrift.ProcessFunction { public getUserAuthorizations() { super("getUserAuthorizations"); } @@ -2882,7 +2927,7 @@ public getUserAuthorizations_args getEmptyArgsInstance() { } @Override - protected boolean isOneway() { + public boolean isOneway() { return false; } @@ -2891,9 +2936,14 @@ protected boolean rethrowUnhandledExceptions() { return false; } + @Override + public getUserAuthorizations_result getEmptyResultInstance() { + return new getUserAuthorizations_result(); + } + @Override public getUserAuthorizations_result getResult(I iface, getUserAuthorizations_args args) throws org.apache.thrift.TException { - getUserAuthorizations_result result = new getUserAuthorizations_result(); + getUserAuthorizations_result result = getEmptyResultInstance(); try { result.success = iface.getUserAuthorizations(args.tinfo, args.credentials, args.principal); } catch (ThriftSecurityException sec) { @@ -2903,7 +2953,7 @@ public getUserAuthorizations_result getResult(I iface, getUserAuthorizations_arg } } - public static class hasSystemPermission extends org.apache.thrift.ProcessFunction { + public static class hasSystemPermission extends org.apache.thrift.ProcessFunction { public hasSystemPermission() { super("hasSystemPermission"); } @@ -2914,7 +2964,7 @@ public hasSystemPermission_args getEmptyArgsInstance() { } @Override - protected boolean isOneway() { + public boolean isOneway() { return false; } @@ -2923,9 +2973,14 @@ protected boolean rethrowUnhandledExceptions() { return false; } + @Override + public hasSystemPermission_result getEmptyResultInstance() { + return new hasSystemPermission_result(); + } + @Override public hasSystemPermission_result getResult(I iface, hasSystemPermission_args args) throws org.apache.thrift.TException { - hasSystemPermission_result result = new hasSystemPermission_result(); + hasSystemPermission_result result = getEmptyResultInstance(); try { result.success = iface.hasSystemPermission(args.tinfo, args.credentials, args.principal, args.sysPerm); result.setSuccessIsSet(true); @@ -2936,7 +2991,7 @@ public hasSystemPermission_result getResult(I iface, hasSystemPermission_args ar } } - public static class hasTablePermission extends org.apache.thrift.ProcessFunction { + public static class hasTablePermission extends org.apache.thrift.ProcessFunction { public hasTablePermission() { super("hasTablePermission"); } @@ -2947,7 +3002,7 @@ public hasTablePermission_args getEmptyArgsInstance() { } @Override - protected boolean isOneway() { + public boolean isOneway() { return false; } @@ -2956,9 +3011,14 @@ protected boolean rethrowUnhandledExceptions() { return false; } + @Override + public hasTablePermission_result getEmptyResultInstance() { + return new hasTablePermission_result(); + } + @Override public hasTablePermission_result getResult(I iface, hasTablePermission_args args) throws org.apache.thrift.TException { - hasTablePermission_result result = new hasTablePermission_result(); + hasTablePermission_result result = getEmptyResultInstance(); try { result.success = iface.hasTablePermission(args.tinfo, args.credentials, args.principal, args.tableName, args.tblPerm); result.setSuccessIsSet(true); @@ -2971,7 +3031,7 @@ public hasTablePermission_result getResult(I iface, hasTablePermission_args args } } - public static class hasNamespacePermission extends org.apache.thrift.ProcessFunction { + public static class hasNamespacePermission extends org.apache.thrift.ProcessFunction { public hasNamespacePermission() { super("hasNamespacePermission"); } @@ -2982,7 +3042,7 @@ public hasNamespacePermission_args getEmptyArgsInstance() { } @Override - protected boolean isOneway() { + public boolean isOneway() { return false; } @@ -2991,9 +3051,14 @@ protected boolean rethrowUnhandledExceptions() { return false; } + @Override + public hasNamespacePermission_result getEmptyResultInstance() { + return new hasNamespacePermission_result(); + } + @Override public hasNamespacePermission_result getResult(I iface, hasNamespacePermission_args args) throws org.apache.thrift.TException { - hasNamespacePermission_result result = new hasNamespacePermission_result(); + hasNamespacePermission_result result = getEmptyResultInstance(); try { result.success = iface.hasNamespacePermission(args.tinfo, args.credentials, args.principal, args.ns, args.tblNspcPerm); result.setSuccessIsSet(true); @@ -3006,7 +3071,7 @@ public hasNamespacePermission_result getResult(I iface, hasNamespacePermission_a } } - public static class grantSystemPermission extends org.apache.thrift.ProcessFunction { + public static class grantSystemPermission extends org.apache.thrift.ProcessFunction { public grantSystemPermission() { super("grantSystemPermission"); } @@ -3017,7 +3082,7 @@ public grantSystemPermission_args getEmptyArgsInstance() { } @Override - protected boolean isOneway() { + public boolean isOneway() { return false; } @@ -3026,9 +3091,14 @@ protected boolean rethrowUnhandledExceptions() { return false; } + @Override + public grantSystemPermission_result getEmptyResultInstance() { + return new grantSystemPermission_result(); + } + @Override public grantSystemPermission_result getResult(I iface, grantSystemPermission_args args) throws org.apache.thrift.TException { - grantSystemPermission_result result = new grantSystemPermission_result(); + grantSystemPermission_result result = getEmptyResultInstance(); try { iface.grantSystemPermission(args.tinfo, args.credentials, args.principal, args.permission); } catch (ThriftSecurityException sec) { @@ -3038,7 +3108,7 @@ public grantSystemPermission_result getResult(I iface, grantSystemPermission_arg } } - public static class revokeSystemPermission extends org.apache.thrift.ProcessFunction { + public static class revokeSystemPermission extends org.apache.thrift.ProcessFunction { public revokeSystemPermission() { super("revokeSystemPermission"); } @@ -3049,7 +3119,7 @@ public revokeSystemPermission_args getEmptyArgsInstance() { } @Override - protected boolean isOneway() { + public boolean isOneway() { return false; } @@ -3058,9 +3128,14 @@ protected boolean rethrowUnhandledExceptions() { return false; } + @Override + public revokeSystemPermission_result getEmptyResultInstance() { + return new revokeSystemPermission_result(); + } + @Override public revokeSystemPermission_result getResult(I iface, revokeSystemPermission_args args) throws org.apache.thrift.TException { - revokeSystemPermission_result result = new revokeSystemPermission_result(); + revokeSystemPermission_result result = getEmptyResultInstance(); try { iface.revokeSystemPermission(args.tinfo, args.credentials, args.principal, args.permission); } catch (ThriftSecurityException sec) { @@ -3070,7 +3145,7 @@ public revokeSystemPermission_result getResult(I iface, revokeSystemPermission_a } } - public static class grantTablePermission extends org.apache.thrift.ProcessFunction { + public static class grantTablePermission extends org.apache.thrift.ProcessFunction { public grantTablePermission() { super("grantTablePermission"); } @@ -3081,7 +3156,7 @@ public grantTablePermission_args getEmptyArgsInstance() { } @Override - protected boolean isOneway() { + public boolean isOneway() { return false; } @@ -3090,9 +3165,14 @@ protected boolean rethrowUnhandledExceptions() { return false; } + @Override + public grantTablePermission_result getEmptyResultInstance() { + return new grantTablePermission_result(); + } + @Override public grantTablePermission_result getResult(I iface, grantTablePermission_args args) throws org.apache.thrift.TException { - grantTablePermission_result result = new grantTablePermission_result(); + grantTablePermission_result result = getEmptyResultInstance(); try { iface.grantTablePermission(args.tinfo, args.credentials, args.principal, args.tableName, args.permission); } catch (ThriftSecurityException sec) { @@ -3104,7 +3184,7 @@ public grantTablePermission_result getResult(I iface, grantTablePermission_args } } - public static class revokeTablePermission extends org.apache.thrift.ProcessFunction { + public static class revokeTablePermission extends org.apache.thrift.ProcessFunction { public revokeTablePermission() { super("revokeTablePermission"); } @@ -3115,7 +3195,7 @@ public revokeTablePermission_args getEmptyArgsInstance() { } @Override - protected boolean isOneway() { + public boolean isOneway() { return false; } @@ -3124,9 +3204,14 @@ protected boolean rethrowUnhandledExceptions() { return false; } + @Override + public revokeTablePermission_result getEmptyResultInstance() { + return new revokeTablePermission_result(); + } + @Override public revokeTablePermission_result getResult(I iface, revokeTablePermission_args args) throws org.apache.thrift.TException { - revokeTablePermission_result result = new revokeTablePermission_result(); + revokeTablePermission_result result = getEmptyResultInstance(); try { iface.revokeTablePermission(args.tinfo, args.credentials, args.principal, args.tableName, args.permission); } catch (ThriftSecurityException sec) { @@ -3138,7 +3223,7 @@ public revokeTablePermission_result getResult(I iface, revokeTablePermission_arg } } - public static class grantNamespacePermission extends org.apache.thrift.ProcessFunction { + public static class grantNamespacePermission extends org.apache.thrift.ProcessFunction { public grantNamespacePermission() { super("grantNamespacePermission"); } @@ -3149,7 +3234,7 @@ public grantNamespacePermission_args getEmptyArgsInstance() { } @Override - protected boolean isOneway() { + public boolean isOneway() { return false; } @@ -3158,9 +3243,14 @@ protected boolean rethrowUnhandledExceptions() { return false; } + @Override + public grantNamespacePermission_result getEmptyResultInstance() { + return new grantNamespacePermission_result(); + } + @Override public grantNamespacePermission_result getResult(I iface, grantNamespacePermission_args args) throws org.apache.thrift.TException { - grantNamespacePermission_result result = new grantNamespacePermission_result(); + grantNamespacePermission_result result = getEmptyResultInstance(); try { iface.grantNamespacePermission(args.tinfo, args.credentials, args.principal, args.ns, args.permission); } catch (ThriftSecurityException sec) { @@ -3172,7 +3262,7 @@ public grantNamespacePermission_result getResult(I iface, grantNamespacePermissi } } - public static class revokeNamespacePermission extends org.apache.thrift.ProcessFunction { + public static class revokeNamespacePermission extends org.apache.thrift.ProcessFunction { public revokeNamespacePermission() { super("revokeNamespacePermission"); } @@ -3183,7 +3273,7 @@ public revokeNamespacePermission_args getEmptyArgsInstance() { } @Override - protected boolean isOneway() { + public boolean isOneway() { return false; } @@ -3192,9 +3282,14 @@ protected boolean rethrowUnhandledExceptions() { return false; } + @Override + public revokeNamespacePermission_result getEmptyResultInstance() { + return new revokeNamespacePermission_result(); + } + @Override public revokeNamespacePermission_result getResult(I iface, revokeNamespacePermission_args args) throws org.apache.thrift.TException { - revokeNamespacePermission_result result = new revokeNamespacePermission_result(); + revokeNamespacePermission_result result = getEmptyResultInstance(); try { iface.revokeNamespacePermission(args.tinfo, args.credentials, args.principal, args.ns, args.permission); } catch (ThriftSecurityException sec) { @@ -3206,7 +3301,7 @@ public revokeNamespacePermission_result getResult(I iface, revokeNamespacePermis } } - public static class getConfiguration extends org.apache.thrift.ProcessFunction { + public static class getConfiguration extends org.apache.thrift.ProcessFunction { public getConfiguration() { super("getConfiguration"); } @@ -3217,7 +3312,7 @@ public getConfiguration_args getEmptyArgsInstance() { } @Override - protected boolean isOneway() { + public boolean isOneway() { return false; } @@ -3226,9 +3321,14 @@ protected boolean rethrowUnhandledExceptions() { return false; } + @Override + public getConfiguration_result getEmptyResultInstance() { + return new getConfiguration_result(); + } + @Override public getConfiguration_result getResult(I iface, getConfiguration_args args) throws org.apache.thrift.TException { - getConfiguration_result result = new getConfiguration_result(); + getConfiguration_result result = getEmptyResultInstance(); try { result.success = iface.getConfiguration(args.tinfo, args.credentials, args.type); } catch (ThriftSecurityException sec) { @@ -3238,7 +3338,7 @@ public getConfiguration_result getResult(I iface, getConfiguration_args args) th } } - public static class getSystemProperties extends org.apache.thrift.ProcessFunction { + public static class getSystemProperties extends org.apache.thrift.ProcessFunction { public getSystemProperties() { super("getSystemProperties"); } @@ -3249,7 +3349,7 @@ public getSystemProperties_args getEmptyArgsInstance() { } @Override - protected boolean isOneway() { + public boolean isOneway() { return false; } @@ -3258,9 +3358,14 @@ protected boolean rethrowUnhandledExceptions() { return false; } + @Override + public getSystemProperties_result getEmptyResultInstance() { + return new getSystemProperties_result(); + } + @Override public getSystemProperties_result getResult(I iface, getSystemProperties_args args) throws org.apache.thrift.TException { - getSystemProperties_result result = new getSystemProperties_result(); + getSystemProperties_result result = getEmptyResultInstance(); try { result.success = iface.getSystemProperties(args.tinfo, args.credentials); } catch (ThriftSecurityException sec) { @@ -3270,7 +3375,7 @@ public getSystemProperties_result getResult(I iface, getSystemProperties_args ar } } - public static class getVersionedSystemProperties extends org.apache.thrift.ProcessFunction { + public static class getVersionedSystemProperties extends org.apache.thrift.ProcessFunction { public getVersionedSystemProperties() { super("getVersionedSystemProperties"); } @@ -3281,7 +3386,7 @@ public getVersionedSystemProperties_args getEmptyArgsInstance() { } @Override - protected boolean isOneway() { + public boolean isOneway() { return false; } @@ -3290,9 +3395,14 @@ protected boolean rethrowUnhandledExceptions() { return false; } + @Override + public getVersionedSystemProperties_result getEmptyResultInstance() { + return new getVersionedSystemProperties_result(); + } + @Override public getVersionedSystemProperties_result getResult(I iface, getVersionedSystemProperties_args args) throws org.apache.thrift.TException { - getVersionedSystemProperties_result result = new getVersionedSystemProperties_result(); + getVersionedSystemProperties_result result = getEmptyResultInstance(); try { result.success = iface.getVersionedSystemProperties(args.tinfo, args.credentials); } catch (ThriftSecurityException sec) { @@ -3302,7 +3412,7 @@ public getVersionedSystemProperties_result getResult(I iface, getVersionedSystem } } - public static class getVersionedResourceGroupProperties extends org.apache.thrift.ProcessFunction { + public static class getVersionedResourceGroupProperties extends org.apache.thrift.ProcessFunction { public getVersionedResourceGroupProperties() { super("getVersionedResourceGroupProperties"); } @@ -3313,7 +3423,7 @@ public getVersionedResourceGroupProperties_args getEmptyArgsInstance() { } @Override - protected boolean isOneway() { + public boolean isOneway() { return false; } @@ -3322,9 +3432,14 @@ protected boolean rethrowUnhandledExceptions() { return false; } + @Override + public getVersionedResourceGroupProperties_result getEmptyResultInstance() { + return new getVersionedResourceGroupProperties_result(); + } + @Override public getVersionedResourceGroupProperties_result getResult(I iface, getVersionedResourceGroupProperties_args args) throws org.apache.thrift.TException { - getVersionedResourceGroupProperties_result result = new getVersionedResourceGroupProperties_result(); + getVersionedResourceGroupProperties_result result = getEmptyResultInstance(); try { result.success = iface.getVersionedResourceGroupProperties(args.tinfo, args.credentials, args.resourceGroup); } catch (ThriftSecurityException sec) { @@ -3336,7 +3451,7 @@ public getVersionedResourceGroupProperties_result getResult(I iface, getVersione } } - public static class getTableConfiguration extends org.apache.thrift.ProcessFunction { + public static class getTableConfiguration extends org.apache.thrift.ProcessFunction { public getTableConfiguration() { super("getTableConfiguration"); } @@ -3347,7 +3462,7 @@ public getTableConfiguration_args getEmptyArgsInstance() { } @Override - protected boolean isOneway() { + public boolean isOneway() { return false; } @@ -3356,9 +3471,14 @@ protected boolean rethrowUnhandledExceptions() { return false; } + @Override + public getTableConfiguration_result getEmptyResultInstance() { + return new getTableConfiguration_result(); + } + @Override public getTableConfiguration_result getResult(I iface, getTableConfiguration_args args) throws org.apache.thrift.TException { - getTableConfiguration_result result = new getTableConfiguration_result(); + getTableConfiguration_result result = getEmptyResultInstance(); try { result.success = iface.getTableConfiguration(args.tinfo, args.credentials, args.tableName); } catch (ThriftTableOperationException tope) { @@ -3370,7 +3490,7 @@ public getTableConfiguration_result getResult(I iface, getTableConfiguration_arg } } - public static class getTableProperties extends org.apache.thrift.ProcessFunction { + public static class getTableProperties extends org.apache.thrift.ProcessFunction { public getTableProperties() { super("getTableProperties"); } @@ -3381,7 +3501,7 @@ public getTableProperties_args getEmptyArgsInstance() { } @Override - protected boolean isOneway() { + public boolean isOneway() { return false; } @@ -3390,9 +3510,14 @@ protected boolean rethrowUnhandledExceptions() { return false; } + @Override + public getTableProperties_result getEmptyResultInstance() { + return new getTableProperties_result(); + } + @Override public getTableProperties_result getResult(I iface, getTableProperties_args args) throws org.apache.thrift.TException { - getTableProperties_result result = new getTableProperties_result(); + getTableProperties_result result = getEmptyResultInstance(); try { result.success = iface.getTableProperties(args.tinfo, args.credentials, args.tableName); } catch (ThriftTableOperationException tope) { @@ -3404,7 +3529,7 @@ public getTableProperties_result getResult(I iface, getTableProperties_args args } } - public static class getVersionedTableProperties extends org.apache.thrift.ProcessFunction { + public static class getVersionedTableProperties extends org.apache.thrift.ProcessFunction { public getVersionedTableProperties() { super("getVersionedTableProperties"); } @@ -3415,7 +3540,7 @@ public getVersionedTableProperties_args getEmptyArgsInstance() { } @Override - protected boolean isOneway() { + public boolean isOneway() { return false; } @@ -3424,9 +3549,14 @@ protected boolean rethrowUnhandledExceptions() { return false; } + @Override + public getVersionedTableProperties_result getEmptyResultInstance() { + return new getVersionedTableProperties_result(); + } + @Override public getVersionedTableProperties_result getResult(I iface, getVersionedTableProperties_args args) throws org.apache.thrift.TException { - getVersionedTableProperties_result result = new getVersionedTableProperties_result(); + getVersionedTableProperties_result result = getEmptyResultInstance(); try { result.success = iface.getVersionedTableProperties(args.tinfo, args.credentials, args.tableName); } catch (ThriftTableOperationException tope) { @@ -3438,7 +3568,7 @@ public getVersionedTableProperties_result getResult(I iface, getVersionedTablePr } } - public static class getNamespaceConfiguration extends org.apache.thrift.ProcessFunction { + public static class getNamespaceConfiguration extends org.apache.thrift.ProcessFunction { public getNamespaceConfiguration() { super("getNamespaceConfiguration"); } @@ -3449,7 +3579,7 @@ public getNamespaceConfiguration_args getEmptyArgsInstance() { } @Override - protected boolean isOneway() { + public boolean isOneway() { return false; } @@ -3458,9 +3588,14 @@ protected boolean rethrowUnhandledExceptions() { return false; } + @Override + public getNamespaceConfiguration_result getEmptyResultInstance() { + return new getNamespaceConfiguration_result(); + } + @Override public getNamespaceConfiguration_result getResult(I iface, getNamespaceConfiguration_args args) throws org.apache.thrift.TException { - getNamespaceConfiguration_result result = new getNamespaceConfiguration_result(); + getNamespaceConfiguration_result result = getEmptyResultInstance(); try { result.success = iface.getNamespaceConfiguration(args.tinfo, args.credentials, args.ns); } catch (ThriftTableOperationException tope) { @@ -3472,7 +3607,7 @@ public getNamespaceConfiguration_result getResult(I iface, getNamespaceConfigura } } - public static class getNamespaceProperties extends org.apache.thrift.ProcessFunction { + public static class getNamespaceProperties extends org.apache.thrift.ProcessFunction { public getNamespaceProperties() { super("getNamespaceProperties"); } @@ -3483,7 +3618,7 @@ public getNamespaceProperties_args getEmptyArgsInstance() { } @Override - protected boolean isOneway() { + public boolean isOneway() { return false; } @@ -3492,9 +3627,14 @@ protected boolean rethrowUnhandledExceptions() { return false; } + @Override + public getNamespaceProperties_result getEmptyResultInstance() { + return new getNamespaceProperties_result(); + } + @Override public getNamespaceProperties_result getResult(I iface, getNamespaceProperties_args args) throws org.apache.thrift.TException { - getNamespaceProperties_result result = new getNamespaceProperties_result(); + getNamespaceProperties_result result = getEmptyResultInstance(); try { result.success = iface.getNamespaceProperties(args.tinfo, args.credentials, args.ns); } catch (ThriftTableOperationException tope) { @@ -3506,7 +3646,7 @@ public getNamespaceProperties_result getResult(I iface, getNamespaceProperties_a } } - public static class getVersionedNamespaceProperties extends org.apache.thrift.ProcessFunction { + public static class getVersionedNamespaceProperties extends org.apache.thrift.ProcessFunction { public getVersionedNamespaceProperties() { super("getVersionedNamespaceProperties"); } @@ -3517,7 +3657,7 @@ public getVersionedNamespaceProperties_args getEmptyArgsInstance() { } @Override - protected boolean isOneway() { + public boolean isOneway() { return false; } @@ -3526,9 +3666,14 @@ protected boolean rethrowUnhandledExceptions() { return false; } + @Override + public getVersionedNamespaceProperties_result getEmptyResultInstance() { + return new getVersionedNamespaceProperties_result(); + } + @Override public getVersionedNamespaceProperties_result getResult(I iface, getVersionedNamespaceProperties_args args) throws org.apache.thrift.TException { - getVersionedNamespaceProperties_result result = new getVersionedNamespaceProperties_result(); + getVersionedNamespaceProperties_result result = getEmptyResultInstance(); try { result.success = iface.getVersionedNamespaceProperties(args.tinfo, args.credentials, args.ns); } catch (ThriftTableOperationException tope) { @@ -3540,7 +3685,7 @@ public getVersionedNamespaceProperties_result getResult(I iface, getVersionedNam } } - public static class checkClass extends org.apache.thrift.ProcessFunction { + public static class checkClass extends org.apache.thrift.ProcessFunction { public checkClass() { super("checkClass"); } @@ -3551,7 +3696,7 @@ public checkClass_args getEmptyArgsInstance() { } @Override - protected boolean isOneway() { + public boolean isOneway() { return false; } @@ -3560,16 +3705,21 @@ protected boolean rethrowUnhandledExceptions() { return false; } + @Override + public checkClass_result getEmptyResultInstance() { + return new checkClass_result(); + } + @Override public checkClass_result getResult(I iface, checkClass_args args) throws org.apache.thrift.TException { - checkClass_result result = new checkClass_result(); + checkClass_result result = getEmptyResultInstance(); result.success = iface.checkClass(args.tinfo, args.credentials, args.className, args.interfaceMatch); result.setSuccessIsSet(true); return result; } } - public static class checkTableClass extends org.apache.thrift.ProcessFunction { + public static class checkTableClass extends org.apache.thrift.ProcessFunction { public checkTableClass() { super("checkTableClass"); } @@ -3580,7 +3730,7 @@ public checkTableClass_args getEmptyArgsInstance() { } @Override - protected boolean isOneway() { + public boolean isOneway() { return false; } @@ -3589,9 +3739,14 @@ protected boolean rethrowUnhandledExceptions() { return false; } + @Override + public checkTableClass_result getEmptyResultInstance() { + return new checkTableClass_result(); + } + @Override public checkTableClass_result getResult(I iface, checkTableClass_args args) throws org.apache.thrift.TException { - checkTableClass_result result = new checkTableClass_result(); + checkTableClass_result result = getEmptyResultInstance(); try { result.success = iface.checkTableClass(args.tinfo, args.credentials, args.tableId, args.className, args.interfaceMatch); result.setSuccessIsSet(true); @@ -3604,7 +3759,7 @@ public checkTableClass_result getResult(I iface, checkTableClass_args args) thro } } - public static class checkNamespaceClass extends org.apache.thrift.ProcessFunction { + public static class checkNamespaceClass extends org.apache.thrift.ProcessFunction { public checkNamespaceClass() { super("checkNamespaceClass"); } @@ -3615,7 +3770,7 @@ public checkNamespaceClass_args getEmptyArgsInstance() { } @Override - protected boolean isOneway() { + public boolean isOneway() { return false; } @@ -3624,9 +3779,14 @@ protected boolean rethrowUnhandledExceptions() { return false; } + @Override + public checkNamespaceClass_result getEmptyResultInstance() { + return new checkNamespaceClass_result(); + } + @Override public checkNamespaceClass_result getResult(I iface, checkNamespaceClass_args args) throws org.apache.thrift.TException { - checkNamespaceClass_result result = new checkNamespaceClass_result(); + checkNamespaceClass_result result = getEmptyResultInstance(); try { result.success = iface.checkNamespaceClass(args.tinfo, args.credentials, args.namespaceId, args.className, args.interfaceMatch); result.setSuccessIsSet(true); @@ -3644,14 +3804,14 @@ public checkNamespaceClass_result getResult(I iface, checkNamespaceClass_args ar public static class AsyncProcessor extends org.apache.thrift.TBaseAsyncProcessor { private static final org.slf4j.Logger _LOGGER = org.slf4j.LoggerFactory.getLogger(AsyncProcessor.class.getName()); public AsyncProcessor(I iface) { - super(iface, getProcessMap(new java.util.HashMap>())); + super(iface, getProcessMap(new java.util.HashMap>())); } - protected AsyncProcessor(I iface, java.util.Map> processMap) { + protected AsyncProcessor(I iface, java.util.Map> processMap) { super(iface, getProcessMap(processMap)); } - private static java.util.Map> getProcessMap(java.util.Map> processMap) { + private static java.util.Map> getProcessMap(java.util.Map> processMap) { processMap.put("ping", new ping()); processMap.put("getDiskUsage", new getDiskUsage()); processMap.put("listLocalUsers", new listLocalUsers()); @@ -3687,11 +3847,16 @@ protected AsyncProcessor(I iface, java.util.Map extends org.apache.thrift.AsyncProcessFunction { + public static class ping extends org.apache.thrift.AsyncProcessFunction { public ping() { super("ping"); } + @Override + public ping_result getEmptyResultInstance() { + return new ping_result(); + } + @Override public ping_args getEmptyArgsInstance() { return new ping_args(); @@ -3747,7 +3912,7 @@ public void onError(java.lang.Exception e) { } @Override - protected boolean isOneway() { + public boolean isOneway() { return false; } @@ -3757,11 +3922,16 @@ public void start(I iface, ping_args args, org.apache.thrift.async.AsyncMethodCa } } - public static class getDiskUsage extends org.apache.thrift.AsyncProcessFunction> { + public static class getDiskUsage extends org.apache.thrift.AsyncProcessFunction, getDiskUsage_result> { public getDiskUsage() { super("getDiskUsage"); } + @Override + public getDiskUsage_result getEmptyResultInstance() { + return new getDiskUsage_result(); + } + @Override public getDiskUsage_args getEmptyArgsInstance() { return new getDiskUsage_args(); @@ -3822,7 +3992,7 @@ public void onError(java.lang.Exception e) { } @Override - protected boolean isOneway() { + public boolean isOneway() { return false; } @@ -3832,11 +4002,16 @@ public void start(I iface, getDiskUsage_args args, org.apache.thrift.async.Async } } - public static class listLocalUsers extends org.apache.thrift.AsyncProcessFunction> { + public static class listLocalUsers extends org.apache.thrift.AsyncProcessFunction, listLocalUsers_result> { public listLocalUsers() { super("listLocalUsers"); } + @Override + public listLocalUsers_result getEmptyResultInstance() { + return new listLocalUsers_result(); + } + @Override public listLocalUsers_args getEmptyArgsInstance() { return new listLocalUsers_args(); @@ -3893,7 +4068,7 @@ public void onError(java.lang.Exception e) { } @Override - protected boolean isOneway() { + public boolean isOneway() { return false; } @@ -3903,11 +4078,16 @@ public void start(I iface, listLocalUsers_args args, org.apache.thrift.async.Asy } } - public static class createLocalUser extends org.apache.thrift.AsyncProcessFunction { + public static class createLocalUser extends org.apache.thrift.AsyncProcessFunction { public createLocalUser() { super("createLocalUser"); } + @Override + public createLocalUser_result getEmptyResultInstance() { + return new createLocalUser_result(); + } + @Override public createLocalUser_args getEmptyArgsInstance() { return new createLocalUser_args(); @@ -3963,7 +4143,7 @@ public void onError(java.lang.Exception e) { } @Override - protected boolean isOneway() { + public boolean isOneway() { return false; } @@ -3973,11 +4153,16 @@ public void start(I iface, createLocalUser_args args, org.apache.thrift.async.As } } - public static class dropLocalUser extends org.apache.thrift.AsyncProcessFunction { + public static class dropLocalUser extends org.apache.thrift.AsyncProcessFunction { public dropLocalUser() { super("dropLocalUser"); } + @Override + public dropLocalUser_result getEmptyResultInstance() { + return new dropLocalUser_result(); + } + @Override public dropLocalUser_args getEmptyArgsInstance() { return new dropLocalUser_args(); @@ -4033,7 +4218,7 @@ public void onError(java.lang.Exception e) { } @Override - protected boolean isOneway() { + public boolean isOneway() { return false; } @@ -4043,11 +4228,16 @@ public void start(I iface, dropLocalUser_args args, org.apache.thrift.async.Asyn } } - public static class changeLocalUserPassword extends org.apache.thrift.AsyncProcessFunction { + public static class changeLocalUserPassword extends org.apache.thrift.AsyncProcessFunction { public changeLocalUserPassword() { super("changeLocalUserPassword"); } + @Override + public changeLocalUserPassword_result getEmptyResultInstance() { + return new changeLocalUserPassword_result(); + } + @Override public changeLocalUserPassword_args getEmptyArgsInstance() { return new changeLocalUserPassword_args(); @@ -4103,7 +4293,7 @@ public void onError(java.lang.Exception e) { } @Override - protected boolean isOneway() { + public boolean isOneway() { return false; } @@ -4113,11 +4303,16 @@ public void start(I iface, changeLocalUserPassword_args args, org.apache.thrift. } } - public static class authenticate extends org.apache.thrift.AsyncProcessFunction { + public static class authenticate extends org.apache.thrift.AsyncProcessFunction { public authenticate() { super("authenticate"); } + @Override + public authenticate_result getEmptyResultInstance() { + return new authenticate_result(); + } + @Override public authenticate_args getEmptyArgsInstance() { return new authenticate_args(); @@ -4175,7 +4370,7 @@ public void onError(java.lang.Exception e) { } @Override - protected boolean isOneway() { + public boolean isOneway() { return false; } @@ -4185,11 +4380,16 @@ public void start(I iface, authenticate_args args, org.apache.thrift.async.Async } } - public static class authenticateUser extends org.apache.thrift.AsyncProcessFunction { + public static class authenticateUser extends org.apache.thrift.AsyncProcessFunction { public authenticateUser() { super("authenticateUser"); } + @Override + public authenticateUser_result getEmptyResultInstance() { + return new authenticateUser_result(); + } + @Override public authenticateUser_args getEmptyArgsInstance() { return new authenticateUser_args(); @@ -4247,7 +4447,7 @@ public void onError(java.lang.Exception e) { } @Override - protected boolean isOneway() { + public boolean isOneway() { return false; } @@ -4257,11 +4457,16 @@ public void start(I iface, authenticateUser_args args, org.apache.thrift.async.A } } - public static class changeAuthorizations extends org.apache.thrift.AsyncProcessFunction { + public static class changeAuthorizations extends org.apache.thrift.AsyncProcessFunction { public changeAuthorizations() { super("changeAuthorizations"); } + @Override + public changeAuthorizations_result getEmptyResultInstance() { + return new changeAuthorizations_result(); + } + @Override public changeAuthorizations_args getEmptyArgsInstance() { return new changeAuthorizations_args(); @@ -4317,7 +4522,7 @@ public void onError(java.lang.Exception e) { } @Override - protected boolean isOneway() { + public boolean isOneway() { return false; } @@ -4327,11 +4532,16 @@ public void start(I iface, changeAuthorizations_args args, org.apache.thrift.asy } } - public static class getUserAuthorizations extends org.apache.thrift.AsyncProcessFunction> { + public static class getUserAuthorizations extends org.apache.thrift.AsyncProcessFunction, getUserAuthorizations_result> { public getUserAuthorizations() { super("getUserAuthorizations"); } + @Override + public getUserAuthorizations_result getEmptyResultInstance() { + return new getUserAuthorizations_result(); + } + @Override public getUserAuthorizations_args getEmptyArgsInstance() { return new getUserAuthorizations_args(); @@ -4388,7 +4598,7 @@ public void onError(java.lang.Exception e) { } @Override - protected boolean isOneway() { + public boolean isOneway() { return false; } @@ -4398,11 +4608,16 @@ public void start(I iface, getUserAuthorizations_args args, org.apache.thrift.as } } - public static class hasSystemPermission extends org.apache.thrift.AsyncProcessFunction { + public static class hasSystemPermission extends org.apache.thrift.AsyncProcessFunction { public hasSystemPermission() { super("hasSystemPermission"); } + @Override + public hasSystemPermission_result getEmptyResultInstance() { + return new hasSystemPermission_result(); + } + @Override public hasSystemPermission_args getEmptyArgsInstance() { return new hasSystemPermission_args(); @@ -4460,7 +4675,7 @@ public void onError(java.lang.Exception e) { } @Override - protected boolean isOneway() { + public boolean isOneway() { return false; } @@ -4470,11 +4685,16 @@ public void start(I iface, hasSystemPermission_args args, org.apache.thrift.asyn } } - public static class hasTablePermission extends org.apache.thrift.AsyncProcessFunction { + public static class hasTablePermission extends org.apache.thrift.AsyncProcessFunction { public hasTablePermission() { super("hasTablePermission"); } + @Override + public hasTablePermission_result getEmptyResultInstance() { + return new hasTablePermission_result(); + } + @Override public hasTablePermission_args getEmptyArgsInstance() { return new hasTablePermission_args(); @@ -4536,7 +4756,7 @@ public void onError(java.lang.Exception e) { } @Override - protected boolean isOneway() { + public boolean isOneway() { return false; } @@ -4546,11 +4766,16 @@ public void start(I iface, hasTablePermission_args args, org.apache.thrift.async } } - public static class hasNamespacePermission extends org.apache.thrift.AsyncProcessFunction { + public static class hasNamespacePermission extends org.apache.thrift.AsyncProcessFunction { public hasNamespacePermission() { super("hasNamespacePermission"); } + @Override + public hasNamespacePermission_result getEmptyResultInstance() { + return new hasNamespacePermission_result(); + } + @Override public hasNamespacePermission_args getEmptyArgsInstance() { return new hasNamespacePermission_args(); @@ -4612,7 +4837,7 @@ public void onError(java.lang.Exception e) { } @Override - protected boolean isOneway() { + public boolean isOneway() { return false; } @@ -4622,11 +4847,16 @@ public void start(I iface, hasNamespacePermission_args args, org.apache.thrift.a } } - public static class grantSystemPermission extends org.apache.thrift.AsyncProcessFunction { + public static class grantSystemPermission extends org.apache.thrift.AsyncProcessFunction { public grantSystemPermission() { super("grantSystemPermission"); } + @Override + public grantSystemPermission_result getEmptyResultInstance() { + return new grantSystemPermission_result(); + } + @Override public grantSystemPermission_args getEmptyArgsInstance() { return new grantSystemPermission_args(); @@ -4682,7 +4912,7 @@ public void onError(java.lang.Exception e) { } @Override - protected boolean isOneway() { + public boolean isOneway() { return false; } @@ -4692,11 +4922,16 @@ public void start(I iface, grantSystemPermission_args args, org.apache.thrift.as } } - public static class revokeSystemPermission extends org.apache.thrift.AsyncProcessFunction { + public static class revokeSystemPermission extends org.apache.thrift.AsyncProcessFunction { public revokeSystemPermission() { super("revokeSystemPermission"); } + @Override + public revokeSystemPermission_result getEmptyResultInstance() { + return new revokeSystemPermission_result(); + } + @Override public revokeSystemPermission_args getEmptyArgsInstance() { return new revokeSystemPermission_args(); @@ -4752,7 +4987,7 @@ public void onError(java.lang.Exception e) { } @Override - protected boolean isOneway() { + public boolean isOneway() { return false; } @@ -4762,11 +4997,16 @@ public void start(I iface, revokeSystemPermission_args args, org.apache.thrift.a } } - public static class grantTablePermission extends org.apache.thrift.AsyncProcessFunction { + public static class grantTablePermission extends org.apache.thrift.AsyncProcessFunction { public grantTablePermission() { super("grantTablePermission"); } + @Override + public grantTablePermission_result getEmptyResultInstance() { + return new grantTablePermission_result(); + } + @Override public grantTablePermission_args getEmptyArgsInstance() { return new grantTablePermission_args(); @@ -4826,7 +5066,7 @@ public void onError(java.lang.Exception e) { } @Override - protected boolean isOneway() { + public boolean isOneway() { return false; } @@ -4836,11 +5076,16 @@ public void start(I iface, grantTablePermission_args args, org.apache.thrift.asy } } - public static class revokeTablePermission extends org.apache.thrift.AsyncProcessFunction { + public static class revokeTablePermission extends org.apache.thrift.AsyncProcessFunction { public revokeTablePermission() { super("revokeTablePermission"); } + @Override + public revokeTablePermission_result getEmptyResultInstance() { + return new revokeTablePermission_result(); + } + @Override public revokeTablePermission_args getEmptyArgsInstance() { return new revokeTablePermission_args(); @@ -4900,7 +5145,7 @@ public void onError(java.lang.Exception e) { } @Override - protected boolean isOneway() { + public boolean isOneway() { return false; } @@ -4910,11 +5155,16 @@ public void start(I iface, revokeTablePermission_args args, org.apache.thrift.as } } - public static class grantNamespacePermission extends org.apache.thrift.AsyncProcessFunction { + public static class grantNamespacePermission extends org.apache.thrift.AsyncProcessFunction { public grantNamespacePermission() { super("grantNamespacePermission"); } + @Override + public grantNamespacePermission_result getEmptyResultInstance() { + return new grantNamespacePermission_result(); + } + @Override public grantNamespacePermission_args getEmptyArgsInstance() { return new grantNamespacePermission_args(); @@ -4974,7 +5224,7 @@ public void onError(java.lang.Exception e) { } @Override - protected boolean isOneway() { + public boolean isOneway() { return false; } @@ -4984,11 +5234,16 @@ public void start(I iface, grantNamespacePermission_args args, org.apache.thrift } } - public static class revokeNamespacePermission extends org.apache.thrift.AsyncProcessFunction { + public static class revokeNamespacePermission extends org.apache.thrift.AsyncProcessFunction { public revokeNamespacePermission() { super("revokeNamespacePermission"); } + @Override + public revokeNamespacePermission_result getEmptyResultInstance() { + return new revokeNamespacePermission_result(); + } + @Override public revokeNamespacePermission_args getEmptyArgsInstance() { return new revokeNamespacePermission_args(); @@ -5048,7 +5303,7 @@ public void onError(java.lang.Exception e) { } @Override - protected boolean isOneway() { + public boolean isOneway() { return false; } @@ -5058,11 +5313,16 @@ public void start(I iface, revokeNamespacePermission_args args, org.apache.thrif } } - public static class getConfiguration extends org.apache.thrift.AsyncProcessFunction> { + public static class getConfiguration extends org.apache.thrift.AsyncProcessFunction, getConfiguration_result> { public getConfiguration() { super("getConfiguration"); } + @Override + public getConfiguration_result getEmptyResultInstance() { + return new getConfiguration_result(); + } + @Override public getConfiguration_args getEmptyArgsInstance() { return new getConfiguration_args(); @@ -5119,7 +5379,7 @@ public void onError(java.lang.Exception e) { } @Override - protected boolean isOneway() { + public boolean isOneway() { return false; } @@ -5129,11 +5389,16 @@ public void start(I iface, getConfiguration_args args, org.apache.thrift.async.A } } - public static class getSystemProperties extends org.apache.thrift.AsyncProcessFunction> { + public static class getSystemProperties extends org.apache.thrift.AsyncProcessFunction, getSystemProperties_result> { public getSystemProperties() { super("getSystemProperties"); } + @Override + public getSystemProperties_result getEmptyResultInstance() { + return new getSystemProperties_result(); + } + @Override public getSystemProperties_args getEmptyArgsInstance() { return new getSystemProperties_args(); @@ -5190,7 +5455,7 @@ public void onError(java.lang.Exception e) { } @Override - protected boolean isOneway() { + public boolean isOneway() { return false; } @@ -5200,11 +5465,16 @@ public void start(I iface, getSystemProperties_args args, org.apache.thrift.asyn } } - public static class getVersionedSystemProperties extends org.apache.thrift.AsyncProcessFunction { + public static class getVersionedSystemProperties extends org.apache.thrift.AsyncProcessFunction { public getVersionedSystemProperties() { super("getVersionedSystemProperties"); } + @Override + public getVersionedSystemProperties_result getEmptyResultInstance() { + return new getVersionedSystemProperties_result(); + } + @Override public getVersionedSystemProperties_args getEmptyArgsInstance() { return new getVersionedSystemProperties_args(); @@ -5261,7 +5531,7 @@ public void onError(java.lang.Exception e) { } @Override - protected boolean isOneway() { + public boolean isOneway() { return false; } @@ -5271,11 +5541,16 @@ public void start(I iface, getVersionedSystemProperties_args args, org.apache.th } } - public static class getVersionedResourceGroupProperties extends org.apache.thrift.AsyncProcessFunction { + public static class getVersionedResourceGroupProperties extends org.apache.thrift.AsyncProcessFunction { public getVersionedResourceGroupProperties() { super("getVersionedResourceGroupProperties"); } + @Override + public getVersionedResourceGroupProperties_result getEmptyResultInstance() { + return new getVersionedResourceGroupProperties_result(); + } + @Override public getVersionedResourceGroupProperties_args getEmptyArgsInstance() { return new getVersionedResourceGroupProperties_args(); @@ -5336,7 +5611,7 @@ public void onError(java.lang.Exception e) { } @Override - protected boolean isOneway() { + public boolean isOneway() { return false; } @@ -5346,11 +5621,16 @@ public void start(I iface, getVersionedResourceGroupProperties_args args, org.ap } } - public static class getTableConfiguration extends org.apache.thrift.AsyncProcessFunction> { + public static class getTableConfiguration extends org.apache.thrift.AsyncProcessFunction, getTableConfiguration_result> { public getTableConfiguration() { super("getTableConfiguration"); } + @Override + public getTableConfiguration_result getEmptyResultInstance() { + return new getTableConfiguration_result(); + } + @Override public getTableConfiguration_args getEmptyArgsInstance() { return new getTableConfiguration_args(); @@ -5411,7 +5691,7 @@ public void onError(java.lang.Exception e) { } @Override - protected boolean isOneway() { + public boolean isOneway() { return false; } @@ -5421,11 +5701,16 @@ public void start(I iface, getTableConfiguration_args args, org.apache.thrift.as } } - public static class getTableProperties extends org.apache.thrift.AsyncProcessFunction> { + public static class getTableProperties extends org.apache.thrift.AsyncProcessFunction, getTableProperties_result> { public getTableProperties() { super("getTableProperties"); } + @Override + public getTableProperties_result getEmptyResultInstance() { + return new getTableProperties_result(); + } + @Override public getTableProperties_args getEmptyArgsInstance() { return new getTableProperties_args(); @@ -5486,7 +5771,7 @@ public void onError(java.lang.Exception e) { } @Override - protected boolean isOneway() { + public boolean isOneway() { return false; } @@ -5496,11 +5781,16 @@ public void start(I iface, getTableProperties_args args, org.apache.thrift.async } } - public static class getVersionedTableProperties extends org.apache.thrift.AsyncProcessFunction { + public static class getVersionedTableProperties extends org.apache.thrift.AsyncProcessFunction { public getVersionedTableProperties() { super("getVersionedTableProperties"); } + @Override + public getVersionedTableProperties_result getEmptyResultInstance() { + return new getVersionedTableProperties_result(); + } + @Override public getVersionedTableProperties_args getEmptyArgsInstance() { return new getVersionedTableProperties_args(); @@ -5561,7 +5851,7 @@ public void onError(java.lang.Exception e) { } @Override - protected boolean isOneway() { + public boolean isOneway() { return false; } @@ -5571,11 +5861,16 @@ public void start(I iface, getVersionedTableProperties_args args, org.apache.thr } } - public static class getNamespaceConfiguration extends org.apache.thrift.AsyncProcessFunction> { + public static class getNamespaceConfiguration extends org.apache.thrift.AsyncProcessFunction, getNamespaceConfiguration_result> { public getNamespaceConfiguration() { super("getNamespaceConfiguration"); } + @Override + public getNamespaceConfiguration_result getEmptyResultInstance() { + return new getNamespaceConfiguration_result(); + } + @Override public getNamespaceConfiguration_args getEmptyArgsInstance() { return new getNamespaceConfiguration_args(); @@ -5636,7 +5931,7 @@ public void onError(java.lang.Exception e) { } @Override - protected boolean isOneway() { + public boolean isOneway() { return false; } @@ -5646,11 +5941,16 @@ public void start(I iface, getNamespaceConfiguration_args args, org.apache.thrif } } - public static class getNamespaceProperties extends org.apache.thrift.AsyncProcessFunction> { + public static class getNamespaceProperties extends org.apache.thrift.AsyncProcessFunction, getNamespaceProperties_result> { public getNamespaceProperties() { super("getNamespaceProperties"); } + @Override + public getNamespaceProperties_result getEmptyResultInstance() { + return new getNamespaceProperties_result(); + } + @Override public getNamespaceProperties_args getEmptyArgsInstance() { return new getNamespaceProperties_args(); @@ -5711,7 +6011,7 @@ public void onError(java.lang.Exception e) { } @Override - protected boolean isOneway() { + public boolean isOneway() { return false; } @@ -5721,11 +6021,16 @@ public void start(I iface, getNamespaceProperties_args args, org.apache.thrift.a } } - public static class getVersionedNamespaceProperties extends org.apache.thrift.AsyncProcessFunction { + public static class getVersionedNamespaceProperties extends org.apache.thrift.AsyncProcessFunction { public getVersionedNamespaceProperties() { super("getVersionedNamespaceProperties"); } + @Override + public getVersionedNamespaceProperties_result getEmptyResultInstance() { + return new getVersionedNamespaceProperties_result(); + } + @Override public getVersionedNamespaceProperties_args getEmptyArgsInstance() { return new getVersionedNamespaceProperties_args(); @@ -5786,7 +6091,7 @@ public void onError(java.lang.Exception e) { } @Override - protected boolean isOneway() { + public boolean isOneway() { return false; } @@ -5796,11 +6101,16 @@ public void start(I iface, getVersionedNamespaceProperties_args args, org.apache } } - public static class checkClass extends org.apache.thrift.AsyncProcessFunction { + public static class checkClass extends org.apache.thrift.AsyncProcessFunction { public checkClass() { super("checkClass"); } + @Override + public checkClass_result getEmptyResultInstance() { + return new checkClass_result(); + } + @Override public checkClass_args getEmptyArgsInstance() { return new checkClass_args(); @@ -5854,7 +6164,7 @@ public void onError(java.lang.Exception e) { } @Override - protected boolean isOneway() { + public boolean isOneway() { return false; } @@ -5864,11 +6174,16 @@ public void start(I iface, checkClass_args args, org.apache.thrift.async.AsyncMe } } - public static class checkTableClass extends org.apache.thrift.AsyncProcessFunction { + public static class checkTableClass extends org.apache.thrift.AsyncProcessFunction { public checkTableClass() { super("checkTableClass"); } + @Override + public checkTableClass_result getEmptyResultInstance() { + return new checkTableClass_result(); + } + @Override public checkTableClass_args getEmptyArgsInstance() { return new checkTableClass_args(); @@ -5930,7 +6245,7 @@ public void onError(java.lang.Exception e) { } @Override - protected boolean isOneway() { + public boolean isOneway() { return false; } @@ -5940,11 +6255,16 @@ public void start(I iface, checkTableClass_args args, org.apache.thrift.async.As } } - public static class checkNamespaceClass extends org.apache.thrift.AsyncProcessFunction { + public static class checkNamespaceClass extends org.apache.thrift.AsyncProcessFunction { public checkNamespaceClass() { super("checkNamespaceClass"); } + @Override + public checkNamespaceClass_result getEmptyResultInstance() { + return new checkNamespaceClass_result(); + } + @Override public checkNamespaceClass_args getEmptyArgsInstance() { return new checkNamespaceClass_args(); @@ -6006,7 +6326,7 @@ public void onError(java.lang.Exception e) { } @Override - protected boolean isOneway() { + public boolean isOneway() { return false; } @@ -6318,33 +6638,38 @@ private static class ping_argsStandardScheme extends org.apache.thrift.scheme.St @Override public void read(org.apache.thrift.protocol.TProtocol iprot, ping_args struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TField schemeField; - iprot.readStructBegin(); - while (true) - { - schemeField = iprot.readFieldBegin(); - if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { - break; - } - switch (schemeField.id) { - case 2: // CREDENTIALS - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); - struct.credentials.read(iprot); - struct.setCredentialsIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } + iprot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; - default: - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + switch (schemeField.id) { + case 2: // CREDENTIALS + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); + struct.credentials.read(iprot); + struct.setCredentialsIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + default: + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); } - iprot.readFieldEnd(); - } - iprot.readStructEnd(); + iprot.readStructEnd(); - // check for required fields of primitive type, which can't be checked in the validate method - struct.validate(); + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } finally { + iprot.decrementRecursionDepth(); + } } @Override @@ -6387,12 +6712,17 @@ public void write(org.apache.thrift.protocol.TProtocol prot, ping_args struct) t @Override public void read(org.apache.thrift.protocol.TProtocol prot, ping_args struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; - java.util.BitSet incoming = iprot.readBitSet(1); - if (incoming.get(0)) { - struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); - struct.credentials.read(iprot); - struct.setCredentialsIsSet(true); + prot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(1); + if (incoming.get(0)) { + struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); + struct.credentials.read(iprot); + struct.setCredentialsIsSet(true); + } + } finally { + prot.decrementRecursionDepth(); } } } @@ -6698,33 +7028,38 @@ private static class ping_resultStandardScheme extends org.apache.thrift.scheme. @Override public void read(org.apache.thrift.protocol.TProtocol iprot, ping_result struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TField schemeField; - iprot.readStructBegin(); - while (true) - { - schemeField = iprot.readFieldBegin(); - if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { - break; - } - switch (schemeField.id) { - case 1: // SEC - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.sec = new ThriftSecurityException(); - struct.sec.read(iprot); - struct.setSecIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } + iprot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; - default: - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + switch (schemeField.id) { + case 1: // SEC + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.sec = new ThriftSecurityException(); + struct.sec.read(iprot); + struct.setSecIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + default: + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); } - iprot.readFieldEnd(); - } - iprot.readStructEnd(); + iprot.readStructEnd(); - // check for required fields of primitive type, which can't be checked in the validate method - struct.validate(); + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } finally { + iprot.decrementRecursionDepth(); + } } @Override @@ -6767,12 +7102,17 @@ public void write(org.apache.thrift.protocol.TProtocol prot, ping_result struct) @Override public void read(org.apache.thrift.protocol.TProtocol prot, ping_result struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; - java.util.BitSet incoming = iprot.readBitSet(1); - if (incoming.get(0)) { - struct.sec = new ThriftSecurityException(); - struct.sec.read(iprot); - struct.setSecIsSet(true); + prot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(1); + if (incoming.get(0)) { + struct.sec = new ThriftSecurityException(); + struct.sec.read(iprot); + struct.setSecIsSet(true); + } + } finally { + prot.decrementRecursionDepth(); } } } @@ -7182,51 +7522,56 @@ private static class getDiskUsage_argsStandardScheme extends org.apache.thrift.s @Override public void read(org.apache.thrift.protocol.TProtocol iprot, getDiskUsage_args struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TField schemeField; - iprot.readStructBegin(); - while (true) - { - schemeField = iprot.readFieldBegin(); - if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { - break; - } - switch (schemeField.id) { - case 2: // TABLES - if (schemeField.type == org.apache.thrift.protocol.TType.SET) { - { - org.apache.thrift.protocol.TSet _set28 = iprot.readSetBegin(); - struct.tables = new java.util.HashSet(2*_set28.size); - @org.apache.thrift.annotation.Nullable java.lang.String _elem29; - for (int _i30 = 0; _i30 < _set28.size; ++_i30) + iprot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { + break; + } + switch (schemeField.id) { + case 2: // TABLES + if (schemeField.type == org.apache.thrift.protocol.TType.SET) { { - _elem29 = iprot.readString(); - struct.tables.add(_elem29); + org.apache.thrift.protocol.TSet _set28 = iprot.readSetBegin(); + struct.tables = new java.util.HashSet(2*_set28.size); + @org.apache.thrift.annotation.Nullable java.lang.String _elem29; + for (int _i30 = 0; _i30 < _set28.size; ++_i30) + { + _elem29 = iprot.readString(); + struct.tables.add(_elem29); + } + iprot.readSetEnd(); } - iprot.readSetEnd(); + struct.setTablesIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } - struct.setTablesIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 1: // CREDENTIALS - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); - struct.credentials.read(iprot); - struct.setCredentialsIsSet(true); - } else { + break; + case 1: // CREDENTIALS + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); + struct.credentials.read(iprot); + struct.setCredentialsIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - default: - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); } - iprot.readFieldEnd(); - } - iprot.readStructEnd(); + iprot.readStructEnd(); - // check for required fields of primitive type, which can't be checked in the validate method - struct.validate(); + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } finally { + iprot.decrementRecursionDepth(); + } } @Override @@ -7293,25 +7638,30 @@ public void write(org.apache.thrift.protocol.TProtocol prot, getDiskUsage_args s @Override public void read(org.apache.thrift.protocol.TProtocol prot, getDiskUsage_args struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; - java.util.BitSet incoming = iprot.readBitSet(2); - if (incoming.get(0)) { - { - org.apache.thrift.protocol.TSet _set33 = iprot.readSetBegin(org.apache.thrift.protocol.TType.STRING); - struct.tables = new java.util.HashSet(2*_set33.size); - @org.apache.thrift.annotation.Nullable java.lang.String _elem34; - for (int _i35 = 0; _i35 < _set33.size; ++_i35) + prot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(2); + if (incoming.get(0)) { { - _elem34 = iprot.readString(); - struct.tables.add(_elem34); + org.apache.thrift.protocol.TSet _set33 = iprot.readSetBegin(org.apache.thrift.protocol.TType.STRING); + struct.tables = new java.util.HashSet(2*_set33.size); + @org.apache.thrift.annotation.Nullable java.lang.String _elem34; + for (int _i35 = 0; _i35 < _set33.size; ++_i35) + { + _elem34 = iprot.readString(); + struct.tables.add(_elem34); + } } + struct.setTablesIsSet(true); } - struct.setTablesIsSet(true); - } - if (incoming.get(1)) { - struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); - struct.credentials.read(iprot); - struct.setCredentialsIsSet(true); + if (incoming.get(1)) { + struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); + struct.credentials.read(iprot); + struct.setCredentialsIsSet(true); + } + } finally { + prot.decrementRecursionDepth(); } } } @@ -7802,61 +8152,66 @@ private static class getDiskUsage_resultStandardScheme extends org.apache.thrift @Override public void read(org.apache.thrift.protocol.TProtocol iprot, getDiskUsage_result struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TField schemeField; - iprot.readStructBegin(); - while (true) - { - schemeField = iprot.readFieldBegin(); - if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { - break; - } - switch (schemeField.id) { - case 0: // SUCCESS - if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { - { - org.apache.thrift.protocol.TList _list36 = iprot.readListBegin(); - struct.success = new java.util.ArrayList(_list36.size); - @org.apache.thrift.annotation.Nullable TDiskUsage _elem37; - for (int _i38 = 0; _i38 < _list36.size; ++_i38) + iprot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { + break; + } + switch (schemeField.id) { + case 0: // SUCCESS + if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - _elem37 = new TDiskUsage(); - _elem37.read(iprot); - struct.success.add(_elem37); + org.apache.thrift.protocol.TList _list36 = iprot.readListBegin(); + struct.success = new java.util.ArrayList(_list36.size); + @org.apache.thrift.annotation.Nullable TDiskUsage _elem37; + for (int _i38 = 0; _i38 < _list36.size; ++_i38) + { + _elem37 = new TDiskUsage(); + _elem37.read(iprot); + struct.success.add(_elem37); + } + iprot.readListEnd(); } - iprot.readListEnd(); + struct.setSuccessIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } - struct.setSuccessIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 1: // SEC - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.sec = new ThriftSecurityException(); - struct.sec.read(iprot); - struct.setSecIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 2: // TOE - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.toe = new ThriftTableOperationException(); - struct.toe.read(iprot); - struct.setToeIsSet(true); - } else { + break; + case 1: // SEC + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.sec = new ThriftSecurityException(); + struct.sec.read(iprot); + struct.setSecIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 2: // TOE + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.toe = new ThriftTableOperationException(); + struct.toe.read(iprot); + struct.setToeIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - default: - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); } - iprot.readFieldEnd(); - } - iprot.readStructEnd(); + iprot.readStructEnd(); - // check for required fields of primitive type, which can't be checked in the validate method - struct.validate(); + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } finally { + iprot.decrementRecursionDepth(); + } } @Override @@ -7934,31 +8289,36 @@ public void write(org.apache.thrift.protocol.TProtocol prot, getDiskUsage_result @Override public void read(org.apache.thrift.protocol.TProtocol prot, getDiskUsage_result struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; - java.util.BitSet incoming = iprot.readBitSet(3); - if (incoming.get(0)) { - { - org.apache.thrift.protocol.TList _list41 = iprot.readListBegin(org.apache.thrift.protocol.TType.STRUCT); - struct.success = new java.util.ArrayList(_list41.size); - @org.apache.thrift.annotation.Nullable TDiskUsage _elem42; - for (int _i43 = 0; _i43 < _list41.size; ++_i43) + prot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(3); + if (incoming.get(0)) { { - _elem42 = new TDiskUsage(); - _elem42.read(iprot); - struct.success.add(_elem42); + org.apache.thrift.protocol.TList _list41 = iprot.readListBegin(org.apache.thrift.protocol.TType.STRUCT); + struct.success = new java.util.ArrayList(_list41.size); + @org.apache.thrift.annotation.Nullable TDiskUsage _elem42; + for (int _i43 = 0; _i43 < _list41.size; ++_i43) + { + _elem42 = new TDiskUsage(); + _elem42.read(iprot); + struct.success.add(_elem42); + } } + struct.setSuccessIsSet(true); } - struct.setSuccessIsSet(true); - } - if (incoming.get(1)) { - struct.sec = new ThriftSecurityException(); - struct.sec.read(iprot); - struct.setSecIsSet(true); - } - if (incoming.get(2)) { - struct.toe = new ThriftTableOperationException(); - struct.toe.read(iprot); - struct.setToeIsSet(true); + if (incoming.get(1)) { + struct.sec = new ThriftSecurityException(); + struct.sec.read(iprot); + struct.setSecIsSet(true); + } + if (incoming.get(2)) { + struct.toe = new ThriftTableOperationException(); + struct.toe.read(iprot); + struct.setToeIsSet(true); + } + } finally { + prot.decrementRecursionDepth(); } } } @@ -8353,42 +8713,47 @@ private static class listLocalUsers_argsStandardScheme extends org.apache.thrift @Override public void read(org.apache.thrift.protocol.TProtocol iprot, listLocalUsers_args struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TField schemeField; - iprot.readStructBegin(); - while (true) - { - schemeField = iprot.readFieldBegin(); - if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { - break; - } - switch (schemeField.id) { - case 2: // TINFO - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.tinfo = new TInfo(); - struct.tinfo.read(iprot); - struct.setTinfoIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } + iprot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; - case 3: // CREDENTIALS - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); - struct.credentials.read(iprot); - struct.setCredentialsIsSet(true); - } else { + } + switch (schemeField.id) { + case 2: // TINFO + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.tinfo = new TInfo(); + struct.tinfo.read(iprot); + struct.setTinfoIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 3: // CREDENTIALS + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); + struct.credentials.read(iprot); + struct.setCredentialsIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - default: - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); } - iprot.readFieldEnd(); - } - iprot.readStructEnd(); + iprot.readStructEnd(); - // check for required fields of primitive type, which can't be checked in the validate method - struct.validate(); + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } finally { + iprot.decrementRecursionDepth(); + } } @Override @@ -8442,17 +8807,22 @@ public void write(org.apache.thrift.protocol.TProtocol prot, listLocalUsers_args @Override public void read(org.apache.thrift.protocol.TProtocol prot, listLocalUsers_args struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; - java.util.BitSet incoming = iprot.readBitSet(2); - if (incoming.get(0)) { - struct.tinfo = new TInfo(); - struct.tinfo.read(iprot); - struct.setTinfoIsSet(true); - } - if (incoming.get(1)) { - struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); - struct.credentials.read(iprot); - struct.setCredentialsIsSet(true); + prot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(2); + if (incoming.get(0)) { + struct.tinfo = new TInfo(); + struct.tinfo.read(iprot); + struct.setTinfoIsSet(true); + } + if (incoming.get(1)) { + struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); + struct.credentials.read(iprot); + struct.setCredentialsIsSet(true); + } + } finally { + prot.decrementRecursionDepth(); } } } @@ -8858,51 +9228,56 @@ private static class listLocalUsers_resultStandardScheme extends org.apache.thri @Override public void read(org.apache.thrift.protocol.TProtocol iprot, listLocalUsers_result struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TField schemeField; - iprot.readStructBegin(); - while (true) - { - schemeField = iprot.readFieldBegin(); - if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { - break; - } - switch (schemeField.id) { - case 0: // SUCCESS - if (schemeField.type == org.apache.thrift.protocol.TType.SET) { - { - org.apache.thrift.protocol.TSet _set44 = iprot.readSetBegin(); - struct.success = new java.util.HashSet(2*_set44.size); - @org.apache.thrift.annotation.Nullable java.lang.String _elem45; - for (int _i46 = 0; _i46 < _set44.size; ++_i46) + iprot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { + break; + } + switch (schemeField.id) { + case 0: // SUCCESS + if (schemeField.type == org.apache.thrift.protocol.TType.SET) { { - _elem45 = iprot.readString(); - struct.success.add(_elem45); + org.apache.thrift.protocol.TSet _set44 = iprot.readSetBegin(); + struct.success = new java.util.HashSet(2*_set44.size); + @org.apache.thrift.annotation.Nullable java.lang.String _elem45; + for (int _i46 = 0; _i46 < _set44.size; ++_i46) + { + _elem45 = iprot.readString(); + struct.success.add(_elem45); + } + iprot.readSetEnd(); } - iprot.readSetEnd(); + struct.setSuccessIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } - struct.setSuccessIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 1: // SEC - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.sec = new ThriftSecurityException(); - struct.sec.read(iprot); - struct.setSecIsSet(true); - } else { + break; + case 1: // SEC + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.sec = new ThriftSecurityException(); + struct.sec.read(iprot); + struct.setSecIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - default: - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); } - iprot.readFieldEnd(); - } - iprot.readStructEnd(); + iprot.readStructEnd(); - // check for required fields of primitive type, which can't be checked in the validate method - struct.validate(); + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } finally { + iprot.decrementRecursionDepth(); + } } @Override @@ -8969,25 +9344,30 @@ public void write(org.apache.thrift.protocol.TProtocol prot, listLocalUsers_resu @Override public void read(org.apache.thrift.protocol.TProtocol prot, listLocalUsers_result struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; - java.util.BitSet incoming = iprot.readBitSet(2); - if (incoming.get(0)) { - { - org.apache.thrift.protocol.TSet _set49 = iprot.readSetBegin(org.apache.thrift.protocol.TType.STRING); - struct.success = new java.util.HashSet(2*_set49.size); - @org.apache.thrift.annotation.Nullable java.lang.String _elem50; - for (int _i51 = 0; _i51 < _set49.size; ++_i51) + prot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(2); + if (incoming.get(0)) { { - _elem50 = iprot.readString(); - struct.success.add(_elem50); + org.apache.thrift.protocol.TSet _set49 = iprot.readSetBegin(org.apache.thrift.protocol.TType.STRING); + struct.success = new java.util.HashSet(2*_set49.size); + @org.apache.thrift.annotation.Nullable java.lang.String _elem50; + for (int _i51 = 0; _i51 < _set49.size; ++_i51) + { + _elem50 = iprot.readString(); + struct.success.add(_elem50); + } } + struct.setSuccessIsSet(true); } - struct.setSuccessIsSet(true); - } - if (incoming.get(1)) { - struct.sec = new ThriftSecurityException(); - struct.sec.read(iprot); - struct.setSecIsSet(true); + if (incoming.get(1)) { + struct.sec = new ThriftSecurityException(); + struct.sec.read(iprot); + struct.setSecIsSet(true); + } + } finally { + prot.decrementRecursionDepth(); } } } @@ -9559,58 +9939,63 @@ private static class createLocalUser_argsStandardScheme extends org.apache.thrif @Override public void read(org.apache.thrift.protocol.TProtocol iprot, createLocalUser_args struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TField schemeField; - iprot.readStructBegin(); - while (true) - { - schemeField = iprot.readFieldBegin(); - if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { - break; - } - switch (schemeField.id) { - case 5: // TINFO - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.tinfo = new TInfo(); - struct.tinfo.read(iprot); - struct.setTinfoIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 6: // CREDENTIALS - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); - struct.credentials.read(iprot); - struct.setCredentialsIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 2: // PRINCIPAL - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.principal = iprot.readString(); - struct.setPrincipalIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } + iprot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; - case 3: // PASSWORD - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.password = iprot.readBinary(); - struct.setPasswordIsSet(true); - } else { + } + switch (schemeField.id) { + case 5: // TINFO + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.tinfo = new TInfo(); + struct.tinfo.read(iprot); + struct.setTinfoIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 6: // CREDENTIALS + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); + struct.credentials.read(iprot); + struct.setCredentialsIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 2: // PRINCIPAL + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.principal = iprot.readString(); + struct.setPrincipalIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 3: // PASSWORD + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.password = iprot.readBinary(); + struct.setPasswordIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - default: - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); } - iprot.readFieldEnd(); - } - iprot.readStructEnd(); + iprot.readStructEnd(); - // check for required fields of primitive type, which can't be checked in the validate method - struct.validate(); + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } finally { + iprot.decrementRecursionDepth(); + } } @Override @@ -9686,25 +10071,30 @@ public void write(org.apache.thrift.protocol.TProtocol prot, createLocalUser_arg @Override public void read(org.apache.thrift.protocol.TProtocol prot, createLocalUser_args struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; - java.util.BitSet incoming = iprot.readBitSet(4); - if (incoming.get(0)) { - struct.tinfo = new TInfo(); - struct.tinfo.read(iprot); - struct.setTinfoIsSet(true); - } - if (incoming.get(1)) { - struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); - struct.credentials.read(iprot); - struct.setCredentialsIsSet(true); - } - if (incoming.get(2)) { - struct.principal = iprot.readString(); - struct.setPrincipalIsSet(true); - } - if (incoming.get(3)) { - struct.password = iprot.readBinary(); - struct.setPasswordIsSet(true); + prot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(4); + if (incoming.get(0)) { + struct.tinfo = new TInfo(); + struct.tinfo.read(iprot); + struct.setTinfoIsSet(true); + } + if (incoming.get(1)) { + struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); + struct.credentials.read(iprot); + struct.setCredentialsIsSet(true); + } + if (incoming.get(2)) { + struct.principal = iprot.readString(); + struct.setPrincipalIsSet(true); + } + if (incoming.get(3)) { + struct.password = iprot.readBinary(); + struct.setPasswordIsSet(true); + } + } finally { + prot.decrementRecursionDepth(); } } } @@ -10010,33 +10400,38 @@ private static class createLocalUser_resultStandardScheme extends org.apache.thr @Override public void read(org.apache.thrift.protocol.TProtocol iprot, createLocalUser_result struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TField schemeField; - iprot.readStructBegin(); - while (true) - { - schemeField = iprot.readFieldBegin(); - if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { - break; - } - switch (schemeField.id) { - case 1: // SEC - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.sec = new ThriftSecurityException(); - struct.sec.read(iprot); - struct.setSecIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } + iprot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; - default: - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + switch (schemeField.id) { + case 1: // SEC + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.sec = new ThriftSecurityException(); + struct.sec.read(iprot); + struct.setSecIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + default: + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); } - iprot.readFieldEnd(); - } - iprot.readStructEnd(); + iprot.readStructEnd(); - // check for required fields of primitive type, which can't be checked in the validate method - struct.validate(); + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } finally { + iprot.decrementRecursionDepth(); + } } @Override @@ -10079,12 +10474,17 @@ public void write(org.apache.thrift.protocol.TProtocol prot, createLocalUser_res @Override public void read(org.apache.thrift.protocol.TProtocol prot, createLocalUser_result struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; - java.util.BitSet incoming = iprot.readBitSet(1); - if (incoming.get(0)) { - struct.sec = new ThriftSecurityException(); - struct.sec.read(iprot); - struct.setSecIsSet(true); + prot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(1); + if (incoming.get(0)) { + struct.sec = new ThriftSecurityException(); + struct.sec.read(iprot); + struct.setSecIsSet(true); + } + } finally { + prot.decrementRecursionDepth(); } } } @@ -10561,50 +10961,55 @@ private static class dropLocalUser_argsStandardScheme extends org.apache.thrift. @Override public void read(org.apache.thrift.protocol.TProtocol iprot, dropLocalUser_args struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TField schemeField; - iprot.readStructBegin(); - while (true) - { - schemeField = iprot.readFieldBegin(); - if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { - break; - } - switch (schemeField.id) { - case 3: // TINFO - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.tinfo = new TInfo(); - struct.tinfo.read(iprot); - struct.setTinfoIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 4: // CREDENTIALS - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); - struct.credentials.read(iprot); - struct.setCredentialsIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } + iprot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; - case 2: // PRINCIPAL - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.principal = iprot.readString(); - struct.setPrincipalIsSet(true); - } else { + } + switch (schemeField.id) { + case 3: // TINFO + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.tinfo = new TInfo(); + struct.tinfo.read(iprot); + struct.setTinfoIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 4: // CREDENTIALS + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); + struct.credentials.read(iprot); + struct.setCredentialsIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 2: // PRINCIPAL + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.principal = iprot.readString(); + struct.setPrincipalIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - default: - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); } - iprot.readFieldEnd(); - } - iprot.readStructEnd(); + iprot.readStructEnd(); - // check for required fields of primitive type, which can't be checked in the validate method - struct.validate(); + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } finally { + iprot.decrementRecursionDepth(); + } } @Override @@ -10669,21 +11074,26 @@ public void write(org.apache.thrift.protocol.TProtocol prot, dropLocalUser_args @Override public void read(org.apache.thrift.protocol.TProtocol prot, dropLocalUser_args struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; - java.util.BitSet incoming = iprot.readBitSet(3); - if (incoming.get(0)) { - struct.tinfo = new TInfo(); - struct.tinfo.read(iprot); - struct.setTinfoIsSet(true); - } - if (incoming.get(1)) { - struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); - struct.credentials.read(iprot); - struct.setCredentialsIsSet(true); - } - if (incoming.get(2)) { - struct.principal = iprot.readString(); - struct.setPrincipalIsSet(true); + prot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(3); + if (incoming.get(0)) { + struct.tinfo = new TInfo(); + struct.tinfo.read(iprot); + struct.setTinfoIsSet(true); + } + if (incoming.get(1)) { + struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); + struct.credentials.read(iprot); + struct.setCredentialsIsSet(true); + } + if (incoming.get(2)) { + struct.principal = iprot.readString(); + struct.setPrincipalIsSet(true); + } + } finally { + prot.decrementRecursionDepth(); } } } @@ -10989,33 +11399,38 @@ private static class dropLocalUser_resultStandardScheme extends org.apache.thrif @Override public void read(org.apache.thrift.protocol.TProtocol iprot, dropLocalUser_result struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TField schemeField; - iprot.readStructBegin(); - while (true) - { - schemeField = iprot.readFieldBegin(); - if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { - break; - } - switch (schemeField.id) { - case 1: // SEC - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.sec = new ThriftSecurityException(); - struct.sec.read(iprot); - struct.setSecIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } + iprot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; - default: - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + switch (schemeField.id) { + case 1: // SEC + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.sec = new ThriftSecurityException(); + struct.sec.read(iprot); + struct.setSecIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + default: + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); } - iprot.readFieldEnd(); - } - iprot.readStructEnd(); + iprot.readStructEnd(); - // check for required fields of primitive type, which can't be checked in the validate method - struct.validate(); + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } finally { + iprot.decrementRecursionDepth(); + } } @Override @@ -11058,12 +11473,17 @@ public void write(org.apache.thrift.protocol.TProtocol prot, dropLocalUser_resul @Override public void read(org.apache.thrift.protocol.TProtocol prot, dropLocalUser_result struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; - java.util.BitSet incoming = iprot.readBitSet(1); - if (incoming.get(0)) { - struct.sec = new ThriftSecurityException(); - struct.sec.read(iprot); - struct.setSecIsSet(true); + prot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(1); + if (incoming.get(0)) { + struct.sec = new ThriftSecurityException(); + struct.sec.read(iprot); + struct.setSecIsSet(true); + } + } finally { + prot.decrementRecursionDepth(); } } } @@ -11635,58 +12055,63 @@ private static class changeLocalUserPassword_argsStandardScheme extends org.apac @Override public void read(org.apache.thrift.protocol.TProtocol iprot, changeLocalUserPassword_args struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TField schemeField; - iprot.readStructBegin(); - while (true) - { - schemeField = iprot.readFieldBegin(); - if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { - break; - } - switch (schemeField.id) { - case 4: // TINFO - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.tinfo = new TInfo(); - struct.tinfo.read(iprot); - struct.setTinfoIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 5: // CREDENTIALS - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); - struct.credentials.read(iprot); - struct.setCredentialsIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 2: // PRINCIPAL - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.principal = iprot.readString(); - struct.setPrincipalIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } + iprot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; - case 3: // PASSWORD - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.password = iprot.readBinary(); - struct.setPasswordIsSet(true); - } else { + } + switch (schemeField.id) { + case 4: // TINFO + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.tinfo = new TInfo(); + struct.tinfo.read(iprot); + struct.setTinfoIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 5: // CREDENTIALS + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); + struct.credentials.read(iprot); + struct.setCredentialsIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 2: // PRINCIPAL + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.principal = iprot.readString(); + struct.setPrincipalIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 3: // PASSWORD + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.password = iprot.readBinary(); + struct.setPasswordIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - default: - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); } - iprot.readFieldEnd(); - } - iprot.readStructEnd(); + iprot.readStructEnd(); - // check for required fields of primitive type, which can't be checked in the validate method - struct.validate(); + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } finally { + iprot.decrementRecursionDepth(); + } } @Override @@ -11762,25 +12187,30 @@ public void write(org.apache.thrift.protocol.TProtocol prot, changeLocalUserPass @Override public void read(org.apache.thrift.protocol.TProtocol prot, changeLocalUserPassword_args struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; - java.util.BitSet incoming = iprot.readBitSet(4); - if (incoming.get(0)) { - struct.tinfo = new TInfo(); - struct.tinfo.read(iprot); - struct.setTinfoIsSet(true); - } - if (incoming.get(1)) { - struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); - struct.credentials.read(iprot); - struct.setCredentialsIsSet(true); - } - if (incoming.get(2)) { - struct.principal = iprot.readString(); - struct.setPrincipalIsSet(true); - } - if (incoming.get(3)) { - struct.password = iprot.readBinary(); - struct.setPasswordIsSet(true); + prot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(4); + if (incoming.get(0)) { + struct.tinfo = new TInfo(); + struct.tinfo.read(iprot); + struct.setTinfoIsSet(true); + } + if (incoming.get(1)) { + struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); + struct.credentials.read(iprot); + struct.setCredentialsIsSet(true); + } + if (incoming.get(2)) { + struct.principal = iprot.readString(); + struct.setPrincipalIsSet(true); + } + if (incoming.get(3)) { + struct.password = iprot.readBinary(); + struct.setPasswordIsSet(true); + } + } finally { + prot.decrementRecursionDepth(); } } } @@ -12086,33 +12516,38 @@ private static class changeLocalUserPassword_resultStandardScheme extends org.ap @Override public void read(org.apache.thrift.protocol.TProtocol iprot, changeLocalUserPassword_result struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TField schemeField; - iprot.readStructBegin(); - while (true) - { - schemeField = iprot.readFieldBegin(); - if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { - break; - } - switch (schemeField.id) { - case 1: // SEC - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.sec = new ThriftSecurityException(); - struct.sec.read(iprot); - struct.setSecIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } + iprot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; - default: - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + switch (schemeField.id) { + case 1: // SEC + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.sec = new ThriftSecurityException(); + struct.sec.read(iprot); + struct.setSecIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + default: + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); } - iprot.readFieldEnd(); - } - iprot.readStructEnd(); + iprot.readStructEnd(); - // check for required fields of primitive type, which can't be checked in the validate method - struct.validate(); + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } finally { + iprot.decrementRecursionDepth(); + } } @Override @@ -12155,12 +12590,17 @@ public void write(org.apache.thrift.protocol.TProtocol prot, changeLocalUserPass @Override public void read(org.apache.thrift.protocol.TProtocol prot, changeLocalUserPassword_result struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; - java.util.BitSet incoming = iprot.readBitSet(1); - if (incoming.get(0)) { - struct.sec = new ThriftSecurityException(); - struct.sec.read(iprot); - struct.setSecIsSet(true); + prot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(1); + if (incoming.get(0)) { + struct.sec = new ThriftSecurityException(); + struct.sec.read(iprot); + struct.setSecIsSet(true); + } + } finally { + prot.decrementRecursionDepth(); } } } @@ -12555,42 +12995,47 @@ private static class authenticate_argsStandardScheme extends org.apache.thrift.s @Override public void read(org.apache.thrift.protocol.TProtocol iprot, authenticate_args struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TField schemeField; - iprot.readStructBegin(); - while (true) - { - schemeField = iprot.readFieldBegin(); - if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { - break; - } - switch (schemeField.id) { - case 1: // TINFO - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.tinfo = new TInfo(); - struct.tinfo.read(iprot); - struct.setTinfoIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } + iprot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; - case 2: // CREDENTIALS - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); - struct.credentials.read(iprot); - struct.setCredentialsIsSet(true); - } else { + } + switch (schemeField.id) { + case 1: // TINFO + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.tinfo = new TInfo(); + struct.tinfo.read(iprot); + struct.setTinfoIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 2: // CREDENTIALS + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); + struct.credentials.read(iprot); + struct.setCredentialsIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - default: - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); } - iprot.readFieldEnd(); - } - iprot.readStructEnd(); + iprot.readStructEnd(); - // check for required fields of primitive type, which can't be checked in the validate method - struct.validate(); + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } finally { + iprot.decrementRecursionDepth(); + } } @Override @@ -12644,17 +13089,22 @@ public void write(org.apache.thrift.protocol.TProtocol prot, authenticate_args s @Override public void read(org.apache.thrift.protocol.TProtocol prot, authenticate_args struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; - java.util.BitSet incoming = iprot.readBitSet(2); - if (incoming.get(0)) { - struct.tinfo = new TInfo(); - struct.tinfo.read(iprot); - struct.setTinfoIsSet(true); - } - if (incoming.get(1)) { - struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); - struct.credentials.read(iprot); - struct.setCredentialsIsSet(true); + prot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(2); + if (incoming.get(0)) { + struct.tinfo = new TInfo(); + struct.tinfo.read(iprot); + struct.setTinfoIsSet(true); + } + if (incoming.get(1)) { + struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); + struct.credentials.read(iprot); + struct.setCredentialsIsSet(true); + } + } finally { + prot.decrementRecursionDepth(); } } } @@ -13039,41 +13489,46 @@ private static class authenticate_resultStandardScheme extends org.apache.thrift @Override public void read(org.apache.thrift.protocol.TProtocol iprot, authenticate_result struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TField schemeField; - iprot.readStructBegin(); - while (true) - { - schemeField = iprot.readFieldBegin(); - if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { - break; - } - switch (schemeField.id) { - case 0: // SUCCESS - if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) { - struct.success = iprot.readBool(); - struct.setSuccessIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } + iprot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; - case 1: // SEC - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.sec = new ThriftSecurityException(); - struct.sec.read(iprot); - struct.setSecIsSet(true); - } else { + } + switch (schemeField.id) { + case 0: // SUCCESS + if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) { + struct.success = iprot.readBool(); + struct.setSuccessIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 1: // SEC + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.sec = new ThriftSecurityException(); + struct.sec.read(iprot); + struct.setSecIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - default: - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); } - iprot.readFieldEnd(); - } - iprot.readStructEnd(); + iprot.readStructEnd(); - // check for required fields of primitive type, which can't be checked in the validate method - struct.validate(); + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } finally { + iprot.decrementRecursionDepth(); + } } @Override @@ -13127,16 +13582,21 @@ public void write(org.apache.thrift.protocol.TProtocol prot, authenticate_result @Override public void read(org.apache.thrift.protocol.TProtocol prot, authenticate_result struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; - java.util.BitSet incoming = iprot.readBitSet(2); - if (incoming.get(0)) { - struct.success = iprot.readBool(); - struct.setSuccessIsSet(true); - } - if (incoming.get(1)) { - struct.sec = new ThriftSecurityException(); - struct.sec.read(iprot); - struct.setSecIsSet(true); + prot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(2); + if (incoming.get(0)) { + struct.success = iprot.readBool(); + struct.setSuccessIsSet(true); + } + if (incoming.get(1)) { + struct.sec = new ThriftSecurityException(); + struct.sec.read(iprot); + struct.setSecIsSet(true); + } + } finally { + prot.decrementRecursionDepth(); } } } @@ -13616,51 +14076,56 @@ private static class authenticateUser_argsStandardScheme extends org.apache.thri @Override public void read(org.apache.thrift.protocol.TProtocol iprot, authenticateUser_args struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TField schemeField; - iprot.readStructBegin(); - while (true) - { - schemeField = iprot.readFieldBegin(); - if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { - break; - } - switch (schemeField.id) { - case 1: // TINFO - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.tinfo = new TInfo(); - struct.tinfo.read(iprot); - struct.setTinfoIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 2: // CREDENTIALS - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); - struct.credentials.read(iprot); - struct.setCredentialsIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } + iprot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; - case 3: // TO_AUTH - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.toAuth = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); - struct.toAuth.read(iprot); - struct.setToAuthIsSet(true); - } else { + } + switch (schemeField.id) { + case 1: // TINFO + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.tinfo = new TInfo(); + struct.tinfo.read(iprot); + struct.setTinfoIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 2: // CREDENTIALS + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); + struct.credentials.read(iprot); + struct.setCredentialsIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 3: // TO_AUTH + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.toAuth = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); + struct.toAuth.read(iprot); + struct.setToAuthIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - default: - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); } - iprot.readFieldEnd(); - } - iprot.readStructEnd(); + iprot.readStructEnd(); - // check for required fields of primitive type, which can't be checked in the validate method - struct.validate(); + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } finally { + iprot.decrementRecursionDepth(); + } } @Override @@ -13725,22 +14190,27 @@ public void write(org.apache.thrift.protocol.TProtocol prot, authenticateUser_ar @Override public void read(org.apache.thrift.protocol.TProtocol prot, authenticateUser_args struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; - java.util.BitSet incoming = iprot.readBitSet(3); - if (incoming.get(0)) { - struct.tinfo = new TInfo(); - struct.tinfo.read(iprot); - struct.setTinfoIsSet(true); - } - if (incoming.get(1)) { - struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); - struct.credentials.read(iprot); - struct.setCredentialsIsSet(true); - } - if (incoming.get(2)) { - struct.toAuth = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); - struct.toAuth.read(iprot); - struct.setToAuthIsSet(true); + prot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(3); + if (incoming.get(0)) { + struct.tinfo = new TInfo(); + struct.tinfo.read(iprot); + struct.setTinfoIsSet(true); + } + if (incoming.get(1)) { + struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); + struct.credentials.read(iprot); + struct.setCredentialsIsSet(true); + } + if (incoming.get(2)) { + struct.toAuth = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); + struct.toAuth.read(iprot); + struct.setToAuthIsSet(true); + } + } finally { + prot.decrementRecursionDepth(); } } } @@ -14125,41 +14595,46 @@ private static class authenticateUser_resultStandardScheme extends org.apache.th @Override public void read(org.apache.thrift.protocol.TProtocol iprot, authenticateUser_result struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TField schemeField; - iprot.readStructBegin(); - while (true) - { - schemeField = iprot.readFieldBegin(); - if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { - break; - } - switch (schemeField.id) { - case 0: // SUCCESS - if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) { - struct.success = iprot.readBool(); - struct.setSuccessIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } + iprot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; - case 1: // SEC - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.sec = new ThriftSecurityException(); - struct.sec.read(iprot); - struct.setSecIsSet(true); - } else { + } + switch (schemeField.id) { + case 0: // SUCCESS + if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) { + struct.success = iprot.readBool(); + struct.setSuccessIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 1: // SEC + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.sec = new ThriftSecurityException(); + struct.sec.read(iprot); + struct.setSecIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - default: - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); } - iprot.readFieldEnd(); - } - iprot.readStructEnd(); + iprot.readStructEnd(); - // check for required fields of primitive type, which can't be checked in the validate method - struct.validate(); + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } finally { + iprot.decrementRecursionDepth(); + } } @Override @@ -14213,16 +14688,21 @@ public void write(org.apache.thrift.protocol.TProtocol prot, authenticateUser_re @Override public void read(org.apache.thrift.protocol.TProtocol prot, authenticateUser_result struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; - java.util.BitSet incoming = iprot.readBitSet(2); - if (incoming.get(0)) { - struct.success = iprot.readBool(); - struct.setSuccessIsSet(true); - } - if (incoming.get(1)) { - struct.sec = new ThriftSecurityException(); - struct.sec.read(iprot); - struct.setSecIsSet(true); + prot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(2); + if (incoming.get(0)) { + struct.success = iprot.readBool(); + struct.setSuccessIsSet(true); + } + if (incoming.get(1)) { + struct.sec = new ThriftSecurityException(); + struct.sec.read(iprot); + struct.setSecIsSet(true); + } + } finally { + prot.decrementRecursionDepth(); } } } @@ -14799,68 +15279,73 @@ private static class changeAuthorizations_argsStandardScheme extends org.apache. @Override public void read(org.apache.thrift.protocol.TProtocol iprot, changeAuthorizations_args struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TField schemeField; - iprot.readStructBegin(); - while (true) - { - schemeField = iprot.readFieldBegin(); - if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { - break; - } - switch (schemeField.id) { - case 4: // TINFO - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.tinfo = new TInfo(); - struct.tinfo.read(iprot); - struct.setTinfoIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 5: // CREDENTIALS - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); - struct.credentials.read(iprot); - struct.setCredentialsIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 2: // PRINCIPAL - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.principal = iprot.readString(); - struct.setPrincipalIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } + iprot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; - case 3: // AUTHORIZATIONS - if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { - { - org.apache.thrift.protocol.TList _list52 = iprot.readListBegin(); - struct.authorizations = new java.util.ArrayList(_list52.size); - @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer _elem53; - for (int _i54 = 0; _i54 < _list52.size; ++_i54) + } + switch (schemeField.id) { + case 4: // TINFO + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.tinfo = new TInfo(); + struct.tinfo.read(iprot); + struct.setTinfoIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 5: // CREDENTIALS + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); + struct.credentials.read(iprot); + struct.setCredentialsIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 2: // PRINCIPAL + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.principal = iprot.readString(); + struct.setPrincipalIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 3: // AUTHORIZATIONS + if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - _elem53 = iprot.readBinary(); - struct.authorizations.add(_elem53); + org.apache.thrift.protocol.TList _list52 = iprot.readListBegin(); + struct.authorizations = new java.util.ArrayList(_list52.size); + @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer _elem53; + for (int _i54 = 0; _i54 < _list52.size; ++_i54) + { + _elem53 = iprot.readBinary(); + struct.authorizations.add(_elem53); + } + iprot.readListEnd(); } - iprot.readListEnd(); + struct.setAuthorizationsIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } - struct.setAuthorizationsIsSet(true); - } else { + break; + default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - default: - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); } - iprot.readFieldEnd(); - } - iprot.readStructEnd(); + iprot.readStructEnd(); - // check for required fields of primitive type, which can't be checked in the validate method - struct.validate(); + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } finally { + iprot.decrementRecursionDepth(); + } } @Override @@ -14949,34 +15434,39 @@ public void write(org.apache.thrift.protocol.TProtocol prot, changeAuthorization @Override public void read(org.apache.thrift.protocol.TProtocol prot, changeAuthorizations_args struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; - java.util.BitSet incoming = iprot.readBitSet(4); - if (incoming.get(0)) { - struct.tinfo = new TInfo(); - struct.tinfo.read(iprot); - struct.setTinfoIsSet(true); - } - if (incoming.get(1)) { - struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); - struct.credentials.read(iprot); - struct.setCredentialsIsSet(true); - } - if (incoming.get(2)) { - struct.principal = iprot.readString(); - struct.setPrincipalIsSet(true); - } - if (incoming.get(3)) { - { - org.apache.thrift.protocol.TList _list57 = iprot.readListBegin(org.apache.thrift.protocol.TType.STRING); - struct.authorizations = new java.util.ArrayList(_list57.size); - @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer _elem58; - for (int _i59 = 0; _i59 < _list57.size; ++_i59) + prot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(4); + if (incoming.get(0)) { + struct.tinfo = new TInfo(); + struct.tinfo.read(iprot); + struct.setTinfoIsSet(true); + } + if (incoming.get(1)) { + struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); + struct.credentials.read(iprot); + struct.setCredentialsIsSet(true); + } + if (incoming.get(2)) { + struct.principal = iprot.readString(); + struct.setPrincipalIsSet(true); + } + if (incoming.get(3)) { { - _elem58 = iprot.readBinary(); - struct.authorizations.add(_elem58); + org.apache.thrift.protocol.TList _list57 = iprot.readListBegin(org.apache.thrift.protocol.TType.STRING); + struct.authorizations = new java.util.ArrayList(_list57.size); + @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer _elem58; + for (int _i59 = 0; _i59 < _list57.size; ++_i59) + { + _elem58 = iprot.readBinary(); + struct.authorizations.add(_elem58); + } } + struct.setAuthorizationsIsSet(true); } - struct.setAuthorizationsIsSet(true); + } finally { + prot.decrementRecursionDepth(); } } } @@ -15282,33 +15772,38 @@ private static class changeAuthorizations_resultStandardScheme extends org.apach @Override public void read(org.apache.thrift.protocol.TProtocol iprot, changeAuthorizations_result struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TField schemeField; - iprot.readStructBegin(); - while (true) - { - schemeField = iprot.readFieldBegin(); - if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { - break; - } - switch (schemeField.id) { - case 1: // SEC - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.sec = new ThriftSecurityException(); - struct.sec.read(iprot); - struct.setSecIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } + iprot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; - default: - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + switch (schemeField.id) { + case 1: // SEC + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.sec = new ThriftSecurityException(); + struct.sec.read(iprot); + struct.setSecIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + default: + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); } - iprot.readFieldEnd(); - } - iprot.readStructEnd(); + iprot.readStructEnd(); - // check for required fields of primitive type, which can't be checked in the validate method - struct.validate(); + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } finally { + iprot.decrementRecursionDepth(); + } } @Override @@ -15351,12 +15846,17 @@ public void write(org.apache.thrift.protocol.TProtocol prot, changeAuthorization @Override public void read(org.apache.thrift.protocol.TProtocol prot, changeAuthorizations_result struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; - java.util.BitSet incoming = iprot.readBitSet(1); - if (incoming.get(0)) { - struct.sec = new ThriftSecurityException(); - struct.sec.read(iprot); - struct.setSecIsSet(true); + prot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(1); + if (incoming.get(0)) { + struct.sec = new ThriftSecurityException(); + struct.sec.read(iprot); + struct.setSecIsSet(true); + } + } finally { + prot.decrementRecursionDepth(); } } } @@ -15833,50 +16333,55 @@ private static class getUserAuthorizations_argsStandardScheme extends org.apache @Override public void read(org.apache.thrift.protocol.TProtocol iprot, getUserAuthorizations_args struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TField schemeField; - iprot.readStructBegin(); - while (true) - { - schemeField = iprot.readFieldBegin(); - if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { - break; - } - switch (schemeField.id) { - case 3: // TINFO - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.tinfo = new TInfo(); - struct.tinfo.read(iprot); - struct.setTinfoIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 4: // CREDENTIALS - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); - struct.credentials.read(iprot); - struct.setCredentialsIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } + iprot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; - case 2: // PRINCIPAL - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.principal = iprot.readString(); - struct.setPrincipalIsSet(true); - } else { + } + switch (schemeField.id) { + case 3: // TINFO + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.tinfo = new TInfo(); + struct.tinfo.read(iprot); + struct.setTinfoIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 4: // CREDENTIALS + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); + struct.credentials.read(iprot); + struct.setCredentialsIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 2: // PRINCIPAL + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.principal = iprot.readString(); + struct.setPrincipalIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - default: - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); } - iprot.readFieldEnd(); - } - iprot.readStructEnd(); + iprot.readStructEnd(); - // check for required fields of primitive type, which can't be checked in the validate method - struct.validate(); + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } finally { + iprot.decrementRecursionDepth(); + } } @Override @@ -15941,21 +16446,26 @@ public void write(org.apache.thrift.protocol.TProtocol prot, getUserAuthorizatio @Override public void read(org.apache.thrift.protocol.TProtocol prot, getUserAuthorizations_args struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; - java.util.BitSet incoming = iprot.readBitSet(3); - if (incoming.get(0)) { - struct.tinfo = new TInfo(); - struct.tinfo.read(iprot); - struct.setTinfoIsSet(true); - } - if (incoming.get(1)) { - struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); - struct.credentials.read(iprot); - struct.setCredentialsIsSet(true); - } - if (incoming.get(2)) { - struct.principal = iprot.readString(); - struct.setPrincipalIsSet(true); + prot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(3); + if (incoming.get(0)) { + struct.tinfo = new TInfo(); + struct.tinfo.read(iprot); + struct.setTinfoIsSet(true); + } + if (incoming.get(1)) { + struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); + struct.credentials.read(iprot); + struct.setCredentialsIsSet(true); + } + if (incoming.get(2)) { + struct.principal = iprot.readString(); + struct.setPrincipalIsSet(true); + } + } finally { + prot.decrementRecursionDepth(); } } } @@ -16361,51 +16871,56 @@ private static class getUserAuthorizations_resultStandardScheme extends org.apac @Override public void read(org.apache.thrift.protocol.TProtocol iprot, getUserAuthorizations_result struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TField schemeField; - iprot.readStructBegin(); - while (true) - { - schemeField = iprot.readFieldBegin(); - if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { - break; - } - switch (schemeField.id) { - case 0: // SUCCESS - if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { - { - org.apache.thrift.protocol.TList _list60 = iprot.readListBegin(); - struct.success = new java.util.ArrayList(_list60.size); - @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer _elem61; - for (int _i62 = 0; _i62 < _list60.size; ++_i62) + iprot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { + break; + } + switch (schemeField.id) { + case 0: // SUCCESS + if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - _elem61 = iprot.readBinary(); - struct.success.add(_elem61); + org.apache.thrift.protocol.TList _list60 = iprot.readListBegin(); + struct.success = new java.util.ArrayList(_list60.size); + @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer _elem61; + for (int _i62 = 0; _i62 < _list60.size; ++_i62) + { + _elem61 = iprot.readBinary(); + struct.success.add(_elem61); + } + iprot.readListEnd(); } - iprot.readListEnd(); + struct.setSuccessIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } - struct.setSuccessIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 1: // SEC - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.sec = new ThriftSecurityException(); - struct.sec.read(iprot); - struct.setSecIsSet(true); - } else { + break; + case 1: // SEC + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.sec = new ThriftSecurityException(); + struct.sec.read(iprot); + struct.setSecIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - default: - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); } - iprot.readFieldEnd(); - } - iprot.readStructEnd(); + iprot.readStructEnd(); - // check for required fields of primitive type, which can't be checked in the validate method - struct.validate(); + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } finally { + iprot.decrementRecursionDepth(); + } } @Override @@ -16472,25 +16987,30 @@ public void write(org.apache.thrift.protocol.TProtocol prot, getUserAuthorizatio @Override public void read(org.apache.thrift.protocol.TProtocol prot, getUserAuthorizations_result struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; - java.util.BitSet incoming = iprot.readBitSet(2); - if (incoming.get(0)) { - { - org.apache.thrift.protocol.TList _list65 = iprot.readListBegin(org.apache.thrift.protocol.TType.STRING); - struct.success = new java.util.ArrayList(_list65.size); - @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer _elem66; - for (int _i67 = 0; _i67 < _list65.size; ++_i67) + prot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(2); + if (incoming.get(0)) { { - _elem66 = iprot.readBinary(); - struct.success.add(_elem66); + org.apache.thrift.protocol.TList _list65 = iprot.readListBegin(org.apache.thrift.protocol.TType.STRING); + struct.success = new java.util.ArrayList(_list65.size); + @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer _elem66; + for (int _i67 = 0; _i67 < _list65.size; ++_i67) + { + _elem66 = iprot.readBinary(); + struct.success.add(_elem66); + } } + struct.setSuccessIsSet(true); } - struct.setSuccessIsSet(true); - } - if (incoming.get(1)) { - struct.sec = new ThriftSecurityException(); - struct.sec.read(iprot); - struct.setSecIsSet(true); + if (incoming.get(1)) { + struct.sec = new ThriftSecurityException(); + struct.sec.read(iprot); + struct.setSecIsSet(true); + } + } finally { + prot.decrementRecursionDepth(); } } } @@ -17046,58 +17566,63 @@ private static class hasSystemPermission_argsStandardScheme extends org.apache.t @Override public void read(org.apache.thrift.protocol.TProtocol iprot, hasSystemPermission_args struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TField schemeField; - iprot.readStructBegin(); - while (true) - { - schemeField = iprot.readFieldBegin(); - if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { - break; - } - switch (schemeField.id) { - case 4: // TINFO - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.tinfo = new TInfo(); - struct.tinfo.read(iprot); - struct.setTinfoIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 5: // CREDENTIALS - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); - struct.credentials.read(iprot); - struct.setCredentialsIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 2: // PRINCIPAL - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.principal = iprot.readString(); - struct.setPrincipalIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } + iprot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; - case 3: // SYS_PERM - if (schemeField.type == org.apache.thrift.protocol.TType.BYTE) { - struct.sysPerm = iprot.readByte(); - struct.setSysPermIsSet(true); - } else { + } + switch (schemeField.id) { + case 4: // TINFO + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.tinfo = new TInfo(); + struct.tinfo.read(iprot); + struct.setTinfoIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 5: // CREDENTIALS + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); + struct.credentials.read(iprot); + struct.setCredentialsIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 2: // PRINCIPAL + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.principal = iprot.readString(); + struct.setPrincipalIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 3: // SYS_PERM + if (schemeField.type == org.apache.thrift.protocol.TType.BYTE) { + struct.sysPerm = iprot.readByte(); + struct.setSysPermIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - default: - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); } - iprot.readFieldEnd(); - } - iprot.readStructEnd(); + iprot.readStructEnd(); - // check for required fields of primitive type, which can't be checked in the validate method - struct.validate(); + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } finally { + iprot.decrementRecursionDepth(); + } } @Override @@ -17171,25 +17696,30 @@ public void write(org.apache.thrift.protocol.TProtocol prot, hasSystemPermission @Override public void read(org.apache.thrift.protocol.TProtocol prot, hasSystemPermission_args struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; - java.util.BitSet incoming = iprot.readBitSet(4); - if (incoming.get(0)) { - struct.tinfo = new TInfo(); - struct.tinfo.read(iprot); - struct.setTinfoIsSet(true); - } - if (incoming.get(1)) { - struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); - struct.credentials.read(iprot); - struct.setCredentialsIsSet(true); - } - if (incoming.get(2)) { - struct.principal = iprot.readString(); - struct.setPrincipalIsSet(true); - } - if (incoming.get(3)) { - struct.sysPerm = iprot.readByte(); - struct.setSysPermIsSet(true); + prot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(4); + if (incoming.get(0)) { + struct.tinfo = new TInfo(); + struct.tinfo.read(iprot); + struct.setTinfoIsSet(true); + } + if (incoming.get(1)) { + struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); + struct.credentials.read(iprot); + struct.setCredentialsIsSet(true); + } + if (incoming.get(2)) { + struct.principal = iprot.readString(); + struct.setPrincipalIsSet(true); + } + if (incoming.get(3)) { + struct.sysPerm = iprot.readByte(); + struct.setSysPermIsSet(true); + } + } finally { + prot.decrementRecursionDepth(); } } } @@ -17574,41 +18104,46 @@ private static class hasSystemPermission_resultStandardScheme extends org.apache @Override public void read(org.apache.thrift.protocol.TProtocol iprot, hasSystemPermission_result struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TField schemeField; - iprot.readStructBegin(); - while (true) - { - schemeField = iprot.readFieldBegin(); - if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { - break; - } - switch (schemeField.id) { - case 0: // SUCCESS - if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) { - struct.success = iprot.readBool(); - struct.setSuccessIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } + iprot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; - case 1: // SEC - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.sec = new ThriftSecurityException(); - struct.sec.read(iprot); - struct.setSecIsSet(true); - } else { + } + switch (schemeField.id) { + case 0: // SUCCESS + if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) { + struct.success = iprot.readBool(); + struct.setSuccessIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 1: // SEC + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.sec = new ThriftSecurityException(); + struct.sec.read(iprot); + struct.setSecIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - default: - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); } - iprot.readFieldEnd(); - } - iprot.readStructEnd(); + iprot.readStructEnd(); - // check for required fields of primitive type, which can't be checked in the validate method - struct.validate(); + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } finally { + iprot.decrementRecursionDepth(); + } } @Override @@ -17662,16 +18197,21 @@ public void write(org.apache.thrift.protocol.TProtocol prot, hasSystemPermission @Override public void read(org.apache.thrift.protocol.TProtocol prot, hasSystemPermission_result struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; - java.util.BitSet incoming = iprot.readBitSet(2); - if (incoming.get(0)) { - struct.success = iprot.readBool(); - struct.setSuccessIsSet(true); - } - if (incoming.get(1)) { - struct.sec = new ThriftSecurityException(); - struct.sec.read(iprot); - struct.setSecIsSet(true); + prot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(2); + if (incoming.get(0)) { + struct.success = iprot.readBool(); + struct.setSuccessIsSet(true); + } + if (incoming.get(1)) { + struct.sec = new ThriftSecurityException(); + struct.sec.read(iprot); + struct.setSecIsSet(true); + } + } finally { + prot.decrementRecursionDepth(); } } } @@ -18309,66 +18849,71 @@ private static class hasTablePermission_argsStandardScheme extends org.apache.th @Override public void read(org.apache.thrift.protocol.TProtocol iprot, hasTablePermission_args struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TField schemeField; - iprot.readStructBegin(); - while (true) - { - schemeField = iprot.readFieldBegin(); - if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { - break; - } - switch (schemeField.id) { - case 5: // TINFO - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.tinfo = new TInfo(); - struct.tinfo.read(iprot); - struct.setTinfoIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 6: // CREDENTIALS - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); - struct.credentials.read(iprot); - struct.setCredentialsIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 2: // PRINCIPAL - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.principal = iprot.readString(); - struct.setPrincipalIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 3: // TABLE_NAME - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.tableName = iprot.readString(); - struct.setTableNameIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } + iprot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; - case 4: // TBL_PERM - if (schemeField.type == org.apache.thrift.protocol.TType.BYTE) { - struct.tblPerm = iprot.readByte(); - struct.setTblPermIsSet(true); - } else { + } + switch (schemeField.id) { + case 5: // TINFO + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.tinfo = new TInfo(); + struct.tinfo.read(iprot); + struct.setTinfoIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 6: // CREDENTIALS + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); + struct.credentials.read(iprot); + struct.setCredentialsIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 2: // PRINCIPAL + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.principal = iprot.readString(); + struct.setPrincipalIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 3: // TABLE_NAME + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.tableName = iprot.readString(); + struct.setTableNameIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 4: // TBL_PERM + if (schemeField.type == org.apache.thrift.protocol.TType.BYTE) { + struct.tblPerm = iprot.readByte(); + struct.setTblPermIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - default: - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); } - iprot.readFieldEnd(); - } - iprot.readStructEnd(); + iprot.readStructEnd(); - // check for required fields of primitive type, which can't be checked in the validate method - struct.validate(); + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } finally { + iprot.decrementRecursionDepth(); + } } @Override @@ -18453,29 +18998,34 @@ public void write(org.apache.thrift.protocol.TProtocol prot, hasTablePermission_ @Override public void read(org.apache.thrift.protocol.TProtocol prot, hasTablePermission_args struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; - java.util.BitSet incoming = iprot.readBitSet(5); - if (incoming.get(0)) { - struct.tinfo = new TInfo(); - struct.tinfo.read(iprot); - struct.setTinfoIsSet(true); - } - if (incoming.get(1)) { - struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); - struct.credentials.read(iprot); - struct.setCredentialsIsSet(true); - } - if (incoming.get(2)) { - struct.principal = iprot.readString(); - struct.setPrincipalIsSet(true); - } - if (incoming.get(3)) { - struct.tableName = iprot.readString(); - struct.setTableNameIsSet(true); - } - if (incoming.get(4)) { - struct.tblPerm = iprot.readByte(); - struct.setTblPermIsSet(true); + prot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(5); + if (incoming.get(0)) { + struct.tinfo = new TInfo(); + struct.tinfo.read(iprot); + struct.setTinfoIsSet(true); + } + if (incoming.get(1)) { + struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); + struct.credentials.read(iprot); + struct.setCredentialsIsSet(true); + } + if (incoming.get(2)) { + struct.principal = iprot.readString(); + struct.setPrincipalIsSet(true); + } + if (incoming.get(3)) { + struct.tableName = iprot.readString(); + struct.setTableNameIsSet(true); + } + if (incoming.get(4)) { + struct.tblPerm = iprot.readByte(); + struct.setTblPermIsSet(true); + } + } finally { + prot.decrementRecursionDepth(); } } } @@ -18942,50 +19492,55 @@ private static class hasTablePermission_resultStandardScheme extends org.apache. @Override public void read(org.apache.thrift.protocol.TProtocol iprot, hasTablePermission_result struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TField schemeField; - iprot.readStructBegin(); - while (true) - { - schemeField = iprot.readFieldBegin(); - if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { - break; - } - switch (schemeField.id) { - case 0: // SUCCESS - if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) { - struct.success = iprot.readBool(); - struct.setSuccessIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 1: // SEC - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.sec = new ThriftSecurityException(); - struct.sec.read(iprot); - struct.setSecIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } + iprot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; - case 2: // TOPE - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.tope = new ThriftTableOperationException(); - struct.tope.read(iprot); - struct.setTopeIsSet(true); - } else { + } + switch (schemeField.id) { + case 0: // SUCCESS + if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) { + struct.success = iprot.readBool(); + struct.setSuccessIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 1: // SEC + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.sec = new ThriftSecurityException(); + struct.sec.read(iprot); + struct.setSecIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 2: // TOPE + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.tope = new ThriftTableOperationException(); + struct.tope.read(iprot); + struct.setTopeIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - default: - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); } - iprot.readFieldEnd(); - } - iprot.readStructEnd(); + iprot.readStructEnd(); - // check for required fields of primitive type, which can't be checked in the validate method - struct.validate(); + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } finally { + iprot.decrementRecursionDepth(); + } } @Override @@ -19050,21 +19605,26 @@ public void write(org.apache.thrift.protocol.TProtocol prot, hasTablePermission_ @Override public void read(org.apache.thrift.protocol.TProtocol prot, hasTablePermission_result struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; - java.util.BitSet incoming = iprot.readBitSet(3); - if (incoming.get(0)) { - struct.success = iprot.readBool(); - struct.setSuccessIsSet(true); - } - if (incoming.get(1)) { - struct.sec = new ThriftSecurityException(); - struct.sec.read(iprot); - struct.setSecIsSet(true); - } - if (incoming.get(2)) { - struct.tope = new ThriftTableOperationException(); - struct.tope.read(iprot); - struct.setTopeIsSet(true); + prot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(3); + if (incoming.get(0)) { + struct.success = iprot.readBool(); + struct.setSuccessIsSet(true); + } + if (incoming.get(1)) { + struct.sec = new ThriftSecurityException(); + struct.sec.read(iprot); + struct.setSecIsSet(true); + } + if (incoming.get(2)) { + struct.tope = new ThriftTableOperationException(); + struct.tope.read(iprot); + struct.setTopeIsSet(true); + } + } finally { + prot.decrementRecursionDepth(); } } } @@ -19702,66 +20262,71 @@ private static class hasNamespacePermission_argsStandardScheme extends org.apach @Override public void read(org.apache.thrift.protocol.TProtocol iprot, hasNamespacePermission_args struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TField schemeField; - iprot.readStructBegin(); - while (true) - { - schemeField = iprot.readFieldBegin(); - if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { - break; - } - switch (schemeField.id) { - case 1: // TINFO - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.tinfo = new TInfo(); - struct.tinfo.read(iprot); - struct.setTinfoIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 2: // CREDENTIALS - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); - struct.credentials.read(iprot); - struct.setCredentialsIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 3: // PRINCIPAL - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.principal = iprot.readString(); - struct.setPrincipalIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 4: // NS - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.ns = iprot.readString(); - struct.setNsIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } + iprot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; - case 5: // TBL_NSPC_PERM - if (schemeField.type == org.apache.thrift.protocol.TType.BYTE) { - struct.tblNspcPerm = iprot.readByte(); - struct.setTblNspcPermIsSet(true); - } else { + } + switch (schemeField.id) { + case 1: // TINFO + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.tinfo = new TInfo(); + struct.tinfo.read(iprot); + struct.setTinfoIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 2: // CREDENTIALS + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); + struct.credentials.read(iprot); + struct.setCredentialsIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 3: // PRINCIPAL + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.principal = iprot.readString(); + struct.setPrincipalIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 4: // NS + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.ns = iprot.readString(); + struct.setNsIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 5: // TBL_NSPC_PERM + if (schemeField.type == org.apache.thrift.protocol.TType.BYTE) { + struct.tblNspcPerm = iprot.readByte(); + struct.setTblNspcPermIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - default: - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); } - iprot.readFieldEnd(); - } - iprot.readStructEnd(); + iprot.readStructEnd(); - // check for required fields of primitive type, which can't be checked in the validate method - struct.validate(); + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } finally { + iprot.decrementRecursionDepth(); + } } @Override @@ -19846,29 +20411,34 @@ public void write(org.apache.thrift.protocol.TProtocol prot, hasNamespacePermiss @Override public void read(org.apache.thrift.protocol.TProtocol prot, hasNamespacePermission_args struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; - java.util.BitSet incoming = iprot.readBitSet(5); - if (incoming.get(0)) { - struct.tinfo = new TInfo(); - struct.tinfo.read(iprot); - struct.setTinfoIsSet(true); - } - if (incoming.get(1)) { - struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); - struct.credentials.read(iprot); - struct.setCredentialsIsSet(true); - } - if (incoming.get(2)) { - struct.principal = iprot.readString(); - struct.setPrincipalIsSet(true); - } - if (incoming.get(3)) { - struct.ns = iprot.readString(); - struct.setNsIsSet(true); - } - if (incoming.get(4)) { - struct.tblNspcPerm = iprot.readByte(); - struct.setTblNspcPermIsSet(true); + prot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(5); + if (incoming.get(0)) { + struct.tinfo = new TInfo(); + struct.tinfo.read(iprot); + struct.setTinfoIsSet(true); + } + if (incoming.get(1)) { + struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); + struct.credentials.read(iprot); + struct.setCredentialsIsSet(true); + } + if (incoming.get(2)) { + struct.principal = iprot.readString(); + struct.setPrincipalIsSet(true); + } + if (incoming.get(3)) { + struct.ns = iprot.readString(); + struct.setNsIsSet(true); + } + if (incoming.get(4)) { + struct.tblNspcPerm = iprot.readByte(); + struct.setTblNspcPermIsSet(true); + } + } finally { + prot.decrementRecursionDepth(); } } } @@ -20335,50 +20905,55 @@ private static class hasNamespacePermission_resultStandardScheme extends org.apa @Override public void read(org.apache.thrift.protocol.TProtocol iprot, hasNamespacePermission_result struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TField schemeField; - iprot.readStructBegin(); - while (true) - { - schemeField = iprot.readFieldBegin(); - if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { - break; - } - switch (schemeField.id) { - case 0: // SUCCESS - if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) { - struct.success = iprot.readBool(); - struct.setSuccessIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 1: // SEC - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.sec = new ThriftSecurityException(); - struct.sec.read(iprot); - struct.setSecIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } + iprot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; - case 2: // TOPE - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.tope = new ThriftTableOperationException(); - struct.tope.read(iprot); - struct.setTopeIsSet(true); - } else { + } + switch (schemeField.id) { + case 0: // SUCCESS + if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) { + struct.success = iprot.readBool(); + struct.setSuccessIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 1: // SEC + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.sec = new ThriftSecurityException(); + struct.sec.read(iprot); + struct.setSecIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 2: // TOPE + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.tope = new ThriftTableOperationException(); + struct.tope.read(iprot); + struct.setTopeIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - default: - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); } - iprot.readFieldEnd(); - } - iprot.readStructEnd(); + iprot.readStructEnd(); - // check for required fields of primitive type, which can't be checked in the validate method - struct.validate(); + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } finally { + iprot.decrementRecursionDepth(); + } } @Override @@ -20443,21 +21018,26 @@ public void write(org.apache.thrift.protocol.TProtocol prot, hasNamespacePermiss @Override public void read(org.apache.thrift.protocol.TProtocol prot, hasNamespacePermission_result struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; - java.util.BitSet incoming = iprot.readBitSet(3); - if (incoming.get(0)) { - struct.success = iprot.readBool(); - struct.setSuccessIsSet(true); - } - if (incoming.get(1)) { - struct.sec = new ThriftSecurityException(); - struct.sec.read(iprot); - struct.setSecIsSet(true); - } - if (incoming.get(2)) { - struct.tope = new ThriftTableOperationException(); - struct.tope.read(iprot); - struct.setTopeIsSet(true); + prot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(3); + if (incoming.get(0)) { + struct.success = iprot.readBool(); + struct.setSuccessIsSet(true); + } + if (incoming.get(1)) { + struct.sec = new ThriftSecurityException(); + struct.sec.read(iprot); + struct.setSecIsSet(true); + } + if (incoming.get(2)) { + struct.tope = new ThriftTableOperationException(); + struct.tope.read(iprot); + struct.setTopeIsSet(true); + } + } finally { + prot.decrementRecursionDepth(); } } } @@ -21013,58 +21593,63 @@ private static class grantSystemPermission_argsStandardScheme extends org.apache @Override public void read(org.apache.thrift.protocol.TProtocol iprot, grantSystemPermission_args struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TField schemeField; - iprot.readStructBegin(); - while (true) - { - schemeField = iprot.readFieldBegin(); - if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { - break; - } - switch (schemeField.id) { - case 4: // TINFO - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.tinfo = new TInfo(); - struct.tinfo.read(iprot); - struct.setTinfoIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 5: // CREDENTIALS - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); - struct.credentials.read(iprot); - struct.setCredentialsIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 2: // PRINCIPAL - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.principal = iprot.readString(); - struct.setPrincipalIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } + iprot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; - case 3: // PERMISSION - if (schemeField.type == org.apache.thrift.protocol.TType.BYTE) { - struct.permission = iprot.readByte(); - struct.setPermissionIsSet(true); - } else { + } + switch (schemeField.id) { + case 4: // TINFO + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.tinfo = new TInfo(); + struct.tinfo.read(iprot); + struct.setTinfoIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 5: // CREDENTIALS + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); + struct.credentials.read(iprot); + struct.setCredentialsIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 2: // PRINCIPAL + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.principal = iprot.readString(); + struct.setPrincipalIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 3: // PERMISSION + if (schemeField.type == org.apache.thrift.protocol.TType.BYTE) { + struct.permission = iprot.readByte(); + struct.setPermissionIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - default: - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); } - iprot.readFieldEnd(); - } - iprot.readStructEnd(); + iprot.readStructEnd(); - // check for required fields of primitive type, which can't be checked in the validate method - struct.validate(); + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } finally { + iprot.decrementRecursionDepth(); + } } @Override @@ -21138,25 +21723,30 @@ public void write(org.apache.thrift.protocol.TProtocol prot, grantSystemPermissi @Override public void read(org.apache.thrift.protocol.TProtocol prot, grantSystemPermission_args struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; - java.util.BitSet incoming = iprot.readBitSet(4); - if (incoming.get(0)) { - struct.tinfo = new TInfo(); - struct.tinfo.read(iprot); - struct.setTinfoIsSet(true); - } - if (incoming.get(1)) { - struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); - struct.credentials.read(iprot); - struct.setCredentialsIsSet(true); - } - if (incoming.get(2)) { - struct.principal = iprot.readString(); - struct.setPrincipalIsSet(true); - } - if (incoming.get(3)) { - struct.permission = iprot.readByte(); - struct.setPermissionIsSet(true); + prot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(4); + if (incoming.get(0)) { + struct.tinfo = new TInfo(); + struct.tinfo.read(iprot); + struct.setTinfoIsSet(true); + } + if (incoming.get(1)) { + struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); + struct.credentials.read(iprot); + struct.setCredentialsIsSet(true); + } + if (incoming.get(2)) { + struct.principal = iprot.readString(); + struct.setPrincipalIsSet(true); + } + if (incoming.get(3)) { + struct.permission = iprot.readByte(); + struct.setPermissionIsSet(true); + } + } finally { + prot.decrementRecursionDepth(); } } } @@ -21462,33 +22052,38 @@ private static class grantSystemPermission_resultStandardScheme extends org.apac @Override public void read(org.apache.thrift.protocol.TProtocol iprot, grantSystemPermission_result struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TField schemeField; - iprot.readStructBegin(); - while (true) - { - schemeField = iprot.readFieldBegin(); - if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { - break; - } - switch (schemeField.id) { - case 1: // SEC - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.sec = new ThriftSecurityException(); - struct.sec.read(iprot); - struct.setSecIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } + iprot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; - default: - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + switch (schemeField.id) { + case 1: // SEC + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.sec = new ThriftSecurityException(); + struct.sec.read(iprot); + struct.setSecIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + default: + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); } - iprot.readFieldEnd(); - } - iprot.readStructEnd(); + iprot.readStructEnd(); - // check for required fields of primitive type, which can't be checked in the validate method - struct.validate(); + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } finally { + iprot.decrementRecursionDepth(); + } } @Override @@ -21531,12 +22126,17 @@ public void write(org.apache.thrift.protocol.TProtocol prot, grantSystemPermissi @Override public void read(org.apache.thrift.protocol.TProtocol prot, grantSystemPermission_result struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; - java.util.BitSet incoming = iprot.readBitSet(1); - if (incoming.get(0)) { - struct.sec = new ThriftSecurityException(); - struct.sec.read(iprot); - struct.setSecIsSet(true); + prot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(1); + if (incoming.get(0)) { + struct.sec = new ThriftSecurityException(); + struct.sec.read(iprot); + struct.setSecIsSet(true); + } + } finally { + prot.decrementRecursionDepth(); } } } @@ -22092,58 +22692,63 @@ private static class revokeSystemPermission_argsStandardScheme extends org.apach @Override public void read(org.apache.thrift.protocol.TProtocol iprot, revokeSystemPermission_args struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TField schemeField; - iprot.readStructBegin(); - while (true) - { - schemeField = iprot.readFieldBegin(); - if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { - break; - } - switch (schemeField.id) { - case 4: // TINFO - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.tinfo = new TInfo(); - struct.tinfo.read(iprot); - struct.setTinfoIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 5: // CREDENTIALS - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); - struct.credentials.read(iprot); - struct.setCredentialsIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 2: // PRINCIPAL - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.principal = iprot.readString(); - struct.setPrincipalIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } + iprot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; - case 3: // PERMISSION - if (schemeField.type == org.apache.thrift.protocol.TType.BYTE) { - struct.permission = iprot.readByte(); - struct.setPermissionIsSet(true); - } else { + } + switch (schemeField.id) { + case 4: // TINFO + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.tinfo = new TInfo(); + struct.tinfo.read(iprot); + struct.setTinfoIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 5: // CREDENTIALS + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); + struct.credentials.read(iprot); + struct.setCredentialsIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 2: // PRINCIPAL + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.principal = iprot.readString(); + struct.setPrincipalIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 3: // PERMISSION + if (schemeField.type == org.apache.thrift.protocol.TType.BYTE) { + struct.permission = iprot.readByte(); + struct.setPermissionIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - default: - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); } - iprot.readFieldEnd(); - } - iprot.readStructEnd(); + iprot.readStructEnd(); - // check for required fields of primitive type, which can't be checked in the validate method - struct.validate(); + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } finally { + iprot.decrementRecursionDepth(); + } } @Override @@ -22217,25 +22822,30 @@ public void write(org.apache.thrift.protocol.TProtocol prot, revokeSystemPermiss @Override public void read(org.apache.thrift.protocol.TProtocol prot, revokeSystemPermission_args struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; - java.util.BitSet incoming = iprot.readBitSet(4); - if (incoming.get(0)) { - struct.tinfo = new TInfo(); - struct.tinfo.read(iprot); - struct.setTinfoIsSet(true); - } - if (incoming.get(1)) { - struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); - struct.credentials.read(iprot); - struct.setCredentialsIsSet(true); - } - if (incoming.get(2)) { - struct.principal = iprot.readString(); - struct.setPrincipalIsSet(true); - } - if (incoming.get(3)) { - struct.permission = iprot.readByte(); - struct.setPermissionIsSet(true); + prot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(4); + if (incoming.get(0)) { + struct.tinfo = new TInfo(); + struct.tinfo.read(iprot); + struct.setTinfoIsSet(true); + } + if (incoming.get(1)) { + struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); + struct.credentials.read(iprot); + struct.setCredentialsIsSet(true); + } + if (incoming.get(2)) { + struct.principal = iprot.readString(); + struct.setPrincipalIsSet(true); + } + if (incoming.get(3)) { + struct.permission = iprot.readByte(); + struct.setPermissionIsSet(true); + } + } finally { + prot.decrementRecursionDepth(); } } } @@ -22541,33 +23151,38 @@ private static class revokeSystemPermission_resultStandardScheme extends org.apa @Override public void read(org.apache.thrift.protocol.TProtocol iprot, revokeSystemPermission_result struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TField schemeField; - iprot.readStructBegin(); - while (true) - { - schemeField = iprot.readFieldBegin(); - if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { - break; - } - switch (schemeField.id) { - case 1: // SEC - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.sec = new ThriftSecurityException(); - struct.sec.read(iprot); - struct.setSecIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } + iprot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; - default: - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + switch (schemeField.id) { + case 1: // SEC + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.sec = new ThriftSecurityException(); + struct.sec.read(iprot); + struct.setSecIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + default: + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); } - iprot.readFieldEnd(); - } - iprot.readStructEnd(); + iprot.readStructEnd(); - // check for required fields of primitive type, which can't be checked in the validate method - struct.validate(); + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } finally { + iprot.decrementRecursionDepth(); + } } @Override @@ -22610,12 +23225,17 @@ public void write(org.apache.thrift.protocol.TProtocol prot, revokeSystemPermiss @Override public void read(org.apache.thrift.protocol.TProtocol prot, revokeSystemPermission_result struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; - java.util.BitSet incoming = iprot.readBitSet(1); - if (incoming.get(0)) { - struct.sec = new ThriftSecurityException(); - struct.sec.read(iprot); - struct.setSecIsSet(true); + prot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(1); + if (incoming.get(0)) { + struct.sec = new ThriftSecurityException(); + struct.sec.read(iprot); + struct.setSecIsSet(true); + } + } finally { + prot.decrementRecursionDepth(); } } } @@ -23253,66 +23873,71 @@ private static class grantTablePermission_argsStandardScheme extends org.apache. @Override public void read(org.apache.thrift.protocol.TProtocol iprot, grantTablePermission_args struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TField schemeField; - iprot.readStructBegin(); - while (true) - { - schemeField = iprot.readFieldBegin(); - if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { - break; - } - switch (schemeField.id) { - case 5: // TINFO - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.tinfo = new TInfo(); - struct.tinfo.read(iprot); - struct.setTinfoIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 6: // CREDENTIALS - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); - struct.credentials.read(iprot); - struct.setCredentialsIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 2: // PRINCIPAL - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.principal = iprot.readString(); - struct.setPrincipalIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 3: // TABLE_NAME - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.tableName = iprot.readString(); - struct.setTableNameIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } + iprot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; - case 4: // PERMISSION - if (schemeField.type == org.apache.thrift.protocol.TType.BYTE) { - struct.permission = iprot.readByte(); - struct.setPermissionIsSet(true); - } else { + } + switch (schemeField.id) { + case 5: // TINFO + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.tinfo = new TInfo(); + struct.tinfo.read(iprot); + struct.setTinfoIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 6: // CREDENTIALS + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); + struct.credentials.read(iprot); + struct.setCredentialsIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 2: // PRINCIPAL + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.principal = iprot.readString(); + struct.setPrincipalIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 3: // TABLE_NAME + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.tableName = iprot.readString(); + struct.setTableNameIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 4: // PERMISSION + if (schemeField.type == org.apache.thrift.protocol.TType.BYTE) { + struct.permission = iprot.readByte(); + struct.setPermissionIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - default: - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); } - iprot.readFieldEnd(); - } - iprot.readStructEnd(); + iprot.readStructEnd(); - // check for required fields of primitive type, which can't be checked in the validate method - struct.validate(); + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } finally { + iprot.decrementRecursionDepth(); + } } @Override @@ -23397,29 +24022,34 @@ public void write(org.apache.thrift.protocol.TProtocol prot, grantTablePermissio @Override public void read(org.apache.thrift.protocol.TProtocol prot, grantTablePermission_args struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; - java.util.BitSet incoming = iprot.readBitSet(5); - if (incoming.get(0)) { - struct.tinfo = new TInfo(); - struct.tinfo.read(iprot); - struct.setTinfoIsSet(true); - } - if (incoming.get(1)) { - struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); - struct.credentials.read(iprot); - struct.setCredentialsIsSet(true); - } - if (incoming.get(2)) { - struct.principal = iprot.readString(); - struct.setPrincipalIsSet(true); - } - if (incoming.get(3)) { - struct.tableName = iprot.readString(); - struct.setTableNameIsSet(true); - } - if (incoming.get(4)) { - struct.permission = iprot.readByte(); - struct.setPermissionIsSet(true); + prot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(5); + if (incoming.get(0)) { + struct.tinfo = new TInfo(); + struct.tinfo.read(iprot); + struct.setTinfoIsSet(true); + } + if (incoming.get(1)) { + struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); + struct.credentials.read(iprot); + struct.setCredentialsIsSet(true); + } + if (incoming.get(2)) { + struct.principal = iprot.readString(); + struct.setPrincipalIsSet(true); + } + if (incoming.get(3)) { + struct.tableName = iprot.readString(); + struct.setTableNameIsSet(true); + } + if (incoming.get(4)) { + struct.permission = iprot.readByte(); + struct.setPermissionIsSet(true); + } + } finally { + prot.decrementRecursionDepth(); } } } @@ -23807,42 +24437,47 @@ private static class grantTablePermission_resultStandardScheme extends org.apach @Override public void read(org.apache.thrift.protocol.TProtocol iprot, grantTablePermission_result struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TField schemeField; - iprot.readStructBegin(); - while (true) - { - schemeField = iprot.readFieldBegin(); - if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { - break; - } - switch (schemeField.id) { - case 1: // SEC - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.sec = new ThriftSecurityException(); - struct.sec.read(iprot); - struct.setSecIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } + iprot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; - case 2: // TOPE - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.tope = new ThriftTableOperationException(); - struct.tope.read(iprot); - struct.setTopeIsSet(true); - } else { + } + switch (schemeField.id) { + case 1: // SEC + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.sec = new ThriftSecurityException(); + struct.sec.read(iprot); + struct.setSecIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 2: // TOPE + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.tope = new ThriftTableOperationException(); + struct.tope.read(iprot); + struct.setTopeIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - default: - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); } - iprot.readFieldEnd(); - } - iprot.readStructEnd(); + iprot.readStructEnd(); - // check for required fields of primitive type, which can't be checked in the validate method - struct.validate(); + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } finally { + iprot.decrementRecursionDepth(); + } } @Override @@ -23896,17 +24531,22 @@ public void write(org.apache.thrift.protocol.TProtocol prot, grantTablePermissio @Override public void read(org.apache.thrift.protocol.TProtocol prot, grantTablePermission_result struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; - java.util.BitSet incoming = iprot.readBitSet(2); - if (incoming.get(0)) { - struct.sec = new ThriftSecurityException(); - struct.sec.read(iprot); - struct.setSecIsSet(true); - } - if (incoming.get(1)) { - struct.tope = new ThriftTableOperationException(); - struct.tope.read(iprot); - struct.setTopeIsSet(true); + prot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(2); + if (incoming.get(0)) { + struct.sec = new ThriftSecurityException(); + struct.sec.read(iprot); + struct.setSecIsSet(true); + } + if (incoming.get(1)) { + struct.tope = new ThriftTableOperationException(); + struct.tope.read(iprot); + struct.setTopeIsSet(true); + } + } finally { + prot.decrementRecursionDepth(); } } } @@ -24544,66 +25184,71 @@ private static class revokeTablePermission_argsStandardScheme extends org.apache @Override public void read(org.apache.thrift.protocol.TProtocol iprot, revokeTablePermission_args struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TField schemeField; - iprot.readStructBegin(); - while (true) - { - schemeField = iprot.readFieldBegin(); - if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { - break; - } - switch (schemeField.id) { - case 5: // TINFO - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.tinfo = new TInfo(); - struct.tinfo.read(iprot); - struct.setTinfoIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 6: // CREDENTIALS - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); - struct.credentials.read(iprot); - struct.setCredentialsIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 2: // PRINCIPAL - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.principal = iprot.readString(); - struct.setPrincipalIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 3: // TABLE_NAME - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.tableName = iprot.readString(); - struct.setTableNameIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } + iprot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; - case 4: // PERMISSION - if (schemeField.type == org.apache.thrift.protocol.TType.BYTE) { - struct.permission = iprot.readByte(); - struct.setPermissionIsSet(true); - } else { + } + switch (schemeField.id) { + case 5: // TINFO + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.tinfo = new TInfo(); + struct.tinfo.read(iprot); + struct.setTinfoIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 6: // CREDENTIALS + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); + struct.credentials.read(iprot); + struct.setCredentialsIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 2: // PRINCIPAL + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.principal = iprot.readString(); + struct.setPrincipalIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 3: // TABLE_NAME + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.tableName = iprot.readString(); + struct.setTableNameIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 4: // PERMISSION + if (schemeField.type == org.apache.thrift.protocol.TType.BYTE) { + struct.permission = iprot.readByte(); + struct.setPermissionIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - default: - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); } - iprot.readFieldEnd(); - } - iprot.readStructEnd(); + iprot.readStructEnd(); - // check for required fields of primitive type, which can't be checked in the validate method - struct.validate(); + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } finally { + iprot.decrementRecursionDepth(); + } } @Override @@ -24688,29 +25333,34 @@ public void write(org.apache.thrift.protocol.TProtocol prot, revokeTablePermissi @Override public void read(org.apache.thrift.protocol.TProtocol prot, revokeTablePermission_args struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; - java.util.BitSet incoming = iprot.readBitSet(5); - if (incoming.get(0)) { - struct.tinfo = new TInfo(); - struct.tinfo.read(iprot); - struct.setTinfoIsSet(true); - } - if (incoming.get(1)) { - struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); - struct.credentials.read(iprot); - struct.setCredentialsIsSet(true); - } - if (incoming.get(2)) { - struct.principal = iprot.readString(); - struct.setPrincipalIsSet(true); - } - if (incoming.get(3)) { - struct.tableName = iprot.readString(); - struct.setTableNameIsSet(true); - } - if (incoming.get(4)) { - struct.permission = iprot.readByte(); - struct.setPermissionIsSet(true); + prot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(5); + if (incoming.get(0)) { + struct.tinfo = new TInfo(); + struct.tinfo.read(iprot); + struct.setTinfoIsSet(true); + } + if (incoming.get(1)) { + struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); + struct.credentials.read(iprot); + struct.setCredentialsIsSet(true); + } + if (incoming.get(2)) { + struct.principal = iprot.readString(); + struct.setPrincipalIsSet(true); + } + if (incoming.get(3)) { + struct.tableName = iprot.readString(); + struct.setTableNameIsSet(true); + } + if (incoming.get(4)) { + struct.permission = iprot.readByte(); + struct.setPermissionIsSet(true); + } + } finally { + prot.decrementRecursionDepth(); } } } @@ -25098,42 +25748,47 @@ private static class revokeTablePermission_resultStandardScheme extends org.apac @Override public void read(org.apache.thrift.protocol.TProtocol iprot, revokeTablePermission_result struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TField schemeField; - iprot.readStructBegin(); - while (true) - { - schemeField = iprot.readFieldBegin(); - if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { - break; - } - switch (schemeField.id) { - case 1: // SEC - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.sec = new ThriftSecurityException(); - struct.sec.read(iprot); - struct.setSecIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } + iprot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; - case 2: // TOPE - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.tope = new ThriftTableOperationException(); - struct.tope.read(iprot); - struct.setTopeIsSet(true); - } else { + } + switch (schemeField.id) { + case 1: // SEC + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.sec = new ThriftSecurityException(); + struct.sec.read(iprot); + struct.setSecIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 2: // TOPE + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.tope = new ThriftTableOperationException(); + struct.tope.read(iprot); + struct.setTopeIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - default: - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); } - iprot.readFieldEnd(); - } - iprot.readStructEnd(); + iprot.readStructEnd(); - // check for required fields of primitive type, which can't be checked in the validate method - struct.validate(); + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } finally { + iprot.decrementRecursionDepth(); + } } @Override @@ -25187,17 +25842,22 @@ public void write(org.apache.thrift.protocol.TProtocol prot, revokeTablePermissi @Override public void read(org.apache.thrift.protocol.TProtocol prot, revokeTablePermission_result struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; - java.util.BitSet incoming = iprot.readBitSet(2); - if (incoming.get(0)) { - struct.sec = new ThriftSecurityException(); - struct.sec.read(iprot); - struct.setSecIsSet(true); - } - if (incoming.get(1)) { - struct.tope = new ThriftTableOperationException(); - struct.tope.read(iprot); - struct.setTopeIsSet(true); + prot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(2); + if (incoming.get(0)) { + struct.sec = new ThriftSecurityException(); + struct.sec.read(iprot); + struct.setSecIsSet(true); + } + if (incoming.get(1)) { + struct.tope = new ThriftTableOperationException(); + struct.tope.read(iprot); + struct.setTopeIsSet(true); + } + } finally { + prot.decrementRecursionDepth(); } } } @@ -25835,66 +26495,71 @@ private static class grantNamespacePermission_argsStandardScheme extends org.apa @Override public void read(org.apache.thrift.protocol.TProtocol iprot, grantNamespacePermission_args struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TField schemeField; - iprot.readStructBegin(); - while (true) - { - schemeField = iprot.readFieldBegin(); - if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { - break; - } - switch (schemeField.id) { - case 1: // TINFO - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.tinfo = new TInfo(); - struct.tinfo.read(iprot); - struct.setTinfoIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 2: // CREDENTIALS - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); - struct.credentials.read(iprot); - struct.setCredentialsIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 3: // PRINCIPAL - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.principal = iprot.readString(); - struct.setPrincipalIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 4: // NS - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.ns = iprot.readString(); - struct.setNsIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } + iprot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; - case 5: // PERMISSION - if (schemeField.type == org.apache.thrift.protocol.TType.BYTE) { - struct.permission = iprot.readByte(); - struct.setPermissionIsSet(true); - } else { + } + switch (schemeField.id) { + case 1: // TINFO + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.tinfo = new TInfo(); + struct.tinfo.read(iprot); + struct.setTinfoIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 2: // CREDENTIALS + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); + struct.credentials.read(iprot); + struct.setCredentialsIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 3: // PRINCIPAL + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.principal = iprot.readString(); + struct.setPrincipalIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 4: // NS + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.ns = iprot.readString(); + struct.setNsIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 5: // PERMISSION + if (schemeField.type == org.apache.thrift.protocol.TType.BYTE) { + struct.permission = iprot.readByte(); + struct.setPermissionIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - default: - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); } - iprot.readFieldEnd(); - } - iprot.readStructEnd(); + iprot.readStructEnd(); - // check for required fields of primitive type, which can't be checked in the validate method - struct.validate(); + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } finally { + iprot.decrementRecursionDepth(); + } } @Override @@ -25979,29 +26644,34 @@ public void write(org.apache.thrift.protocol.TProtocol prot, grantNamespacePermi @Override public void read(org.apache.thrift.protocol.TProtocol prot, grantNamespacePermission_args struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; - java.util.BitSet incoming = iprot.readBitSet(5); - if (incoming.get(0)) { - struct.tinfo = new TInfo(); - struct.tinfo.read(iprot); - struct.setTinfoIsSet(true); - } - if (incoming.get(1)) { - struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); - struct.credentials.read(iprot); - struct.setCredentialsIsSet(true); - } - if (incoming.get(2)) { - struct.principal = iprot.readString(); - struct.setPrincipalIsSet(true); - } - if (incoming.get(3)) { - struct.ns = iprot.readString(); - struct.setNsIsSet(true); - } - if (incoming.get(4)) { - struct.permission = iprot.readByte(); - struct.setPermissionIsSet(true); + prot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(5); + if (incoming.get(0)) { + struct.tinfo = new TInfo(); + struct.tinfo.read(iprot); + struct.setTinfoIsSet(true); + } + if (incoming.get(1)) { + struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); + struct.credentials.read(iprot); + struct.setCredentialsIsSet(true); + } + if (incoming.get(2)) { + struct.principal = iprot.readString(); + struct.setPrincipalIsSet(true); + } + if (incoming.get(3)) { + struct.ns = iprot.readString(); + struct.setNsIsSet(true); + } + if (incoming.get(4)) { + struct.permission = iprot.readByte(); + struct.setPermissionIsSet(true); + } + } finally { + prot.decrementRecursionDepth(); } } } @@ -26389,42 +27059,47 @@ private static class grantNamespacePermission_resultStandardScheme extends org.a @Override public void read(org.apache.thrift.protocol.TProtocol iprot, grantNamespacePermission_result struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TField schemeField; - iprot.readStructBegin(); - while (true) - { - schemeField = iprot.readFieldBegin(); - if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { - break; - } - switch (schemeField.id) { - case 1: // SEC - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.sec = new ThriftSecurityException(); - struct.sec.read(iprot); - struct.setSecIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } + iprot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; - case 2: // TOPE - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.tope = new ThriftTableOperationException(); - struct.tope.read(iprot); - struct.setTopeIsSet(true); - } else { + } + switch (schemeField.id) { + case 1: // SEC + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.sec = new ThriftSecurityException(); + struct.sec.read(iprot); + struct.setSecIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 2: // TOPE + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.tope = new ThriftTableOperationException(); + struct.tope.read(iprot); + struct.setTopeIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - default: - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); } - iprot.readFieldEnd(); - } - iprot.readStructEnd(); + iprot.readStructEnd(); - // check for required fields of primitive type, which can't be checked in the validate method - struct.validate(); + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } finally { + iprot.decrementRecursionDepth(); + } } @Override @@ -26478,17 +27153,22 @@ public void write(org.apache.thrift.protocol.TProtocol prot, grantNamespacePermi @Override public void read(org.apache.thrift.protocol.TProtocol prot, grantNamespacePermission_result struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; - java.util.BitSet incoming = iprot.readBitSet(2); - if (incoming.get(0)) { - struct.sec = new ThriftSecurityException(); - struct.sec.read(iprot); - struct.setSecIsSet(true); - } - if (incoming.get(1)) { - struct.tope = new ThriftTableOperationException(); - struct.tope.read(iprot); - struct.setTopeIsSet(true); + prot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(2); + if (incoming.get(0)) { + struct.sec = new ThriftSecurityException(); + struct.sec.read(iprot); + struct.setSecIsSet(true); + } + if (incoming.get(1)) { + struct.tope = new ThriftTableOperationException(); + struct.tope.read(iprot); + struct.setTopeIsSet(true); + } + } finally { + prot.decrementRecursionDepth(); } } } @@ -27126,66 +27806,71 @@ private static class revokeNamespacePermission_argsStandardScheme extends org.ap @Override public void read(org.apache.thrift.protocol.TProtocol iprot, revokeNamespacePermission_args struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TField schemeField; - iprot.readStructBegin(); - while (true) - { - schemeField = iprot.readFieldBegin(); - if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { - break; - } - switch (schemeField.id) { - case 1: // TINFO - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.tinfo = new TInfo(); - struct.tinfo.read(iprot); - struct.setTinfoIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 2: // CREDENTIALS - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); - struct.credentials.read(iprot); - struct.setCredentialsIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 3: // PRINCIPAL - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.principal = iprot.readString(); - struct.setPrincipalIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 4: // NS - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.ns = iprot.readString(); - struct.setNsIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } + iprot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; - case 5: // PERMISSION - if (schemeField.type == org.apache.thrift.protocol.TType.BYTE) { - struct.permission = iprot.readByte(); - struct.setPermissionIsSet(true); - } else { + } + switch (schemeField.id) { + case 1: // TINFO + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.tinfo = new TInfo(); + struct.tinfo.read(iprot); + struct.setTinfoIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 2: // CREDENTIALS + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); + struct.credentials.read(iprot); + struct.setCredentialsIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 3: // PRINCIPAL + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.principal = iprot.readString(); + struct.setPrincipalIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 4: // NS + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.ns = iprot.readString(); + struct.setNsIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 5: // PERMISSION + if (schemeField.type == org.apache.thrift.protocol.TType.BYTE) { + struct.permission = iprot.readByte(); + struct.setPermissionIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - default: - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); } - iprot.readFieldEnd(); - } - iprot.readStructEnd(); + iprot.readStructEnd(); - // check for required fields of primitive type, which can't be checked in the validate method - struct.validate(); + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } finally { + iprot.decrementRecursionDepth(); + } } @Override @@ -27270,29 +27955,34 @@ public void write(org.apache.thrift.protocol.TProtocol prot, revokeNamespacePerm @Override public void read(org.apache.thrift.protocol.TProtocol prot, revokeNamespacePermission_args struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; - java.util.BitSet incoming = iprot.readBitSet(5); - if (incoming.get(0)) { - struct.tinfo = new TInfo(); - struct.tinfo.read(iprot); - struct.setTinfoIsSet(true); - } - if (incoming.get(1)) { - struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); - struct.credentials.read(iprot); - struct.setCredentialsIsSet(true); - } - if (incoming.get(2)) { - struct.principal = iprot.readString(); - struct.setPrincipalIsSet(true); - } - if (incoming.get(3)) { - struct.ns = iprot.readString(); - struct.setNsIsSet(true); - } - if (incoming.get(4)) { - struct.permission = iprot.readByte(); - struct.setPermissionIsSet(true); + prot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(5); + if (incoming.get(0)) { + struct.tinfo = new TInfo(); + struct.tinfo.read(iprot); + struct.setTinfoIsSet(true); + } + if (incoming.get(1)) { + struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); + struct.credentials.read(iprot); + struct.setCredentialsIsSet(true); + } + if (incoming.get(2)) { + struct.principal = iprot.readString(); + struct.setPrincipalIsSet(true); + } + if (incoming.get(3)) { + struct.ns = iprot.readString(); + struct.setNsIsSet(true); + } + if (incoming.get(4)) { + struct.permission = iprot.readByte(); + struct.setPermissionIsSet(true); + } + } finally { + prot.decrementRecursionDepth(); } } } @@ -27680,42 +28370,47 @@ private static class revokeNamespacePermission_resultStandardScheme extends org. @Override public void read(org.apache.thrift.protocol.TProtocol iprot, revokeNamespacePermission_result struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TField schemeField; - iprot.readStructBegin(); - while (true) - { - schemeField = iprot.readFieldBegin(); - if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { - break; - } - switch (schemeField.id) { - case 1: // SEC - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.sec = new ThriftSecurityException(); - struct.sec.read(iprot); - struct.setSecIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } + iprot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; - case 2: // TOPE - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.tope = new ThriftTableOperationException(); - struct.tope.read(iprot); - struct.setTopeIsSet(true); - } else { + } + switch (schemeField.id) { + case 1: // SEC + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.sec = new ThriftSecurityException(); + struct.sec.read(iprot); + struct.setSecIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 2: // TOPE + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.tope = new ThriftTableOperationException(); + struct.tope.read(iprot); + struct.setTopeIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - default: - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); } - iprot.readFieldEnd(); - } - iprot.readStructEnd(); + iprot.readStructEnd(); - // check for required fields of primitive type, which can't be checked in the validate method - struct.validate(); + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } finally { + iprot.decrementRecursionDepth(); + } } @Override @@ -27769,17 +28464,22 @@ public void write(org.apache.thrift.protocol.TProtocol prot, revokeNamespacePerm @Override public void read(org.apache.thrift.protocol.TProtocol prot, revokeNamespacePermission_result struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; - java.util.BitSet incoming = iprot.readBitSet(2); - if (incoming.get(0)) { - struct.sec = new ThriftSecurityException(); - struct.sec.read(iprot); - struct.setSecIsSet(true); - } - if (incoming.get(1)) { - struct.tope = new ThriftTableOperationException(); - struct.tope.read(iprot); - struct.setTopeIsSet(true); + prot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(2); + if (incoming.get(0)) { + struct.sec = new ThriftSecurityException(); + struct.sec.read(iprot); + struct.setSecIsSet(true); + } + if (incoming.get(1)) { + struct.tope = new ThriftTableOperationException(); + struct.tope.read(iprot); + struct.setTopeIsSet(true); + } + } finally { + prot.decrementRecursionDepth(); } } } @@ -28272,50 +28972,55 @@ private static class getConfiguration_argsStandardScheme extends org.apache.thri @Override public void read(org.apache.thrift.protocol.TProtocol iprot, getConfiguration_args struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TField schemeField; - iprot.readStructBegin(); - while (true) - { - schemeField = iprot.readFieldBegin(); - if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { - break; - } - switch (schemeField.id) { - case 2: // TINFO - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.tinfo = new TInfo(); - struct.tinfo.read(iprot); - struct.setTinfoIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 3: // CREDENTIALS - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); - struct.credentials.read(iprot); - struct.setCredentialsIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } + iprot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; - case 1: // TYPE - if (schemeField.type == org.apache.thrift.protocol.TType.I32) { - struct.type = org.apache.accumulo.core.clientImpl.thrift.ConfigurationType.findByValue(iprot.readI32()); - struct.setTypeIsSet(true); - } else { + } + switch (schemeField.id) { + case 2: // TINFO + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.tinfo = new TInfo(); + struct.tinfo.read(iprot); + struct.setTinfoIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 3: // CREDENTIALS + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); + struct.credentials.read(iprot); + struct.setCredentialsIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 1: // TYPE + if (schemeField.type == org.apache.thrift.protocol.TType.I32) { + struct.type = org.apache.accumulo.core.clientImpl.thrift.ConfigurationType.findByValue(iprot.readI32()); + struct.setTypeIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - default: - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); } - iprot.readFieldEnd(); - } - iprot.readStructEnd(); + iprot.readStructEnd(); - // check for required fields of primitive type, which can't be checked in the validate method - struct.validate(); + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } finally { + iprot.decrementRecursionDepth(); + } } @Override @@ -28380,21 +29085,26 @@ public void write(org.apache.thrift.protocol.TProtocol prot, getConfiguration_ar @Override public void read(org.apache.thrift.protocol.TProtocol prot, getConfiguration_args struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; - java.util.BitSet incoming = iprot.readBitSet(3); - if (incoming.get(0)) { - struct.tinfo = new TInfo(); - struct.tinfo.read(iprot); - struct.setTinfoIsSet(true); - } - if (incoming.get(1)) { - struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); - struct.credentials.read(iprot); - struct.setCredentialsIsSet(true); - } - if (incoming.get(2)) { - struct.type = org.apache.accumulo.core.clientImpl.thrift.ConfigurationType.findByValue(iprot.readI32()); - struct.setTypeIsSet(true); + prot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(3); + if (incoming.get(0)) { + struct.tinfo = new TInfo(); + struct.tinfo.read(iprot); + struct.setTinfoIsSet(true); + } + if (incoming.get(1)) { + struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); + struct.credentials.read(iprot); + struct.setCredentialsIsSet(true); + } + if (incoming.get(2)) { + struct.type = org.apache.accumulo.core.clientImpl.thrift.ConfigurationType.findByValue(iprot.readI32()); + struct.setTypeIsSet(true); + } + } finally { + prot.decrementRecursionDepth(); } } } @@ -28796,53 +29506,58 @@ private static class getConfiguration_resultStandardScheme extends org.apache.th @Override public void read(org.apache.thrift.protocol.TProtocol iprot, getConfiguration_result struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TField schemeField; - iprot.readStructBegin(); - while (true) - { - schemeField = iprot.readFieldBegin(); - if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { - break; - } - switch (schemeField.id) { - case 0: // SUCCESS - if (schemeField.type == org.apache.thrift.protocol.TType.MAP) { - { - org.apache.thrift.protocol.TMap _map68 = iprot.readMapBegin(); - struct.success = new java.util.HashMap(2*_map68.size); - @org.apache.thrift.annotation.Nullable java.lang.String _key69; - @org.apache.thrift.annotation.Nullable java.lang.String _val70; - for (int _i71 = 0; _i71 < _map68.size; ++_i71) + iprot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { + break; + } + switch (schemeField.id) { + case 0: // SUCCESS + if (schemeField.type == org.apache.thrift.protocol.TType.MAP) { { - _key69 = iprot.readString(); - _val70 = iprot.readString(); - struct.success.put(_key69, _val70); + org.apache.thrift.protocol.TMap _map68 = iprot.readMapBegin(); + struct.success = new java.util.HashMap(2*_map68.size); + @org.apache.thrift.annotation.Nullable java.lang.String _key69; + @org.apache.thrift.annotation.Nullable java.lang.String _val70; + for (int _i71 = 0; _i71 < _map68.size; ++_i71) + { + _key69 = iprot.readString(); + _val70 = iprot.readString(); + struct.success.put(_key69, _val70); + } + iprot.readMapEnd(); } - iprot.readMapEnd(); + struct.setSuccessIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } - struct.setSuccessIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 1: // SEC - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.sec = new ThriftSecurityException(); - struct.sec.read(iprot); - struct.setSecIsSet(true); - } else { + break; + case 1: // SEC + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.sec = new ThriftSecurityException(); + struct.sec.read(iprot); + struct.setSecIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - default: - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); } - iprot.readFieldEnd(); - } - iprot.readStructEnd(); + iprot.readStructEnd(); - // check for required fields of primitive type, which can't be checked in the validate method - struct.validate(); + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } finally { + iprot.decrementRecursionDepth(); + } } @Override @@ -28911,27 +29626,32 @@ public void write(org.apache.thrift.protocol.TProtocol prot, getConfiguration_re @Override public void read(org.apache.thrift.protocol.TProtocol prot, getConfiguration_result struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; - java.util.BitSet incoming = iprot.readBitSet(2); - if (incoming.get(0)) { - { - org.apache.thrift.protocol.TMap _map74 = iprot.readMapBegin(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING); - struct.success = new java.util.HashMap(2*_map74.size); - @org.apache.thrift.annotation.Nullable java.lang.String _key75; - @org.apache.thrift.annotation.Nullable java.lang.String _val76; - for (int _i77 = 0; _i77 < _map74.size; ++_i77) + prot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(2); + if (incoming.get(0)) { { - _key75 = iprot.readString(); - _val76 = iprot.readString(); - struct.success.put(_key75, _val76); + org.apache.thrift.protocol.TMap _map74 = iprot.readMapBegin(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING); + struct.success = new java.util.HashMap(2*_map74.size); + @org.apache.thrift.annotation.Nullable java.lang.String _key75; + @org.apache.thrift.annotation.Nullable java.lang.String _val76; + for (int _i77 = 0; _i77 < _map74.size; ++_i77) + { + _key75 = iprot.readString(); + _val76 = iprot.readString(); + struct.success.put(_key75, _val76); + } } + struct.setSuccessIsSet(true); } - struct.setSuccessIsSet(true); - } - if (incoming.get(1)) { - struct.sec = new ThriftSecurityException(); - struct.sec.read(iprot); - struct.setSecIsSet(true); + if (incoming.get(1)) { + struct.sec = new ThriftSecurityException(); + struct.sec.read(iprot); + struct.setSecIsSet(true); + } + } finally { + prot.decrementRecursionDepth(); } } } @@ -29326,42 +30046,47 @@ private static class getSystemProperties_argsStandardScheme extends org.apache.t @Override public void read(org.apache.thrift.protocol.TProtocol iprot, getSystemProperties_args struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TField schemeField; - iprot.readStructBegin(); - while (true) - { - schemeField = iprot.readFieldBegin(); - if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { - break; - } - switch (schemeField.id) { - case 1: // TINFO - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.tinfo = new TInfo(); - struct.tinfo.read(iprot); - struct.setTinfoIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } + iprot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; - case 2: // CREDENTIALS - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); - struct.credentials.read(iprot); - struct.setCredentialsIsSet(true); - } else { + } + switch (schemeField.id) { + case 1: // TINFO + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.tinfo = new TInfo(); + struct.tinfo.read(iprot); + struct.setTinfoIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 2: // CREDENTIALS + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); + struct.credentials.read(iprot); + struct.setCredentialsIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - default: - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); } - iprot.readFieldEnd(); - } - iprot.readStructEnd(); + iprot.readStructEnd(); - // check for required fields of primitive type, which can't be checked in the validate method - struct.validate(); + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } finally { + iprot.decrementRecursionDepth(); + } } @Override @@ -29415,17 +30140,22 @@ public void write(org.apache.thrift.protocol.TProtocol prot, getSystemProperties @Override public void read(org.apache.thrift.protocol.TProtocol prot, getSystemProperties_args struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; - java.util.BitSet incoming = iprot.readBitSet(2); - if (incoming.get(0)) { - struct.tinfo = new TInfo(); - struct.tinfo.read(iprot); - struct.setTinfoIsSet(true); - } - if (incoming.get(1)) { - struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); - struct.credentials.read(iprot); - struct.setCredentialsIsSet(true); + prot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(2); + if (incoming.get(0)) { + struct.tinfo = new TInfo(); + struct.tinfo.read(iprot); + struct.setTinfoIsSet(true); + } + if (incoming.get(1)) { + struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); + struct.credentials.read(iprot); + struct.setCredentialsIsSet(true); + } + } finally { + prot.decrementRecursionDepth(); } } } @@ -29827,53 +30557,58 @@ private static class getSystemProperties_resultStandardScheme extends org.apache @Override public void read(org.apache.thrift.protocol.TProtocol iprot, getSystemProperties_result struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TField schemeField; - iprot.readStructBegin(); - while (true) - { - schemeField = iprot.readFieldBegin(); - if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { - break; - } - switch (schemeField.id) { - case 0: // SUCCESS - if (schemeField.type == org.apache.thrift.protocol.TType.MAP) { - { - org.apache.thrift.protocol.TMap _map78 = iprot.readMapBegin(); - struct.success = new java.util.HashMap(2*_map78.size); - @org.apache.thrift.annotation.Nullable java.lang.String _key79; - @org.apache.thrift.annotation.Nullable java.lang.String _val80; - for (int _i81 = 0; _i81 < _map78.size; ++_i81) + iprot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { + break; + } + switch (schemeField.id) { + case 0: // SUCCESS + if (schemeField.type == org.apache.thrift.protocol.TType.MAP) { { - _key79 = iprot.readString(); - _val80 = iprot.readString(); - struct.success.put(_key79, _val80); + org.apache.thrift.protocol.TMap _map78 = iprot.readMapBegin(); + struct.success = new java.util.HashMap(2*_map78.size); + @org.apache.thrift.annotation.Nullable java.lang.String _key79; + @org.apache.thrift.annotation.Nullable java.lang.String _val80; + for (int _i81 = 0; _i81 < _map78.size; ++_i81) + { + _key79 = iprot.readString(); + _val80 = iprot.readString(); + struct.success.put(_key79, _val80); + } + iprot.readMapEnd(); } - iprot.readMapEnd(); + struct.setSuccessIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } - struct.setSuccessIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 1: // SEC - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.sec = new ThriftSecurityException(); - struct.sec.read(iprot); - struct.setSecIsSet(true); - } else { + break; + case 1: // SEC + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.sec = new ThriftSecurityException(); + struct.sec.read(iprot); + struct.setSecIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - default: - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); } - iprot.readFieldEnd(); - } - iprot.readStructEnd(); + iprot.readStructEnd(); - // check for required fields of primitive type, which can't be checked in the validate method - struct.validate(); + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } finally { + iprot.decrementRecursionDepth(); + } } @Override @@ -29942,27 +30677,32 @@ public void write(org.apache.thrift.protocol.TProtocol prot, getSystemProperties @Override public void read(org.apache.thrift.protocol.TProtocol prot, getSystemProperties_result struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; - java.util.BitSet incoming = iprot.readBitSet(2); - if (incoming.get(0)) { - { - org.apache.thrift.protocol.TMap _map84 = iprot.readMapBegin(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING); - struct.success = new java.util.HashMap(2*_map84.size); - @org.apache.thrift.annotation.Nullable java.lang.String _key85; - @org.apache.thrift.annotation.Nullable java.lang.String _val86; - for (int _i87 = 0; _i87 < _map84.size; ++_i87) + prot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(2); + if (incoming.get(0)) { { - _key85 = iprot.readString(); - _val86 = iprot.readString(); - struct.success.put(_key85, _val86); + org.apache.thrift.protocol.TMap _map84 = iprot.readMapBegin(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING); + struct.success = new java.util.HashMap(2*_map84.size); + @org.apache.thrift.annotation.Nullable java.lang.String _key85; + @org.apache.thrift.annotation.Nullable java.lang.String _val86; + for (int _i87 = 0; _i87 < _map84.size; ++_i87) + { + _key85 = iprot.readString(); + _val86 = iprot.readString(); + struct.success.put(_key85, _val86); + } } + struct.setSuccessIsSet(true); } - struct.setSuccessIsSet(true); - } - if (incoming.get(1)) { - struct.sec = new ThriftSecurityException(); - struct.sec.read(iprot); - struct.setSecIsSet(true); + if (incoming.get(1)) { + struct.sec = new ThriftSecurityException(); + struct.sec.read(iprot); + struct.setSecIsSet(true); + } + } finally { + prot.decrementRecursionDepth(); } } } @@ -30357,42 +31097,47 @@ private static class getVersionedSystemProperties_argsStandardScheme extends org @Override public void read(org.apache.thrift.protocol.TProtocol iprot, getVersionedSystemProperties_args struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TField schemeField; - iprot.readStructBegin(); - while (true) - { - schemeField = iprot.readFieldBegin(); - if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { - break; - } - switch (schemeField.id) { - case 1: // TINFO - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.tinfo = new TInfo(); - struct.tinfo.read(iprot); - struct.setTinfoIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } + iprot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; - case 2: // CREDENTIALS - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); - struct.credentials.read(iprot); - struct.setCredentialsIsSet(true); - } else { + } + switch (schemeField.id) { + case 1: // TINFO + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.tinfo = new TInfo(); + struct.tinfo.read(iprot); + struct.setTinfoIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 2: // CREDENTIALS + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); + struct.credentials.read(iprot); + struct.setCredentialsIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - default: - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); } - iprot.readFieldEnd(); - } - iprot.readStructEnd(); + iprot.readStructEnd(); - // check for required fields of primitive type, which can't be checked in the validate method - struct.validate(); + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } finally { + iprot.decrementRecursionDepth(); + } } @Override @@ -30446,17 +31191,22 @@ public void write(org.apache.thrift.protocol.TProtocol prot, getVersionedSystemP @Override public void read(org.apache.thrift.protocol.TProtocol prot, getVersionedSystemProperties_args struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; - java.util.BitSet incoming = iprot.readBitSet(2); - if (incoming.get(0)) { - struct.tinfo = new TInfo(); - struct.tinfo.read(iprot); - struct.setTinfoIsSet(true); - } - if (incoming.get(1)) { - struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); - struct.credentials.read(iprot); - struct.setCredentialsIsSet(true); + prot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(2); + if (incoming.get(0)) { + struct.tinfo = new TInfo(); + struct.tinfo.read(iprot); + struct.setTinfoIsSet(true); + } + if (incoming.get(1)) { + struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); + struct.credentials.read(iprot); + struct.setCredentialsIsSet(true); + } + } finally { + prot.decrementRecursionDepth(); } } } @@ -30847,42 +31597,47 @@ private static class getVersionedSystemProperties_resultStandardScheme extends o @Override public void read(org.apache.thrift.protocol.TProtocol iprot, getVersionedSystemProperties_result struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TField schemeField; - iprot.readStructBegin(); - while (true) - { - schemeField = iprot.readFieldBegin(); - if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { - break; - } - switch (schemeField.id) { - case 0: // SUCCESS - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.success = new TVersionedProperties(); - struct.success.read(iprot); - struct.setSuccessIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } + iprot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; - case 1: // SEC - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.sec = new ThriftSecurityException(); - struct.sec.read(iprot); - struct.setSecIsSet(true); - } else { + } + switch (schemeField.id) { + case 0: // SUCCESS + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.success = new TVersionedProperties(); + struct.success.read(iprot); + struct.setSuccessIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 1: // SEC + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.sec = new ThriftSecurityException(); + struct.sec.read(iprot); + struct.setSecIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - default: - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); } - iprot.readFieldEnd(); - } - iprot.readStructEnd(); + iprot.readStructEnd(); - // check for required fields of primitive type, which can't be checked in the validate method - struct.validate(); + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } finally { + iprot.decrementRecursionDepth(); + } } @Override @@ -30936,17 +31691,22 @@ public void write(org.apache.thrift.protocol.TProtocol prot, getVersionedSystemP @Override public void read(org.apache.thrift.protocol.TProtocol prot, getVersionedSystemProperties_result struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; - java.util.BitSet incoming = iprot.readBitSet(2); - if (incoming.get(0)) { - struct.success = new TVersionedProperties(); - struct.success.read(iprot); - struct.setSuccessIsSet(true); - } - if (incoming.get(1)) { - struct.sec = new ThriftSecurityException(); - struct.sec.read(iprot); - struct.setSecIsSet(true); + prot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(2); + if (incoming.get(0)) { + struct.success = new TVersionedProperties(); + struct.success.read(iprot); + struct.setSuccessIsSet(true); + } + if (incoming.get(1)) { + struct.sec = new ThriftSecurityException(); + struct.sec.read(iprot); + struct.setSecIsSet(true); + } + } finally { + prot.decrementRecursionDepth(); } } } @@ -31423,50 +32183,55 @@ private static class getVersionedResourceGroupProperties_argsStandardScheme exte @Override public void read(org.apache.thrift.protocol.TProtocol iprot, getVersionedResourceGroupProperties_args struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TField schemeField; - iprot.readStructBegin(); - while (true) - { - schemeField = iprot.readFieldBegin(); - if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { - break; - } - switch (schemeField.id) { - case 1: // TINFO - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.tinfo = new TInfo(); - struct.tinfo.read(iprot); - struct.setTinfoIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 2: // CREDENTIALS - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); - struct.credentials.read(iprot); - struct.setCredentialsIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } + iprot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; - case 3: // RESOURCE_GROUP - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.resourceGroup = iprot.readString(); - struct.setResourceGroupIsSet(true); - } else { + } + switch (schemeField.id) { + case 1: // TINFO + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.tinfo = new TInfo(); + struct.tinfo.read(iprot); + struct.setTinfoIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 2: // CREDENTIALS + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); + struct.credentials.read(iprot); + struct.setCredentialsIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 3: // RESOURCE_GROUP + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.resourceGroup = iprot.readString(); + struct.setResourceGroupIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - default: - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); } - iprot.readFieldEnd(); - } - iprot.readStructEnd(); + iprot.readStructEnd(); - // check for required fields of primitive type, which can't be checked in the validate method - struct.validate(); + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } finally { + iprot.decrementRecursionDepth(); + } } @Override @@ -31531,21 +32296,26 @@ public void write(org.apache.thrift.protocol.TProtocol prot, getVersionedResourc @Override public void read(org.apache.thrift.protocol.TProtocol prot, getVersionedResourceGroupProperties_args struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; - java.util.BitSet incoming = iprot.readBitSet(3); - if (incoming.get(0)) { - struct.tinfo = new TInfo(); - struct.tinfo.read(iprot); - struct.setTinfoIsSet(true); - } - if (incoming.get(1)) { - struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); - struct.credentials.read(iprot); - struct.setCredentialsIsSet(true); - } - if (incoming.get(2)) { - struct.resourceGroup = iprot.readString(); - struct.setResourceGroupIsSet(true); + prot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(3); + if (incoming.get(0)) { + struct.tinfo = new TInfo(); + struct.tinfo.read(iprot); + struct.setTinfoIsSet(true); + } + if (incoming.get(1)) { + struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); + struct.credentials.read(iprot); + struct.setCredentialsIsSet(true); + } + if (incoming.get(2)) { + struct.resourceGroup = iprot.readString(); + struct.setResourceGroupIsSet(true); + } + } finally { + prot.decrementRecursionDepth(); } } } @@ -32018,51 +32788,56 @@ private static class getVersionedResourceGroupProperties_resultStandardScheme ex @Override public void read(org.apache.thrift.protocol.TProtocol iprot, getVersionedResourceGroupProperties_result struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TField schemeField; - iprot.readStructBegin(); - while (true) - { - schemeField = iprot.readFieldBegin(); - if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { - break; - } - switch (schemeField.id) { - case 0: // SUCCESS - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.success = new TVersionedProperties(); - struct.success.read(iprot); - struct.setSuccessIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 1: // SEC - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.sec = new ThriftSecurityException(); - struct.sec.read(iprot); - struct.setSecIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } + iprot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; - case 2: // RGNE - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.rgne = new ThriftResourceGroupNotExistsException(); - struct.rgne.read(iprot); - struct.setRgneIsSet(true); - } else { + } + switch (schemeField.id) { + case 0: // SUCCESS + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.success = new TVersionedProperties(); + struct.success.read(iprot); + struct.setSuccessIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 1: // SEC + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.sec = new ThriftSecurityException(); + struct.sec.read(iprot); + struct.setSecIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 2: // RGNE + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.rgne = new ThriftResourceGroupNotExistsException(); + struct.rgne.read(iprot); + struct.setRgneIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - default: - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); } - iprot.readFieldEnd(); - } - iprot.readStructEnd(); + iprot.readStructEnd(); - // check for required fields of primitive type, which can't be checked in the validate method - struct.validate(); + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } finally { + iprot.decrementRecursionDepth(); + } } @Override @@ -32127,22 +32902,27 @@ public void write(org.apache.thrift.protocol.TProtocol prot, getVersionedResourc @Override public void read(org.apache.thrift.protocol.TProtocol prot, getVersionedResourceGroupProperties_result struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; - java.util.BitSet incoming = iprot.readBitSet(3); - if (incoming.get(0)) { - struct.success = new TVersionedProperties(); - struct.success.read(iprot); - struct.setSuccessIsSet(true); - } - if (incoming.get(1)) { - struct.sec = new ThriftSecurityException(); - struct.sec.read(iprot); - struct.setSecIsSet(true); - } - if (incoming.get(2)) { - struct.rgne = new ThriftResourceGroupNotExistsException(); - struct.rgne.read(iprot); - struct.setRgneIsSet(true); + prot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(3); + if (incoming.get(0)) { + struct.success = new TVersionedProperties(); + struct.success.read(iprot); + struct.setSuccessIsSet(true); + } + if (incoming.get(1)) { + struct.sec = new ThriftSecurityException(); + struct.sec.read(iprot); + struct.setSecIsSet(true); + } + if (incoming.get(2)) { + struct.rgne = new ThriftResourceGroupNotExistsException(); + struct.rgne.read(iprot); + struct.setRgneIsSet(true); + } + } finally { + prot.decrementRecursionDepth(); } } } @@ -32619,50 +33399,55 @@ private static class getTableConfiguration_argsStandardScheme extends org.apache @Override public void read(org.apache.thrift.protocol.TProtocol iprot, getTableConfiguration_args struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TField schemeField; - iprot.readStructBegin(); - while (true) - { - schemeField = iprot.readFieldBegin(); - if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { - break; - } - switch (schemeField.id) { - case 1: // TINFO - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.tinfo = new TInfo(); - struct.tinfo.read(iprot); - struct.setTinfoIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 3: // CREDENTIALS - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); - struct.credentials.read(iprot); - struct.setCredentialsIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } + iprot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; - case 2: // TABLE_NAME - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.tableName = iprot.readString(); - struct.setTableNameIsSet(true); - } else { + } + switch (schemeField.id) { + case 1: // TINFO + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.tinfo = new TInfo(); + struct.tinfo.read(iprot); + struct.setTinfoIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 3: // CREDENTIALS + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); + struct.credentials.read(iprot); + struct.setCredentialsIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 2: // TABLE_NAME + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.tableName = iprot.readString(); + struct.setTableNameIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - default: - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); } - iprot.readFieldEnd(); - } - iprot.readStructEnd(); + iprot.readStructEnd(); - // check for required fields of primitive type, which can't be checked in the validate method - struct.validate(); + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } finally { + iprot.decrementRecursionDepth(); + } } @Override @@ -32727,21 +33512,26 @@ public void write(org.apache.thrift.protocol.TProtocol prot, getTableConfigurati @Override public void read(org.apache.thrift.protocol.TProtocol prot, getTableConfiguration_args struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; - java.util.BitSet incoming = iprot.readBitSet(3); - if (incoming.get(0)) { - struct.tinfo = new TInfo(); - struct.tinfo.read(iprot); - struct.setTinfoIsSet(true); - } - if (incoming.get(1)) { - struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); - struct.credentials.read(iprot); - struct.setCredentialsIsSet(true); - } - if (incoming.get(2)) { - struct.tableName = iprot.readString(); - struct.setTableNameIsSet(true); + prot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(3); + if (incoming.get(0)) { + struct.tinfo = new TInfo(); + struct.tinfo.read(iprot); + struct.setTinfoIsSet(true); + } + if (incoming.get(1)) { + struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); + struct.credentials.read(iprot); + struct.setCredentialsIsSet(true); + } + if (incoming.get(2)) { + struct.tableName = iprot.readString(); + struct.setTableNameIsSet(true); + } + } finally { + prot.decrementRecursionDepth(); } } } @@ -33225,62 +34015,67 @@ private static class getTableConfiguration_resultStandardScheme extends org.apac @Override public void read(org.apache.thrift.protocol.TProtocol iprot, getTableConfiguration_result struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TField schemeField; - iprot.readStructBegin(); - while (true) - { - schemeField = iprot.readFieldBegin(); - if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { - break; - } - switch (schemeField.id) { - case 0: // SUCCESS - if (schemeField.type == org.apache.thrift.protocol.TType.MAP) { - { - org.apache.thrift.protocol.TMap _map88 = iprot.readMapBegin(); - struct.success = new java.util.HashMap(2*_map88.size); - @org.apache.thrift.annotation.Nullable java.lang.String _key89; - @org.apache.thrift.annotation.Nullable java.lang.String _val90; - for (int _i91 = 0; _i91 < _map88.size; ++_i91) + iprot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { + break; + } + switch (schemeField.id) { + case 0: // SUCCESS + if (schemeField.type == org.apache.thrift.protocol.TType.MAP) { { - _key89 = iprot.readString(); - _val90 = iprot.readString(); - struct.success.put(_key89, _val90); + org.apache.thrift.protocol.TMap _map88 = iprot.readMapBegin(); + struct.success = new java.util.HashMap(2*_map88.size); + @org.apache.thrift.annotation.Nullable java.lang.String _key89; + @org.apache.thrift.annotation.Nullable java.lang.String _val90; + for (int _i91 = 0; _i91 < _map88.size; ++_i91) + { + _key89 = iprot.readString(); + _val90 = iprot.readString(); + struct.success.put(_key89, _val90); + } + iprot.readMapEnd(); } - iprot.readMapEnd(); + struct.setSuccessIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } - struct.setSuccessIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 1: // TOPE - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.tope = new ThriftTableOperationException(); - struct.tope.read(iprot); - struct.setTopeIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 2: // SEC - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.sec = new ThriftSecurityException(); - struct.sec.read(iprot); - struct.setSecIsSet(true); - } else { + break; + case 1: // TOPE + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.tope = new ThriftTableOperationException(); + struct.tope.read(iprot); + struct.setTopeIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 2: // SEC + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.sec = new ThriftSecurityException(); + struct.sec.read(iprot); + struct.setSecIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - default: - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); } - iprot.readFieldEnd(); - } - iprot.readStructEnd(); + iprot.readStructEnd(); - // check for required fields of primitive type, which can't be checked in the validate method - struct.validate(); + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } finally { + iprot.decrementRecursionDepth(); + } } @Override @@ -33360,32 +34155,37 @@ public void write(org.apache.thrift.protocol.TProtocol prot, getTableConfigurati @Override public void read(org.apache.thrift.protocol.TProtocol prot, getTableConfiguration_result struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; - java.util.BitSet incoming = iprot.readBitSet(3); - if (incoming.get(0)) { - { - org.apache.thrift.protocol.TMap _map94 = iprot.readMapBegin(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING); - struct.success = new java.util.HashMap(2*_map94.size); - @org.apache.thrift.annotation.Nullable java.lang.String _key95; - @org.apache.thrift.annotation.Nullable java.lang.String _val96; - for (int _i97 = 0; _i97 < _map94.size; ++_i97) + prot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(3); + if (incoming.get(0)) { { - _key95 = iprot.readString(); - _val96 = iprot.readString(); - struct.success.put(_key95, _val96); + org.apache.thrift.protocol.TMap _map94 = iprot.readMapBegin(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING); + struct.success = new java.util.HashMap(2*_map94.size); + @org.apache.thrift.annotation.Nullable java.lang.String _key95; + @org.apache.thrift.annotation.Nullable java.lang.String _val96; + for (int _i97 = 0; _i97 < _map94.size; ++_i97) + { + _key95 = iprot.readString(); + _val96 = iprot.readString(); + struct.success.put(_key95, _val96); + } } + struct.setSuccessIsSet(true); } - struct.setSuccessIsSet(true); - } - if (incoming.get(1)) { - struct.tope = new ThriftTableOperationException(); - struct.tope.read(iprot); - struct.setTopeIsSet(true); - } - if (incoming.get(2)) { - struct.sec = new ThriftSecurityException(); - struct.sec.read(iprot); - struct.setSecIsSet(true); + if (incoming.get(1)) { + struct.tope = new ThriftTableOperationException(); + struct.tope.read(iprot); + struct.setTopeIsSet(true); + } + if (incoming.get(2)) { + struct.sec = new ThriftSecurityException(); + struct.sec.read(iprot); + struct.setSecIsSet(true); + } + } finally { + prot.decrementRecursionDepth(); } } } @@ -33862,50 +34662,55 @@ private static class getTableProperties_argsStandardScheme extends org.apache.th @Override public void read(org.apache.thrift.protocol.TProtocol iprot, getTableProperties_args struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TField schemeField; - iprot.readStructBegin(); - while (true) - { - schemeField = iprot.readFieldBegin(); - if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { - break; - } - switch (schemeField.id) { - case 1: // TINFO - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.tinfo = new TInfo(); - struct.tinfo.read(iprot); - struct.setTinfoIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 3: // CREDENTIALS - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); - struct.credentials.read(iprot); - struct.setCredentialsIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } + iprot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; - case 2: // TABLE_NAME - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.tableName = iprot.readString(); - struct.setTableNameIsSet(true); - } else { + } + switch (schemeField.id) { + case 1: // TINFO + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.tinfo = new TInfo(); + struct.tinfo.read(iprot); + struct.setTinfoIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 3: // CREDENTIALS + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); + struct.credentials.read(iprot); + struct.setCredentialsIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 2: // TABLE_NAME + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.tableName = iprot.readString(); + struct.setTableNameIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - default: - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); } - iprot.readFieldEnd(); - } - iprot.readStructEnd(); + iprot.readStructEnd(); - // check for required fields of primitive type, which can't be checked in the validate method - struct.validate(); + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } finally { + iprot.decrementRecursionDepth(); + } } @Override @@ -33970,21 +34775,26 @@ public void write(org.apache.thrift.protocol.TProtocol prot, getTableProperties_ @Override public void read(org.apache.thrift.protocol.TProtocol prot, getTableProperties_args struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; - java.util.BitSet incoming = iprot.readBitSet(3); - if (incoming.get(0)) { - struct.tinfo = new TInfo(); - struct.tinfo.read(iprot); - struct.setTinfoIsSet(true); - } - if (incoming.get(1)) { - struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); - struct.credentials.read(iprot); - struct.setCredentialsIsSet(true); - } - if (incoming.get(2)) { - struct.tableName = iprot.readString(); - struct.setTableNameIsSet(true); + prot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(3); + if (incoming.get(0)) { + struct.tinfo = new TInfo(); + struct.tinfo.read(iprot); + struct.setTinfoIsSet(true); + } + if (incoming.get(1)) { + struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); + struct.credentials.read(iprot); + struct.setCredentialsIsSet(true); + } + if (incoming.get(2)) { + struct.tableName = iprot.readString(); + struct.setTableNameIsSet(true); + } + } finally { + prot.decrementRecursionDepth(); } } } @@ -34468,62 +35278,67 @@ private static class getTableProperties_resultStandardScheme extends org.apache. @Override public void read(org.apache.thrift.protocol.TProtocol iprot, getTableProperties_result struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TField schemeField; - iprot.readStructBegin(); - while (true) - { - schemeField = iprot.readFieldBegin(); - if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { - break; - } - switch (schemeField.id) { - case 0: // SUCCESS - if (schemeField.type == org.apache.thrift.protocol.TType.MAP) { - { - org.apache.thrift.protocol.TMap _map98 = iprot.readMapBegin(); - struct.success = new java.util.HashMap(2*_map98.size); - @org.apache.thrift.annotation.Nullable java.lang.String _key99; - @org.apache.thrift.annotation.Nullable java.lang.String _val100; - for (int _i101 = 0; _i101 < _map98.size; ++_i101) + iprot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { + break; + } + switch (schemeField.id) { + case 0: // SUCCESS + if (schemeField.type == org.apache.thrift.protocol.TType.MAP) { { - _key99 = iprot.readString(); - _val100 = iprot.readString(); - struct.success.put(_key99, _val100); + org.apache.thrift.protocol.TMap _map98 = iprot.readMapBegin(); + struct.success = new java.util.HashMap(2*_map98.size); + @org.apache.thrift.annotation.Nullable java.lang.String _key99; + @org.apache.thrift.annotation.Nullable java.lang.String _val100; + for (int _i101 = 0; _i101 < _map98.size; ++_i101) + { + _key99 = iprot.readString(); + _val100 = iprot.readString(); + struct.success.put(_key99, _val100); + } + iprot.readMapEnd(); } - iprot.readMapEnd(); + struct.setSuccessIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } - struct.setSuccessIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 1: // TOPE - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.tope = new ThriftTableOperationException(); - struct.tope.read(iprot); - struct.setTopeIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 2: // SEC - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.sec = new ThriftSecurityException(); - struct.sec.read(iprot); - struct.setSecIsSet(true); - } else { + break; + case 1: // TOPE + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.tope = new ThriftTableOperationException(); + struct.tope.read(iprot); + struct.setTopeIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 2: // SEC + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.sec = new ThriftSecurityException(); + struct.sec.read(iprot); + struct.setSecIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - default: - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); } - iprot.readFieldEnd(); - } - iprot.readStructEnd(); + iprot.readStructEnd(); - // check for required fields of primitive type, which can't be checked in the validate method - struct.validate(); + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } finally { + iprot.decrementRecursionDepth(); + } } @Override @@ -34603,32 +35418,37 @@ public void write(org.apache.thrift.protocol.TProtocol prot, getTableProperties_ @Override public void read(org.apache.thrift.protocol.TProtocol prot, getTableProperties_result struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; - java.util.BitSet incoming = iprot.readBitSet(3); - if (incoming.get(0)) { - { - org.apache.thrift.protocol.TMap _map104 = iprot.readMapBegin(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING); - struct.success = new java.util.HashMap(2*_map104.size); - @org.apache.thrift.annotation.Nullable java.lang.String _key105; - @org.apache.thrift.annotation.Nullable java.lang.String _val106; - for (int _i107 = 0; _i107 < _map104.size; ++_i107) + prot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(3); + if (incoming.get(0)) { { - _key105 = iprot.readString(); - _val106 = iprot.readString(); - struct.success.put(_key105, _val106); + org.apache.thrift.protocol.TMap _map104 = iprot.readMapBegin(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING); + struct.success = new java.util.HashMap(2*_map104.size); + @org.apache.thrift.annotation.Nullable java.lang.String _key105; + @org.apache.thrift.annotation.Nullable java.lang.String _val106; + for (int _i107 = 0; _i107 < _map104.size; ++_i107) + { + _key105 = iprot.readString(); + _val106 = iprot.readString(); + struct.success.put(_key105, _val106); + } } + struct.setSuccessIsSet(true); } - struct.setSuccessIsSet(true); - } - if (incoming.get(1)) { - struct.tope = new ThriftTableOperationException(); - struct.tope.read(iprot); - struct.setTopeIsSet(true); - } - if (incoming.get(2)) { - struct.sec = new ThriftSecurityException(); - struct.sec.read(iprot); - struct.setSecIsSet(true); + if (incoming.get(1)) { + struct.tope = new ThriftTableOperationException(); + struct.tope.read(iprot); + struct.setTopeIsSet(true); + } + if (incoming.get(2)) { + struct.sec = new ThriftSecurityException(); + struct.sec.read(iprot); + struct.setSecIsSet(true); + } + } finally { + prot.decrementRecursionDepth(); } } } @@ -35105,50 +35925,55 @@ private static class getVersionedTableProperties_argsStandardScheme extends org. @Override public void read(org.apache.thrift.protocol.TProtocol iprot, getVersionedTableProperties_args struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TField schemeField; - iprot.readStructBegin(); - while (true) - { - schemeField = iprot.readFieldBegin(); - if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { - break; - } - switch (schemeField.id) { - case 1: // TINFO - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.tinfo = new TInfo(); - struct.tinfo.read(iprot); - struct.setTinfoIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 3: // CREDENTIALS - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); - struct.credentials.read(iprot); - struct.setCredentialsIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } + iprot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; - case 2: // TABLE_NAME - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.tableName = iprot.readString(); - struct.setTableNameIsSet(true); - } else { + } + switch (schemeField.id) { + case 1: // TINFO + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.tinfo = new TInfo(); + struct.tinfo.read(iprot); + struct.setTinfoIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 3: // CREDENTIALS + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); + struct.credentials.read(iprot); + struct.setCredentialsIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 2: // TABLE_NAME + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.tableName = iprot.readString(); + struct.setTableNameIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - default: - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); } - iprot.readFieldEnd(); - } - iprot.readStructEnd(); + iprot.readStructEnd(); - // check for required fields of primitive type, which can't be checked in the validate method - struct.validate(); + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } finally { + iprot.decrementRecursionDepth(); + } } @Override @@ -35213,21 +36038,26 @@ public void write(org.apache.thrift.protocol.TProtocol prot, getVersionedTablePr @Override public void read(org.apache.thrift.protocol.TProtocol prot, getVersionedTableProperties_args struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; - java.util.BitSet incoming = iprot.readBitSet(3); - if (incoming.get(0)) { - struct.tinfo = new TInfo(); - struct.tinfo.read(iprot); - struct.setTinfoIsSet(true); - } - if (incoming.get(1)) { - struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); - struct.credentials.read(iprot); - struct.setCredentialsIsSet(true); - } - if (incoming.get(2)) { - struct.tableName = iprot.readString(); - struct.setTableNameIsSet(true); + prot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(3); + if (incoming.get(0)) { + struct.tinfo = new TInfo(); + struct.tinfo.read(iprot); + struct.setTinfoIsSet(true); + } + if (incoming.get(1)) { + struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); + struct.credentials.read(iprot); + struct.setCredentialsIsSet(true); + } + if (incoming.get(2)) { + struct.tableName = iprot.readString(); + struct.setTableNameIsSet(true); + } + } finally { + prot.decrementRecursionDepth(); } } } @@ -35700,51 +36530,56 @@ private static class getVersionedTableProperties_resultStandardScheme extends or @Override public void read(org.apache.thrift.protocol.TProtocol iprot, getVersionedTableProperties_result struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TField schemeField; - iprot.readStructBegin(); - while (true) - { - schemeField = iprot.readFieldBegin(); - if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { - break; - } - switch (schemeField.id) { - case 0: // SUCCESS - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.success = new TVersionedProperties(); - struct.success.read(iprot); - struct.setSuccessIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 1: // TOPE - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.tope = new ThriftTableOperationException(); - struct.tope.read(iprot); - struct.setTopeIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } + iprot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; - case 2: // SEC - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.sec = new ThriftSecurityException(); - struct.sec.read(iprot); - struct.setSecIsSet(true); - } else { + } + switch (schemeField.id) { + case 0: // SUCCESS + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.success = new TVersionedProperties(); + struct.success.read(iprot); + struct.setSuccessIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 1: // TOPE + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.tope = new ThriftTableOperationException(); + struct.tope.read(iprot); + struct.setTopeIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 2: // SEC + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.sec = new ThriftSecurityException(); + struct.sec.read(iprot); + struct.setSecIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - default: - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); } - iprot.readFieldEnd(); - } - iprot.readStructEnd(); + iprot.readStructEnd(); - // check for required fields of primitive type, which can't be checked in the validate method - struct.validate(); + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } finally { + iprot.decrementRecursionDepth(); + } } @Override @@ -35809,22 +36644,27 @@ public void write(org.apache.thrift.protocol.TProtocol prot, getVersionedTablePr @Override public void read(org.apache.thrift.protocol.TProtocol prot, getVersionedTableProperties_result struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; - java.util.BitSet incoming = iprot.readBitSet(3); - if (incoming.get(0)) { - struct.success = new TVersionedProperties(); - struct.success.read(iprot); - struct.setSuccessIsSet(true); - } - if (incoming.get(1)) { - struct.tope = new ThriftTableOperationException(); - struct.tope.read(iprot); - struct.setTopeIsSet(true); - } - if (incoming.get(2)) { - struct.sec = new ThriftSecurityException(); - struct.sec.read(iprot); - struct.setSecIsSet(true); + prot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(3); + if (incoming.get(0)) { + struct.success = new TVersionedProperties(); + struct.success.read(iprot); + struct.setSuccessIsSet(true); + } + if (incoming.get(1)) { + struct.tope = new ThriftTableOperationException(); + struct.tope.read(iprot); + struct.setTopeIsSet(true); + } + if (incoming.get(2)) { + struct.sec = new ThriftSecurityException(); + struct.sec.read(iprot); + struct.setSecIsSet(true); + } + } finally { + prot.decrementRecursionDepth(); } } } @@ -36301,50 +37141,55 @@ private static class getNamespaceConfiguration_argsStandardScheme extends org.ap @Override public void read(org.apache.thrift.protocol.TProtocol iprot, getNamespaceConfiguration_args struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TField schemeField; - iprot.readStructBegin(); - while (true) - { - schemeField = iprot.readFieldBegin(); - if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { - break; - } - switch (schemeField.id) { - case 1: // TINFO - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.tinfo = new TInfo(); - struct.tinfo.read(iprot); - struct.setTinfoIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 2: // CREDENTIALS - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); - struct.credentials.read(iprot); - struct.setCredentialsIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } + iprot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; - case 3: // NS - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.ns = iprot.readString(); - struct.setNsIsSet(true); - } else { + } + switch (schemeField.id) { + case 1: // TINFO + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.tinfo = new TInfo(); + struct.tinfo.read(iprot); + struct.setTinfoIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 2: // CREDENTIALS + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); + struct.credentials.read(iprot); + struct.setCredentialsIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 3: // NS + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.ns = iprot.readString(); + struct.setNsIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - default: - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); } - iprot.readFieldEnd(); - } - iprot.readStructEnd(); + iprot.readStructEnd(); - // check for required fields of primitive type, which can't be checked in the validate method - struct.validate(); + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } finally { + iprot.decrementRecursionDepth(); + } } @Override @@ -36409,21 +37254,26 @@ public void write(org.apache.thrift.protocol.TProtocol prot, getNamespaceConfigu @Override public void read(org.apache.thrift.protocol.TProtocol prot, getNamespaceConfiguration_args struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; - java.util.BitSet incoming = iprot.readBitSet(3); - if (incoming.get(0)) { - struct.tinfo = new TInfo(); - struct.tinfo.read(iprot); - struct.setTinfoIsSet(true); - } - if (incoming.get(1)) { - struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); - struct.credentials.read(iprot); - struct.setCredentialsIsSet(true); - } - if (incoming.get(2)) { - struct.ns = iprot.readString(); - struct.setNsIsSet(true); + prot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(3); + if (incoming.get(0)) { + struct.tinfo = new TInfo(); + struct.tinfo.read(iprot); + struct.setTinfoIsSet(true); + } + if (incoming.get(1)) { + struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); + struct.credentials.read(iprot); + struct.setCredentialsIsSet(true); + } + if (incoming.get(2)) { + struct.ns = iprot.readString(); + struct.setNsIsSet(true); + } + } finally { + prot.decrementRecursionDepth(); } } } @@ -36907,62 +37757,67 @@ private static class getNamespaceConfiguration_resultStandardScheme extends org. @Override public void read(org.apache.thrift.protocol.TProtocol iprot, getNamespaceConfiguration_result struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TField schemeField; - iprot.readStructBegin(); - while (true) - { - schemeField = iprot.readFieldBegin(); - if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { - break; - } - switch (schemeField.id) { - case 0: // SUCCESS - if (schemeField.type == org.apache.thrift.protocol.TType.MAP) { - { - org.apache.thrift.protocol.TMap _map108 = iprot.readMapBegin(); - struct.success = new java.util.HashMap(2*_map108.size); - @org.apache.thrift.annotation.Nullable java.lang.String _key109; - @org.apache.thrift.annotation.Nullable java.lang.String _val110; - for (int _i111 = 0; _i111 < _map108.size; ++_i111) + iprot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { + break; + } + switch (schemeField.id) { + case 0: // SUCCESS + if (schemeField.type == org.apache.thrift.protocol.TType.MAP) { { - _key109 = iprot.readString(); - _val110 = iprot.readString(); - struct.success.put(_key109, _val110); + org.apache.thrift.protocol.TMap _map108 = iprot.readMapBegin(); + struct.success = new java.util.HashMap(2*_map108.size); + @org.apache.thrift.annotation.Nullable java.lang.String _key109; + @org.apache.thrift.annotation.Nullable java.lang.String _val110; + for (int _i111 = 0; _i111 < _map108.size; ++_i111) + { + _key109 = iprot.readString(); + _val110 = iprot.readString(); + struct.success.put(_key109, _val110); + } + iprot.readMapEnd(); } - iprot.readMapEnd(); + struct.setSuccessIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } - struct.setSuccessIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 1: // TOPE - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.tope = new ThriftTableOperationException(); - struct.tope.read(iprot); - struct.setTopeIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 2: // SEC - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.sec = new ThriftSecurityException(); - struct.sec.read(iprot); - struct.setSecIsSet(true); - } else { + break; + case 1: // TOPE + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.tope = new ThriftTableOperationException(); + struct.tope.read(iprot); + struct.setTopeIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 2: // SEC + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.sec = new ThriftSecurityException(); + struct.sec.read(iprot); + struct.setSecIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - default: - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); } - iprot.readFieldEnd(); - } - iprot.readStructEnd(); + iprot.readStructEnd(); - // check for required fields of primitive type, which can't be checked in the validate method - struct.validate(); + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } finally { + iprot.decrementRecursionDepth(); + } } @Override @@ -37042,32 +37897,37 @@ public void write(org.apache.thrift.protocol.TProtocol prot, getNamespaceConfigu @Override public void read(org.apache.thrift.protocol.TProtocol prot, getNamespaceConfiguration_result struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; - java.util.BitSet incoming = iprot.readBitSet(3); - if (incoming.get(0)) { - { - org.apache.thrift.protocol.TMap _map114 = iprot.readMapBegin(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING); - struct.success = new java.util.HashMap(2*_map114.size); - @org.apache.thrift.annotation.Nullable java.lang.String _key115; - @org.apache.thrift.annotation.Nullable java.lang.String _val116; - for (int _i117 = 0; _i117 < _map114.size; ++_i117) + prot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(3); + if (incoming.get(0)) { { - _key115 = iprot.readString(); - _val116 = iprot.readString(); - struct.success.put(_key115, _val116); + org.apache.thrift.protocol.TMap _map114 = iprot.readMapBegin(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING); + struct.success = new java.util.HashMap(2*_map114.size); + @org.apache.thrift.annotation.Nullable java.lang.String _key115; + @org.apache.thrift.annotation.Nullable java.lang.String _val116; + for (int _i117 = 0; _i117 < _map114.size; ++_i117) + { + _key115 = iprot.readString(); + _val116 = iprot.readString(); + struct.success.put(_key115, _val116); + } } + struct.setSuccessIsSet(true); } - struct.setSuccessIsSet(true); - } - if (incoming.get(1)) { - struct.tope = new ThriftTableOperationException(); - struct.tope.read(iprot); - struct.setTopeIsSet(true); - } - if (incoming.get(2)) { - struct.sec = new ThriftSecurityException(); - struct.sec.read(iprot); - struct.setSecIsSet(true); + if (incoming.get(1)) { + struct.tope = new ThriftTableOperationException(); + struct.tope.read(iprot); + struct.setTopeIsSet(true); + } + if (incoming.get(2)) { + struct.sec = new ThriftSecurityException(); + struct.sec.read(iprot); + struct.setSecIsSet(true); + } + } finally { + prot.decrementRecursionDepth(); } } } @@ -37544,50 +38404,55 @@ private static class getNamespaceProperties_argsStandardScheme extends org.apach @Override public void read(org.apache.thrift.protocol.TProtocol iprot, getNamespaceProperties_args struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TField schemeField; - iprot.readStructBegin(); - while (true) - { - schemeField = iprot.readFieldBegin(); - if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { - break; - } - switch (schemeField.id) { - case 1: // TINFO - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.tinfo = new TInfo(); - struct.tinfo.read(iprot); - struct.setTinfoIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 2: // CREDENTIALS - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); - struct.credentials.read(iprot); - struct.setCredentialsIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } + iprot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; - case 3: // NS - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.ns = iprot.readString(); - struct.setNsIsSet(true); - } else { + } + switch (schemeField.id) { + case 1: // TINFO + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.tinfo = new TInfo(); + struct.tinfo.read(iprot); + struct.setTinfoIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 2: // CREDENTIALS + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); + struct.credentials.read(iprot); + struct.setCredentialsIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 3: // NS + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.ns = iprot.readString(); + struct.setNsIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - default: - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); } - iprot.readFieldEnd(); - } - iprot.readStructEnd(); + iprot.readStructEnd(); - // check for required fields of primitive type, which can't be checked in the validate method - struct.validate(); + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } finally { + iprot.decrementRecursionDepth(); + } } @Override @@ -37652,21 +38517,26 @@ public void write(org.apache.thrift.protocol.TProtocol prot, getNamespacePropert @Override public void read(org.apache.thrift.protocol.TProtocol prot, getNamespaceProperties_args struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; - java.util.BitSet incoming = iprot.readBitSet(3); - if (incoming.get(0)) { - struct.tinfo = new TInfo(); - struct.tinfo.read(iprot); - struct.setTinfoIsSet(true); - } - if (incoming.get(1)) { - struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); - struct.credentials.read(iprot); - struct.setCredentialsIsSet(true); - } - if (incoming.get(2)) { - struct.ns = iprot.readString(); - struct.setNsIsSet(true); + prot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(3); + if (incoming.get(0)) { + struct.tinfo = new TInfo(); + struct.tinfo.read(iprot); + struct.setTinfoIsSet(true); + } + if (incoming.get(1)) { + struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); + struct.credentials.read(iprot); + struct.setCredentialsIsSet(true); + } + if (incoming.get(2)) { + struct.ns = iprot.readString(); + struct.setNsIsSet(true); + } + } finally { + prot.decrementRecursionDepth(); } } } @@ -38150,62 +39020,67 @@ private static class getNamespaceProperties_resultStandardScheme extends org.apa @Override public void read(org.apache.thrift.protocol.TProtocol iprot, getNamespaceProperties_result struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TField schemeField; - iprot.readStructBegin(); - while (true) - { - schemeField = iprot.readFieldBegin(); - if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { - break; - } - switch (schemeField.id) { - case 0: // SUCCESS - if (schemeField.type == org.apache.thrift.protocol.TType.MAP) { - { - org.apache.thrift.protocol.TMap _map118 = iprot.readMapBegin(); - struct.success = new java.util.HashMap(2*_map118.size); - @org.apache.thrift.annotation.Nullable java.lang.String _key119; - @org.apache.thrift.annotation.Nullable java.lang.String _val120; - for (int _i121 = 0; _i121 < _map118.size; ++_i121) + iprot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { + break; + } + switch (schemeField.id) { + case 0: // SUCCESS + if (schemeField.type == org.apache.thrift.protocol.TType.MAP) { { - _key119 = iprot.readString(); - _val120 = iprot.readString(); - struct.success.put(_key119, _val120); + org.apache.thrift.protocol.TMap _map118 = iprot.readMapBegin(); + struct.success = new java.util.HashMap(2*_map118.size); + @org.apache.thrift.annotation.Nullable java.lang.String _key119; + @org.apache.thrift.annotation.Nullable java.lang.String _val120; + for (int _i121 = 0; _i121 < _map118.size; ++_i121) + { + _key119 = iprot.readString(); + _val120 = iprot.readString(); + struct.success.put(_key119, _val120); + } + iprot.readMapEnd(); } - iprot.readMapEnd(); + struct.setSuccessIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } - struct.setSuccessIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 1: // TOPE - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.tope = new ThriftTableOperationException(); - struct.tope.read(iprot); - struct.setTopeIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 2: // SEC - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.sec = new ThriftSecurityException(); - struct.sec.read(iprot); - struct.setSecIsSet(true); - } else { + break; + case 1: // TOPE + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.tope = new ThriftTableOperationException(); + struct.tope.read(iprot); + struct.setTopeIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 2: // SEC + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.sec = new ThriftSecurityException(); + struct.sec.read(iprot); + struct.setSecIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - default: - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); } - iprot.readFieldEnd(); - } - iprot.readStructEnd(); + iprot.readStructEnd(); - // check for required fields of primitive type, which can't be checked in the validate method - struct.validate(); + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } finally { + iprot.decrementRecursionDepth(); + } } @Override @@ -38285,32 +39160,37 @@ public void write(org.apache.thrift.protocol.TProtocol prot, getNamespacePropert @Override public void read(org.apache.thrift.protocol.TProtocol prot, getNamespaceProperties_result struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; - java.util.BitSet incoming = iprot.readBitSet(3); - if (incoming.get(0)) { - { - org.apache.thrift.protocol.TMap _map124 = iprot.readMapBegin(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING); - struct.success = new java.util.HashMap(2*_map124.size); - @org.apache.thrift.annotation.Nullable java.lang.String _key125; - @org.apache.thrift.annotation.Nullable java.lang.String _val126; - for (int _i127 = 0; _i127 < _map124.size; ++_i127) + prot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(3); + if (incoming.get(0)) { { - _key125 = iprot.readString(); - _val126 = iprot.readString(); - struct.success.put(_key125, _val126); + org.apache.thrift.protocol.TMap _map124 = iprot.readMapBegin(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING); + struct.success = new java.util.HashMap(2*_map124.size); + @org.apache.thrift.annotation.Nullable java.lang.String _key125; + @org.apache.thrift.annotation.Nullable java.lang.String _val126; + for (int _i127 = 0; _i127 < _map124.size; ++_i127) + { + _key125 = iprot.readString(); + _val126 = iprot.readString(); + struct.success.put(_key125, _val126); + } } + struct.setSuccessIsSet(true); } - struct.setSuccessIsSet(true); - } - if (incoming.get(1)) { - struct.tope = new ThriftTableOperationException(); - struct.tope.read(iprot); - struct.setTopeIsSet(true); - } - if (incoming.get(2)) { - struct.sec = new ThriftSecurityException(); - struct.sec.read(iprot); - struct.setSecIsSet(true); + if (incoming.get(1)) { + struct.tope = new ThriftTableOperationException(); + struct.tope.read(iprot); + struct.setTopeIsSet(true); + } + if (incoming.get(2)) { + struct.sec = new ThriftSecurityException(); + struct.sec.read(iprot); + struct.setSecIsSet(true); + } + } finally { + prot.decrementRecursionDepth(); } } } @@ -38787,50 +39667,55 @@ private static class getVersionedNamespaceProperties_argsStandardScheme extends @Override public void read(org.apache.thrift.protocol.TProtocol iprot, getVersionedNamespaceProperties_args struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TField schemeField; - iprot.readStructBegin(); - while (true) - { - schemeField = iprot.readFieldBegin(); - if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { - break; - } - switch (schemeField.id) { - case 1: // TINFO - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.tinfo = new TInfo(); - struct.tinfo.read(iprot); - struct.setTinfoIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 2: // CREDENTIALS - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); - struct.credentials.read(iprot); - struct.setCredentialsIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } + iprot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; - case 3: // NS - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.ns = iprot.readString(); - struct.setNsIsSet(true); - } else { + } + switch (schemeField.id) { + case 1: // TINFO + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.tinfo = new TInfo(); + struct.tinfo.read(iprot); + struct.setTinfoIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 2: // CREDENTIALS + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); + struct.credentials.read(iprot); + struct.setCredentialsIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 3: // NS + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.ns = iprot.readString(); + struct.setNsIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - default: - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); } - iprot.readFieldEnd(); - } - iprot.readStructEnd(); + iprot.readStructEnd(); - // check for required fields of primitive type, which can't be checked in the validate method - struct.validate(); + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } finally { + iprot.decrementRecursionDepth(); + } } @Override @@ -38895,21 +39780,26 @@ public void write(org.apache.thrift.protocol.TProtocol prot, getVersionedNamespa @Override public void read(org.apache.thrift.protocol.TProtocol prot, getVersionedNamespaceProperties_args struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; - java.util.BitSet incoming = iprot.readBitSet(3); - if (incoming.get(0)) { - struct.tinfo = new TInfo(); - struct.tinfo.read(iprot); - struct.setTinfoIsSet(true); - } - if (incoming.get(1)) { - struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); - struct.credentials.read(iprot); - struct.setCredentialsIsSet(true); - } - if (incoming.get(2)) { - struct.ns = iprot.readString(); - struct.setNsIsSet(true); + prot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(3); + if (incoming.get(0)) { + struct.tinfo = new TInfo(); + struct.tinfo.read(iprot); + struct.setTinfoIsSet(true); + } + if (incoming.get(1)) { + struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); + struct.credentials.read(iprot); + struct.setCredentialsIsSet(true); + } + if (incoming.get(2)) { + struct.ns = iprot.readString(); + struct.setNsIsSet(true); + } + } finally { + prot.decrementRecursionDepth(); } } } @@ -39382,51 +40272,56 @@ private static class getVersionedNamespaceProperties_resultStandardScheme extend @Override public void read(org.apache.thrift.protocol.TProtocol iprot, getVersionedNamespaceProperties_result struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TField schemeField; - iprot.readStructBegin(); - while (true) - { - schemeField = iprot.readFieldBegin(); - if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { - break; - } - switch (schemeField.id) { - case 0: // SUCCESS - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.success = new TVersionedProperties(); - struct.success.read(iprot); - struct.setSuccessIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 1: // TOPE - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.tope = new ThriftTableOperationException(); - struct.tope.read(iprot); - struct.setTopeIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } + iprot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; - case 2: // SEC - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.sec = new ThriftSecurityException(); - struct.sec.read(iprot); - struct.setSecIsSet(true); - } else { + } + switch (schemeField.id) { + case 0: // SUCCESS + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.success = new TVersionedProperties(); + struct.success.read(iprot); + struct.setSuccessIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 1: // TOPE + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.tope = new ThriftTableOperationException(); + struct.tope.read(iprot); + struct.setTopeIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 2: // SEC + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.sec = new ThriftSecurityException(); + struct.sec.read(iprot); + struct.setSecIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - default: - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); } - iprot.readFieldEnd(); - } - iprot.readStructEnd(); + iprot.readStructEnd(); - // check for required fields of primitive type, which can't be checked in the validate method - struct.validate(); + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } finally { + iprot.decrementRecursionDepth(); + } } @Override @@ -39491,22 +40386,27 @@ public void write(org.apache.thrift.protocol.TProtocol prot, getVersionedNamespa @Override public void read(org.apache.thrift.protocol.TProtocol prot, getVersionedNamespaceProperties_result struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; - java.util.BitSet incoming = iprot.readBitSet(3); - if (incoming.get(0)) { - struct.success = new TVersionedProperties(); - struct.success.read(iprot); - struct.setSuccessIsSet(true); - } - if (incoming.get(1)) { - struct.tope = new ThriftTableOperationException(); - struct.tope.read(iprot); - struct.setTopeIsSet(true); - } - if (incoming.get(2)) { - struct.sec = new ThriftSecurityException(); - struct.sec.read(iprot); - struct.setSecIsSet(true); + prot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(3); + if (incoming.get(0)) { + struct.success = new TVersionedProperties(); + struct.success.read(iprot); + struct.setSuccessIsSet(true); + } + if (incoming.get(1)) { + struct.tope = new ThriftTableOperationException(); + struct.tope.read(iprot); + struct.setTopeIsSet(true); + } + if (incoming.get(2)) { + struct.sec = new ThriftSecurityException(); + struct.sec.read(iprot); + struct.setSecIsSet(true); + } + } finally { + prot.decrementRecursionDepth(); } } } @@ -40065,58 +40965,63 @@ private static class checkClass_argsStandardScheme extends org.apache.thrift.sch @Override public void read(org.apache.thrift.protocol.TProtocol iprot, checkClass_args struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TField schemeField; - iprot.readStructBegin(); - while (true) - { - schemeField = iprot.readFieldBegin(); - if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { - break; - } - switch (schemeField.id) { - case 1: // TINFO - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.tinfo = new TInfo(); - struct.tinfo.read(iprot); - struct.setTinfoIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 4: // CREDENTIALS - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); - struct.credentials.read(iprot); - struct.setCredentialsIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 2: // CLASS_NAME - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.className = iprot.readString(); - struct.setClassNameIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } + iprot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; - case 3: // INTERFACE_MATCH - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.interfaceMatch = iprot.readString(); - struct.setInterfaceMatchIsSet(true); - } else { + } + switch (schemeField.id) { + case 1: // TINFO + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.tinfo = new TInfo(); + struct.tinfo.read(iprot); + struct.setTinfoIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 4: // CREDENTIALS + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); + struct.credentials.read(iprot); + struct.setCredentialsIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 2: // CLASS_NAME + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.className = iprot.readString(); + struct.setClassNameIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 3: // INTERFACE_MATCH + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.interfaceMatch = iprot.readString(); + struct.setInterfaceMatchIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - default: - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); } - iprot.readFieldEnd(); - } - iprot.readStructEnd(); + iprot.readStructEnd(); - // check for required fields of primitive type, which can't be checked in the validate method - struct.validate(); + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } finally { + iprot.decrementRecursionDepth(); + } } @Override @@ -40192,25 +41097,30 @@ public void write(org.apache.thrift.protocol.TProtocol prot, checkClass_args str @Override public void read(org.apache.thrift.protocol.TProtocol prot, checkClass_args struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; - java.util.BitSet incoming = iprot.readBitSet(4); - if (incoming.get(0)) { - struct.tinfo = new TInfo(); - struct.tinfo.read(iprot); - struct.setTinfoIsSet(true); - } - if (incoming.get(1)) { - struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); - struct.credentials.read(iprot); - struct.setCredentialsIsSet(true); - } - if (incoming.get(2)) { - struct.className = iprot.readString(); - struct.setClassNameIsSet(true); - } - if (incoming.get(3)) { - struct.interfaceMatch = iprot.readString(); - struct.setInterfaceMatchIsSet(true); + prot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(4); + if (incoming.get(0)) { + struct.tinfo = new TInfo(); + struct.tinfo.read(iprot); + struct.setTinfoIsSet(true); + } + if (incoming.get(1)) { + struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); + struct.credentials.read(iprot); + struct.setCredentialsIsSet(true); + } + if (incoming.get(2)) { + struct.className = iprot.readString(); + struct.setClassNameIsSet(true); + } + if (incoming.get(3)) { + struct.interfaceMatch = iprot.readString(); + struct.setInterfaceMatchIsSet(true); + } + } finally { + prot.decrementRecursionDepth(); } } } @@ -40513,32 +41423,37 @@ private static class checkClass_resultStandardScheme extends org.apache.thrift.s @Override public void read(org.apache.thrift.protocol.TProtocol iprot, checkClass_result struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TField schemeField; - iprot.readStructBegin(); - while (true) - { - schemeField = iprot.readFieldBegin(); - if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { - break; - } - switch (schemeField.id) { - case 0: // SUCCESS - if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) { - struct.success = iprot.readBool(); - struct.setSuccessIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } + iprot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; - default: - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + switch (schemeField.id) { + case 0: // SUCCESS + if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) { + struct.success = iprot.readBool(); + struct.setSuccessIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + default: + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); } - iprot.readFieldEnd(); - } - iprot.readStructEnd(); + iprot.readStructEnd(); - // check for required fields of primitive type, which can't be checked in the validate method - struct.validate(); + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } finally { + iprot.decrementRecursionDepth(); + } } @Override @@ -40581,11 +41496,16 @@ public void write(org.apache.thrift.protocol.TProtocol prot, checkClass_result s @Override public void read(org.apache.thrift.protocol.TProtocol prot, checkClass_result struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; - java.util.BitSet incoming = iprot.readBitSet(1); - if (incoming.get(0)) { - struct.success = iprot.readBool(); - struct.setSuccessIsSet(true); + prot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(1); + if (incoming.get(0)) { + struct.success = iprot.readBool(); + struct.setSuccessIsSet(true); + } + } finally { + prot.decrementRecursionDepth(); } } } @@ -41226,66 +42146,71 @@ private static class checkTableClass_argsStandardScheme extends org.apache.thrif @Override public void read(org.apache.thrift.protocol.TProtocol iprot, checkTableClass_args struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TField schemeField; - iprot.readStructBegin(); - while (true) - { - schemeField = iprot.readFieldBegin(); - if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { - break; - } - switch (schemeField.id) { - case 1: // TINFO - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.tinfo = new TInfo(); - struct.tinfo.read(iprot); - struct.setTinfoIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 5: // CREDENTIALS - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); - struct.credentials.read(iprot); - struct.setCredentialsIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 2: // TABLE_ID - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.tableId = iprot.readString(); - struct.setTableIdIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 3: // CLASS_NAME - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.className = iprot.readString(); - struct.setClassNameIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } + iprot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; - case 4: // INTERFACE_MATCH - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.interfaceMatch = iprot.readString(); - struct.setInterfaceMatchIsSet(true); - } else { + } + switch (schemeField.id) { + case 1: // TINFO + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.tinfo = new TInfo(); + struct.tinfo.read(iprot); + struct.setTinfoIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 5: // CREDENTIALS + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); + struct.credentials.read(iprot); + struct.setCredentialsIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 2: // TABLE_ID + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.tableId = iprot.readString(); + struct.setTableIdIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 3: // CLASS_NAME + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.className = iprot.readString(); + struct.setClassNameIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 4: // INTERFACE_MATCH + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.interfaceMatch = iprot.readString(); + struct.setInterfaceMatchIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - default: - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); } - iprot.readFieldEnd(); - } - iprot.readStructEnd(); + iprot.readStructEnd(); - // check for required fields of primitive type, which can't be checked in the validate method - struct.validate(); + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } finally { + iprot.decrementRecursionDepth(); + } } @Override @@ -41372,29 +42297,34 @@ public void write(org.apache.thrift.protocol.TProtocol prot, checkTableClass_arg @Override public void read(org.apache.thrift.protocol.TProtocol prot, checkTableClass_args struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; - java.util.BitSet incoming = iprot.readBitSet(5); - if (incoming.get(0)) { - struct.tinfo = new TInfo(); - struct.tinfo.read(iprot); - struct.setTinfoIsSet(true); - } - if (incoming.get(1)) { - struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); - struct.credentials.read(iprot); - struct.setCredentialsIsSet(true); - } - if (incoming.get(2)) { - struct.tableId = iprot.readString(); - struct.setTableIdIsSet(true); - } - if (incoming.get(3)) { - struct.className = iprot.readString(); - struct.setClassNameIsSet(true); - } - if (incoming.get(4)) { - struct.interfaceMatch = iprot.readString(); - struct.setInterfaceMatchIsSet(true); + prot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(5); + if (incoming.get(0)) { + struct.tinfo = new TInfo(); + struct.tinfo.read(iprot); + struct.setTinfoIsSet(true); + } + if (incoming.get(1)) { + struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); + struct.credentials.read(iprot); + struct.setCredentialsIsSet(true); + } + if (incoming.get(2)) { + struct.tableId = iprot.readString(); + struct.setTableIdIsSet(true); + } + if (incoming.get(3)) { + struct.className = iprot.readString(); + struct.setClassNameIsSet(true); + } + if (incoming.get(4)) { + struct.interfaceMatch = iprot.readString(); + struct.setInterfaceMatchIsSet(true); + } + } finally { + prot.decrementRecursionDepth(); } } } @@ -41861,50 +42791,55 @@ private static class checkTableClass_resultStandardScheme extends org.apache.thr @Override public void read(org.apache.thrift.protocol.TProtocol iprot, checkTableClass_result struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TField schemeField; - iprot.readStructBegin(); - while (true) - { - schemeField = iprot.readFieldBegin(); - if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { - break; - } - switch (schemeField.id) { - case 0: // SUCCESS - if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) { - struct.success = iprot.readBool(); - struct.setSuccessIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 1: // SEC - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.sec = new ThriftSecurityException(); - struct.sec.read(iprot); - struct.setSecIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } + iprot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; - case 2: // TOPE - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.tope = new ThriftTableOperationException(); - struct.tope.read(iprot); - struct.setTopeIsSet(true); - } else { + } + switch (schemeField.id) { + case 0: // SUCCESS + if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) { + struct.success = iprot.readBool(); + struct.setSuccessIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 1: // SEC + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.sec = new ThriftSecurityException(); + struct.sec.read(iprot); + struct.setSecIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 2: // TOPE + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.tope = new ThriftTableOperationException(); + struct.tope.read(iprot); + struct.setTopeIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - default: - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); } - iprot.readFieldEnd(); - } - iprot.readStructEnd(); + iprot.readStructEnd(); - // check for required fields of primitive type, which can't be checked in the validate method - struct.validate(); + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } finally { + iprot.decrementRecursionDepth(); + } } @Override @@ -41969,21 +42904,26 @@ public void write(org.apache.thrift.protocol.TProtocol prot, checkTableClass_res @Override public void read(org.apache.thrift.protocol.TProtocol prot, checkTableClass_result struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; - java.util.BitSet incoming = iprot.readBitSet(3); - if (incoming.get(0)) { - struct.success = iprot.readBool(); - struct.setSuccessIsSet(true); - } - if (incoming.get(1)) { - struct.sec = new ThriftSecurityException(); - struct.sec.read(iprot); - struct.setSecIsSet(true); - } - if (incoming.get(2)) { - struct.tope = new ThriftTableOperationException(); - struct.tope.read(iprot); - struct.setTopeIsSet(true); + prot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(3); + if (incoming.get(0)) { + struct.success = iprot.readBool(); + struct.setSuccessIsSet(true); + } + if (incoming.get(1)) { + struct.sec = new ThriftSecurityException(); + struct.sec.read(iprot); + struct.setSecIsSet(true); + } + if (incoming.get(2)) { + struct.tope = new ThriftTableOperationException(); + struct.tope.read(iprot); + struct.setTopeIsSet(true); + } + } finally { + prot.decrementRecursionDepth(); } } } @@ -42624,66 +43564,71 @@ private static class checkNamespaceClass_argsStandardScheme extends org.apache.t @Override public void read(org.apache.thrift.protocol.TProtocol iprot, checkNamespaceClass_args struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TField schemeField; - iprot.readStructBegin(); - while (true) - { - schemeField = iprot.readFieldBegin(); - if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { - break; - } - switch (schemeField.id) { - case 1: // TINFO - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.tinfo = new TInfo(); - struct.tinfo.read(iprot); - struct.setTinfoIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 2: // CREDENTIALS - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); - struct.credentials.read(iprot); - struct.setCredentialsIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 3: // NAMESPACE_ID - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.namespaceId = iprot.readString(); - struct.setNamespaceIdIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 4: // CLASS_NAME - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.className = iprot.readString(); - struct.setClassNameIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } + iprot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; - case 5: // INTERFACE_MATCH - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.interfaceMatch = iprot.readString(); - struct.setInterfaceMatchIsSet(true); - } else { + } + switch (schemeField.id) { + case 1: // TINFO + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.tinfo = new TInfo(); + struct.tinfo.read(iprot); + struct.setTinfoIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 2: // CREDENTIALS + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); + struct.credentials.read(iprot); + struct.setCredentialsIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 3: // NAMESPACE_ID + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.namespaceId = iprot.readString(); + struct.setNamespaceIdIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 4: // CLASS_NAME + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.className = iprot.readString(); + struct.setClassNameIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 5: // INTERFACE_MATCH + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.interfaceMatch = iprot.readString(); + struct.setInterfaceMatchIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - default: - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); } - iprot.readFieldEnd(); - } - iprot.readStructEnd(); + iprot.readStructEnd(); - // check for required fields of primitive type, which can't be checked in the validate method - struct.validate(); + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } finally { + iprot.decrementRecursionDepth(); + } } @Override @@ -42770,29 +43715,34 @@ public void write(org.apache.thrift.protocol.TProtocol prot, checkNamespaceClass @Override public void read(org.apache.thrift.protocol.TProtocol prot, checkNamespaceClass_args struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; - java.util.BitSet incoming = iprot.readBitSet(5); - if (incoming.get(0)) { - struct.tinfo = new TInfo(); - struct.tinfo.read(iprot); - struct.setTinfoIsSet(true); - } - if (incoming.get(1)) { - struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); - struct.credentials.read(iprot); - struct.setCredentialsIsSet(true); - } - if (incoming.get(2)) { - struct.namespaceId = iprot.readString(); - struct.setNamespaceIdIsSet(true); - } - if (incoming.get(3)) { - struct.className = iprot.readString(); - struct.setClassNameIsSet(true); - } - if (incoming.get(4)) { - struct.interfaceMatch = iprot.readString(); - struct.setInterfaceMatchIsSet(true); + prot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(5); + if (incoming.get(0)) { + struct.tinfo = new TInfo(); + struct.tinfo.read(iprot); + struct.setTinfoIsSet(true); + } + if (incoming.get(1)) { + struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); + struct.credentials.read(iprot); + struct.setCredentialsIsSet(true); + } + if (incoming.get(2)) { + struct.namespaceId = iprot.readString(); + struct.setNamespaceIdIsSet(true); + } + if (incoming.get(3)) { + struct.className = iprot.readString(); + struct.setClassNameIsSet(true); + } + if (incoming.get(4)) { + struct.interfaceMatch = iprot.readString(); + struct.setInterfaceMatchIsSet(true); + } + } finally { + prot.decrementRecursionDepth(); } } } @@ -43259,50 +44209,55 @@ private static class checkNamespaceClass_resultStandardScheme extends org.apache @Override public void read(org.apache.thrift.protocol.TProtocol iprot, checkNamespaceClass_result struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TField schemeField; - iprot.readStructBegin(); - while (true) - { - schemeField = iprot.readFieldBegin(); - if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { - break; - } - switch (schemeField.id) { - case 0: // SUCCESS - if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) { - struct.success = iprot.readBool(); - struct.setSuccessIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 1: // SEC - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.sec = new ThriftSecurityException(); - struct.sec.read(iprot); - struct.setSecIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } + iprot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; - case 2: // TOPE - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.tope = new ThriftTableOperationException(); - struct.tope.read(iprot); - struct.setTopeIsSet(true); - } else { + } + switch (schemeField.id) { + case 0: // SUCCESS + if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) { + struct.success = iprot.readBool(); + struct.setSuccessIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 1: // SEC + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.sec = new ThriftSecurityException(); + struct.sec.read(iprot); + struct.setSecIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 2: // TOPE + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.tope = new ThriftTableOperationException(); + struct.tope.read(iprot); + struct.setTopeIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - default: - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); } - iprot.readFieldEnd(); - } - iprot.readStructEnd(); + iprot.readStructEnd(); - // check for required fields of primitive type, which can't be checked in the validate method - struct.validate(); + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } finally { + iprot.decrementRecursionDepth(); + } } @Override @@ -43367,21 +44322,26 @@ public void write(org.apache.thrift.protocol.TProtocol prot, checkNamespaceClass @Override public void read(org.apache.thrift.protocol.TProtocol prot, checkNamespaceClass_result struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; - java.util.BitSet incoming = iprot.readBitSet(3); - if (incoming.get(0)) { - struct.success = iprot.readBool(); - struct.setSuccessIsSet(true); - } - if (incoming.get(1)) { - struct.sec = new ThriftSecurityException(); - struct.sec.read(iprot); - struct.setSecIsSet(true); - } - if (incoming.get(2)) { - struct.tope = new ThriftTableOperationException(); - struct.tope.read(iprot); - struct.setTopeIsSet(true); + prot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(3); + if (incoming.get(0)) { + struct.success = iprot.readBool(); + struct.setSuccessIsSet(true); + } + if (incoming.get(1)) { + struct.sec = new ThriftSecurityException(); + struct.sec.read(iprot); + struct.setSecIsSet(true); + } + if (incoming.get(2)) { + struct.tope = new ThriftTableOperationException(); + struct.tope.read(iprot); + struct.setTopeIsSet(true); + } + } finally { + prot.decrementRecursionDepth(); } } } diff --git a/core/src/main/thrift-gen-java/org/apache/accumulo/core/clientImpl/thrift/ConfigurationType.java b/core/src/main/thrift-gen-java/org/apache/accumulo/core/clientImpl/thrift/ConfigurationType.java index d0e2c7396ab..732fed921dc 100644 --- a/core/src/main/thrift-gen-java/org/apache/accumulo/core/clientImpl/thrift/ConfigurationType.java +++ b/core/src/main/thrift-gen-java/org/apache/accumulo/core/clientImpl/thrift/ConfigurationType.java @@ -17,7 +17,7 @@ * under the License. */ /* - * Autogenerated by Thrift Compiler (0.17.0) + * Autogenerated by Thrift Compiler (0.23.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated diff --git a/core/src/main/thrift-gen-java/org/apache/accumulo/core/clientImpl/thrift/SecurityErrorCode.java b/core/src/main/thrift-gen-java/org/apache/accumulo/core/clientImpl/thrift/SecurityErrorCode.java index 73a68858f95..8a6036bdae2 100644 --- a/core/src/main/thrift-gen-java/org/apache/accumulo/core/clientImpl/thrift/SecurityErrorCode.java +++ b/core/src/main/thrift-gen-java/org/apache/accumulo/core/clientImpl/thrift/SecurityErrorCode.java @@ -17,7 +17,7 @@ * under the License. */ /* - * Autogenerated by Thrift Compiler (0.17.0) + * Autogenerated by Thrift Compiler (0.23.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated diff --git a/core/src/main/thrift-gen-java/org/apache/accumulo/core/clientImpl/thrift/TDiskUsage.java b/core/src/main/thrift-gen-java/org/apache/accumulo/core/clientImpl/thrift/TDiskUsage.java index 4e940fbad77..94107041746 100644 --- a/core/src/main/thrift-gen-java/org/apache/accumulo/core/clientImpl/thrift/TDiskUsage.java +++ b/core/src/main/thrift-gen-java/org/apache/accumulo/core/clientImpl/thrift/TDiskUsage.java @@ -17,7 +17,7 @@ * under the License. */ /* - * Autogenerated by Thrift Compiler (0.17.0) + * Autogenerated by Thrift Compiler (0.23.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -418,50 +418,55 @@ private static class TDiskUsageStandardScheme extends org.apache.thrift.scheme.S @Override public void read(org.apache.thrift.protocol.TProtocol iprot, TDiskUsage struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TField schemeField; - iprot.readStructBegin(); - while (true) - { - schemeField = iprot.readFieldBegin(); - if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { - break; - } - switch (schemeField.id) { - case 1: // TABLES - if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { - { - org.apache.thrift.protocol.TList _list0 = iprot.readListBegin(); - struct.tables = new java.util.ArrayList(_list0.size); - @org.apache.thrift.annotation.Nullable java.lang.String _elem1; - for (int _i2 = 0; _i2 < _list0.size; ++_i2) + iprot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { + break; + } + switch (schemeField.id) { + case 1: // TABLES + if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - _elem1 = iprot.readString(); - struct.tables.add(_elem1); + org.apache.thrift.protocol.TList _list0 = iprot.readListBegin(); + struct.tables = new java.util.ArrayList(_list0.size); + @org.apache.thrift.annotation.Nullable java.lang.String _elem1; + for (int _i2 = 0; _i2 < _list0.size; ++_i2) + { + _elem1 = iprot.readString(); + struct.tables.add(_elem1); + } + iprot.readListEnd(); } - iprot.readListEnd(); + struct.setTablesIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } - struct.setTablesIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 2: // USAGE - if (schemeField.type == org.apache.thrift.protocol.TType.I64) { - struct.usage = iprot.readI64(); - struct.setUsageIsSet(true); - } else { + break; + case 2: // USAGE + if (schemeField.type == org.apache.thrift.protocol.TType.I64) { + struct.usage = iprot.readI64(); + struct.setUsageIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - default: - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); } - iprot.readFieldEnd(); - } - iprot.readStructEnd(); + iprot.readStructEnd(); - // check for required fields of primitive type, which can't be checked in the validate method - struct.validate(); + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } finally { + iprot.decrementRecursionDepth(); + } } @Override @@ -526,24 +531,29 @@ public void write(org.apache.thrift.protocol.TProtocol prot, TDiskUsage struct) @Override public void read(org.apache.thrift.protocol.TProtocol prot, TDiskUsage struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; - java.util.BitSet incoming = iprot.readBitSet(2); - if (incoming.get(0)) { - { - org.apache.thrift.protocol.TList _list5 = iprot.readListBegin(org.apache.thrift.protocol.TType.STRING); - struct.tables = new java.util.ArrayList(_list5.size); - @org.apache.thrift.annotation.Nullable java.lang.String _elem6; - for (int _i7 = 0; _i7 < _list5.size; ++_i7) + prot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(2); + if (incoming.get(0)) { { - _elem6 = iprot.readString(); - struct.tables.add(_elem6); + org.apache.thrift.protocol.TList _list5 = iprot.readListBegin(org.apache.thrift.protocol.TType.STRING); + struct.tables = new java.util.ArrayList(_list5.size); + @org.apache.thrift.annotation.Nullable java.lang.String _elem6; + for (int _i7 = 0; _i7 < _list5.size; ++_i7) + { + _elem6 = iprot.readString(); + struct.tables.add(_elem6); + } } + struct.setTablesIsSet(true); } - struct.setTablesIsSet(true); - } - if (incoming.get(1)) { - struct.usage = iprot.readI64(); - struct.setUsageIsSet(true); + if (incoming.get(1)) { + struct.usage = iprot.readI64(); + struct.setUsageIsSet(true); + } + } finally { + prot.decrementRecursionDepth(); } } } diff --git a/core/src/main/thrift-gen-java/org/apache/accumulo/core/clientImpl/thrift/TInfo.java b/core/src/main/thrift-gen-java/org/apache/accumulo/core/clientImpl/thrift/TInfo.java index 4562542e2b3..8efd28a2848 100644 --- a/core/src/main/thrift-gen-java/org/apache/accumulo/core/clientImpl/thrift/TInfo.java +++ b/core/src/main/thrift-gen-java/org/apache/accumulo/core/clientImpl/thrift/TInfo.java @@ -17,7 +17,7 @@ * under the License. */ /* - * Autogenerated by Thrift Compiler (0.17.0) + * Autogenerated by Thrift Compiler (0.23.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -335,44 +335,49 @@ private static class TInfoStandardScheme extends org.apache.thrift.scheme.Standa @Override public void read(org.apache.thrift.protocol.TProtocol iprot, TInfo struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TField schemeField; - iprot.readStructBegin(); - while (true) - { - schemeField = iprot.readFieldBegin(); - if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { - break; - } - switch (schemeField.id) { - case 1: // HEADERS - if (schemeField.type == org.apache.thrift.protocol.TType.MAP) { - { - org.apache.thrift.protocol.TMap _map18 = iprot.readMapBegin(); - struct.headers = new java.util.HashMap(2*_map18.size); - @org.apache.thrift.annotation.Nullable java.lang.String _key19; - @org.apache.thrift.annotation.Nullable java.lang.String _val20; - for (int _i21 = 0; _i21 < _map18.size; ++_i21) + iprot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { + break; + } + switch (schemeField.id) { + case 1: // HEADERS + if (schemeField.type == org.apache.thrift.protocol.TType.MAP) { { - _key19 = iprot.readString(); - _val20 = iprot.readString(); - struct.headers.put(_key19, _val20); + org.apache.thrift.protocol.TMap _map18 = iprot.readMapBegin(); + struct.headers = new java.util.HashMap(2*_map18.size); + @org.apache.thrift.annotation.Nullable java.lang.String _key19; + @org.apache.thrift.annotation.Nullable java.lang.String _val20; + for (int _i21 = 0; _i21 < _map18.size; ++_i21) + { + _key19 = iprot.readString(); + _val20 = iprot.readString(); + struct.headers.put(_key19, _val20); + } + iprot.readMapEnd(); } - iprot.readMapEnd(); + struct.setHeadersIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } - struct.setHeadersIsSet(true); - } else { + break; + default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - default: - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); } - iprot.readFieldEnd(); - } - iprot.readStructEnd(); + iprot.readStructEnd(); - // check for required fields of primitive type, which can't be checked in the validate method - struct.validate(); + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } finally { + iprot.decrementRecursionDepth(); + } } @Override @@ -430,22 +435,27 @@ public void write(org.apache.thrift.protocol.TProtocol prot, TInfo struct) throw @Override public void read(org.apache.thrift.protocol.TProtocol prot, TInfo struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; - java.util.BitSet incoming = iprot.readBitSet(1); - if (incoming.get(0)) { - { - org.apache.thrift.protocol.TMap _map24 = iprot.readMapBegin(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING); - struct.headers = new java.util.HashMap(2*_map24.size); - @org.apache.thrift.annotation.Nullable java.lang.String _key25; - @org.apache.thrift.annotation.Nullable java.lang.String _val26; - for (int _i27 = 0; _i27 < _map24.size; ++_i27) + prot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(1); + if (incoming.get(0)) { { - _key25 = iprot.readString(); - _val26 = iprot.readString(); - struct.headers.put(_key25, _val26); + org.apache.thrift.protocol.TMap _map24 = iprot.readMapBegin(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING); + struct.headers = new java.util.HashMap(2*_map24.size); + @org.apache.thrift.annotation.Nullable java.lang.String _key25; + @org.apache.thrift.annotation.Nullable java.lang.String _val26; + for (int _i27 = 0; _i27 < _map24.size; ++_i27) + { + _key25 = iprot.readString(); + _val26 = iprot.readString(); + struct.headers.put(_key25, _val26); + } } + struct.setHeadersIsSet(true); } - struct.setHeadersIsSet(true); + } finally { + prot.decrementRecursionDepth(); } } } diff --git a/core/src/main/thrift-gen-java/org/apache/accumulo/core/clientImpl/thrift/TVersionedProperties.java b/core/src/main/thrift-gen-java/org/apache/accumulo/core/clientImpl/thrift/TVersionedProperties.java index 703b255af3f..67e9d34d60b 100644 --- a/core/src/main/thrift-gen-java/org/apache/accumulo/core/clientImpl/thrift/TVersionedProperties.java +++ b/core/src/main/thrift-gen-java/org/apache/accumulo/core/clientImpl/thrift/TVersionedProperties.java @@ -17,7 +17,7 @@ * under the License. */ /* - * Autogenerated by Thrift Compiler (0.17.0) + * Autogenerated by Thrift Compiler (0.23.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -414,52 +414,57 @@ private static class TVersionedPropertiesStandardScheme extends org.apache.thrif @Override public void read(org.apache.thrift.protocol.TProtocol iprot, TVersionedProperties struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TField schemeField; - iprot.readStructBegin(); - while (true) - { - schemeField = iprot.readFieldBegin(); - if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { - break; - } - switch (schemeField.id) { - case 1: // VERSION - if (schemeField.type == org.apache.thrift.protocol.TType.I64) { - struct.version = iprot.readI64(); - struct.setVersionIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } + iprot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; - case 2: // PROPERTIES - if (schemeField.type == org.apache.thrift.protocol.TType.MAP) { - { - org.apache.thrift.protocol.TMap _map8 = iprot.readMapBegin(); - struct.properties = new java.util.HashMap(2*_map8.size); - @org.apache.thrift.annotation.Nullable java.lang.String _key9; - @org.apache.thrift.annotation.Nullable java.lang.String _val10; - for (int _i11 = 0; _i11 < _map8.size; ++_i11) + } + switch (schemeField.id) { + case 1: // VERSION + if (schemeField.type == org.apache.thrift.protocol.TType.I64) { + struct.version = iprot.readI64(); + struct.setVersionIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 2: // PROPERTIES + if (schemeField.type == org.apache.thrift.protocol.TType.MAP) { { - _key9 = iprot.readString(); - _val10 = iprot.readString(); - struct.properties.put(_key9, _val10); + org.apache.thrift.protocol.TMap _map8 = iprot.readMapBegin(); + struct.properties = new java.util.HashMap(2*_map8.size); + @org.apache.thrift.annotation.Nullable java.lang.String _key9; + @org.apache.thrift.annotation.Nullable java.lang.String _val10; + for (int _i11 = 0; _i11 < _map8.size; ++_i11) + { + _key9 = iprot.readString(); + _val10 = iprot.readString(); + struct.properties.put(_key9, _val10); + } + iprot.readMapEnd(); } - iprot.readMapEnd(); + struct.setPropertiesIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } - struct.setPropertiesIsSet(true); - } else { + break; + default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - default: - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); } - iprot.readFieldEnd(); - } - iprot.readStructEnd(); + iprot.readStructEnd(); - // check for required fields of primitive type, which can't be checked in the validate method - struct.validate(); + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } finally { + iprot.decrementRecursionDepth(); + } } @Override @@ -526,26 +531,31 @@ public void write(org.apache.thrift.protocol.TProtocol prot, TVersionedPropertie @Override public void read(org.apache.thrift.protocol.TProtocol prot, TVersionedProperties struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; - java.util.BitSet incoming = iprot.readBitSet(2); - if (incoming.get(0)) { - struct.version = iprot.readI64(); - struct.setVersionIsSet(true); - } - if (incoming.get(1)) { - { - org.apache.thrift.protocol.TMap _map14 = iprot.readMapBegin(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING); - struct.properties = new java.util.HashMap(2*_map14.size); - @org.apache.thrift.annotation.Nullable java.lang.String _key15; - @org.apache.thrift.annotation.Nullable java.lang.String _val16; - for (int _i17 = 0; _i17 < _map14.size; ++_i17) + prot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(2); + if (incoming.get(0)) { + struct.version = iprot.readI64(); + struct.setVersionIsSet(true); + } + if (incoming.get(1)) { { - _key15 = iprot.readString(); - _val16 = iprot.readString(); - struct.properties.put(_key15, _val16); + org.apache.thrift.protocol.TMap _map14 = iprot.readMapBegin(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING); + struct.properties = new java.util.HashMap(2*_map14.size); + @org.apache.thrift.annotation.Nullable java.lang.String _key15; + @org.apache.thrift.annotation.Nullable java.lang.String _val16; + for (int _i17 = 0; _i17 < _map14.size; ++_i17) + { + _key15 = iprot.readString(); + _val16 = iprot.readString(); + struct.properties.put(_key15, _val16); + } } + struct.setPropertiesIsSet(true); } - struct.setPropertiesIsSet(true); + } finally { + prot.decrementRecursionDepth(); } } } diff --git a/core/src/main/thrift-gen-java/org/apache/accumulo/core/clientImpl/thrift/TableOperation.java b/core/src/main/thrift-gen-java/org/apache/accumulo/core/clientImpl/thrift/TableOperation.java index ad355f941fc..c57721c459a 100644 --- a/core/src/main/thrift-gen-java/org/apache/accumulo/core/clientImpl/thrift/TableOperation.java +++ b/core/src/main/thrift-gen-java/org/apache/accumulo/core/clientImpl/thrift/TableOperation.java @@ -17,7 +17,7 @@ * under the License. */ /* - * Autogenerated by Thrift Compiler (0.17.0) + * Autogenerated by Thrift Compiler (0.23.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated diff --git a/core/src/main/thrift-gen-java/org/apache/accumulo/core/clientImpl/thrift/TableOperationExceptionType.java b/core/src/main/thrift-gen-java/org/apache/accumulo/core/clientImpl/thrift/TableOperationExceptionType.java index 6f0a98c22d3..639fd8892f5 100644 --- a/core/src/main/thrift-gen-java/org/apache/accumulo/core/clientImpl/thrift/TableOperationExceptionType.java +++ b/core/src/main/thrift-gen-java/org/apache/accumulo/core/clientImpl/thrift/TableOperationExceptionType.java @@ -17,7 +17,7 @@ * under the License. */ /* - * Autogenerated by Thrift Compiler (0.17.0) + * Autogenerated by Thrift Compiler (0.23.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated diff --git a/core/src/main/thrift-gen-java/org/apache/accumulo/core/clientImpl/thrift/ThriftConcurrentModificationException.java b/core/src/main/thrift-gen-java/org/apache/accumulo/core/clientImpl/thrift/ThriftConcurrentModificationException.java index 44c72ede282..07d89340354 100644 --- a/core/src/main/thrift-gen-java/org/apache/accumulo/core/clientImpl/thrift/ThriftConcurrentModificationException.java +++ b/core/src/main/thrift-gen-java/org/apache/accumulo/core/clientImpl/thrift/ThriftConcurrentModificationException.java @@ -17,7 +17,7 @@ * under the License. */ /* - * Autogenerated by Thrift Compiler (0.17.0) + * Autogenerated by Thrift Compiler (0.23.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -321,32 +321,37 @@ private static class ThriftConcurrentModificationExceptionStandardScheme extends @Override public void read(org.apache.thrift.protocol.TProtocol iprot, ThriftConcurrentModificationException struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TField schemeField; - iprot.readStructBegin(); - while (true) - { - schemeField = iprot.readFieldBegin(); - if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { - break; - } - switch (schemeField.id) { - case 1: // DESCRIPTION - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.description = iprot.readString(); - struct.setDescriptionIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } + iprot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; - default: - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + switch (schemeField.id) { + case 1: // DESCRIPTION + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.description = iprot.readString(); + struct.setDescriptionIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + default: + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); } - iprot.readFieldEnd(); - } - iprot.readStructEnd(); + iprot.readStructEnd(); - // check for required fields of primitive type, which can't be checked in the validate method - struct.validate(); + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } finally { + iprot.decrementRecursionDepth(); + } } @Override @@ -389,11 +394,16 @@ public void write(org.apache.thrift.protocol.TProtocol prot, ThriftConcurrentMod @Override public void read(org.apache.thrift.protocol.TProtocol prot, ThriftConcurrentModificationException struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; - java.util.BitSet incoming = iprot.readBitSet(1); - if (incoming.get(0)) { - struct.description = iprot.readString(); - struct.setDescriptionIsSet(true); + prot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(1); + if (incoming.get(0)) { + struct.description = iprot.readString(); + struct.setDescriptionIsSet(true); + } + } finally { + prot.decrementRecursionDepth(); } } } diff --git a/core/src/main/thrift-gen-java/org/apache/accumulo/core/clientImpl/thrift/ThriftNotActiveServiceException.java b/core/src/main/thrift-gen-java/org/apache/accumulo/core/clientImpl/thrift/ThriftNotActiveServiceException.java index 1bb8521b8ae..f904b0eba0f 100644 --- a/core/src/main/thrift-gen-java/org/apache/accumulo/core/clientImpl/thrift/ThriftNotActiveServiceException.java +++ b/core/src/main/thrift-gen-java/org/apache/accumulo/core/clientImpl/thrift/ThriftNotActiveServiceException.java @@ -17,7 +17,7 @@ * under the License. */ /* - * Autogenerated by Thrift Compiler (0.17.0) + * Autogenerated by Thrift Compiler (0.23.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -403,40 +403,45 @@ private static class ThriftNotActiveServiceExceptionStandardScheme extends org.a @Override public void read(org.apache.thrift.protocol.TProtocol iprot, ThriftNotActiveServiceException struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TField schemeField; - iprot.readStructBegin(); - while (true) - { - schemeField = iprot.readFieldBegin(); - if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { - break; - } - switch (schemeField.id) { - case 1: // SERV - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.serv = iprot.readString(); - struct.setServIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } + iprot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; - case 2: // DESCRIPTION - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.description = iprot.readString(); - struct.setDescriptionIsSet(true); - } else { + } + switch (schemeField.id) { + case 1: // SERV + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.serv = iprot.readString(); + struct.setServIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 2: // DESCRIPTION + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.description = iprot.readString(); + struct.setDescriptionIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - default: - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); } - iprot.readFieldEnd(); - } - iprot.readStructEnd(); + iprot.readStructEnd(); - // check for required fields of primitive type, which can't be checked in the validate method - struct.validate(); + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } finally { + iprot.decrementRecursionDepth(); + } } @Override @@ -490,15 +495,20 @@ public void write(org.apache.thrift.protocol.TProtocol prot, ThriftNotActiveServ @Override public void read(org.apache.thrift.protocol.TProtocol prot, ThriftNotActiveServiceException struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; - java.util.BitSet incoming = iprot.readBitSet(2); - if (incoming.get(0)) { - struct.serv = iprot.readString(); - struct.setServIsSet(true); - } - if (incoming.get(1)) { - struct.description = iprot.readString(); - struct.setDescriptionIsSet(true); + prot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(2); + if (incoming.get(0)) { + struct.serv = iprot.readString(); + struct.setServIsSet(true); + } + if (incoming.get(1)) { + struct.description = iprot.readString(); + struct.setDescriptionIsSet(true); + } + } finally { + prot.decrementRecursionDepth(); } } } diff --git a/core/src/main/thrift-gen-java/org/apache/accumulo/core/clientImpl/thrift/ThriftResourceGroupNotExistsException.java b/core/src/main/thrift-gen-java/org/apache/accumulo/core/clientImpl/thrift/ThriftResourceGroupNotExistsException.java index 44d126f032e..0a7f68f61b3 100644 --- a/core/src/main/thrift-gen-java/org/apache/accumulo/core/clientImpl/thrift/ThriftResourceGroupNotExistsException.java +++ b/core/src/main/thrift-gen-java/org/apache/accumulo/core/clientImpl/thrift/ThriftResourceGroupNotExistsException.java @@ -17,7 +17,7 @@ * under the License. */ /* - * Autogenerated by Thrift Compiler (0.17.0) + * Autogenerated by Thrift Compiler (0.23.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -321,32 +321,37 @@ private static class ThriftResourceGroupNotExistsExceptionStandardScheme extends @Override public void read(org.apache.thrift.protocol.TProtocol iprot, ThriftResourceGroupNotExistsException struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TField schemeField; - iprot.readStructBegin(); - while (true) - { - schemeField = iprot.readFieldBegin(); - if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { - break; - } - switch (schemeField.id) { - case 1: // RESOURCE_GROUP_NAME - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.resourceGroupName = iprot.readString(); - struct.setResourceGroupNameIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } + iprot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; - default: - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + switch (schemeField.id) { + case 1: // RESOURCE_GROUP_NAME + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.resourceGroupName = iprot.readString(); + struct.setResourceGroupNameIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + default: + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); } - iprot.readFieldEnd(); - } - iprot.readStructEnd(); + iprot.readStructEnd(); - // check for required fields of primitive type, which can't be checked in the validate method - struct.validate(); + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } finally { + iprot.decrementRecursionDepth(); + } } @Override @@ -389,11 +394,16 @@ public void write(org.apache.thrift.protocol.TProtocol prot, ThriftResourceGroup @Override public void read(org.apache.thrift.protocol.TProtocol prot, ThriftResourceGroupNotExistsException struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; - java.util.BitSet incoming = iprot.readBitSet(1); - if (incoming.get(0)) { - struct.resourceGroupName = iprot.readString(); - struct.setResourceGroupNameIsSet(true); + prot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(1); + if (incoming.get(0)) { + struct.resourceGroupName = iprot.readString(); + struct.setResourceGroupNameIsSet(true); + } + } finally { + prot.decrementRecursionDepth(); } } } diff --git a/core/src/main/thrift-gen-java/org/apache/accumulo/core/clientImpl/thrift/ThriftSecurityException.java b/core/src/main/thrift-gen-java/org/apache/accumulo/core/clientImpl/thrift/ThriftSecurityException.java index 39fd9b91811..b32b34fd1e4 100644 --- a/core/src/main/thrift-gen-java/org/apache/accumulo/core/clientImpl/thrift/ThriftSecurityException.java +++ b/core/src/main/thrift-gen-java/org/apache/accumulo/core/clientImpl/thrift/ThriftSecurityException.java @@ -17,7 +17,7 @@ * under the License. */ /* - * Autogenerated by Thrift Compiler (0.17.0) + * Autogenerated by Thrift Compiler (0.23.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -419,40 +419,45 @@ private static class ThriftSecurityExceptionStandardScheme extends org.apache.th @Override public void read(org.apache.thrift.protocol.TProtocol iprot, ThriftSecurityException struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TField schemeField; - iprot.readStructBegin(); - while (true) - { - schemeField = iprot.readFieldBegin(); - if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { - break; - } - switch (schemeField.id) { - case 1: // USER - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.user = iprot.readString(); - struct.setUserIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } + iprot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; - case 2: // CODE - if (schemeField.type == org.apache.thrift.protocol.TType.I32) { - struct.code = org.apache.accumulo.core.clientImpl.thrift.SecurityErrorCode.findByValue(iprot.readI32()); - struct.setCodeIsSet(true); - } else { + } + switch (schemeField.id) { + case 1: // USER + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.user = iprot.readString(); + struct.setUserIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 2: // CODE + if (schemeField.type == org.apache.thrift.protocol.TType.I32) { + struct.code = org.apache.accumulo.core.clientImpl.thrift.SecurityErrorCode.findByValue(iprot.readI32()); + struct.setCodeIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - default: - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); } - iprot.readFieldEnd(); - } - iprot.readStructEnd(); + iprot.readStructEnd(); - // check for required fields of primitive type, which can't be checked in the validate method - struct.validate(); + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } finally { + iprot.decrementRecursionDepth(); + } } @Override @@ -506,15 +511,20 @@ public void write(org.apache.thrift.protocol.TProtocol prot, ThriftSecurityExcep @Override public void read(org.apache.thrift.protocol.TProtocol prot, ThriftSecurityException struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; - java.util.BitSet incoming = iprot.readBitSet(2); - if (incoming.get(0)) { - struct.user = iprot.readString(); - struct.setUserIsSet(true); - } - if (incoming.get(1)) { - struct.code = org.apache.accumulo.core.clientImpl.thrift.SecurityErrorCode.findByValue(iprot.readI32()); - struct.setCodeIsSet(true); + prot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(2); + if (incoming.get(0)) { + struct.user = iprot.readString(); + struct.setUserIsSet(true); + } + if (incoming.get(1)) { + struct.code = org.apache.accumulo.core.clientImpl.thrift.SecurityErrorCode.findByValue(iprot.readI32()); + struct.setCodeIsSet(true); + } + } finally { + prot.decrementRecursionDepth(); } } } diff --git a/core/src/main/thrift-gen-java/org/apache/accumulo/core/clientImpl/thrift/ThriftTableOperationException.java b/core/src/main/thrift-gen-java/org/apache/accumulo/core/clientImpl/thrift/ThriftTableOperationException.java index 7a0f46dae84..067872d149c 100644 --- a/core/src/main/thrift-gen-java/org/apache/accumulo/core/clientImpl/thrift/ThriftTableOperationException.java +++ b/core/src/main/thrift-gen-java/org/apache/accumulo/core/clientImpl/thrift/ThriftTableOperationException.java @@ -17,7 +17,7 @@ * under the License. */ /* - * Autogenerated by Thrift Compiler (0.17.0) + * Autogenerated by Thrift Compiler (0.23.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -681,64 +681,69 @@ private static class ThriftTableOperationExceptionStandardScheme extends org.apa @Override public void read(org.apache.thrift.protocol.TProtocol iprot, ThriftTableOperationException struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TField schemeField; - iprot.readStructBegin(); - while (true) - { - schemeField = iprot.readFieldBegin(); - if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { - break; - } - switch (schemeField.id) { - case 1: // TABLE_ID - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.tableId = iprot.readString(); - struct.setTableIdIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 2: // TABLE_NAME - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.tableName = iprot.readString(); - struct.setTableNameIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 3: // OP - if (schemeField.type == org.apache.thrift.protocol.TType.I32) { - struct.op = org.apache.accumulo.core.clientImpl.thrift.TableOperation.findByValue(iprot.readI32()); - struct.setOpIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } + iprot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; - case 4: // TYPE - if (schemeField.type == org.apache.thrift.protocol.TType.I32) { - struct.type = org.apache.accumulo.core.clientImpl.thrift.TableOperationExceptionType.findByValue(iprot.readI32()); - struct.setTypeIsSet(true); - } else { + } + switch (schemeField.id) { + case 1: // TABLE_ID + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.tableId = iprot.readString(); + struct.setTableIdIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 2: // TABLE_NAME + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.tableName = iprot.readString(); + struct.setTableNameIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 3: // OP + if (schemeField.type == org.apache.thrift.protocol.TType.I32) { + struct.op = org.apache.accumulo.core.clientImpl.thrift.TableOperation.findByValue(iprot.readI32()); + struct.setOpIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 4: // TYPE + if (schemeField.type == org.apache.thrift.protocol.TType.I32) { + struct.type = org.apache.accumulo.core.clientImpl.thrift.TableOperationExceptionType.findByValue(iprot.readI32()); + struct.setTypeIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 5: // DESCRIPTION + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.description = iprot.readString(); + struct.setDescriptionIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 5: // DESCRIPTION - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.description = iprot.readString(); - struct.setDescriptionIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - default: - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); } - iprot.readFieldEnd(); - } - iprot.readStructEnd(); + iprot.readStructEnd(); - // check for required fields of primitive type, which can't be checked in the validate method - struct.validate(); + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } finally { + iprot.decrementRecursionDepth(); + } } @Override @@ -825,27 +830,32 @@ public void write(org.apache.thrift.protocol.TProtocol prot, ThriftTableOperatio @Override public void read(org.apache.thrift.protocol.TProtocol prot, ThriftTableOperationException struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; - java.util.BitSet incoming = iprot.readBitSet(5); - if (incoming.get(0)) { - struct.tableId = iprot.readString(); - struct.setTableIdIsSet(true); - } - if (incoming.get(1)) { - struct.tableName = iprot.readString(); - struct.setTableNameIsSet(true); - } - if (incoming.get(2)) { - struct.op = org.apache.accumulo.core.clientImpl.thrift.TableOperation.findByValue(iprot.readI32()); - struct.setOpIsSet(true); - } - if (incoming.get(3)) { - struct.type = org.apache.accumulo.core.clientImpl.thrift.TableOperationExceptionType.findByValue(iprot.readI32()); - struct.setTypeIsSet(true); - } - if (incoming.get(4)) { - struct.description = iprot.readString(); - struct.setDescriptionIsSet(true); + prot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(5); + if (incoming.get(0)) { + struct.tableId = iprot.readString(); + struct.setTableIdIsSet(true); + } + if (incoming.get(1)) { + struct.tableName = iprot.readString(); + struct.setTableNameIsSet(true); + } + if (incoming.get(2)) { + struct.op = org.apache.accumulo.core.clientImpl.thrift.TableOperation.findByValue(iprot.readI32()); + struct.setOpIsSet(true); + } + if (incoming.get(3)) { + struct.type = org.apache.accumulo.core.clientImpl.thrift.TableOperationExceptionType.findByValue(iprot.readI32()); + struct.setTypeIsSet(true); + } + if (incoming.get(4)) { + struct.description = iprot.readString(); + struct.setDescriptionIsSet(true); + } + } finally { + prot.decrementRecursionDepth(); } } } diff --git a/core/src/main/thrift-gen-java/org/apache/accumulo/core/clientImpl/thrift/ThriftTest.java b/core/src/main/thrift-gen-java/org/apache/accumulo/core/clientImpl/thrift/ThriftTest.java index d93c4129452..fe65ecb03f8 100644 --- a/core/src/main/thrift-gen-java/org/apache/accumulo/core/clientImpl/thrift/ThriftTest.java +++ b/core/src/main/thrift-gen-java/org/apache/accumulo/core/clientImpl/thrift/ThriftTest.java @@ -17,7 +17,7 @@ * under the License. */ /* - * Autogenerated by Thrift Compiler (0.17.0) + * Autogenerated by Thrift Compiler (0.23.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -261,21 +261,21 @@ public java.lang.Boolean getResult() throws ThriftSecurityException, org.apache. public static class Processor extends org.apache.thrift.TBaseProcessor implements org.apache.thrift.TProcessor { private static final org.slf4j.Logger _LOGGER = org.slf4j.LoggerFactory.getLogger(Processor.class.getName()); public Processor(I iface) { - super(iface, getProcessMap(new java.util.HashMap>())); + super(iface, getProcessMap(new java.util.HashMap>())); } - protected Processor(I iface, java.util.Map> processMap) { + protected Processor(I iface, java.util.Map> processMap) { super(iface, getProcessMap(processMap)); } - private static java.util.Map> getProcessMap(java.util.Map> processMap) { + private static java.util.Map> getProcessMap(java.util.Map> processMap) { processMap.put("success", new success()); processMap.put("fails", new fails()); processMap.put("throwsError", new throwsError()); return processMap; } - public static class success extends org.apache.thrift.ProcessFunction { + public static class success extends org.apache.thrift.ProcessFunction { public success() { super("success"); } @@ -286,7 +286,7 @@ public success_args getEmptyArgsInstance() { } @Override - protected boolean isOneway() { + public boolean isOneway() { return false; } @@ -295,16 +295,21 @@ protected boolean rethrowUnhandledExceptions() { return false; } + @Override + public success_result getEmptyResultInstance() { + return new success_result(); + } + @Override public success_result getResult(I iface, success_args args) throws org.apache.thrift.TException { - success_result result = new success_result(); + success_result result = getEmptyResultInstance(); result.success = iface.success(); result.setSuccessIsSet(true); return result; } } - public static class fails extends org.apache.thrift.ProcessFunction { + public static class fails extends org.apache.thrift.ProcessFunction { public fails() { super("fails"); } @@ -315,7 +320,7 @@ public fails_args getEmptyArgsInstance() { } @Override - protected boolean isOneway() { + public boolean isOneway() { return false; } @@ -324,16 +329,21 @@ protected boolean rethrowUnhandledExceptions() { return false; } + @Override + public fails_result getEmptyResultInstance() { + return new fails_result(); + } + @Override public fails_result getResult(I iface, fails_args args) throws org.apache.thrift.TException { - fails_result result = new fails_result(); + fails_result result = getEmptyResultInstance(); result.success = iface.fails(); result.setSuccessIsSet(true); return result; } } - public static class throwsError extends org.apache.thrift.ProcessFunction { + public static class throwsError extends org.apache.thrift.ProcessFunction { public throwsError() { super("throwsError"); } @@ -344,7 +354,7 @@ public throwsError_args getEmptyArgsInstance() { } @Override - protected boolean isOneway() { + public boolean isOneway() { return false; } @@ -353,9 +363,14 @@ protected boolean rethrowUnhandledExceptions() { return false; } + @Override + public throwsError_result getEmptyResultInstance() { + return new throwsError_result(); + } + @Override public throwsError_result getResult(I iface, throwsError_args args) throws org.apache.thrift.TException { - throwsError_result result = new throwsError_result(); + throwsError_result result = getEmptyResultInstance(); try { result.success = iface.throwsError(); result.setSuccessIsSet(true); @@ -371,25 +386,30 @@ public throwsError_result getResult(I iface, throwsError_args args) throws org.a public static class AsyncProcessor extends org.apache.thrift.TBaseAsyncProcessor { private static final org.slf4j.Logger _LOGGER = org.slf4j.LoggerFactory.getLogger(AsyncProcessor.class.getName()); public AsyncProcessor(I iface) { - super(iface, getProcessMap(new java.util.HashMap>())); + super(iface, getProcessMap(new java.util.HashMap>())); } - protected AsyncProcessor(I iface, java.util.Map> processMap) { + protected AsyncProcessor(I iface, java.util.Map> processMap) { super(iface, getProcessMap(processMap)); } - private static java.util.Map> getProcessMap(java.util.Map> processMap) { + private static java.util.Map> getProcessMap(java.util.Map> processMap) { processMap.put("success", new success()); processMap.put("fails", new fails()); processMap.put("throwsError", new throwsError()); return processMap; } - public static class success extends org.apache.thrift.AsyncProcessFunction { + public static class success extends org.apache.thrift.AsyncProcessFunction { public success() { super("success"); } + @Override + public success_result getEmptyResultInstance() { + return new success_result(); + } + @Override public success_args getEmptyArgsInstance() { return new success_args(); @@ -443,7 +463,7 @@ public void onError(java.lang.Exception e) { } @Override - protected boolean isOneway() { + public boolean isOneway() { return false; } @@ -453,11 +473,16 @@ public void start(I iface, success_args args, org.apache.thrift.async.AsyncMetho } } - public static class fails extends org.apache.thrift.AsyncProcessFunction { + public static class fails extends org.apache.thrift.AsyncProcessFunction { public fails() { super("fails"); } + @Override + public fails_result getEmptyResultInstance() { + return new fails_result(); + } + @Override public fails_args getEmptyArgsInstance() { return new fails_args(); @@ -511,7 +536,7 @@ public void onError(java.lang.Exception e) { } @Override - protected boolean isOneway() { + public boolean isOneway() { return false; } @@ -521,11 +546,16 @@ public void start(I iface, fails_args args, org.apache.thrift.async.AsyncMethodC } } - public static class throwsError extends org.apache.thrift.AsyncProcessFunction { + public static class throwsError extends org.apache.thrift.AsyncProcessFunction { public throwsError() { super("throwsError"); } + @Override + public throwsError_result getEmptyResultInstance() { + return new throwsError_result(); + } + @Override public throwsError_args getEmptyArgsInstance() { return new throwsError_args(); @@ -583,7 +613,7 @@ public void onError(java.lang.Exception e) { } @Override - protected boolean isOneway() { + public boolean isOneway() { return false; } @@ -805,24 +835,29 @@ private static class success_argsStandardScheme extends org.apache.thrift.scheme @Override public void read(org.apache.thrift.protocol.TProtocol iprot, success_args struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TField schemeField; - iprot.readStructBegin(); - while (true) - { - schemeField = iprot.readFieldBegin(); - if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { - break; - } - switch (schemeField.id) { - default: - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + iprot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { + break; + } + switch (schemeField.id) { + default: + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); } - iprot.readFieldEnd(); - } - iprot.readStructEnd(); + iprot.readStructEnd(); - // check for required fields of primitive type, which can't be checked in the validate method - struct.validate(); + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } finally { + iprot.decrementRecursionDepth(); + } } @Override @@ -852,7 +887,12 @@ public void write(org.apache.thrift.protocol.TProtocol prot, success_args struct @Override public void read(org.apache.thrift.protocol.TProtocol prot, success_args struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + prot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + } finally { + prot.decrementRecursionDepth(); + } } } @@ -1154,32 +1194,37 @@ private static class success_resultStandardScheme extends org.apache.thrift.sche @Override public void read(org.apache.thrift.protocol.TProtocol iprot, success_result struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TField schemeField; - iprot.readStructBegin(); - while (true) - { - schemeField = iprot.readFieldBegin(); - if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { - break; - } - switch (schemeField.id) { - case 0: // SUCCESS - if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) { - struct.success = iprot.readBool(); - struct.setSuccessIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } + iprot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; - default: - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + switch (schemeField.id) { + case 0: // SUCCESS + if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) { + struct.success = iprot.readBool(); + struct.setSuccessIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + default: + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); } - iprot.readFieldEnd(); - } - iprot.readStructEnd(); + iprot.readStructEnd(); - // check for required fields of primitive type, which can't be checked in the validate method - struct.validate(); + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } finally { + iprot.decrementRecursionDepth(); + } } @Override @@ -1222,11 +1267,16 @@ public void write(org.apache.thrift.protocol.TProtocol prot, success_result stru @Override public void read(org.apache.thrift.protocol.TProtocol prot, success_result struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; - java.util.BitSet incoming = iprot.readBitSet(1); - if (incoming.get(0)) { - struct.success = iprot.readBool(); - struct.setSuccessIsSet(true); + prot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(1); + if (incoming.get(0)) { + struct.success = iprot.readBool(); + struct.setSuccessIsSet(true); + } + } finally { + prot.decrementRecursionDepth(); } } } @@ -1446,24 +1496,29 @@ private static class fails_argsStandardScheme extends org.apache.thrift.scheme.S @Override public void read(org.apache.thrift.protocol.TProtocol iprot, fails_args struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TField schemeField; - iprot.readStructBegin(); - while (true) - { - schemeField = iprot.readFieldBegin(); - if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { - break; - } - switch (schemeField.id) { - default: - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + iprot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { + break; + } + switch (schemeField.id) { + default: + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); } - iprot.readFieldEnd(); - } - iprot.readStructEnd(); + iprot.readStructEnd(); - // check for required fields of primitive type, which can't be checked in the validate method - struct.validate(); + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } finally { + iprot.decrementRecursionDepth(); + } } @Override @@ -1493,7 +1548,12 @@ public void write(org.apache.thrift.protocol.TProtocol prot, fails_args struct) @Override public void read(org.apache.thrift.protocol.TProtocol prot, fails_args struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + prot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + } finally { + prot.decrementRecursionDepth(); + } } } @@ -1795,32 +1855,37 @@ private static class fails_resultStandardScheme extends org.apache.thrift.scheme @Override public void read(org.apache.thrift.protocol.TProtocol iprot, fails_result struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TField schemeField; - iprot.readStructBegin(); - while (true) - { - schemeField = iprot.readFieldBegin(); - if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { - break; - } - switch (schemeField.id) { - case 0: // SUCCESS - if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) { - struct.success = iprot.readBool(); - struct.setSuccessIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } + iprot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; - default: - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + switch (schemeField.id) { + case 0: // SUCCESS + if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) { + struct.success = iprot.readBool(); + struct.setSuccessIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + default: + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); } - iprot.readFieldEnd(); - } - iprot.readStructEnd(); + iprot.readStructEnd(); - // check for required fields of primitive type, which can't be checked in the validate method - struct.validate(); + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } finally { + iprot.decrementRecursionDepth(); + } } @Override @@ -1863,11 +1928,16 @@ public void write(org.apache.thrift.protocol.TProtocol prot, fails_result struct @Override public void read(org.apache.thrift.protocol.TProtocol prot, fails_result struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; - java.util.BitSet incoming = iprot.readBitSet(1); - if (incoming.get(0)) { - struct.success = iprot.readBool(); - struct.setSuccessIsSet(true); + prot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(1); + if (incoming.get(0)) { + struct.success = iprot.readBool(); + struct.setSuccessIsSet(true); + } + } finally { + prot.decrementRecursionDepth(); } } } @@ -2087,24 +2157,29 @@ private static class throwsError_argsStandardScheme extends org.apache.thrift.sc @Override public void read(org.apache.thrift.protocol.TProtocol iprot, throwsError_args struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TField schemeField; - iprot.readStructBegin(); - while (true) - { - schemeField = iprot.readFieldBegin(); - if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { - break; - } - switch (schemeField.id) { - default: - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + iprot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { + break; + } + switch (schemeField.id) { + default: + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); } - iprot.readFieldEnd(); - } - iprot.readStructEnd(); + iprot.readStructEnd(); - // check for required fields of primitive type, which can't be checked in the validate method - struct.validate(); + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } finally { + iprot.decrementRecursionDepth(); + } } @Override @@ -2134,7 +2209,12 @@ public void write(org.apache.thrift.protocol.TProtocol prot, throwsError_args st @Override public void read(org.apache.thrift.protocol.TProtocol prot, throwsError_args struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + prot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + } finally { + prot.decrementRecursionDepth(); + } } } @@ -2518,41 +2598,46 @@ private static class throwsError_resultStandardScheme extends org.apache.thrift. @Override public void read(org.apache.thrift.protocol.TProtocol iprot, throwsError_result struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TField schemeField; - iprot.readStructBegin(); - while (true) - { - schemeField = iprot.readFieldBegin(); - if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { - break; - } - switch (schemeField.id) { - case 0: // SUCCESS - if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) { - struct.success = iprot.readBool(); - struct.setSuccessIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } + iprot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; - case 1: // EX - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.ex = new ThriftSecurityException(); - struct.ex.read(iprot); - struct.setExIsSet(true); - } else { + } + switch (schemeField.id) { + case 0: // SUCCESS + if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) { + struct.success = iprot.readBool(); + struct.setSuccessIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 1: // EX + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.ex = new ThriftSecurityException(); + struct.ex.read(iprot); + struct.setExIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - default: - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); } - iprot.readFieldEnd(); - } - iprot.readStructEnd(); + iprot.readStructEnd(); - // check for required fields of primitive type, which can't be checked in the validate method - struct.validate(); + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } finally { + iprot.decrementRecursionDepth(); + } } @Override @@ -2606,16 +2691,21 @@ public void write(org.apache.thrift.protocol.TProtocol prot, throwsError_result @Override public void read(org.apache.thrift.protocol.TProtocol prot, throwsError_result struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; - java.util.BitSet incoming = iprot.readBitSet(2); - if (incoming.get(0)) { - struct.success = iprot.readBool(); - struct.setSuccessIsSet(true); - } - if (incoming.get(1)) { - struct.ex = new ThriftSecurityException(); - struct.ex.read(iprot); - struct.setExIsSet(true); + prot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(2); + if (incoming.get(0)) { + struct.success = iprot.readBool(); + struct.setSuccessIsSet(true); + } + if (incoming.get(1)) { + struct.ex = new ThriftSecurityException(); + struct.ex.read(iprot); + struct.setExIsSet(true); + } + } finally { + prot.decrementRecursionDepth(); } } } diff --git a/core/src/main/thrift-gen-java/org/apache/accumulo/core/compaction/thrift/CompactionCoordinatorService.java b/core/src/main/thrift-gen-java/org/apache/accumulo/core/compaction/thrift/CompactionCoordinatorService.java index a61ba2e5c90..3ea90f14a6c 100644 --- a/core/src/main/thrift-gen-java/org/apache/accumulo/core/compaction/thrift/CompactionCoordinatorService.java +++ b/core/src/main/thrift-gen-java/org/apache/accumulo/core/compaction/thrift/CompactionCoordinatorService.java @@ -17,7 +17,7 @@ * under the License. */ /* - * Autogenerated by Thrift Compiler (0.17.0) + * Autogenerated by Thrift Compiler (0.23.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -352,21 +352,21 @@ public Void getResult() throws org.apache.accumulo.core.clientImpl.thrift.Thrift public static class Processor extends org.apache.thrift.TBaseProcessor implements org.apache.thrift.TProcessor { private static final org.slf4j.Logger _LOGGER = org.slf4j.LoggerFactory.getLogger(Processor.class.getName()); public Processor(I iface) { - super(iface, getProcessMap(new java.util.HashMap>())); + super(iface, getProcessMap(new java.util.HashMap>())); } - protected Processor(I iface, java.util.Map> processMap) { + protected Processor(I iface, java.util.Map> processMap) { super(iface, getProcessMap(processMap)); } - private static java.util.Map> getProcessMap(java.util.Map> processMap) { + private static java.util.Map> getProcessMap(java.util.Map> processMap) { processMap.put("compactionCompleted", new compactionCompleted()); processMap.put("getCompactionJob", new getCompactionJob()); processMap.put("compactionFailed", new compactionFailed()); return processMap; } - public static class compactionCompleted extends org.apache.thrift.ProcessFunction { + public static class compactionCompleted extends org.apache.thrift.ProcessFunction { public compactionCompleted() { super("compactionCompleted"); } @@ -377,7 +377,7 @@ public compactionCompleted_args getEmptyArgsInstance() { } @Override - protected boolean isOneway() { + public boolean isOneway() { return false; } @@ -386,9 +386,14 @@ protected boolean rethrowUnhandledExceptions() { return false; } + @Override + public compactionCompleted_result getEmptyResultInstance() { + return new compactionCompleted_result(); + } + @Override public compactionCompleted_result getResult(I iface, compactionCompleted_args args) throws org.apache.thrift.TException { - compactionCompleted_result result = new compactionCompleted_result(); + compactionCompleted_result result = getEmptyResultInstance(); try { iface.compactionCompleted(args.tinfo, args.credentials, args.externalCompactionId, args.extent, args.stats, args.groupName, args.compactor); } catch (org.apache.accumulo.core.clientImpl.thrift.ThriftSecurityException sec) { @@ -400,7 +405,7 @@ public compactionCompleted_result getResult(I iface, compactionCompleted_args ar } } - public static class getCompactionJob extends org.apache.thrift.ProcessFunction { + public static class getCompactionJob extends org.apache.thrift.ProcessFunction { public getCompactionJob() { super("getCompactionJob"); } @@ -411,7 +416,7 @@ public getCompactionJob_args getEmptyArgsInstance() { } @Override - protected boolean isOneway() { + public boolean isOneway() { return false; } @@ -420,9 +425,14 @@ protected boolean rethrowUnhandledExceptions() { return false; } + @Override + public getCompactionJob_result getEmptyResultInstance() { + return new getCompactionJob_result(); + } + @Override public getCompactionJob_result getResult(I iface, getCompactionJob_args args) throws org.apache.thrift.TException { - getCompactionJob_result result = new getCompactionJob_result(); + getCompactionJob_result result = getEmptyResultInstance(); try { result.success = iface.getCompactionJob(args.tinfo, args.credentials, args.groupName, args.compactor, args.externalCompactionId); } catch (org.apache.accumulo.core.clientImpl.thrift.ThriftSecurityException sec) { @@ -434,7 +444,7 @@ public getCompactionJob_result getResult(I iface, getCompactionJob_args args) th } } - public static class compactionFailed extends org.apache.thrift.ProcessFunction { + public static class compactionFailed extends org.apache.thrift.ProcessFunction { public compactionFailed() { super("compactionFailed"); } @@ -445,7 +455,7 @@ public compactionFailed_args getEmptyArgsInstance() { } @Override - protected boolean isOneway() { + public boolean isOneway() { return false; } @@ -454,9 +464,14 @@ protected boolean rethrowUnhandledExceptions() { return false; } + @Override + public compactionFailed_result getEmptyResultInstance() { + return new compactionFailed_result(); + } + @Override public compactionFailed_result getResult(I iface, compactionFailed_args args) throws org.apache.thrift.TException { - compactionFailed_result result = new compactionFailed_result(); + compactionFailed_result result = getEmptyResultInstance(); try { iface.compactionFailed(args.tinfo, args.credentials, args.externalCompactionId, args.extent, args.exceptionClassName, args.failureState, args.groupName, args.compactor); } catch (org.apache.accumulo.core.clientImpl.thrift.ThriftSecurityException sec) { @@ -473,25 +488,30 @@ public compactionFailed_result getResult(I iface, compactionFailed_args args) th public static class AsyncProcessor extends org.apache.thrift.TBaseAsyncProcessor { private static final org.slf4j.Logger _LOGGER = org.slf4j.LoggerFactory.getLogger(AsyncProcessor.class.getName()); public AsyncProcessor(I iface) { - super(iface, getProcessMap(new java.util.HashMap>())); + super(iface, getProcessMap(new java.util.HashMap>())); } - protected AsyncProcessor(I iface, java.util.Map> processMap) { + protected AsyncProcessor(I iface, java.util.Map> processMap) { super(iface, getProcessMap(processMap)); } - private static java.util.Map> getProcessMap(java.util.Map> processMap) { + private static java.util.Map> getProcessMap(java.util.Map> processMap) { processMap.put("compactionCompleted", new compactionCompleted()); processMap.put("getCompactionJob", new getCompactionJob()); processMap.put("compactionFailed", new compactionFailed()); return processMap; } - public static class compactionCompleted extends org.apache.thrift.AsyncProcessFunction { + public static class compactionCompleted extends org.apache.thrift.AsyncProcessFunction { public compactionCompleted() { super("compactionCompleted"); } + @Override + public compactionCompleted_result getEmptyResultInstance() { + return new compactionCompleted_result(); + } + @Override public compactionCompleted_args getEmptyArgsInstance() { return new compactionCompleted_args(); @@ -551,7 +571,7 @@ public void onError(java.lang.Exception e) { } @Override - protected boolean isOneway() { + public boolean isOneway() { return false; } @@ -561,11 +581,16 @@ public void start(I iface, compactionCompleted_args args, org.apache.thrift.asyn } } - public static class getCompactionJob extends org.apache.thrift.AsyncProcessFunction { + public static class getCompactionJob extends org.apache.thrift.AsyncProcessFunction { public getCompactionJob() { super("getCompactionJob"); } + @Override + public getCompactionJob_result getEmptyResultInstance() { + return new getCompactionJob_result(); + } + @Override public getCompactionJob_args getEmptyArgsInstance() { return new getCompactionJob_args(); @@ -626,7 +651,7 @@ public void onError(java.lang.Exception e) { } @Override - protected boolean isOneway() { + public boolean isOneway() { return false; } @@ -636,11 +661,16 @@ public void start(I iface, getCompactionJob_args args, org.apache.thrift.async.A } } - public static class compactionFailed extends org.apache.thrift.AsyncProcessFunction { + public static class compactionFailed extends org.apache.thrift.AsyncProcessFunction { public compactionFailed() { super("compactionFailed"); } + @Override + public compactionFailed_result getEmptyResultInstance() { + return new compactionFailed_result(); + } + @Override public compactionFailed_args getEmptyArgsInstance() { return new compactionFailed_args(); @@ -700,7 +730,7 @@ public void onError(java.lang.Exception e) { } @Override - protected boolean isOneway() { + public boolean isOneway() { return false; } @@ -1513,84 +1543,89 @@ private static class compactionCompleted_argsStandardScheme extends org.apache.t @Override public void read(org.apache.thrift.protocol.TProtocol iprot, compactionCompleted_args struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TField schemeField; - iprot.readStructBegin(); - while (true) - { - schemeField = iprot.readFieldBegin(); - if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { - break; - } - switch (schemeField.id) { - case 1: // TINFO - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.tinfo = new org.apache.accumulo.core.clientImpl.thrift.TInfo(); - struct.tinfo.read(iprot); - struct.setTinfoIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 2: // CREDENTIALS - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); - struct.credentials.read(iprot); - struct.setCredentialsIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 3: // EXTERNAL_COMPACTION_ID - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.externalCompactionId = iprot.readString(); - struct.setExternalCompactionIdIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 4: // EXTENT - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.extent = new org.apache.accumulo.core.dataImpl.thrift.TKeyExtent(); - struct.extent.read(iprot); - struct.setExtentIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 5: // STATS - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.stats = new org.apache.accumulo.core.tabletserver.thrift.TCompactionStats(); - struct.stats.read(iprot); - struct.setStatsIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 6: // GROUP_NAME - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.groupName = iprot.readString(); - struct.setGroupNameIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } + iprot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; - case 7: // COMPACTOR - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.compactor = iprot.readString(); - struct.setCompactorIsSet(true); - } else { + } + switch (schemeField.id) { + case 1: // TINFO + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.tinfo = new org.apache.accumulo.core.clientImpl.thrift.TInfo(); + struct.tinfo.read(iprot); + struct.setTinfoIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 2: // CREDENTIALS + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); + struct.credentials.read(iprot); + struct.setCredentialsIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 3: // EXTERNAL_COMPACTION_ID + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.externalCompactionId = iprot.readString(); + struct.setExternalCompactionIdIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 4: // EXTENT + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.extent = new org.apache.accumulo.core.dataImpl.thrift.TKeyExtent(); + struct.extent.read(iprot); + struct.setExtentIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 5: // STATS + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.stats = new org.apache.accumulo.core.tabletserver.thrift.TCompactionStats(); + struct.stats.read(iprot); + struct.setStatsIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 6: // GROUP_NAME + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.groupName = iprot.readString(); + struct.setGroupNameIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 7: // COMPACTOR + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.compactor = iprot.readString(); + struct.setCompactorIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - default: - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); } - iprot.readFieldEnd(); - } - iprot.readStructEnd(); + iprot.readStructEnd(); - // check for required fields of primitive type, which can't be checked in the validate method - struct.validate(); + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } finally { + iprot.decrementRecursionDepth(); + } } @Override @@ -1699,39 +1734,44 @@ public void write(org.apache.thrift.protocol.TProtocol prot, compactionCompleted @Override public void read(org.apache.thrift.protocol.TProtocol prot, compactionCompleted_args struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; - java.util.BitSet incoming = iprot.readBitSet(7); - if (incoming.get(0)) { - struct.tinfo = new org.apache.accumulo.core.clientImpl.thrift.TInfo(); - struct.tinfo.read(iprot); - struct.setTinfoIsSet(true); - } - if (incoming.get(1)) { - struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); - struct.credentials.read(iprot); - struct.setCredentialsIsSet(true); - } - if (incoming.get(2)) { - struct.externalCompactionId = iprot.readString(); - struct.setExternalCompactionIdIsSet(true); - } - if (incoming.get(3)) { - struct.extent = new org.apache.accumulo.core.dataImpl.thrift.TKeyExtent(); - struct.extent.read(iprot); - struct.setExtentIsSet(true); - } - if (incoming.get(4)) { - struct.stats = new org.apache.accumulo.core.tabletserver.thrift.TCompactionStats(); - struct.stats.read(iprot); - struct.setStatsIsSet(true); - } - if (incoming.get(5)) { - struct.groupName = iprot.readString(); - struct.setGroupNameIsSet(true); - } - if (incoming.get(6)) { - struct.compactor = iprot.readString(); - struct.setCompactorIsSet(true); + prot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(7); + if (incoming.get(0)) { + struct.tinfo = new org.apache.accumulo.core.clientImpl.thrift.TInfo(); + struct.tinfo.read(iprot); + struct.setTinfoIsSet(true); + } + if (incoming.get(1)) { + struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); + struct.credentials.read(iprot); + struct.setCredentialsIsSet(true); + } + if (incoming.get(2)) { + struct.externalCompactionId = iprot.readString(); + struct.setExternalCompactionIdIsSet(true); + } + if (incoming.get(3)) { + struct.extent = new org.apache.accumulo.core.dataImpl.thrift.TKeyExtent(); + struct.extent.read(iprot); + struct.setExtentIsSet(true); + } + if (incoming.get(4)) { + struct.stats = new org.apache.accumulo.core.tabletserver.thrift.TCompactionStats(); + struct.stats.read(iprot); + struct.setStatsIsSet(true); + } + if (incoming.get(5)) { + struct.groupName = iprot.readString(); + struct.setGroupNameIsSet(true); + } + if (incoming.get(6)) { + struct.compactor = iprot.readString(); + struct.setCompactorIsSet(true); + } + } finally { + prot.decrementRecursionDepth(); } } } @@ -2119,42 +2159,47 @@ private static class compactionCompleted_resultStandardScheme extends org.apache @Override public void read(org.apache.thrift.protocol.TProtocol iprot, compactionCompleted_result struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TField schemeField; - iprot.readStructBegin(); - while (true) - { - schemeField = iprot.readFieldBegin(); - if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { - break; - } - switch (schemeField.id) { - case 1: // SEC - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.sec = new org.apache.accumulo.core.clientImpl.thrift.ThriftSecurityException(); - struct.sec.read(iprot); - struct.setSecIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } + iprot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; - case 2: // TNASE - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.tnase = new org.apache.accumulo.core.clientImpl.thrift.ThriftNotActiveServiceException(); - struct.tnase.read(iprot); - struct.setTnaseIsSet(true); - } else { + } + switch (schemeField.id) { + case 1: // SEC + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.sec = new org.apache.accumulo.core.clientImpl.thrift.ThriftSecurityException(); + struct.sec.read(iprot); + struct.setSecIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 2: // TNASE + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.tnase = new org.apache.accumulo.core.clientImpl.thrift.ThriftNotActiveServiceException(); + struct.tnase.read(iprot); + struct.setTnaseIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - default: - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); } - iprot.readFieldEnd(); - } - iprot.readStructEnd(); + iprot.readStructEnd(); - // check for required fields of primitive type, which can't be checked in the validate method - struct.validate(); + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } finally { + iprot.decrementRecursionDepth(); + } } @Override @@ -2208,17 +2253,22 @@ public void write(org.apache.thrift.protocol.TProtocol prot, compactionCompleted @Override public void read(org.apache.thrift.protocol.TProtocol prot, compactionCompleted_result struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; - java.util.BitSet incoming = iprot.readBitSet(2); - if (incoming.get(0)) { - struct.sec = new org.apache.accumulo.core.clientImpl.thrift.ThriftSecurityException(); - struct.sec.read(iprot); - struct.setSecIsSet(true); - } - if (incoming.get(1)) { - struct.tnase = new org.apache.accumulo.core.clientImpl.thrift.ThriftNotActiveServiceException(); - struct.tnase.read(iprot); - struct.setTnaseIsSet(true); + prot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(2); + if (incoming.get(0)) { + struct.sec = new org.apache.accumulo.core.clientImpl.thrift.ThriftSecurityException(); + struct.sec.read(iprot); + struct.setSecIsSet(true); + } + if (incoming.get(1)) { + struct.tnase = new org.apache.accumulo.core.clientImpl.thrift.ThriftNotActiveServiceException(); + struct.tnase.read(iprot); + struct.setTnaseIsSet(true); + } + } finally { + prot.decrementRecursionDepth(); } } } @@ -2859,66 +2909,71 @@ private static class getCompactionJob_argsStandardScheme extends org.apache.thri @Override public void read(org.apache.thrift.protocol.TProtocol iprot, getCompactionJob_args struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TField schemeField; - iprot.readStructBegin(); - while (true) - { - schemeField = iprot.readFieldBegin(); - if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { - break; - } - switch (schemeField.id) { - case 1: // TINFO - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.tinfo = new org.apache.accumulo.core.clientImpl.thrift.TInfo(); - struct.tinfo.read(iprot); - struct.setTinfoIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 2: // CREDENTIALS - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); - struct.credentials.read(iprot); - struct.setCredentialsIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 3: // GROUP_NAME - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.groupName = iprot.readString(); - struct.setGroupNameIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 4: // COMPACTOR - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.compactor = iprot.readString(); - struct.setCompactorIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } + iprot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; - case 5: // EXTERNAL_COMPACTION_ID - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.externalCompactionId = iprot.readString(); - struct.setExternalCompactionIdIsSet(true); - } else { + } + switch (schemeField.id) { + case 1: // TINFO + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.tinfo = new org.apache.accumulo.core.clientImpl.thrift.TInfo(); + struct.tinfo.read(iprot); + struct.setTinfoIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 2: // CREDENTIALS + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); + struct.credentials.read(iprot); + struct.setCredentialsIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 3: // GROUP_NAME + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.groupName = iprot.readString(); + struct.setGroupNameIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 4: // COMPACTOR + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.compactor = iprot.readString(); + struct.setCompactorIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 5: // EXTERNAL_COMPACTION_ID + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.externalCompactionId = iprot.readString(); + struct.setExternalCompactionIdIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - default: - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); } - iprot.readFieldEnd(); - } - iprot.readStructEnd(); + iprot.readStructEnd(); - // check for required fields of primitive type, which can't be checked in the validate method - struct.validate(); + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } finally { + iprot.decrementRecursionDepth(); + } } @Override @@ -3005,29 +3060,34 @@ public void write(org.apache.thrift.protocol.TProtocol prot, getCompactionJob_ar @Override public void read(org.apache.thrift.protocol.TProtocol prot, getCompactionJob_args struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; - java.util.BitSet incoming = iprot.readBitSet(5); - if (incoming.get(0)) { - struct.tinfo = new org.apache.accumulo.core.clientImpl.thrift.TInfo(); - struct.tinfo.read(iprot); - struct.setTinfoIsSet(true); - } - if (incoming.get(1)) { - struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); - struct.credentials.read(iprot); - struct.setCredentialsIsSet(true); - } - if (incoming.get(2)) { - struct.groupName = iprot.readString(); - struct.setGroupNameIsSet(true); - } - if (incoming.get(3)) { - struct.compactor = iprot.readString(); - struct.setCompactorIsSet(true); - } - if (incoming.get(4)) { - struct.externalCompactionId = iprot.readString(); - struct.setExternalCompactionIdIsSet(true); + prot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(5); + if (incoming.get(0)) { + struct.tinfo = new org.apache.accumulo.core.clientImpl.thrift.TInfo(); + struct.tinfo.read(iprot); + struct.setTinfoIsSet(true); + } + if (incoming.get(1)) { + struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); + struct.credentials.read(iprot); + struct.setCredentialsIsSet(true); + } + if (incoming.get(2)) { + struct.groupName = iprot.readString(); + struct.setGroupNameIsSet(true); + } + if (incoming.get(3)) { + struct.compactor = iprot.readString(); + struct.setCompactorIsSet(true); + } + if (incoming.get(4)) { + struct.externalCompactionId = iprot.readString(); + struct.setExternalCompactionIdIsSet(true); + } + } finally { + prot.decrementRecursionDepth(); } } } @@ -3500,51 +3560,56 @@ private static class getCompactionJob_resultStandardScheme extends org.apache.th @Override public void read(org.apache.thrift.protocol.TProtocol iprot, getCompactionJob_result struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TField schemeField; - iprot.readStructBegin(); - while (true) - { - schemeField = iprot.readFieldBegin(); - if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { - break; - } - switch (schemeField.id) { - case 0: // SUCCESS - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.success = new TNextCompactionJob(); - struct.success.read(iprot); - struct.setSuccessIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 1: // SEC - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.sec = new org.apache.accumulo.core.clientImpl.thrift.ThriftSecurityException(); - struct.sec.read(iprot); - struct.setSecIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } + iprot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; - case 2: // TNASE - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.tnase = new org.apache.accumulo.core.clientImpl.thrift.ThriftNotActiveServiceException(); - struct.tnase.read(iprot); - struct.setTnaseIsSet(true); - } else { + } + switch (schemeField.id) { + case 0: // SUCCESS + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.success = new TNextCompactionJob(); + struct.success.read(iprot); + struct.setSuccessIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 1: // SEC + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.sec = new org.apache.accumulo.core.clientImpl.thrift.ThriftSecurityException(); + struct.sec.read(iprot); + struct.setSecIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 2: // TNASE + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.tnase = new org.apache.accumulo.core.clientImpl.thrift.ThriftNotActiveServiceException(); + struct.tnase.read(iprot); + struct.setTnaseIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - default: - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); } - iprot.readFieldEnd(); - } - iprot.readStructEnd(); + iprot.readStructEnd(); - // check for required fields of primitive type, which can't be checked in the validate method - struct.validate(); + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } finally { + iprot.decrementRecursionDepth(); + } } @Override @@ -3609,22 +3674,27 @@ public void write(org.apache.thrift.protocol.TProtocol prot, getCompactionJob_re @Override public void read(org.apache.thrift.protocol.TProtocol prot, getCompactionJob_result struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; - java.util.BitSet incoming = iprot.readBitSet(3); - if (incoming.get(0)) { - struct.success = new TNextCompactionJob(); - struct.success.read(iprot); - struct.setSuccessIsSet(true); - } - if (incoming.get(1)) { - struct.sec = new org.apache.accumulo.core.clientImpl.thrift.ThriftSecurityException(); - struct.sec.read(iprot); - struct.setSecIsSet(true); - } - if (incoming.get(2)) { - struct.tnase = new org.apache.accumulo.core.clientImpl.thrift.ThriftNotActiveServiceException(); - struct.tnase.read(iprot); - struct.setTnaseIsSet(true); + prot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(3); + if (incoming.get(0)) { + struct.success = new TNextCompactionJob(); + struct.success.read(iprot); + struct.setSuccessIsSet(true); + } + if (incoming.get(1)) { + struct.sec = new org.apache.accumulo.core.clientImpl.thrift.ThriftSecurityException(); + struct.sec.read(iprot); + struct.setSecIsSet(true); + } + if (incoming.get(2)) { + struct.tnase = new org.apache.accumulo.core.clientImpl.thrift.ThriftNotActiveServiceException(); + struct.tnase.read(iprot); + struct.setTnaseIsSet(true); + } + } finally { + prot.decrementRecursionDepth(); } } } @@ -4530,91 +4600,96 @@ private static class compactionFailed_argsStandardScheme extends org.apache.thri @Override public void read(org.apache.thrift.protocol.TProtocol iprot, compactionFailed_args struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TField schemeField; - iprot.readStructBegin(); - while (true) - { - schemeField = iprot.readFieldBegin(); - if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { - break; - } - switch (schemeField.id) { - case 1: // TINFO - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.tinfo = new org.apache.accumulo.core.clientImpl.thrift.TInfo(); - struct.tinfo.read(iprot); - struct.setTinfoIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 2: // CREDENTIALS - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); - struct.credentials.read(iprot); - struct.setCredentialsIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 3: // EXTERNAL_COMPACTION_ID - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.externalCompactionId = iprot.readString(); - struct.setExternalCompactionIdIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 4: // EXTENT - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.extent = new org.apache.accumulo.core.dataImpl.thrift.TKeyExtent(); - struct.extent.read(iprot); - struct.setExtentIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 5: // EXCEPTION_CLASS_NAME - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.exceptionClassName = iprot.readString(); - struct.setExceptionClassNameIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 6: // FAILURE_STATE - if (schemeField.type == org.apache.thrift.protocol.TType.I32) { - struct.failureState = org.apache.accumulo.core.compaction.thrift.TCompactionState.findByValue(iprot.readI32()); - struct.setFailureStateIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 7: // GROUP_NAME - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.groupName = iprot.readString(); - struct.setGroupNameIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } + iprot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; - case 8: // COMPACTOR - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.compactor = iprot.readString(); - struct.setCompactorIsSet(true); - } else { + } + switch (schemeField.id) { + case 1: // TINFO + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.tinfo = new org.apache.accumulo.core.clientImpl.thrift.TInfo(); + struct.tinfo.read(iprot); + struct.setTinfoIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 2: // CREDENTIALS + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); + struct.credentials.read(iprot); + struct.setCredentialsIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 3: // EXTERNAL_COMPACTION_ID + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.externalCompactionId = iprot.readString(); + struct.setExternalCompactionIdIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 4: // EXTENT + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.extent = new org.apache.accumulo.core.dataImpl.thrift.TKeyExtent(); + struct.extent.read(iprot); + struct.setExtentIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 5: // EXCEPTION_CLASS_NAME + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.exceptionClassName = iprot.readString(); + struct.setExceptionClassNameIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 6: // FAILURE_STATE + if (schemeField.type == org.apache.thrift.protocol.TType.I32) { + struct.failureState = org.apache.accumulo.core.compaction.thrift.TCompactionState.findByValue(iprot.readI32()); + struct.setFailureStateIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 7: // GROUP_NAME + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.groupName = iprot.readString(); + struct.setGroupNameIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 8: // COMPACTOR + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.compactor = iprot.readString(); + struct.setCompactorIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - default: - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); } - iprot.readFieldEnd(); - } - iprot.readStructEnd(); + iprot.readStructEnd(); - // check for required fields of primitive type, which can't be checked in the validate method - struct.validate(); + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } finally { + iprot.decrementRecursionDepth(); + } } @Override @@ -4734,42 +4809,47 @@ public void write(org.apache.thrift.protocol.TProtocol prot, compactionFailed_ar @Override public void read(org.apache.thrift.protocol.TProtocol prot, compactionFailed_args struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; - java.util.BitSet incoming = iprot.readBitSet(8); - if (incoming.get(0)) { - struct.tinfo = new org.apache.accumulo.core.clientImpl.thrift.TInfo(); - struct.tinfo.read(iprot); - struct.setTinfoIsSet(true); - } - if (incoming.get(1)) { - struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); - struct.credentials.read(iprot); - struct.setCredentialsIsSet(true); - } - if (incoming.get(2)) { - struct.externalCompactionId = iprot.readString(); - struct.setExternalCompactionIdIsSet(true); - } - if (incoming.get(3)) { - struct.extent = new org.apache.accumulo.core.dataImpl.thrift.TKeyExtent(); - struct.extent.read(iprot); - struct.setExtentIsSet(true); - } - if (incoming.get(4)) { - struct.exceptionClassName = iprot.readString(); - struct.setExceptionClassNameIsSet(true); - } - if (incoming.get(5)) { - struct.failureState = org.apache.accumulo.core.compaction.thrift.TCompactionState.findByValue(iprot.readI32()); - struct.setFailureStateIsSet(true); - } - if (incoming.get(6)) { - struct.groupName = iprot.readString(); - struct.setGroupNameIsSet(true); - } - if (incoming.get(7)) { - struct.compactor = iprot.readString(); - struct.setCompactorIsSet(true); + prot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(8); + if (incoming.get(0)) { + struct.tinfo = new org.apache.accumulo.core.clientImpl.thrift.TInfo(); + struct.tinfo.read(iprot); + struct.setTinfoIsSet(true); + } + if (incoming.get(1)) { + struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); + struct.credentials.read(iprot); + struct.setCredentialsIsSet(true); + } + if (incoming.get(2)) { + struct.externalCompactionId = iprot.readString(); + struct.setExternalCompactionIdIsSet(true); + } + if (incoming.get(3)) { + struct.extent = new org.apache.accumulo.core.dataImpl.thrift.TKeyExtent(); + struct.extent.read(iprot); + struct.setExtentIsSet(true); + } + if (incoming.get(4)) { + struct.exceptionClassName = iprot.readString(); + struct.setExceptionClassNameIsSet(true); + } + if (incoming.get(5)) { + struct.failureState = org.apache.accumulo.core.compaction.thrift.TCompactionState.findByValue(iprot.readI32()); + struct.setFailureStateIsSet(true); + } + if (incoming.get(6)) { + struct.groupName = iprot.readString(); + struct.setGroupNameIsSet(true); + } + if (incoming.get(7)) { + struct.compactor = iprot.readString(); + struct.setCompactorIsSet(true); + } + } finally { + prot.decrementRecursionDepth(); } } } @@ -5157,42 +5237,47 @@ private static class compactionFailed_resultStandardScheme extends org.apache.th @Override public void read(org.apache.thrift.protocol.TProtocol iprot, compactionFailed_result struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TField schemeField; - iprot.readStructBegin(); - while (true) - { - schemeField = iprot.readFieldBegin(); - if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { - break; - } - switch (schemeField.id) { - case 1: // SEC - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.sec = new org.apache.accumulo.core.clientImpl.thrift.ThriftSecurityException(); - struct.sec.read(iprot); - struct.setSecIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } + iprot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; - case 2: // TNASE - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.tnase = new org.apache.accumulo.core.clientImpl.thrift.ThriftNotActiveServiceException(); - struct.tnase.read(iprot); - struct.setTnaseIsSet(true); - } else { + } + switch (schemeField.id) { + case 1: // SEC + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.sec = new org.apache.accumulo.core.clientImpl.thrift.ThriftSecurityException(); + struct.sec.read(iprot); + struct.setSecIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 2: // TNASE + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.tnase = new org.apache.accumulo.core.clientImpl.thrift.ThriftNotActiveServiceException(); + struct.tnase.read(iprot); + struct.setTnaseIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - default: - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); } - iprot.readFieldEnd(); - } - iprot.readStructEnd(); + iprot.readStructEnd(); - // check for required fields of primitive type, which can't be checked in the validate method - struct.validate(); + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } finally { + iprot.decrementRecursionDepth(); + } } @Override @@ -5246,17 +5331,22 @@ public void write(org.apache.thrift.protocol.TProtocol prot, compactionFailed_re @Override public void read(org.apache.thrift.protocol.TProtocol prot, compactionFailed_result struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; - java.util.BitSet incoming = iprot.readBitSet(2); - if (incoming.get(0)) { - struct.sec = new org.apache.accumulo.core.clientImpl.thrift.ThriftSecurityException(); - struct.sec.read(iprot); - struct.setSecIsSet(true); - } - if (incoming.get(1)) { - struct.tnase = new org.apache.accumulo.core.clientImpl.thrift.ThriftNotActiveServiceException(); - struct.tnase.read(iprot); - struct.setTnaseIsSet(true); + prot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(2); + if (incoming.get(0)) { + struct.sec = new org.apache.accumulo.core.clientImpl.thrift.ThriftSecurityException(); + struct.sec.read(iprot); + struct.setSecIsSet(true); + } + if (incoming.get(1)) { + struct.tnase = new org.apache.accumulo.core.clientImpl.thrift.ThriftNotActiveServiceException(); + struct.tnase.read(iprot); + struct.setTnaseIsSet(true); + } + } finally { + prot.decrementRecursionDepth(); } } } diff --git a/core/src/main/thrift-gen-java/org/apache/accumulo/core/compaction/thrift/CompactorService.java b/core/src/main/thrift-gen-java/org/apache/accumulo/core/compaction/thrift/CompactorService.java index c59d19d98f6..1cbbb4346a5 100644 --- a/core/src/main/thrift-gen-java/org/apache/accumulo/core/compaction/thrift/CompactorService.java +++ b/core/src/main/thrift-gen-java/org/apache/accumulo/core/compaction/thrift/CompactorService.java @@ -17,7 +17,7 @@ * under the License. */ /* - * Autogenerated by Thrift Compiler (0.17.0) + * Autogenerated by Thrift Compiler (0.23.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -360,14 +360,14 @@ public Void getResult() throws org.apache.thrift.TException { public static class Processor extends org.apache.thrift.TBaseProcessor implements org.apache.thrift.TProcessor { private static final org.slf4j.Logger _LOGGER = org.slf4j.LoggerFactory.getLogger(Processor.class.getName()); public Processor(I iface) { - super(iface, getProcessMap(new java.util.HashMap>())); + super(iface, getProcessMap(new java.util.HashMap>())); } - protected Processor(I iface, java.util.Map> processMap) { + protected Processor(I iface, java.util.Map> processMap) { super(iface, getProcessMap(processMap)); } - private static java.util.Map> getProcessMap(java.util.Map> processMap) { + private static java.util.Map> getProcessMap(java.util.Map> processMap) { processMap.put("getRunningCompaction", new getRunningCompaction()); processMap.put("getRunningCompactionId", new getRunningCompactionId()); processMap.put("getActiveCompactions", new getActiveCompactions()); @@ -375,7 +375,7 @@ protected Processor(I iface, java.util.Map extends org.apache.thrift.ProcessFunction { + public static class getRunningCompaction extends org.apache.thrift.ProcessFunction { public getRunningCompaction() { super("getRunningCompaction"); } @@ -386,7 +386,7 @@ public getRunningCompaction_args getEmptyArgsInstance() { } @Override - protected boolean isOneway() { + public boolean isOneway() { return false; } @@ -395,9 +395,14 @@ protected boolean rethrowUnhandledExceptions() { return false; } + @Override + public getRunningCompaction_result getEmptyResultInstance() { + return new getRunningCompaction_result(); + } + @Override public getRunningCompaction_result getResult(I iface, getRunningCompaction_args args) throws org.apache.thrift.TException { - getRunningCompaction_result result = new getRunningCompaction_result(); + getRunningCompaction_result result = getEmptyResultInstance(); try { result.success = iface.getRunningCompaction(args.tinfo, args.credentials); } catch (org.apache.accumulo.core.clientImpl.thrift.ThriftSecurityException sec) { @@ -407,7 +412,7 @@ public getRunningCompaction_result getResult(I iface, getRunningCompaction_args } } - public static class getRunningCompactionId extends org.apache.thrift.ProcessFunction { + public static class getRunningCompactionId extends org.apache.thrift.ProcessFunction { public getRunningCompactionId() { super("getRunningCompactionId"); } @@ -418,7 +423,7 @@ public getRunningCompactionId_args getEmptyArgsInstance() { } @Override - protected boolean isOneway() { + public boolean isOneway() { return false; } @@ -427,9 +432,14 @@ protected boolean rethrowUnhandledExceptions() { return false; } + @Override + public getRunningCompactionId_result getEmptyResultInstance() { + return new getRunningCompactionId_result(); + } + @Override public getRunningCompactionId_result getResult(I iface, getRunningCompactionId_args args) throws org.apache.thrift.TException { - getRunningCompactionId_result result = new getRunningCompactionId_result(); + getRunningCompactionId_result result = getEmptyResultInstance(); try { result.success = iface.getRunningCompactionId(args.tinfo, args.credentials); } catch (org.apache.accumulo.core.clientImpl.thrift.ThriftSecurityException sec) { @@ -439,7 +449,7 @@ public getRunningCompactionId_result getResult(I iface, getRunningCompactionId_a } } - public static class getActiveCompactions extends org.apache.thrift.ProcessFunction { + public static class getActiveCompactions extends org.apache.thrift.ProcessFunction { public getActiveCompactions() { super("getActiveCompactions"); } @@ -450,7 +460,7 @@ public getActiveCompactions_args getEmptyArgsInstance() { } @Override - protected boolean isOneway() { + public boolean isOneway() { return false; } @@ -459,9 +469,14 @@ protected boolean rethrowUnhandledExceptions() { return false; } + @Override + public getActiveCompactions_result getEmptyResultInstance() { + return new getActiveCompactions_result(); + } + @Override public getActiveCompactions_result getResult(I iface, getActiveCompactions_args args) throws org.apache.thrift.TException { - getActiveCompactions_result result = new getActiveCompactions_result(); + getActiveCompactions_result result = getEmptyResultInstance(); try { result.success = iface.getActiveCompactions(args.tinfo, args.credentials); } catch (org.apache.accumulo.core.clientImpl.thrift.ThriftSecurityException sec) { @@ -471,7 +486,7 @@ public getActiveCompactions_result getResult(I iface, getActiveCompactions_args } } - public static class cancel extends org.apache.thrift.ProcessFunction { + public static class cancel extends org.apache.thrift.ProcessFunction { public cancel() { super("cancel"); } @@ -482,7 +497,7 @@ public cancel_args getEmptyArgsInstance() { } @Override - protected boolean isOneway() { + public boolean isOneway() { return false; } @@ -491,9 +506,14 @@ protected boolean rethrowUnhandledExceptions() { return false; } + @Override + public cancel_result getEmptyResultInstance() { + return new cancel_result(); + } + @Override public cancel_result getResult(I iface, cancel_args args) throws org.apache.thrift.TException { - cancel_result result = new cancel_result(); + cancel_result result = getEmptyResultInstance(); iface.cancel(args.tinfo, args.credentials, args.externalCompactionId); return result; } @@ -504,14 +524,14 @@ public cancel_result getResult(I iface, cancel_args args) throws org.apache.thri public static class AsyncProcessor extends org.apache.thrift.TBaseAsyncProcessor { private static final org.slf4j.Logger _LOGGER = org.slf4j.LoggerFactory.getLogger(AsyncProcessor.class.getName()); public AsyncProcessor(I iface) { - super(iface, getProcessMap(new java.util.HashMap>())); + super(iface, getProcessMap(new java.util.HashMap>())); } - protected AsyncProcessor(I iface, java.util.Map> processMap) { + protected AsyncProcessor(I iface, java.util.Map> processMap) { super(iface, getProcessMap(processMap)); } - private static java.util.Map> getProcessMap(java.util.Map> processMap) { + private static java.util.Map> getProcessMap(java.util.Map> processMap) { processMap.put("getRunningCompaction", new getRunningCompaction()); processMap.put("getRunningCompactionId", new getRunningCompactionId()); processMap.put("getActiveCompactions", new getActiveCompactions()); @@ -519,11 +539,16 @@ protected AsyncProcessor(I iface, java.util.Map extends org.apache.thrift.AsyncProcessFunction { + public static class getRunningCompaction extends org.apache.thrift.AsyncProcessFunction { public getRunningCompaction() { super("getRunningCompaction"); } + @Override + public getRunningCompaction_result getEmptyResultInstance() { + return new getRunningCompaction_result(); + } + @Override public getRunningCompaction_args getEmptyArgsInstance() { return new getRunningCompaction_args(); @@ -580,7 +605,7 @@ public void onError(java.lang.Exception e) { } @Override - protected boolean isOneway() { + public boolean isOneway() { return false; } @@ -590,11 +615,16 @@ public void start(I iface, getRunningCompaction_args args, org.apache.thrift.asy } } - public static class getRunningCompactionId extends org.apache.thrift.AsyncProcessFunction { + public static class getRunningCompactionId extends org.apache.thrift.AsyncProcessFunction { public getRunningCompactionId() { super("getRunningCompactionId"); } + @Override + public getRunningCompactionId_result getEmptyResultInstance() { + return new getRunningCompactionId_result(); + } + @Override public getRunningCompactionId_args getEmptyArgsInstance() { return new getRunningCompactionId_args(); @@ -651,7 +681,7 @@ public void onError(java.lang.Exception e) { } @Override - protected boolean isOneway() { + public boolean isOneway() { return false; } @@ -661,11 +691,16 @@ public void start(I iface, getRunningCompactionId_args args, org.apache.thrift.a } } - public static class getActiveCompactions extends org.apache.thrift.AsyncProcessFunction> { + public static class getActiveCompactions extends org.apache.thrift.AsyncProcessFunction, getActiveCompactions_result> { public getActiveCompactions() { super("getActiveCompactions"); } + @Override + public getActiveCompactions_result getEmptyResultInstance() { + return new getActiveCompactions_result(); + } + @Override public getActiveCompactions_args getEmptyArgsInstance() { return new getActiveCompactions_args(); @@ -722,7 +757,7 @@ public void onError(java.lang.Exception e) { } @Override - protected boolean isOneway() { + public boolean isOneway() { return false; } @@ -732,11 +767,16 @@ public void start(I iface, getActiveCompactions_args args, org.apache.thrift.asy } } - public static class cancel extends org.apache.thrift.AsyncProcessFunction { + public static class cancel extends org.apache.thrift.AsyncProcessFunction { public cancel() { super("cancel"); } + @Override + public cancel_result getEmptyResultInstance() { + return new cancel_result(); + } + @Override public cancel_args getEmptyArgsInstance() { return new cancel_args(); @@ -788,7 +828,7 @@ public void onError(java.lang.Exception e) { } @Override - protected boolean isOneway() { + public boolean isOneway() { return false; } @@ -1185,42 +1225,47 @@ private static class getRunningCompaction_argsStandardScheme extends org.apache. @Override public void read(org.apache.thrift.protocol.TProtocol iprot, getRunningCompaction_args struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TField schemeField; - iprot.readStructBegin(); - while (true) - { - schemeField = iprot.readFieldBegin(); - if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { - break; - } - switch (schemeField.id) { - case 1: // TINFO - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.tinfo = new org.apache.accumulo.core.clientImpl.thrift.TInfo(); - struct.tinfo.read(iprot); - struct.setTinfoIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } + iprot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; - case 2: // CREDENTIALS - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); - struct.credentials.read(iprot); - struct.setCredentialsIsSet(true); - } else { + } + switch (schemeField.id) { + case 1: // TINFO + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.tinfo = new org.apache.accumulo.core.clientImpl.thrift.TInfo(); + struct.tinfo.read(iprot); + struct.setTinfoIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 2: // CREDENTIALS + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); + struct.credentials.read(iprot); + struct.setCredentialsIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - default: - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); } - iprot.readFieldEnd(); - } - iprot.readStructEnd(); + iprot.readStructEnd(); - // check for required fields of primitive type, which can't be checked in the validate method - struct.validate(); + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } finally { + iprot.decrementRecursionDepth(); + } } @Override @@ -1274,17 +1319,22 @@ public void write(org.apache.thrift.protocol.TProtocol prot, getRunningCompactio @Override public void read(org.apache.thrift.protocol.TProtocol prot, getRunningCompaction_args struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; - java.util.BitSet incoming = iprot.readBitSet(2); - if (incoming.get(0)) { - struct.tinfo = new org.apache.accumulo.core.clientImpl.thrift.TInfo(); - struct.tinfo.read(iprot); - struct.setTinfoIsSet(true); - } - if (incoming.get(1)) { - struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); - struct.credentials.read(iprot); - struct.setCredentialsIsSet(true); + prot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(2); + if (incoming.get(0)) { + struct.tinfo = new org.apache.accumulo.core.clientImpl.thrift.TInfo(); + struct.tinfo.read(iprot); + struct.setTinfoIsSet(true); + } + if (incoming.get(1)) { + struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); + struct.credentials.read(iprot); + struct.setCredentialsIsSet(true); + } + } finally { + prot.decrementRecursionDepth(); } } } @@ -1675,42 +1725,47 @@ private static class getRunningCompaction_resultStandardScheme extends org.apach @Override public void read(org.apache.thrift.protocol.TProtocol iprot, getRunningCompaction_result struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TField schemeField; - iprot.readStructBegin(); - while (true) - { - schemeField = iprot.readFieldBegin(); - if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { - break; - } - switch (schemeField.id) { - case 0: // SUCCESS - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.success = new TExternalCompaction(); - struct.success.read(iprot); - struct.setSuccessIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } + iprot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; - case 1: // SEC - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.sec = new org.apache.accumulo.core.clientImpl.thrift.ThriftSecurityException(); - struct.sec.read(iprot); - struct.setSecIsSet(true); - } else { + } + switch (schemeField.id) { + case 0: // SUCCESS + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.success = new TExternalCompaction(); + struct.success.read(iprot); + struct.setSuccessIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 1: // SEC + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.sec = new org.apache.accumulo.core.clientImpl.thrift.ThriftSecurityException(); + struct.sec.read(iprot); + struct.setSecIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - default: - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); } - iprot.readFieldEnd(); - } - iprot.readStructEnd(); + iprot.readStructEnd(); - // check for required fields of primitive type, which can't be checked in the validate method - struct.validate(); + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } finally { + iprot.decrementRecursionDepth(); + } } @Override @@ -1764,17 +1819,22 @@ public void write(org.apache.thrift.protocol.TProtocol prot, getRunningCompactio @Override public void read(org.apache.thrift.protocol.TProtocol prot, getRunningCompaction_result struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; - java.util.BitSet incoming = iprot.readBitSet(2); - if (incoming.get(0)) { - struct.success = new TExternalCompaction(); - struct.success.read(iprot); - struct.setSuccessIsSet(true); - } - if (incoming.get(1)) { - struct.sec = new org.apache.accumulo.core.clientImpl.thrift.ThriftSecurityException(); - struct.sec.read(iprot); - struct.setSecIsSet(true); + prot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(2); + if (incoming.get(0)) { + struct.success = new TExternalCompaction(); + struct.success.read(iprot); + struct.setSuccessIsSet(true); + } + if (incoming.get(1)) { + struct.sec = new org.apache.accumulo.core.clientImpl.thrift.ThriftSecurityException(); + struct.sec.read(iprot); + struct.setSecIsSet(true); + } + } finally { + prot.decrementRecursionDepth(); } } } @@ -2169,42 +2229,47 @@ private static class getRunningCompactionId_argsStandardScheme extends org.apach @Override public void read(org.apache.thrift.protocol.TProtocol iprot, getRunningCompactionId_args struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TField schemeField; - iprot.readStructBegin(); - while (true) - { - schemeField = iprot.readFieldBegin(); - if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { - break; - } - switch (schemeField.id) { - case 1: // TINFO - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.tinfo = new org.apache.accumulo.core.clientImpl.thrift.TInfo(); - struct.tinfo.read(iprot); - struct.setTinfoIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } + iprot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; - case 2: // CREDENTIALS - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); - struct.credentials.read(iprot); - struct.setCredentialsIsSet(true); - } else { + } + switch (schemeField.id) { + case 1: // TINFO + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.tinfo = new org.apache.accumulo.core.clientImpl.thrift.TInfo(); + struct.tinfo.read(iprot); + struct.setTinfoIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 2: // CREDENTIALS + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); + struct.credentials.read(iprot); + struct.setCredentialsIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - default: - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); } - iprot.readFieldEnd(); - } - iprot.readStructEnd(); + iprot.readStructEnd(); - // check for required fields of primitive type, which can't be checked in the validate method - struct.validate(); + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } finally { + iprot.decrementRecursionDepth(); + } } @Override @@ -2258,17 +2323,22 @@ public void write(org.apache.thrift.protocol.TProtocol prot, getRunningCompactio @Override public void read(org.apache.thrift.protocol.TProtocol prot, getRunningCompactionId_args struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; - java.util.BitSet incoming = iprot.readBitSet(2); - if (incoming.get(0)) { - struct.tinfo = new org.apache.accumulo.core.clientImpl.thrift.TInfo(); - struct.tinfo.read(iprot); - struct.setTinfoIsSet(true); - } - if (incoming.get(1)) { - struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); - struct.credentials.read(iprot); - struct.setCredentialsIsSet(true); + prot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(2); + if (incoming.get(0)) { + struct.tinfo = new org.apache.accumulo.core.clientImpl.thrift.TInfo(); + struct.tinfo.read(iprot); + struct.setTinfoIsSet(true); + } + if (incoming.get(1)) { + struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); + struct.credentials.read(iprot); + struct.setCredentialsIsSet(true); + } + } finally { + prot.decrementRecursionDepth(); } } } @@ -2656,41 +2726,46 @@ private static class getRunningCompactionId_resultStandardScheme extends org.apa @Override public void read(org.apache.thrift.protocol.TProtocol iprot, getRunningCompactionId_result struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TField schemeField; - iprot.readStructBegin(); - while (true) - { - schemeField = iprot.readFieldBegin(); - if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { - break; - } - switch (schemeField.id) { - case 0: // SUCCESS - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.success = iprot.readString(); - struct.setSuccessIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } + iprot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; - case 1: // SEC - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.sec = new org.apache.accumulo.core.clientImpl.thrift.ThriftSecurityException(); - struct.sec.read(iprot); - struct.setSecIsSet(true); - } else { + } + switch (schemeField.id) { + case 0: // SUCCESS + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.success = iprot.readString(); + struct.setSuccessIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 1: // SEC + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.sec = new org.apache.accumulo.core.clientImpl.thrift.ThriftSecurityException(); + struct.sec.read(iprot); + struct.setSecIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - default: - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); } - iprot.readFieldEnd(); - } - iprot.readStructEnd(); + iprot.readStructEnd(); - // check for required fields of primitive type, which can't be checked in the validate method - struct.validate(); + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } finally { + iprot.decrementRecursionDepth(); + } } @Override @@ -2744,16 +2819,21 @@ public void write(org.apache.thrift.protocol.TProtocol prot, getRunningCompactio @Override public void read(org.apache.thrift.protocol.TProtocol prot, getRunningCompactionId_result struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; - java.util.BitSet incoming = iprot.readBitSet(2); - if (incoming.get(0)) { - struct.success = iprot.readString(); - struct.setSuccessIsSet(true); - } - if (incoming.get(1)) { - struct.sec = new org.apache.accumulo.core.clientImpl.thrift.ThriftSecurityException(); - struct.sec.read(iprot); - struct.setSecIsSet(true); + prot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(2); + if (incoming.get(0)) { + struct.success = iprot.readString(); + struct.setSuccessIsSet(true); + } + if (incoming.get(1)) { + struct.sec = new org.apache.accumulo.core.clientImpl.thrift.ThriftSecurityException(); + struct.sec.read(iprot); + struct.setSecIsSet(true); + } + } finally { + prot.decrementRecursionDepth(); } } } @@ -3148,42 +3228,47 @@ private static class getActiveCompactions_argsStandardScheme extends org.apache. @Override public void read(org.apache.thrift.protocol.TProtocol iprot, getActiveCompactions_args struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TField schemeField; - iprot.readStructBegin(); - while (true) - { - schemeField = iprot.readFieldBegin(); - if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { - break; - } - switch (schemeField.id) { - case 2: // TINFO - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.tinfo = new org.apache.accumulo.core.clientImpl.thrift.TInfo(); - struct.tinfo.read(iprot); - struct.setTinfoIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } + iprot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; - case 1: // CREDENTIALS - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); - struct.credentials.read(iprot); - struct.setCredentialsIsSet(true); - } else { + } + switch (schemeField.id) { + case 2: // TINFO + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.tinfo = new org.apache.accumulo.core.clientImpl.thrift.TInfo(); + struct.tinfo.read(iprot); + struct.setTinfoIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 1: // CREDENTIALS + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); + struct.credentials.read(iprot); + struct.setCredentialsIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - default: - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); } - iprot.readFieldEnd(); - } - iprot.readStructEnd(); + iprot.readStructEnd(); - // check for required fields of primitive type, which can't be checked in the validate method - struct.validate(); + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } finally { + iprot.decrementRecursionDepth(); + } } @Override @@ -3237,17 +3322,22 @@ public void write(org.apache.thrift.protocol.TProtocol prot, getActiveCompaction @Override public void read(org.apache.thrift.protocol.TProtocol prot, getActiveCompactions_args struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; - java.util.BitSet incoming = iprot.readBitSet(2); - if (incoming.get(0)) { - struct.tinfo = new org.apache.accumulo.core.clientImpl.thrift.TInfo(); - struct.tinfo.read(iprot); - struct.setTinfoIsSet(true); - } - if (incoming.get(1)) { - struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); - struct.credentials.read(iprot); - struct.setCredentialsIsSet(true); + prot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(2); + if (incoming.get(0)) { + struct.tinfo = new org.apache.accumulo.core.clientImpl.thrift.TInfo(); + struct.tinfo.read(iprot); + struct.setTinfoIsSet(true); + } + if (incoming.get(1)) { + struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); + struct.credentials.read(iprot); + struct.setCredentialsIsSet(true); + } + } finally { + prot.decrementRecursionDepth(); } } } @@ -3656,52 +3746,57 @@ private static class getActiveCompactions_resultStandardScheme extends org.apach @Override public void read(org.apache.thrift.protocol.TProtocol iprot, getActiveCompactions_result struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TField schemeField; - iprot.readStructBegin(); - while (true) - { - schemeField = iprot.readFieldBegin(); - if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { - break; - } - switch (schemeField.id) { - case 0: // SUCCESS - if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { - { - org.apache.thrift.protocol.TList _list18 = iprot.readListBegin(); - struct.success = new java.util.ArrayList(_list18.size); - @org.apache.thrift.annotation.Nullable org.apache.accumulo.core.tabletserver.thrift.ActiveCompaction _elem19; - for (int _i20 = 0; _i20 < _list18.size; ++_i20) + iprot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { + break; + } + switch (schemeField.id) { + case 0: // SUCCESS + if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - _elem19 = new org.apache.accumulo.core.tabletserver.thrift.ActiveCompaction(); - _elem19.read(iprot); - struct.success.add(_elem19); + org.apache.thrift.protocol.TList _list18 = iprot.readListBegin(); + struct.success = new java.util.ArrayList(_list18.size); + @org.apache.thrift.annotation.Nullable org.apache.accumulo.core.tabletserver.thrift.ActiveCompaction _elem19; + for (int _i20 = 0; _i20 < _list18.size; ++_i20) + { + _elem19 = new org.apache.accumulo.core.tabletserver.thrift.ActiveCompaction(); + _elem19.read(iprot); + struct.success.add(_elem19); + } + iprot.readListEnd(); } - iprot.readListEnd(); + struct.setSuccessIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } - struct.setSuccessIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 1: // SEC - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.sec = new org.apache.accumulo.core.clientImpl.thrift.ThriftSecurityException(); - struct.sec.read(iprot); - struct.setSecIsSet(true); - } else { + break; + case 1: // SEC + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.sec = new org.apache.accumulo.core.clientImpl.thrift.ThriftSecurityException(); + struct.sec.read(iprot); + struct.setSecIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - default: - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); } - iprot.readFieldEnd(); - } - iprot.readStructEnd(); + iprot.readStructEnd(); - // check for required fields of primitive type, which can't be checked in the validate method - struct.validate(); + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } finally { + iprot.decrementRecursionDepth(); + } } @Override @@ -3768,26 +3863,31 @@ public void write(org.apache.thrift.protocol.TProtocol prot, getActiveCompaction @Override public void read(org.apache.thrift.protocol.TProtocol prot, getActiveCompactions_result struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; - java.util.BitSet incoming = iprot.readBitSet(2); - if (incoming.get(0)) { - { - org.apache.thrift.protocol.TList _list23 = iprot.readListBegin(org.apache.thrift.protocol.TType.STRUCT); - struct.success = new java.util.ArrayList(_list23.size); - @org.apache.thrift.annotation.Nullable org.apache.accumulo.core.tabletserver.thrift.ActiveCompaction _elem24; - for (int _i25 = 0; _i25 < _list23.size; ++_i25) + prot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(2); + if (incoming.get(0)) { { - _elem24 = new org.apache.accumulo.core.tabletserver.thrift.ActiveCompaction(); - _elem24.read(iprot); - struct.success.add(_elem24); + org.apache.thrift.protocol.TList _list23 = iprot.readListBegin(org.apache.thrift.protocol.TType.STRUCT); + struct.success = new java.util.ArrayList(_list23.size); + @org.apache.thrift.annotation.Nullable org.apache.accumulo.core.tabletserver.thrift.ActiveCompaction _elem24; + for (int _i25 = 0; _i25 < _list23.size; ++_i25) + { + _elem24 = new org.apache.accumulo.core.tabletserver.thrift.ActiveCompaction(); + _elem24.read(iprot); + struct.success.add(_elem24); + } } + struct.setSuccessIsSet(true); } - struct.setSuccessIsSet(true); - } - if (incoming.get(1)) { - struct.sec = new org.apache.accumulo.core.clientImpl.thrift.ThriftSecurityException(); - struct.sec.read(iprot); - struct.setSecIsSet(true); + if (incoming.get(1)) { + struct.sec = new org.apache.accumulo.core.clientImpl.thrift.ThriftSecurityException(); + struct.sec.read(iprot); + struct.setSecIsSet(true); + } + } finally { + prot.decrementRecursionDepth(); } } } @@ -4264,50 +4364,55 @@ private static class cancel_argsStandardScheme extends org.apache.thrift.scheme. @Override public void read(org.apache.thrift.protocol.TProtocol iprot, cancel_args struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TField schemeField; - iprot.readStructBegin(); - while (true) - { - schemeField = iprot.readFieldBegin(); - if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { - break; - } - switch (schemeField.id) { - case 1: // TINFO - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.tinfo = new org.apache.accumulo.core.clientImpl.thrift.TInfo(); - struct.tinfo.read(iprot); - struct.setTinfoIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 2: // CREDENTIALS - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); - struct.credentials.read(iprot); - struct.setCredentialsIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } + iprot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; - case 3: // EXTERNAL_COMPACTION_ID - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.externalCompactionId = iprot.readString(); - struct.setExternalCompactionIdIsSet(true); - } else { + } + switch (schemeField.id) { + case 1: // TINFO + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.tinfo = new org.apache.accumulo.core.clientImpl.thrift.TInfo(); + struct.tinfo.read(iprot); + struct.setTinfoIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 2: // CREDENTIALS + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); + struct.credentials.read(iprot); + struct.setCredentialsIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 3: // EXTERNAL_COMPACTION_ID + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.externalCompactionId = iprot.readString(); + struct.setExternalCompactionIdIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - default: - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); } - iprot.readFieldEnd(); - } - iprot.readStructEnd(); + iprot.readStructEnd(); - // check for required fields of primitive type, which can't be checked in the validate method - struct.validate(); + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } finally { + iprot.decrementRecursionDepth(); + } } @Override @@ -4372,21 +4477,26 @@ public void write(org.apache.thrift.protocol.TProtocol prot, cancel_args struct) @Override public void read(org.apache.thrift.protocol.TProtocol prot, cancel_args struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; - java.util.BitSet incoming = iprot.readBitSet(3); - if (incoming.get(0)) { - struct.tinfo = new org.apache.accumulo.core.clientImpl.thrift.TInfo(); - struct.tinfo.read(iprot); - struct.setTinfoIsSet(true); - } - if (incoming.get(1)) { - struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); - struct.credentials.read(iprot); - struct.setCredentialsIsSet(true); - } - if (incoming.get(2)) { - struct.externalCompactionId = iprot.readString(); - struct.setExternalCompactionIdIsSet(true); + prot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(3); + if (incoming.get(0)) { + struct.tinfo = new org.apache.accumulo.core.clientImpl.thrift.TInfo(); + struct.tinfo.read(iprot); + struct.setTinfoIsSet(true); + } + if (incoming.get(1)) { + struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); + struct.credentials.read(iprot); + struct.setCredentialsIsSet(true); + } + if (incoming.get(2)) { + struct.externalCompactionId = iprot.readString(); + struct.setExternalCompactionIdIsSet(true); + } + } finally { + prot.decrementRecursionDepth(); } } } @@ -4605,24 +4715,29 @@ private static class cancel_resultStandardScheme extends org.apache.thrift.schem @Override public void read(org.apache.thrift.protocol.TProtocol iprot, cancel_result struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TField schemeField; - iprot.readStructBegin(); - while (true) - { - schemeField = iprot.readFieldBegin(); - if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { - break; - } - switch (schemeField.id) { - default: - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + iprot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { + break; + } + switch (schemeField.id) { + default: + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); } - iprot.readFieldEnd(); - } - iprot.readStructEnd(); + iprot.readStructEnd(); - // check for required fields of primitive type, which can't be checked in the validate method - struct.validate(); + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } finally { + iprot.decrementRecursionDepth(); + } } @Override @@ -4652,7 +4767,12 @@ public void write(org.apache.thrift.protocol.TProtocol prot, cancel_result struc @Override public void read(org.apache.thrift.protocol.TProtocol prot, cancel_result struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + prot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + } finally { + prot.decrementRecursionDepth(); + } } } diff --git a/core/src/main/thrift-gen-java/org/apache/accumulo/core/compaction/thrift/TCompactionState.java b/core/src/main/thrift-gen-java/org/apache/accumulo/core/compaction/thrift/TCompactionState.java index 0ad4c357201..d6ea60a0f83 100644 --- a/core/src/main/thrift-gen-java/org/apache/accumulo/core/compaction/thrift/TCompactionState.java +++ b/core/src/main/thrift-gen-java/org/apache/accumulo/core/compaction/thrift/TCompactionState.java @@ -17,7 +17,7 @@ * under the License. */ /* - * Autogenerated by Thrift Compiler (0.17.0) + * Autogenerated by Thrift Compiler (0.23.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated diff --git a/core/src/main/thrift-gen-java/org/apache/accumulo/core/compaction/thrift/TCompactionStatusUpdate.java b/core/src/main/thrift-gen-java/org/apache/accumulo/core/compaction/thrift/TCompactionStatusUpdate.java index cc2d4dbb389..d0fb9fe4e9b 100644 --- a/core/src/main/thrift-gen-java/org/apache/accumulo/core/compaction/thrift/TCompactionStatusUpdate.java +++ b/core/src/main/thrift-gen-java/org/apache/accumulo/core/compaction/thrift/TCompactionStatusUpdate.java @@ -17,7 +17,7 @@ * under the License. */ /* - * Autogenerated by Thrift Compiler (0.17.0) + * Autogenerated by Thrift Compiler (0.23.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -723,72 +723,77 @@ private static class TCompactionStatusUpdateStandardScheme extends org.apache.th @Override public void read(org.apache.thrift.protocol.TProtocol iprot, TCompactionStatusUpdate struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TField schemeField; - iprot.readStructBegin(); - while (true) - { - schemeField = iprot.readFieldBegin(); - if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { - break; - } - switch (schemeField.id) { - case 1: // STATE - if (schemeField.type == org.apache.thrift.protocol.TType.I32) { - struct.state = org.apache.accumulo.core.compaction.thrift.TCompactionState.findByValue(iprot.readI32()); - struct.setStateIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 2: // MESSAGE - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.message = iprot.readString(); - struct.setMessageIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } + iprot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; - case 3: // ENTRIES_TO_BE_COMPACTED - if (schemeField.type == org.apache.thrift.protocol.TType.I64) { - struct.entriesToBeCompacted = iprot.readI64(); - struct.setEntriesToBeCompactedIsSet(true); - } else { + } + switch (schemeField.id) { + case 1: // STATE + if (schemeField.type == org.apache.thrift.protocol.TType.I32) { + struct.state = org.apache.accumulo.core.compaction.thrift.TCompactionState.findByValue(iprot.readI32()); + struct.setStateIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 2: // MESSAGE + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.message = iprot.readString(); + struct.setMessageIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 3: // ENTRIES_TO_BE_COMPACTED + if (schemeField.type == org.apache.thrift.protocol.TType.I64) { + struct.entriesToBeCompacted = iprot.readI64(); + struct.setEntriesToBeCompactedIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 4: // ENTRIES_READ + if (schemeField.type == org.apache.thrift.protocol.TType.I64) { + struct.entriesRead = iprot.readI64(); + struct.setEntriesReadIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 5: // ENTRIES_WRITTEN + if (schemeField.type == org.apache.thrift.protocol.TType.I64) { + struct.entriesWritten = iprot.readI64(); + struct.setEntriesWrittenIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 6: // COMPACTION_AGE_NANOS + if (schemeField.type == org.apache.thrift.protocol.TType.I64) { + struct.compactionAgeNanos = iprot.readI64(); + struct.setCompactionAgeNanosIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 4: // ENTRIES_READ - if (schemeField.type == org.apache.thrift.protocol.TType.I64) { - struct.entriesRead = iprot.readI64(); - struct.setEntriesReadIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 5: // ENTRIES_WRITTEN - if (schemeField.type == org.apache.thrift.protocol.TType.I64) { - struct.entriesWritten = iprot.readI64(); - struct.setEntriesWrittenIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 6: // COMPACTION_AGE_NANOS - if (schemeField.type == org.apache.thrift.protocol.TType.I64) { - struct.compactionAgeNanos = iprot.readI64(); - struct.setCompactionAgeNanosIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - default: - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); } - iprot.readFieldEnd(); - } - iprot.readStructEnd(); + iprot.readStructEnd(); - // check for required fields of primitive type, which can't be checked in the validate method - struct.validate(); + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } finally { + iprot.decrementRecursionDepth(); + } } @Override @@ -878,31 +883,36 @@ public void write(org.apache.thrift.protocol.TProtocol prot, TCompactionStatusUp @Override public void read(org.apache.thrift.protocol.TProtocol prot, TCompactionStatusUpdate struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; - java.util.BitSet incoming = iprot.readBitSet(6); - if (incoming.get(0)) { - struct.state = org.apache.accumulo.core.compaction.thrift.TCompactionState.findByValue(iprot.readI32()); - struct.setStateIsSet(true); - } - if (incoming.get(1)) { - struct.message = iprot.readString(); - struct.setMessageIsSet(true); - } - if (incoming.get(2)) { - struct.entriesToBeCompacted = iprot.readI64(); - struct.setEntriesToBeCompactedIsSet(true); - } - if (incoming.get(3)) { - struct.entriesRead = iprot.readI64(); - struct.setEntriesReadIsSet(true); - } - if (incoming.get(4)) { - struct.entriesWritten = iprot.readI64(); - struct.setEntriesWrittenIsSet(true); - } - if (incoming.get(5)) { - struct.compactionAgeNanos = iprot.readI64(); - struct.setCompactionAgeNanosIsSet(true); + prot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(6); + if (incoming.get(0)) { + struct.state = org.apache.accumulo.core.compaction.thrift.TCompactionState.findByValue(iprot.readI32()); + struct.setStateIsSet(true); + } + if (incoming.get(1)) { + struct.message = iprot.readString(); + struct.setMessageIsSet(true); + } + if (incoming.get(2)) { + struct.entriesToBeCompacted = iprot.readI64(); + struct.setEntriesToBeCompactedIsSet(true); + } + if (incoming.get(3)) { + struct.entriesRead = iprot.readI64(); + struct.setEntriesReadIsSet(true); + } + if (incoming.get(4)) { + struct.entriesWritten = iprot.readI64(); + struct.setEntriesWrittenIsSet(true); + } + if (incoming.get(5)) { + struct.compactionAgeNanos = iprot.readI64(); + struct.setCompactionAgeNanosIsSet(true); + } + } finally { + prot.decrementRecursionDepth(); } } } diff --git a/core/src/main/thrift-gen-java/org/apache/accumulo/core/compaction/thrift/TExternalCompaction.java b/core/src/main/thrift-gen-java/org/apache/accumulo/core/compaction/thrift/TExternalCompaction.java index 01bbfe65421..b98c82633f0 100644 --- a/core/src/main/thrift-gen-java/org/apache/accumulo/core/compaction/thrift/TExternalCompaction.java +++ b/core/src/main/thrift-gen-java/org/apache/accumulo/core/compaction/thrift/TExternalCompaction.java @@ -17,7 +17,7 @@ * under the License. */ /* - * Autogenerated by Thrift Compiler (0.17.0) + * Autogenerated by Thrift Compiler (0.23.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -674,78 +674,83 @@ private static class TExternalCompactionStandardScheme extends org.apache.thrift @Override public void read(org.apache.thrift.protocol.TProtocol iprot, TExternalCompaction struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TField schemeField; - iprot.readStructBegin(); - while (true) - { - schemeField = iprot.readFieldBegin(); - if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { - break; - } - switch (schemeField.id) { - case 1: // GROUP_NAME - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.groupName = iprot.readString(); - struct.setGroupNameIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 2: // COMPACTOR - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.compactor = iprot.readString(); - struct.setCompactorIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } + iprot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; - case 3: // UPDATES - if (schemeField.type == org.apache.thrift.protocol.TType.MAP) { - { - org.apache.thrift.protocol.TMap _map0 = iprot.readMapBegin(); - struct.updates = new java.util.HashMap(2*_map0.size); - long _key1; - @org.apache.thrift.annotation.Nullable TCompactionStatusUpdate _val2; - for (int _i3 = 0; _i3 < _map0.size; ++_i3) + } + switch (schemeField.id) { + case 1: // GROUP_NAME + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.groupName = iprot.readString(); + struct.setGroupNameIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 2: // COMPACTOR + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.compactor = iprot.readString(); + struct.setCompactorIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 3: // UPDATES + if (schemeField.type == org.apache.thrift.protocol.TType.MAP) { { - _key1 = iprot.readI64(); - _val2 = new TCompactionStatusUpdate(); - _val2.read(iprot); - struct.updates.put(_key1, _val2); + org.apache.thrift.protocol.TMap _map0 = iprot.readMapBegin(); + struct.updates = new java.util.HashMap(2*_map0.size); + long _key1; + @org.apache.thrift.annotation.Nullable TCompactionStatusUpdate _val2; + for (int _i3 = 0; _i3 < _map0.size; ++_i3) + { + _key1 = iprot.readI64(); + _val2 = new TCompactionStatusUpdate(); + _val2.read(iprot); + struct.updates.put(_key1, _val2); + } + iprot.readMapEnd(); } - iprot.readMapEnd(); + struct.setUpdatesIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } - struct.setUpdatesIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 4: // JOB - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.job = new org.apache.accumulo.core.tabletserver.thrift.TExternalCompactionJob(); - struct.job.read(iprot); - struct.setJobIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 5: // START_TIME - if (schemeField.type == org.apache.thrift.protocol.TType.I64) { - struct.startTime = iprot.readI64(); - struct.setStartTimeIsSet(true); - } else { + break; + case 4: // JOB + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.job = new org.apache.accumulo.core.tabletserver.thrift.TExternalCompactionJob(); + struct.job.read(iprot); + struct.setJobIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 5: // START_TIME + if (schemeField.type == org.apache.thrift.protocol.TType.I64) { + struct.startTime = iprot.readI64(); + struct.setStartTimeIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - default: - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); } - iprot.readFieldEnd(); - } - iprot.readStructEnd(); + iprot.readStructEnd(); - // check for required fields of primitive type, which can't be checked in the validate method - struct.validate(); + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } finally { + iprot.decrementRecursionDepth(); + } } @Override @@ -845,40 +850,45 @@ public void write(org.apache.thrift.protocol.TProtocol prot, TExternalCompaction @Override public void read(org.apache.thrift.protocol.TProtocol prot, TExternalCompaction struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; - java.util.BitSet incoming = iprot.readBitSet(5); - if (incoming.get(0)) { - struct.groupName = iprot.readString(); - struct.setGroupNameIsSet(true); - } - if (incoming.get(1)) { - struct.compactor = iprot.readString(); - struct.setCompactorIsSet(true); - } - if (incoming.get(2)) { - { - org.apache.thrift.protocol.TMap _map6 = iprot.readMapBegin(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.STRUCT); - struct.updates = new java.util.HashMap(2*_map6.size); - long _key7; - @org.apache.thrift.annotation.Nullable TCompactionStatusUpdate _val8; - for (int _i9 = 0; _i9 < _map6.size; ++_i9) + prot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(5); + if (incoming.get(0)) { + struct.groupName = iprot.readString(); + struct.setGroupNameIsSet(true); + } + if (incoming.get(1)) { + struct.compactor = iprot.readString(); + struct.setCompactorIsSet(true); + } + if (incoming.get(2)) { { - _key7 = iprot.readI64(); - _val8 = new TCompactionStatusUpdate(); - _val8.read(iprot); - struct.updates.put(_key7, _val8); + org.apache.thrift.protocol.TMap _map6 = iprot.readMapBegin(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.STRUCT); + struct.updates = new java.util.HashMap(2*_map6.size); + long _key7; + @org.apache.thrift.annotation.Nullable TCompactionStatusUpdate _val8; + for (int _i9 = 0; _i9 < _map6.size; ++_i9) + { + _key7 = iprot.readI64(); + _val8 = new TCompactionStatusUpdate(); + _val8.read(iprot); + struct.updates.put(_key7, _val8); + } } + struct.setUpdatesIsSet(true); } - struct.setUpdatesIsSet(true); - } - if (incoming.get(3)) { - struct.job = new org.apache.accumulo.core.tabletserver.thrift.TExternalCompactionJob(); - struct.job.read(iprot); - struct.setJobIsSet(true); - } - if (incoming.get(4)) { - struct.startTime = iprot.readI64(); - struct.setStartTimeIsSet(true); + if (incoming.get(3)) { + struct.job = new org.apache.accumulo.core.tabletserver.thrift.TExternalCompactionJob(); + struct.job.read(iprot); + struct.setJobIsSet(true); + } + if (incoming.get(4)) { + struct.startTime = iprot.readI64(); + struct.setStartTimeIsSet(true); + } + } finally { + prot.decrementRecursionDepth(); } } } diff --git a/core/src/main/thrift-gen-java/org/apache/accumulo/core/compaction/thrift/TExternalCompactionList.java b/core/src/main/thrift-gen-java/org/apache/accumulo/core/compaction/thrift/TExternalCompactionList.java index b8d8f8e24fc..01680f63830 100644 --- a/core/src/main/thrift-gen-java/org/apache/accumulo/core/compaction/thrift/TExternalCompactionList.java +++ b/core/src/main/thrift-gen-java/org/apache/accumulo/core/compaction/thrift/TExternalCompactionList.java @@ -17,7 +17,7 @@ * under the License. */ /* - * Autogenerated by Thrift Compiler (0.17.0) + * Autogenerated by Thrift Compiler (0.23.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -342,43 +342,48 @@ private static class TExternalCompactionListStandardScheme extends org.apache.th @Override public void read(org.apache.thrift.protocol.TProtocol iprot, TExternalCompactionList struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TField schemeField; - iprot.readStructBegin(); - while (true) - { - schemeField = iprot.readFieldBegin(); - if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { - break; - } - switch (schemeField.id) { - case 1: // COMPACTIONS - if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { - { - org.apache.thrift.protocol.TList _list10 = iprot.readListBegin(); - struct.compactions = new java.util.ArrayList(_list10.size); - @org.apache.thrift.annotation.Nullable TExternalCompaction _elem11; - for (int _i12 = 0; _i12 < _list10.size; ++_i12) + iprot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { + break; + } + switch (schemeField.id) { + case 1: // COMPACTIONS + if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - _elem11 = new TExternalCompaction(); - _elem11.read(iprot); - struct.compactions.add(_elem11); + org.apache.thrift.protocol.TList _list10 = iprot.readListBegin(); + struct.compactions = new java.util.ArrayList(_list10.size); + @org.apache.thrift.annotation.Nullable TExternalCompaction _elem11; + for (int _i12 = 0; _i12 < _list10.size; ++_i12) + { + _elem11 = new TExternalCompaction(); + _elem11.read(iprot); + struct.compactions.add(_elem11); + } + iprot.readListEnd(); } - iprot.readListEnd(); + struct.setCompactionsIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } - struct.setCompactionsIsSet(true); - } else { + break; + default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - default: - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); } - iprot.readFieldEnd(); - } - iprot.readStructEnd(); + iprot.readStructEnd(); - // check for required fields of primitive type, which can't be checked in the validate method - struct.validate(); + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } finally { + iprot.decrementRecursionDepth(); + } } @Override @@ -434,21 +439,26 @@ public void write(org.apache.thrift.protocol.TProtocol prot, TExternalCompaction @Override public void read(org.apache.thrift.protocol.TProtocol prot, TExternalCompactionList struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; - java.util.BitSet incoming = iprot.readBitSet(1); - if (incoming.get(0)) { - { - org.apache.thrift.protocol.TList _list15 = iprot.readListBegin(org.apache.thrift.protocol.TType.STRUCT); - struct.compactions = new java.util.ArrayList(_list15.size); - @org.apache.thrift.annotation.Nullable TExternalCompaction _elem16; - for (int _i17 = 0; _i17 < _list15.size; ++_i17) + prot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(1); + if (incoming.get(0)) { { - _elem16 = new TExternalCompaction(); - _elem16.read(iprot); - struct.compactions.add(_elem16); + org.apache.thrift.protocol.TList _list15 = iprot.readListBegin(org.apache.thrift.protocol.TType.STRUCT); + struct.compactions = new java.util.ArrayList(_list15.size); + @org.apache.thrift.annotation.Nullable TExternalCompaction _elem16; + for (int _i17 = 0; _i17 < _list15.size; ++_i17) + { + _elem16 = new TExternalCompaction(); + _elem16.read(iprot); + struct.compactions.add(_elem16); + } } + struct.setCompactionsIsSet(true); } - struct.setCompactionsIsSet(true); + } finally { + prot.decrementRecursionDepth(); } } } diff --git a/core/src/main/thrift-gen-java/org/apache/accumulo/core/compaction/thrift/TNextCompactionJob.java b/core/src/main/thrift-gen-java/org/apache/accumulo/core/compaction/thrift/TNextCompactionJob.java index 483febe726a..2b7bdd9bf2f 100644 --- a/core/src/main/thrift-gen-java/org/apache/accumulo/core/compaction/thrift/TNextCompactionJob.java +++ b/core/src/main/thrift-gen-java/org/apache/accumulo/core/compaction/thrift/TNextCompactionJob.java @@ -17,7 +17,7 @@ * under the License. */ /* - * Autogenerated by Thrift Compiler (0.17.0) + * Autogenerated by Thrift Compiler (0.23.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -403,41 +403,46 @@ private static class TNextCompactionJobStandardScheme extends org.apache.thrift. @Override public void read(org.apache.thrift.protocol.TProtocol iprot, TNextCompactionJob struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TField schemeField; - iprot.readStructBegin(); - while (true) - { - schemeField = iprot.readFieldBegin(); - if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { - break; - } - switch (schemeField.id) { - case 1: // JOB - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.job = new org.apache.accumulo.core.tabletserver.thrift.TExternalCompactionJob(); - struct.job.read(iprot); - struct.setJobIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } + iprot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; - case 2: // COMPACTOR_COUNT - if (schemeField.type == org.apache.thrift.protocol.TType.I32) { - struct.compactorCount = iprot.readI32(); - struct.setCompactorCountIsSet(true); - } else { + } + switch (schemeField.id) { + case 1: // JOB + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.job = new org.apache.accumulo.core.tabletserver.thrift.TExternalCompactionJob(); + struct.job.read(iprot); + struct.setJobIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 2: // COMPACTOR_COUNT + if (schemeField.type == org.apache.thrift.protocol.TType.I32) { + struct.compactorCount = iprot.readI32(); + struct.setCompactorCountIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - default: - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); } - iprot.readFieldEnd(); - } - iprot.readStructEnd(); + iprot.readStructEnd(); - // check for required fields of primitive type, which can't be checked in the validate method - struct.validate(); + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } finally { + iprot.decrementRecursionDepth(); + } } @Override @@ -489,16 +494,21 @@ public void write(org.apache.thrift.protocol.TProtocol prot, TNextCompactionJob @Override public void read(org.apache.thrift.protocol.TProtocol prot, TNextCompactionJob struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; - java.util.BitSet incoming = iprot.readBitSet(2); - if (incoming.get(0)) { - struct.job = new org.apache.accumulo.core.tabletserver.thrift.TExternalCompactionJob(); - struct.job.read(iprot); - struct.setJobIsSet(true); - } - if (incoming.get(1)) { - struct.compactorCount = iprot.readI32(); - struct.setCompactorCountIsSet(true); + prot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(2); + if (incoming.get(0)) { + struct.job = new org.apache.accumulo.core.tabletserver.thrift.TExternalCompactionJob(); + struct.job.read(iprot); + struct.setJobIsSet(true); + } + if (incoming.get(1)) { + struct.compactorCount = iprot.readI32(); + struct.setCompactorCountIsSet(true); + } + } finally { + prot.decrementRecursionDepth(); } } } diff --git a/core/src/main/thrift-gen-java/org/apache/accumulo/core/compaction/thrift/UnknownCompactionIdException.java b/core/src/main/thrift-gen-java/org/apache/accumulo/core/compaction/thrift/UnknownCompactionIdException.java index 6bb54f596b5..0cee4b1ce1e 100644 --- a/core/src/main/thrift-gen-java/org/apache/accumulo/core/compaction/thrift/UnknownCompactionIdException.java +++ b/core/src/main/thrift-gen-java/org/apache/accumulo/core/compaction/thrift/UnknownCompactionIdException.java @@ -17,7 +17,7 @@ * under the License. */ /* - * Autogenerated by Thrift Compiler (0.17.0) + * Autogenerated by Thrift Compiler (0.23.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -234,24 +234,29 @@ private static class UnknownCompactionIdExceptionStandardScheme extends org.apac @Override public void read(org.apache.thrift.protocol.TProtocol iprot, UnknownCompactionIdException struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TField schemeField; - iprot.readStructBegin(); - while (true) - { - schemeField = iprot.readFieldBegin(); - if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { - break; + iprot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { + break; + } + switch (schemeField.id) { + default: + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); } - switch (schemeField.id) { - default: - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - iprot.readFieldEnd(); - } - iprot.readStructEnd(); + iprot.readStructEnd(); - // check for required fields of primitive type, which can't be checked in the validate method - struct.validate(); + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } finally { + iprot.decrementRecursionDepth(); + } } @Override @@ -281,7 +286,12 @@ public void write(org.apache.thrift.protocol.TProtocol prot, UnknownCompactionId @Override public void read(org.apache.thrift.protocol.TProtocol prot, UnknownCompactionIdException struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + prot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + } finally { + prot.decrementRecursionDepth(); + } } } diff --git a/core/src/main/thrift-gen-java/org/apache/accumulo/core/dataImpl/thrift/InitialMultiScan.java b/core/src/main/thrift-gen-java/org/apache/accumulo/core/dataImpl/thrift/InitialMultiScan.java index 06706faae33..08862a4e29a 100644 --- a/core/src/main/thrift-gen-java/org/apache/accumulo/core/dataImpl/thrift/InitialMultiScan.java +++ b/core/src/main/thrift-gen-java/org/apache/accumulo/core/dataImpl/thrift/InitialMultiScan.java @@ -17,7 +17,7 @@ * under the License. */ /* - * Autogenerated by Thrift Compiler (0.17.0) + * Autogenerated by Thrift Compiler (0.23.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -403,41 +403,46 @@ private static class InitialMultiScanStandardScheme extends org.apache.thrift.sc @Override public void read(org.apache.thrift.protocol.TProtocol iprot, InitialMultiScan struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TField schemeField; - iprot.readStructBegin(); - while (true) - { - schemeField = iprot.readFieldBegin(); - if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { - break; - } - switch (schemeField.id) { - case 1: // SCAN_ID - if (schemeField.type == org.apache.thrift.protocol.TType.I64) { - struct.scanID = iprot.readI64(); - struct.setScanIDIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } + iprot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; - case 2: // RESULT - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.result = new MultiScanResult(); - struct.result.read(iprot); - struct.setResultIsSet(true); - } else { + } + switch (schemeField.id) { + case 1: // SCAN_ID + if (schemeField.type == org.apache.thrift.protocol.TType.I64) { + struct.scanID = iprot.readI64(); + struct.setScanIDIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 2: // RESULT + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.result = new MultiScanResult(); + struct.result.read(iprot); + struct.setResultIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - default: - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); } - iprot.readFieldEnd(); - } - iprot.readStructEnd(); + iprot.readStructEnd(); - // check for required fields of primitive type, which can't be checked in the validate method - struct.validate(); + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } finally { + iprot.decrementRecursionDepth(); + } } @Override @@ -489,16 +494,21 @@ public void write(org.apache.thrift.protocol.TProtocol prot, InitialMultiScan st @Override public void read(org.apache.thrift.protocol.TProtocol prot, InitialMultiScan struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; - java.util.BitSet incoming = iprot.readBitSet(2); - if (incoming.get(0)) { - struct.scanID = iprot.readI64(); - struct.setScanIDIsSet(true); - } - if (incoming.get(1)) { - struct.result = new MultiScanResult(); - struct.result.read(iprot); - struct.setResultIsSet(true); + prot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(2); + if (incoming.get(0)) { + struct.scanID = iprot.readI64(); + struct.setScanIDIsSet(true); + } + if (incoming.get(1)) { + struct.result = new MultiScanResult(); + struct.result.read(iprot); + struct.setResultIsSet(true); + } + } finally { + prot.decrementRecursionDepth(); } } } diff --git a/core/src/main/thrift-gen-java/org/apache/accumulo/core/dataImpl/thrift/InitialScan.java b/core/src/main/thrift-gen-java/org/apache/accumulo/core/dataImpl/thrift/InitialScan.java index becdf7fa7ed..fb69c9c7c20 100644 --- a/core/src/main/thrift-gen-java/org/apache/accumulo/core/dataImpl/thrift/InitialScan.java +++ b/core/src/main/thrift-gen-java/org/apache/accumulo/core/dataImpl/thrift/InitialScan.java @@ -17,7 +17,7 @@ * under the License. */ /* - * Autogenerated by Thrift Compiler (0.17.0) + * Autogenerated by Thrift Compiler (0.23.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -403,41 +403,46 @@ private static class InitialScanStandardScheme extends org.apache.thrift.scheme. @Override public void read(org.apache.thrift.protocol.TProtocol iprot, InitialScan struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TField schemeField; - iprot.readStructBegin(); - while (true) - { - schemeField = iprot.readFieldBegin(); - if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { - break; - } - switch (schemeField.id) { - case 1: // SCAN_ID - if (schemeField.type == org.apache.thrift.protocol.TType.I64) { - struct.scanID = iprot.readI64(); - struct.setScanIDIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } + iprot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; - case 2: // RESULT - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.result = new ScanResult(); - struct.result.read(iprot); - struct.setResultIsSet(true); - } else { + } + switch (schemeField.id) { + case 1: // SCAN_ID + if (schemeField.type == org.apache.thrift.protocol.TType.I64) { + struct.scanID = iprot.readI64(); + struct.setScanIDIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 2: // RESULT + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.result = new ScanResult(); + struct.result.read(iprot); + struct.setResultIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - default: - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); } - iprot.readFieldEnd(); - } - iprot.readStructEnd(); + iprot.readStructEnd(); - // check for required fields of primitive type, which can't be checked in the validate method - struct.validate(); + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } finally { + iprot.decrementRecursionDepth(); + } } @Override @@ -489,16 +494,21 @@ public void write(org.apache.thrift.protocol.TProtocol prot, InitialScan struct) @Override public void read(org.apache.thrift.protocol.TProtocol prot, InitialScan struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; - java.util.BitSet incoming = iprot.readBitSet(2); - if (incoming.get(0)) { - struct.scanID = iprot.readI64(); - struct.setScanIDIsSet(true); - } - if (incoming.get(1)) { - struct.result = new ScanResult(); - struct.result.read(iprot); - struct.setResultIsSet(true); + prot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(2); + if (incoming.get(0)) { + struct.scanID = iprot.readI64(); + struct.setScanIDIsSet(true); + } + if (incoming.get(1)) { + struct.result = new ScanResult(); + struct.result.read(iprot); + struct.setResultIsSet(true); + } + } finally { + prot.decrementRecursionDepth(); } } } diff --git a/core/src/main/thrift-gen-java/org/apache/accumulo/core/dataImpl/thrift/IterInfo.java b/core/src/main/thrift-gen-java/org/apache/accumulo/core/dataImpl/thrift/IterInfo.java index 1ef80ac032d..42dedc9a8e9 100644 --- a/core/src/main/thrift-gen-java/org/apache/accumulo/core/dataImpl/thrift/IterInfo.java +++ b/core/src/main/thrift-gen-java/org/apache/accumulo/core/dataImpl/thrift/IterInfo.java @@ -17,7 +17,7 @@ * under the License. */ /* - * Autogenerated by Thrift Compiler (0.17.0) + * Autogenerated by Thrift Compiler (0.23.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -482,48 +482,53 @@ private static class IterInfoStandardScheme extends org.apache.thrift.scheme.Sta @Override public void read(org.apache.thrift.protocol.TProtocol iprot, IterInfo struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TField schemeField; - iprot.readStructBegin(); - while (true) - { - schemeField = iprot.readFieldBegin(); - if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { - break; - } - switch (schemeField.id) { - case 1: // PRIORITY - if (schemeField.type == org.apache.thrift.protocol.TType.I32) { - struct.priority = iprot.readI32(); - struct.setPriorityIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 2: // CLASS_NAME - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.className = iprot.readString(); - struct.setClassNameIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } + iprot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; - case 3: // ITER_NAME - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.iterName = iprot.readString(); - struct.setIterNameIsSet(true); - } else { + } + switch (schemeField.id) { + case 1: // PRIORITY + if (schemeField.type == org.apache.thrift.protocol.TType.I32) { + struct.priority = iprot.readI32(); + struct.setPriorityIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 2: // CLASS_NAME + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.className = iprot.readString(); + struct.setClassNameIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 3: // ITER_NAME + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.iterName = iprot.readString(); + struct.setIterNameIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - default: - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); } - iprot.readFieldEnd(); - } - iprot.readStructEnd(); + iprot.readStructEnd(); - // check for required fields of primitive type, which can't be checked in the validate method - struct.validate(); + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } finally { + iprot.decrementRecursionDepth(); + } } @Override @@ -586,19 +591,24 @@ public void write(org.apache.thrift.protocol.TProtocol prot, IterInfo struct) th @Override public void read(org.apache.thrift.protocol.TProtocol prot, IterInfo struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; - java.util.BitSet incoming = iprot.readBitSet(3); - if (incoming.get(0)) { - struct.priority = iprot.readI32(); - struct.setPriorityIsSet(true); - } - if (incoming.get(1)) { - struct.className = iprot.readString(); - struct.setClassNameIsSet(true); - } - if (incoming.get(2)) { - struct.iterName = iprot.readString(); - struct.setIterNameIsSet(true); + prot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(3); + if (incoming.get(0)) { + struct.priority = iprot.readI32(); + struct.setPriorityIsSet(true); + } + if (incoming.get(1)) { + struct.className = iprot.readString(); + struct.setClassNameIsSet(true); + } + if (incoming.get(2)) { + struct.iterName = iprot.readString(); + struct.setIterNameIsSet(true); + } + } finally { + prot.decrementRecursionDepth(); } } } diff --git a/core/src/main/thrift-gen-java/org/apache/accumulo/core/dataImpl/thrift/MultiScanResult.java b/core/src/main/thrift-gen-java/org/apache/accumulo/core/dataImpl/thrift/MultiScanResult.java index 03e81253419..431bd309ae3 100644 --- a/core/src/main/thrift-gen-java/org/apache/accumulo/core/dataImpl/thrift/MultiScanResult.java +++ b/core/src/main/thrift-gen-java/org/apache/accumulo/core/dataImpl/thrift/MultiScanResult.java @@ -17,7 +17,7 @@ * under the License. */ /* - * Autogenerated by Thrift Compiler (0.17.0) + * Autogenerated by Thrift Compiler (0.23.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -138,7 +138,10 @@ public java.lang.String getFieldName() { new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TKeyValue.class)))); tmpMap.put(_Fields.FAILURES, new org.apache.thrift.meta_data.FieldMetaData("failures", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.MAP , "ScanBatch"))); + new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TKeyExtent.class), + new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TRange.class))))); tmpMap.put(_Fields.FULL_SCANS, new org.apache.thrift.meta_data.FieldMetaData("fullScans", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TKeyExtent.class)))); @@ -877,128 +880,133 @@ private static class MultiScanResultStandardScheme extends org.apache.thrift.sch @Override public void read(org.apache.thrift.protocol.TProtocol iprot, MultiScanResult struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TField schemeField; - iprot.readStructBegin(); - while (true) - { - schemeField = iprot.readFieldBegin(); - if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { - break; - } - switch (schemeField.id) { - case 1: // RESULTS - if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { - { - org.apache.thrift.protocol.TList _list24 = iprot.readListBegin(); - struct.results = new java.util.ArrayList(_list24.size); - @org.apache.thrift.annotation.Nullable TKeyValue _elem25; - for (int _i26 = 0; _i26 < _list24.size; ++_i26) + iprot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { + break; + } + switch (schemeField.id) { + case 1: // RESULTS + if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - _elem25 = new TKeyValue(); - _elem25.read(iprot); - struct.results.add(_elem25); + org.apache.thrift.protocol.TList _list24 = iprot.readListBegin(); + struct.results = new java.util.ArrayList(_list24.size); + @org.apache.thrift.annotation.Nullable TKeyValue _elem25; + for (int _i26 = 0; _i26 < _list24.size; ++_i26) + { + _elem25 = new TKeyValue(); + _elem25.read(iprot); + struct.results.add(_elem25); + } + iprot.readListEnd(); } - iprot.readListEnd(); + struct.setResultsIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } - struct.setResultsIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 2: // FAILURES - if (schemeField.type == org.apache.thrift.protocol.TType.MAP) { - { - org.apache.thrift.protocol.TMap _map27 = iprot.readMapBegin(); - struct.failures = new java.util.HashMap>(2*_map27.size); - @org.apache.thrift.annotation.Nullable TKeyExtent _key28; - @org.apache.thrift.annotation.Nullable java.util.List _val29; - for (int _i30 = 0; _i30 < _map27.size; ++_i30) + break; + case 2: // FAILURES + if (schemeField.type == org.apache.thrift.protocol.TType.MAP) { { - _key28 = new TKeyExtent(); - _key28.read(iprot); + org.apache.thrift.protocol.TMap _map27 = iprot.readMapBegin(); + struct.failures = new java.util.HashMap>(2*_map27.size); + @org.apache.thrift.annotation.Nullable TKeyExtent _key28; + @org.apache.thrift.annotation.Nullable java.util.List _val29; + for (int _i30 = 0; _i30 < _map27.size; ++_i30) { - org.apache.thrift.protocol.TList _list31 = iprot.readListBegin(); - _val29 = new java.util.ArrayList(_list31.size); - @org.apache.thrift.annotation.Nullable TRange _elem32; - for (int _i33 = 0; _i33 < _list31.size; ++_i33) + _key28 = new TKeyExtent(); + _key28.read(iprot); { - _elem32 = new TRange(); - _elem32.read(iprot); - _val29.add(_elem32); + org.apache.thrift.protocol.TList _list31 = iprot.readListBegin(); + _val29 = new java.util.ArrayList(_list31.size); + @org.apache.thrift.annotation.Nullable TRange _elem32; + for (int _i33 = 0; _i33 < _list31.size; ++_i33) + { + _elem32 = new TRange(); + _elem32.read(iprot); + _val29.add(_elem32); + } + iprot.readListEnd(); } - iprot.readListEnd(); + struct.failures.put(_key28, _val29); } - struct.failures.put(_key28, _val29); + iprot.readMapEnd(); } - iprot.readMapEnd(); + struct.setFailuresIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } - struct.setFailuresIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 3: // FULL_SCANS - if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { - { - org.apache.thrift.protocol.TList _list34 = iprot.readListBegin(); - struct.fullScans = new java.util.ArrayList(_list34.size); - @org.apache.thrift.annotation.Nullable TKeyExtent _elem35; - for (int _i36 = 0; _i36 < _list34.size; ++_i36) + break; + case 3: // FULL_SCANS + if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - _elem35 = new TKeyExtent(); - _elem35.read(iprot); - struct.fullScans.add(_elem35); + org.apache.thrift.protocol.TList _list34 = iprot.readListBegin(); + struct.fullScans = new java.util.ArrayList(_list34.size); + @org.apache.thrift.annotation.Nullable TKeyExtent _elem35; + for (int _i36 = 0; _i36 < _list34.size; ++_i36) + { + _elem35 = new TKeyExtent(); + _elem35.read(iprot); + struct.fullScans.add(_elem35); + } + iprot.readListEnd(); } - iprot.readListEnd(); + struct.setFullScansIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } - struct.setFullScansIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 4: // PART_SCAN - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.partScan = new TKeyExtent(); - struct.partScan.read(iprot); - struct.setPartScanIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 5: // PART_NEXT_KEY - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.partNextKey = new TKey(); - struct.partNextKey.read(iprot); - struct.setPartNextKeyIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 6: // PART_NEXT_KEY_INCLUSIVE - if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) { - struct.partNextKeyInclusive = iprot.readBool(); - struct.setPartNextKeyInclusiveIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 7: // MORE - if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) { - struct.more = iprot.readBool(); - struct.setMoreIsSet(true); - } else { + break; + case 4: // PART_SCAN + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.partScan = new TKeyExtent(); + struct.partScan.read(iprot); + struct.setPartScanIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 5: // PART_NEXT_KEY + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.partNextKey = new TKey(); + struct.partNextKey.read(iprot); + struct.setPartNextKeyIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 6: // PART_NEXT_KEY_INCLUSIVE + if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) { + struct.partNextKeyInclusive = iprot.readBool(); + struct.setPartNextKeyInclusiveIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 7: // MORE + if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) { + struct.more = iprot.readBool(); + struct.setMoreIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - default: - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); } - iprot.readFieldEnd(); - } - iprot.readStructEnd(); + iprot.readStructEnd(); - // check for required fields of primitive type, which can't be checked in the validate method - struct.validate(); + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } finally { + iprot.decrementRecursionDepth(); + } } @Override @@ -1157,79 +1165,84 @@ public void write(org.apache.thrift.protocol.TProtocol prot, MultiScanResult str @Override public void read(org.apache.thrift.protocol.TProtocol prot, MultiScanResult struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; - java.util.BitSet incoming = iprot.readBitSet(7); - if (incoming.get(0)) { - { - org.apache.thrift.protocol.TList _list45 = iprot.readListBegin(org.apache.thrift.protocol.TType.STRUCT); - struct.results = new java.util.ArrayList(_list45.size); - @org.apache.thrift.annotation.Nullable TKeyValue _elem46; - for (int _i47 = 0; _i47 < _list45.size; ++_i47) + prot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(7); + if (incoming.get(0)) { { - _elem46 = new TKeyValue(); - _elem46.read(iprot); - struct.results.add(_elem46); + org.apache.thrift.protocol.TList _list45 = iprot.readListBegin(org.apache.thrift.protocol.TType.STRUCT); + struct.results = new java.util.ArrayList(_list45.size); + @org.apache.thrift.annotation.Nullable TKeyValue _elem46; + for (int _i47 = 0; _i47 < _list45.size; ++_i47) + { + _elem46 = new TKeyValue(); + _elem46.read(iprot); + struct.results.add(_elem46); + } } + struct.setResultsIsSet(true); } - struct.setResultsIsSet(true); - } - if (incoming.get(1)) { - { - org.apache.thrift.protocol.TMap _map48 = iprot.readMapBegin(org.apache.thrift.protocol.TType.STRUCT, org.apache.thrift.protocol.TType.LIST); - struct.failures = new java.util.HashMap>(2*_map48.size); - @org.apache.thrift.annotation.Nullable TKeyExtent _key49; - @org.apache.thrift.annotation.Nullable java.util.List _val50; - for (int _i51 = 0; _i51 < _map48.size; ++_i51) + if (incoming.get(1)) { { - _key49 = new TKeyExtent(); - _key49.read(iprot); + org.apache.thrift.protocol.TMap _map48 = iprot.readMapBegin(org.apache.thrift.protocol.TType.STRUCT, org.apache.thrift.protocol.TType.LIST); + struct.failures = new java.util.HashMap>(2*_map48.size); + @org.apache.thrift.annotation.Nullable TKeyExtent _key49; + @org.apache.thrift.annotation.Nullable java.util.List _val50; + for (int _i51 = 0; _i51 < _map48.size; ++_i51) { - org.apache.thrift.protocol.TList _list52 = iprot.readListBegin(org.apache.thrift.protocol.TType.STRUCT); - _val50 = new java.util.ArrayList(_list52.size); - @org.apache.thrift.annotation.Nullable TRange _elem53; - for (int _i54 = 0; _i54 < _list52.size; ++_i54) + _key49 = new TKeyExtent(); + _key49.read(iprot); { - _elem53 = new TRange(); - _elem53.read(iprot); - _val50.add(_elem53); + org.apache.thrift.protocol.TList _list52 = iprot.readListBegin(org.apache.thrift.protocol.TType.STRUCT); + _val50 = new java.util.ArrayList(_list52.size); + @org.apache.thrift.annotation.Nullable TRange _elem53; + for (int _i54 = 0; _i54 < _list52.size; ++_i54) + { + _elem53 = new TRange(); + _elem53.read(iprot); + _val50.add(_elem53); + } } + struct.failures.put(_key49, _val50); } - struct.failures.put(_key49, _val50); } + struct.setFailuresIsSet(true); } - struct.setFailuresIsSet(true); - } - if (incoming.get(2)) { - { - org.apache.thrift.protocol.TList _list55 = iprot.readListBegin(org.apache.thrift.protocol.TType.STRUCT); - struct.fullScans = new java.util.ArrayList(_list55.size); - @org.apache.thrift.annotation.Nullable TKeyExtent _elem56; - for (int _i57 = 0; _i57 < _list55.size; ++_i57) + if (incoming.get(2)) { { - _elem56 = new TKeyExtent(); - _elem56.read(iprot); - struct.fullScans.add(_elem56); + org.apache.thrift.protocol.TList _list55 = iprot.readListBegin(org.apache.thrift.protocol.TType.STRUCT); + struct.fullScans = new java.util.ArrayList(_list55.size); + @org.apache.thrift.annotation.Nullable TKeyExtent _elem56; + for (int _i57 = 0; _i57 < _list55.size; ++_i57) + { + _elem56 = new TKeyExtent(); + _elem56.read(iprot); + struct.fullScans.add(_elem56); + } } + struct.setFullScansIsSet(true); } - struct.setFullScansIsSet(true); - } - if (incoming.get(3)) { - struct.partScan = new TKeyExtent(); - struct.partScan.read(iprot); - struct.setPartScanIsSet(true); - } - if (incoming.get(4)) { - struct.partNextKey = new TKey(); - struct.partNextKey.read(iprot); - struct.setPartNextKeyIsSet(true); - } - if (incoming.get(5)) { - struct.partNextKeyInclusive = iprot.readBool(); - struct.setPartNextKeyInclusiveIsSet(true); - } - if (incoming.get(6)) { - struct.more = iprot.readBool(); - struct.setMoreIsSet(true); + if (incoming.get(3)) { + struct.partScan = new TKeyExtent(); + struct.partScan.read(iprot); + struct.setPartScanIsSet(true); + } + if (incoming.get(4)) { + struct.partNextKey = new TKey(); + struct.partNextKey.read(iprot); + struct.setPartNextKeyIsSet(true); + } + if (incoming.get(5)) { + struct.partNextKeyInclusive = iprot.readBool(); + struct.setPartNextKeyInclusiveIsSet(true); + } + if (incoming.get(6)) { + struct.more = iprot.readBool(); + struct.setMoreIsSet(true); + } + } finally { + prot.decrementRecursionDepth(); } } } diff --git a/core/src/main/thrift-gen-java/org/apache/accumulo/core/dataImpl/thrift/ScanResult.java b/core/src/main/thrift-gen-java/org/apache/accumulo/core/dataImpl/thrift/ScanResult.java index c720fd6b10e..96c36755e41 100644 --- a/core/src/main/thrift-gen-java/org/apache/accumulo/core/dataImpl/thrift/ScanResult.java +++ b/core/src/main/thrift-gen-java/org/apache/accumulo/core/dataImpl/thrift/ScanResult.java @@ -17,7 +17,7 @@ * under the License. */ /* - * Autogenerated by Thrift Compiler (0.17.0) + * Autogenerated by Thrift Compiler (0.23.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -421,51 +421,56 @@ private static class ScanResultStandardScheme extends org.apache.thrift.scheme.S @Override public void read(org.apache.thrift.protocol.TProtocol iprot, ScanResult struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TField schemeField; - iprot.readStructBegin(); - while (true) - { - schemeField = iprot.readFieldBegin(); - if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { - break; - } - switch (schemeField.id) { - case 1: // RESULTS - if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { - { - org.apache.thrift.protocol.TList _list16 = iprot.readListBegin(); - struct.results = new java.util.ArrayList(_list16.size); - @org.apache.thrift.annotation.Nullable TKeyValue _elem17; - for (int _i18 = 0; _i18 < _list16.size; ++_i18) + iprot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { + break; + } + switch (schemeField.id) { + case 1: // RESULTS + if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - _elem17 = new TKeyValue(); - _elem17.read(iprot); - struct.results.add(_elem17); + org.apache.thrift.protocol.TList _list16 = iprot.readListBegin(); + struct.results = new java.util.ArrayList(_list16.size); + @org.apache.thrift.annotation.Nullable TKeyValue _elem17; + for (int _i18 = 0; _i18 < _list16.size; ++_i18) + { + _elem17 = new TKeyValue(); + _elem17.read(iprot); + struct.results.add(_elem17); + } + iprot.readListEnd(); } - iprot.readListEnd(); + struct.setResultsIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } - struct.setResultsIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 2: // MORE - if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) { - struct.more = iprot.readBool(); - struct.setMoreIsSet(true); - } else { + break; + case 2: // MORE + if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) { + struct.more = iprot.readBool(); + struct.setMoreIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - default: - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); } - iprot.readFieldEnd(); - } - iprot.readStructEnd(); + iprot.readStructEnd(); - // check for required fields of primitive type, which can't be checked in the validate method - struct.validate(); + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } finally { + iprot.decrementRecursionDepth(); + } } @Override @@ -530,25 +535,30 @@ public void write(org.apache.thrift.protocol.TProtocol prot, ScanResult struct) @Override public void read(org.apache.thrift.protocol.TProtocol prot, ScanResult struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; - java.util.BitSet incoming = iprot.readBitSet(2); - if (incoming.get(0)) { - { - org.apache.thrift.protocol.TList _list21 = iprot.readListBegin(org.apache.thrift.protocol.TType.STRUCT); - struct.results = new java.util.ArrayList(_list21.size); - @org.apache.thrift.annotation.Nullable TKeyValue _elem22; - for (int _i23 = 0; _i23 < _list21.size; ++_i23) + prot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(2); + if (incoming.get(0)) { { - _elem22 = new TKeyValue(); - _elem22.read(iprot); - struct.results.add(_elem22); + org.apache.thrift.protocol.TList _list21 = iprot.readListBegin(org.apache.thrift.protocol.TType.STRUCT); + struct.results = new java.util.ArrayList(_list21.size); + @org.apache.thrift.annotation.Nullable TKeyValue _elem22; + for (int _i23 = 0; _i23 < _list21.size; ++_i23) + { + _elem22 = new TKeyValue(); + _elem22.read(iprot); + struct.results.add(_elem22); + } } + struct.setResultsIsSet(true); } - struct.setResultsIsSet(true); - } - if (incoming.get(1)) { - struct.more = iprot.readBool(); - struct.setMoreIsSet(true); + if (incoming.get(1)) { + struct.more = iprot.readBool(); + struct.setMoreIsSet(true); + } + } finally { + prot.decrementRecursionDepth(); } } } diff --git a/core/src/main/thrift-gen-java/org/apache/accumulo/core/dataImpl/thrift/TCMResult.java b/core/src/main/thrift-gen-java/org/apache/accumulo/core/dataImpl/thrift/TCMResult.java index 2f2842876d9..61a9d47d020 100644 --- a/core/src/main/thrift-gen-java/org/apache/accumulo/core/dataImpl/thrift/TCMResult.java +++ b/core/src/main/thrift-gen-java/org/apache/accumulo/core/dataImpl/thrift/TCMResult.java @@ -17,7 +17,7 @@ * under the License. */ /* - * Autogenerated by Thrift Compiler (0.17.0) + * Autogenerated by Thrift Compiler (0.23.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -416,40 +416,45 @@ private static class TCMResultStandardScheme extends org.apache.thrift.scheme.St @Override public void read(org.apache.thrift.protocol.TProtocol iprot, TCMResult struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TField schemeField; - iprot.readStructBegin(); - while (true) - { - schemeField = iprot.readFieldBegin(); - if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { - break; - } - switch (schemeField.id) { - case 1: // CMID - if (schemeField.type == org.apache.thrift.protocol.TType.I64) { - struct.cmid = iprot.readI64(); - struct.setCmidIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } + iprot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; - case 2: // STATUS - if (schemeField.type == org.apache.thrift.protocol.TType.I32) { - struct.status = org.apache.accumulo.core.dataImpl.thrift.TCMStatus.findByValue(iprot.readI32()); - struct.setStatusIsSet(true); - } else { + } + switch (schemeField.id) { + case 1: // CMID + if (schemeField.type == org.apache.thrift.protocol.TType.I64) { + struct.cmid = iprot.readI64(); + struct.setCmidIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 2: // STATUS + if (schemeField.type == org.apache.thrift.protocol.TType.I32) { + struct.status = org.apache.accumulo.core.dataImpl.thrift.TCMStatus.findByValue(iprot.readI32()); + struct.setStatusIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - default: - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); } - iprot.readFieldEnd(); - } - iprot.readStructEnd(); + iprot.readStructEnd(); - // check for required fields of primitive type, which can't be checked in the validate method - struct.validate(); + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } finally { + iprot.decrementRecursionDepth(); + } } @Override @@ -501,15 +506,20 @@ public void write(org.apache.thrift.protocol.TProtocol prot, TCMResult struct) t @Override public void read(org.apache.thrift.protocol.TProtocol prot, TCMResult struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; - java.util.BitSet incoming = iprot.readBitSet(2); - if (incoming.get(0)) { - struct.cmid = iprot.readI64(); - struct.setCmidIsSet(true); - } - if (incoming.get(1)) { - struct.status = org.apache.accumulo.core.dataImpl.thrift.TCMStatus.findByValue(iprot.readI32()); - struct.setStatusIsSet(true); + prot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(2); + if (incoming.get(0)) { + struct.cmid = iprot.readI64(); + struct.setCmidIsSet(true); + } + if (incoming.get(1)) { + struct.status = org.apache.accumulo.core.dataImpl.thrift.TCMStatus.findByValue(iprot.readI32()); + struct.setStatusIsSet(true); + } + } finally { + prot.decrementRecursionDepth(); } } } diff --git a/core/src/main/thrift-gen-java/org/apache/accumulo/core/dataImpl/thrift/TCMStatus.java b/core/src/main/thrift-gen-java/org/apache/accumulo/core/dataImpl/thrift/TCMStatus.java index 4aaaa38ac65..b38b028c870 100644 --- a/core/src/main/thrift-gen-java/org/apache/accumulo/core/dataImpl/thrift/TCMStatus.java +++ b/core/src/main/thrift-gen-java/org/apache/accumulo/core/dataImpl/thrift/TCMStatus.java @@ -17,7 +17,7 @@ * under the License. */ /* - * Autogenerated by Thrift Compiler (0.17.0) + * Autogenerated by Thrift Compiler (0.23.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated diff --git a/core/src/main/thrift-gen-java/org/apache/accumulo/core/dataImpl/thrift/TColumn.java b/core/src/main/thrift-gen-java/org/apache/accumulo/core/dataImpl/thrift/TColumn.java index a99e4a54c8c..c75b79f2452 100644 --- a/core/src/main/thrift-gen-java/org/apache/accumulo/core/dataImpl/thrift/TColumn.java +++ b/core/src/main/thrift-gen-java/org/apache/accumulo/core/dataImpl/thrift/TColumn.java @@ -17,7 +17,7 @@ * under the License. */ /* - * Autogenerated by Thrift Compiler (0.17.0) + * Autogenerated by Thrift Compiler (0.23.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -524,48 +524,53 @@ private static class TColumnStandardScheme extends org.apache.thrift.scheme.Stan @Override public void read(org.apache.thrift.protocol.TProtocol iprot, TColumn struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TField schemeField; - iprot.readStructBegin(); - while (true) - { - schemeField = iprot.readFieldBegin(); - if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { - break; - } - switch (schemeField.id) { - case 1: // COLUMN_FAMILY - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.columnFamily = iprot.readBinary(); - struct.setColumnFamilyIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 2: // COLUMN_QUALIFIER - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.columnQualifier = iprot.readBinary(); - struct.setColumnQualifierIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } + iprot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; - case 3: // COLUMN_VISIBILITY - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.columnVisibility = iprot.readBinary(); - struct.setColumnVisibilityIsSet(true); - } else { + } + switch (schemeField.id) { + case 1: // COLUMN_FAMILY + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.columnFamily = iprot.readBinary(); + struct.setColumnFamilyIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 2: // COLUMN_QUALIFIER + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.columnQualifier = iprot.readBinary(); + struct.setColumnQualifierIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 3: // COLUMN_VISIBILITY + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.columnVisibility = iprot.readBinary(); + struct.setColumnVisibilityIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - default: - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); } - iprot.readFieldEnd(); - } - iprot.readStructEnd(); + iprot.readStructEnd(); - // check for required fields of primitive type, which can't be checked in the validate method - struct.validate(); + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } finally { + iprot.decrementRecursionDepth(); + } } @Override @@ -630,19 +635,24 @@ public void write(org.apache.thrift.protocol.TProtocol prot, TColumn struct) thr @Override public void read(org.apache.thrift.protocol.TProtocol prot, TColumn struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; - java.util.BitSet incoming = iprot.readBitSet(3); - if (incoming.get(0)) { - struct.columnFamily = iprot.readBinary(); - struct.setColumnFamilyIsSet(true); - } - if (incoming.get(1)) { - struct.columnQualifier = iprot.readBinary(); - struct.setColumnQualifierIsSet(true); - } - if (incoming.get(2)) { - struct.columnVisibility = iprot.readBinary(); - struct.setColumnVisibilityIsSet(true); + prot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(3); + if (incoming.get(0)) { + struct.columnFamily = iprot.readBinary(); + struct.setColumnFamilyIsSet(true); + } + if (incoming.get(1)) { + struct.columnQualifier = iprot.readBinary(); + struct.setColumnQualifierIsSet(true); + } + if (incoming.get(2)) { + struct.columnVisibility = iprot.readBinary(); + struct.setColumnVisibilityIsSet(true); + } + } finally { + prot.decrementRecursionDepth(); } } } diff --git a/core/src/main/thrift-gen-java/org/apache/accumulo/core/dataImpl/thrift/TCondition.java b/core/src/main/thrift-gen-java/org/apache/accumulo/core/dataImpl/thrift/TCondition.java index 8511f86b55c..5a9523dd9ca 100644 --- a/core/src/main/thrift-gen-java/org/apache/accumulo/core/dataImpl/thrift/TCondition.java +++ b/core/src/main/thrift-gen-java/org/apache/accumulo/core/dataImpl/thrift/TCondition.java @@ -17,7 +17,7 @@ * under the License. */ /* - * Autogenerated by Thrift Compiler (0.17.0) + * Autogenerated by Thrift Compiler (0.23.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -868,80 +868,85 @@ private static class TConditionStandardScheme extends org.apache.thrift.scheme.S @Override public void read(org.apache.thrift.protocol.TProtocol iprot, TCondition struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TField schemeField; - iprot.readStructBegin(); - while (true) - { - schemeField = iprot.readFieldBegin(); - if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { - break; - } - switch (schemeField.id) { - case 1: // CF - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.cf = iprot.readBinary(); - struct.setCfIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 2: // CQ - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.cq = iprot.readBinary(); - struct.setCqIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 3: // CV - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.cv = iprot.readBinary(); - struct.setCvIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 4: // TS - if (schemeField.type == org.apache.thrift.protocol.TType.I64) { - struct.ts = iprot.readI64(); - struct.setTsIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } + iprot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; - case 5: // HAS_TIMESTAMP - if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) { - struct.hasTimestamp = iprot.readBool(); - struct.setHasTimestampIsSet(true); - } else { + } + switch (schemeField.id) { + case 1: // CF + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.cf = iprot.readBinary(); + struct.setCfIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 2: // CQ + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.cq = iprot.readBinary(); + struct.setCqIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 3: // CV + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.cv = iprot.readBinary(); + struct.setCvIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 4: // TS + if (schemeField.type == org.apache.thrift.protocol.TType.I64) { + struct.ts = iprot.readI64(); + struct.setTsIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 5: // HAS_TIMESTAMP + if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) { + struct.hasTimestamp = iprot.readBool(); + struct.setHasTimestampIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 6: // VAL + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.val = iprot.readBinary(); + struct.setValIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 7: // ITERATORS + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.iterators = iprot.readBinary(); + struct.setIteratorsIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 6: // VAL - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.val = iprot.readBinary(); - struct.setValIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 7: // ITERATORS - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.iterators = iprot.readBinary(); - struct.setIteratorsIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - default: - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); } - iprot.readFieldEnd(); - } - iprot.readStructEnd(); + iprot.readStructEnd(); - // check for required fields of primitive type, which can't be checked in the validate method - struct.validate(); + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } finally { + iprot.decrementRecursionDepth(); + } } @Override @@ -1046,35 +1051,40 @@ public void write(org.apache.thrift.protocol.TProtocol prot, TCondition struct) @Override public void read(org.apache.thrift.protocol.TProtocol prot, TCondition struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; - java.util.BitSet incoming = iprot.readBitSet(7); - if (incoming.get(0)) { - struct.cf = iprot.readBinary(); - struct.setCfIsSet(true); - } - if (incoming.get(1)) { - struct.cq = iprot.readBinary(); - struct.setCqIsSet(true); - } - if (incoming.get(2)) { - struct.cv = iprot.readBinary(); - struct.setCvIsSet(true); - } - if (incoming.get(3)) { - struct.ts = iprot.readI64(); - struct.setTsIsSet(true); - } - if (incoming.get(4)) { - struct.hasTimestamp = iprot.readBool(); - struct.setHasTimestampIsSet(true); - } - if (incoming.get(5)) { - struct.val = iprot.readBinary(); - struct.setValIsSet(true); - } - if (incoming.get(6)) { - struct.iterators = iprot.readBinary(); - struct.setIteratorsIsSet(true); + prot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(7); + if (incoming.get(0)) { + struct.cf = iprot.readBinary(); + struct.setCfIsSet(true); + } + if (incoming.get(1)) { + struct.cq = iprot.readBinary(); + struct.setCqIsSet(true); + } + if (incoming.get(2)) { + struct.cv = iprot.readBinary(); + struct.setCvIsSet(true); + } + if (incoming.get(3)) { + struct.ts = iprot.readI64(); + struct.setTsIsSet(true); + } + if (incoming.get(4)) { + struct.hasTimestamp = iprot.readBool(); + struct.setHasTimestampIsSet(true); + } + if (incoming.get(5)) { + struct.val = iprot.readBinary(); + struct.setValIsSet(true); + } + if (incoming.get(6)) { + struct.iterators = iprot.readBinary(); + struct.setIteratorsIsSet(true); + } + } finally { + prot.decrementRecursionDepth(); } } } diff --git a/core/src/main/thrift-gen-java/org/apache/accumulo/core/dataImpl/thrift/TConditionalMutation.java b/core/src/main/thrift-gen-java/org/apache/accumulo/core/dataImpl/thrift/TConditionalMutation.java index 0b327555bcd..a531540cafa 100644 --- a/core/src/main/thrift-gen-java/org/apache/accumulo/core/dataImpl/thrift/TConditionalMutation.java +++ b/core/src/main/thrift-gen-java/org/apache/accumulo/core/dataImpl/thrift/TConditionalMutation.java @@ -17,7 +17,7 @@ * under the License. */ /* - * Autogenerated by Thrift Compiler (0.17.0) + * Autogenerated by Thrift Compiler (0.23.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -506,60 +506,65 @@ private static class TConditionalMutationStandardScheme extends org.apache.thrif @Override public void read(org.apache.thrift.protocol.TProtocol iprot, TConditionalMutation struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TField schemeField; - iprot.readStructBegin(); - while (true) - { - schemeField = iprot.readFieldBegin(); - if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { - break; - } - switch (schemeField.id) { - case 1: // CONDITIONS - if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { - { - org.apache.thrift.protocol.TList _list86 = iprot.readListBegin(); - struct.conditions = new java.util.ArrayList(_list86.size); - @org.apache.thrift.annotation.Nullable TCondition _elem87; - for (int _i88 = 0; _i88 < _list86.size; ++_i88) + iprot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { + break; + } + switch (schemeField.id) { + case 1: // CONDITIONS + if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - _elem87 = new TCondition(); - _elem87.read(iprot); - struct.conditions.add(_elem87); + org.apache.thrift.protocol.TList _list86 = iprot.readListBegin(); + struct.conditions = new java.util.ArrayList(_list86.size); + @org.apache.thrift.annotation.Nullable TCondition _elem87; + for (int _i88 = 0; _i88 < _list86.size; ++_i88) + { + _elem87 = new TCondition(); + _elem87.read(iprot); + struct.conditions.add(_elem87); + } + iprot.readListEnd(); } - iprot.readListEnd(); + struct.setConditionsIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } - struct.setConditionsIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 2: // MUTATION - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.mutation = new TMutation(); - struct.mutation.read(iprot); - struct.setMutationIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 3: // ID - if (schemeField.type == org.apache.thrift.protocol.TType.I64) { - struct.id = iprot.readI64(); - struct.setIdIsSet(true); - } else { + break; + case 2: // MUTATION + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.mutation = new TMutation(); + struct.mutation.read(iprot); + struct.setMutationIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 3: // ID + if (schemeField.type == org.apache.thrift.protocol.TType.I64) { + struct.id = iprot.readI64(); + struct.setIdIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - default: - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); } - iprot.readFieldEnd(); - } - iprot.readStructEnd(); + iprot.readStructEnd(); - // check for required fields of primitive type, which can't be checked in the validate method - struct.validate(); + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } finally { + iprot.decrementRecursionDepth(); + } } @Override @@ -635,30 +640,35 @@ public void write(org.apache.thrift.protocol.TProtocol prot, TConditionalMutatio @Override public void read(org.apache.thrift.protocol.TProtocol prot, TConditionalMutation struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; - java.util.BitSet incoming = iprot.readBitSet(3); - if (incoming.get(0)) { - { - org.apache.thrift.protocol.TList _list91 = iprot.readListBegin(org.apache.thrift.protocol.TType.STRUCT); - struct.conditions = new java.util.ArrayList(_list91.size); - @org.apache.thrift.annotation.Nullable TCondition _elem92; - for (int _i93 = 0; _i93 < _list91.size; ++_i93) + prot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(3); + if (incoming.get(0)) { { - _elem92 = new TCondition(); - _elem92.read(iprot); - struct.conditions.add(_elem92); + org.apache.thrift.protocol.TList _list91 = iprot.readListBegin(org.apache.thrift.protocol.TType.STRUCT); + struct.conditions = new java.util.ArrayList(_list91.size); + @org.apache.thrift.annotation.Nullable TCondition _elem92; + for (int _i93 = 0; _i93 < _list91.size; ++_i93) + { + _elem92 = new TCondition(); + _elem92.read(iprot); + struct.conditions.add(_elem92); + } } + struct.setConditionsIsSet(true); } - struct.setConditionsIsSet(true); - } - if (incoming.get(1)) { - struct.mutation = new TMutation(); - struct.mutation.read(iprot); - struct.setMutationIsSet(true); - } - if (incoming.get(2)) { - struct.id = iprot.readI64(); - struct.setIdIsSet(true); + if (incoming.get(1)) { + struct.mutation = new TMutation(); + struct.mutation.read(iprot); + struct.setMutationIsSet(true); + } + if (incoming.get(2)) { + struct.id = iprot.readI64(); + struct.setIdIsSet(true); + } + } finally { + prot.decrementRecursionDepth(); } } } diff --git a/core/src/main/thrift-gen-java/org/apache/accumulo/core/dataImpl/thrift/TConditionalSession.java b/core/src/main/thrift-gen-java/org/apache/accumulo/core/dataImpl/thrift/TConditionalSession.java index 16b4fc2961f..f4500c49f71 100644 --- a/core/src/main/thrift-gen-java/org/apache/accumulo/core/dataImpl/thrift/TConditionalSession.java +++ b/core/src/main/thrift-gen-java/org/apache/accumulo/core/dataImpl/thrift/TConditionalSession.java @@ -17,7 +17,7 @@ * under the License. */ /* - * Autogenerated by Thrift Compiler (0.17.0) + * Autogenerated by Thrift Compiler (0.23.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -475,48 +475,53 @@ private static class TConditionalSessionStandardScheme extends org.apache.thrift @Override public void read(org.apache.thrift.protocol.TProtocol iprot, TConditionalSession struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TField schemeField; - iprot.readStructBegin(); - while (true) - { - schemeField = iprot.readFieldBegin(); - if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { - break; - } - switch (schemeField.id) { - case 1: // SESSION_ID - if (schemeField.type == org.apache.thrift.protocol.TType.I64) { - struct.sessionId = iprot.readI64(); - struct.setSessionIdIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 2: // TSERVER_LOCK - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.tserverLock = iprot.readString(); - struct.setTserverLockIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } + iprot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; - case 3: // TTL - if (schemeField.type == org.apache.thrift.protocol.TType.I64) { - struct.ttl = iprot.readI64(); - struct.setTtlIsSet(true); - } else { + } + switch (schemeField.id) { + case 1: // SESSION_ID + if (schemeField.type == org.apache.thrift.protocol.TType.I64) { + struct.sessionId = iprot.readI64(); + struct.setSessionIdIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 2: // TSERVER_LOCK + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.tserverLock = iprot.readString(); + struct.setTserverLockIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 3: // TTL + if (schemeField.type == org.apache.thrift.protocol.TType.I64) { + struct.ttl = iprot.readI64(); + struct.setTtlIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - default: - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); } - iprot.readFieldEnd(); - } - iprot.readStructEnd(); + iprot.readStructEnd(); - // check for required fields of primitive type, which can't be checked in the validate method - struct.validate(); + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } finally { + iprot.decrementRecursionDepth(); + } } @Override @@ -577,19 +582,24 @@ public void write(org.apache.thrift.protocol.TProtocol prot, TConditionalSession @Override public void read(org.apache.thrift.protocol.TProtocol prot, TConditionalSession struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; - java.util.BitSet incoming = iprot.readBitSet(3); - if (incoming.get(0)) { - struct.sessionId = iprot.readI64(); - struct.setSessionIdIsSet(true); - } - if (incoming.get(1)) { - struct.tserverLock = iprot.readString(); - struct.setTserverLockIsSet(true); - } - if (incoming.get(2)) { - struct.ttl = iprot.readI64(); - struct.setTtlIsSet(true); + prot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(3); + if (incoming.get(0)) { + struct.sessionId = iprot.readI64(); + struct.setSessionIdIsSet(true); + } + if (incoming.get(1)) { + struct.tserverLock = iprot.readString(); + struct.setTserverLockIsSet(true); + } + if (incoming.get(2)) { + struct.ttl = iprot.readI64(); + struct.setTtlIsSet(true); + } + } finally { + prot.decrementRecursionDepth(); } } } diff --git a/core/src/main/thrift-gen-java/org/apache/accumulo/core/dataImpl/thrift/TConstraintViolationSummary.java b/core/src/main/thrift-gen-java/org/apache/accumulo/core/dataImpl/thrift/TConstraintViolationSummary.java index b83b8054243..49ea19ef9c6 100644 --- a/core/src/main/thrift-gen-java/org/apache/accumulo/core/dataImpl/thrift/TConstraintViolationSummary.java +++ b/core/src/main/thrift-gen-java/org/apache/accumulo/core/dataImpl/thrift/TConstraintViolationSummary.java @@ -17,7 +17,7 @@ * under the License. */ /* - * Autogenerated by Thrift Compiler (0.17.0) + * Autogenerated by Thrift Compiler (0.23.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -557,56 +557,61 @@ private static class TConstraintViolationSummaryStandardScheme extends org.apach @Override public void read(org.apache.thrift.protocol.TProtocol iprot, TConstraintViolationSummary struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TField schemeField; - iprot.readStructBegin(); - while (true) - { - schemeField = iprot.readFieldBegin(); - if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { - break; - } - switch (schemeField.id) { - case 1: // CONSTRAIN_CLASS - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.constrainClass = iprot.readString(); - struct.setConstrainClassIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } + iprot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; - case 2: // VIOLATION_CODE - if (schemeField.type == org.apache.thrift.protocol.TType.I16) { - struct.violationCode = iprot.readI16(); - struct.setViolationCodeIsSet(true); - } else { + } + switch (schemeField.id) { + case 1: // CONSTRAIN_CLASS + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.constrainClass = iprot.readString(); + struct.setConstrainClassIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 2: // VIOLATION_CODE + if (schemeField.type == org.apache.thrift.protocol.TType.I16) { + struct.violationCode = iprot.readI16(); + struct.setViolationCodeIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 3: // VIOLATION_DESCRIPTION + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.violationDescription = iprot.readString(); + struct.setViolationDescriptionIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 4: // NUMBER_OF_VIOLATING_MUTATIONS + if (schemeField.type == org.apache.thrift.protocol.TType.I64) { + struct.numberOfViolatingMutations = iprot.readI64(); + struct.setNumberOfViolatingMutationsIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 3: // VIOLATION_DESCRIPTION - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.violationDescription = iprot.readString(); - struct.setViolationDescriptionIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 4: // NUMBER_OF_VIOLATING_MUTATIONS - if (schemeField.type == org.apache.thrift.protocol.TType.I64) { - struct.numberOfViolatingMutations = iprot.readI64(); - struct.setNumberOfViolatingMutationsIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - default: - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); } - iprot.readFieldEnd(); - } - iprot.readStructEnd(); + iprot.readStructEnd(); - // check for required fields of primitive type, which can't be checked in the validate method - struct.validate(); + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } finally { + iprot.decrementRecursionDepth(); + } } @Override @@ -678,23 +683,28 @@ public void write(org.apache.thrift.protocol.TProtocol prot, TConstraintViolatio @Override public void read(org.apache.thrift.protocol.TProtocol prot, TConstraintViolationSummary struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; - java.util.BitSet incoming = iprot.readBitSet(4); - if (incoming.get(0)) { - struct.constrainClass = iprot.readString(); - struct.setConstrainClassIsSet(true); - } - if (incoming.get(1)) { - struct.violationCode = iprot.readI16(); - struct.setViolationCodeIsSet(true); - } - if (incoming.get(2)) { - struct.violationDescription = iprot.readString(); - struct.setViolationDescriptionIsSet(true); - } - if (incoming.get(3)) { - struct.numberOfViolatingMutations = iprot.readI64(); - struct.setNumberOfViolatingMutationsIsSet(true); + prot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(4); + if (incoming.get(0)) { + struct.constrainClass = iprot.readString(); + struct.setConstrainClassIsSet(true); + } + if (incoming.get(1)) { + struct.violationCode = iprot.readI16(); + struct.setViolationCodeIsSet(true); + } + if (incoming.get(2)) { + struct.violationDescription = iprot.readString(); + struct.setViolationDescriptionIsSet(true); + } + if (incoming.get(3)) { + struct.numberOfViolatingMutations = iprot.readI64(); + struct.setNumberOfViolatingMutationsIsSet(true); + } + } finally { + prot.decrementRecursionDepth(); } } } diff --git a/core/src/main/thrift-gen-java/org/apache/accumulo/core/dataImpl/thrift/TKey.java b/core/src/main/thrift-gen-java/org/apache/accumulo/core/dataImpl/thrift/TKey.java index 01f826e9b95..68312199153 100644 --- a/core/src/main/thrift-gen-java/org/apache/accumulo/core/dataImpl/thrift/TKey.java +++ b/core/src/main/thrift-gen-java/org/apache/accumulo/core/dataImpl/thrift/TKey.java @@ -17,7 +17,7 @@ * under the License. */ /* - * Autogenerated by Thrift Compiler (0.17.0) + * Autogenerated by Thrift Compiler (0.23.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -698,64 +698,69 @@ private static class TKeyStandardScheme extends org.apache.thrift.scheme.Standar @Override public void read(org.apache.thrift.protocol.TProtocol iprot, TKey struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TField schemeField; - iprot.readStructBegin(); - while (true) - { - schemeField = iprot.readFieldBegin(); - if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { - break; - } - switch (schemeField.id) { - case 1: // ROW - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.row = iprot.readBinary(); - struct.setRowIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 2: // COL_FAMILY - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.colFamily = iprot.readBinary(); - struct.setColFamilyIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 3: // COL_QUALIFIER - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.colQualifier = iprot.readBinary(); - struct.setColQualifierIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } + iprot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; - case 4: // COL_VISIBILITY - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.colVisibility = iprot.readBinary(); - struct.setColVisibilityIsSet(true); - } else { + } + switch (schemeField.id) { + case 1: // ROW + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.row = iprot.readBinary(); + struct.setRowIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 2: // COL_FAMILY + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.colFamily = iprot.readBinary(); + struct.setColFamilyIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 3: // COL_QUALIFIER + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.colQualifier = iprot.readBinary(); + struct.setColQualifierIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 4: // COL_VISIBILITY + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.colVisibility = iprot.readBinary(); + struct.setColVisibilityIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 5: // TIMESTAMP + if (schemeField.type == org.apache.thrift.protocol.TType.I64) { + struct.timestamp = iprot.readI64(); + struct.setTimestampIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 5: // TIMESTAMP - if (schemeField.type == org.apache.thrift.protocol.TType.I64) { - struct.timestamp = iprot.readI64(); - struct.setTimestampIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - default: - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); } - iprot.readFieldEnd(); - } - iprot.readStructEnd(); + iprot.readStructEnd(); - // check for required fields of primitive type, which can't be checked in the validate method - struct.validate(); + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } finally { + iprot.decrementRecursionDepth(); + } } @Override @@ -840,27 +845,32 @@ public void write(org.apache.thrift.protocol.TProtocol prot, TKey struct) throws @Override public void read(org.apache.thrift.protocol.TProtocol prot, TKey struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; - java.util.BitSet incoming = iprot.readBitSet(5); - if (incoming.get(0)) { - struct.row = iprot.readBinary(); - struct.setRowIsSet(true); - } - if (incoming.get(1)) { - struct.colFamily = iprot.readBinary(); - struct.setColFamilyIsSet(true); - } - if (incoming.get(2)) { - struct.colQualifier = iprot.readBinary(); - struct.setColQualifierIsSet(true); - } - if (incoming.get(3)) { - struct.colVisibility = iprot.readBinary(); - struct.setColVisibilityIsSet(true); - } - if (incoming.get(4)) { - struct.timestamp = iprot.readI64(); - struct.setTimestampIsSet(true); + prot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(5); + if (incoming.get(0)) { + struct.row = iprot.readBinary(); + struct.setRowIsSet(true); + } + if (incoming.get(1)) { + struct.colFamily = iprot.readBinary(); + struct.setColFamilyIsSet(true); + } + if (incoming.get(2)) { + struct.colQualifier = iprot.readBinary(); + struct.setColQualifierIsSet(true); + } + if (incoming.get(3)) { + struct.colVisibility = iprot.readBinary(); + struct.setColVisibilityIsSet(true); + } + if (incoming.get(4)) { + struct.timestamp = iprot.readI64(); + struct.setTimestampIsSet(true); + } + } finally { + prot.decrementRecursionDepth(); } } } diff --git a/core/src/main/thrift-gen-java/org/apache/accumulo/core/dataImpl/thrift/TKeyExtent.java b/core/src/main/thrift-gen-java/org/apache/accumulo/core/dataImpl/thrift/TKeyExtent.java index e26f3dcd7a5..5f9bfa95695 100644 --- a/core/src/main/thrift-gen-java/org/apache/accumulo/core/dataImpl/thrift/TKeyExtent.java +++ b/core/src/main/thrift-gen-java/org/apache/accumulo/core/dataImpl/thrift/TKeyExtent.java @@ -17,7 +17,7 @@ * under the License. */ /* - * Autogenerated by Thrift Compiler (0.17.0) + * Autogenerated by Thrift Compiler (0.23.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -524,48 +524,53 @@ private static class TKeyExtentStandardScheme extends org.apache.thrift.scheme.S @Override public void read(org.apache.thrift.protocol.TProtocol iprot, TKeyExtent struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TField schemeField; - iprot.readStructBegin(); - while (true) - { - schemeField = iprot.readFieldBegin(); - if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { - break; - } - switch (schemeField.id) { - case 1: // TABLE - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.table = iprot.readBinary(); - struct.setTableIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 2: // END_ROW - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.endRow = iprot.readBinary(); - struct.setEndRowIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } + iprot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; - case 3: // PREV_END_ROW - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.prevEndRow = iprot.readBinary(); - struct.setPrevEndRowIsSet(true); - } else { + } + switch (schemeField.id) { + case 1: // TABLE + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.table = iprot.readBinary(); + struct.setTableIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 2: // END_ROW + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.endRow = iprot.readBinary(); + struct.setEndRowIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 3: // PREV_END_ROW + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.prevEndRow = iprot.readBinary(); + struct.setPrevEndRowIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - default: - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); } - iprot.readFieldEnd(); - } - iprot.readStructEnd(); + iprot.readStructEnd(); - // check for required fields of primitive type, which can't be checked in the validate method - struct.validate(); + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } finally { + iprot.decrementRecursionDepth(); + } } @Override @@ -630,19 +635,24 @@ public void write(org.apache.thrift.protocol.TProtocol prot, TKeyExtent struct) @Override public void read(org.apache.thrift.protocol.TProtocol prot, TKeyExtent struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; - java.util.BitSet incoming = iprot.readBitSet(3); - if (incoming.get(0)) { - struct.table = iprot.readBinary(); - struct.setTableIsSet(true); - } - if (incoming.get(1)) { - struct.endRow = iprot.readBinary(); - struct.setEndRowIsSet(true); - } - if (incoming.get(2)) { - struct.prevEndRow = iprot.readBinary(); - struct.setPrevEndRowIsSet(true); + prot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(3); + if (incoming.get(0)) { + struct.table = iprot.readBinary(); + struct.setTableIsSet(true); + } + if (incoming.get(1)) { + struct.endRow = iprot.readBinary(); + struct.setEndRowIsSet(true); + } + if (incoming.get(2)) { + struct.prevEndRow = iprot.readBinary(); + struct.setPrevEndRowIsSet(true); + } + } finally { + prot.decrementRecursionDepth(); } } } diff --git a/core/src/main/thrift-gen-java/org/apache/accumulo/core/dataImpl/thrift/TKeyValue.java b/core/src/main/thrift-gen-java/org/apache/accumulo/core/dataImpl/thrift/TKeyValue.java index dc2774c4274..a1331e55435 100644 --- a/core/src/main/thrift-gen-java/org/apache/accumulo/core/dataImpl/thrift/TKeyValue.java +++ b/core/src/main/thrift-gen-java/org/apache/accumulo/core/dataImpl/thrift/TKeyValue.java @@ -17,7 +17,7 @@ * under the License. */ /* - * Autogenerated by Thrift Compiler (0.17.0) + * Autogenerated by Thrift Compiler (0.23.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -419,41 +419,46 @@ private static class TKeyValueStandardScheme extends org.apache.thrift.scheme.St @Override public void read(org.apache.thrift.protocol.TProtocol iprot, TKeyValue struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TField schemeField; - iprot.readStructBegin(); - while (true) - { - schemeField = iprot.readFieldBegin(); - if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { - break; - } - switch (schemeField.id) { - case 1: // KEY - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.key = new TKey(); - struct.key.read(iprot); - struct.setKeyIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } + iprot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; - case 2: // VALUE - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.value = iprot.readBinary(); - struct.setValueIsSet(true); - } else { + } + switch (schemeField.id) { + case 1: // KEY + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.key = new TKey(); + struct.key.read(iprot); + struct.setKeyIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 2: // VALUE + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.value = iprot.readBinary(); + struct.setValueIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - default: - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); } - iprot.readFieldEnd(); - } - iprot.readStructEnd(); + iprot.readStructEnd(); - // check for required fields of primitive type, which can't be checked in the validate method - struct.validate(); + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } finally { + iprot.decrementRecursionDepth(); + } } @Override @@ -507,16 +512,21 @@ public void write(org.apache.thrift.protocol.TProtocol prot, TKeyValue struct) t @Override public void read(org.apache.thrift.protocol.TProtocol prot, TKeyValue struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; - java.util.BitSet incoming = iprot.readBitSet(2); - if (incoming.get(0)) { - struct.key = new TKey(); - struct.key.read(iprot); - struct.setKeyIsSet(true); - } - if (incoming.get(1)) { - struct.value = iprot.readBinary(); - struct.setValueIsSet(true); + prot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(2); + if (incoming.get(0)) { + struct.key = new TKey(); + struct.key.read(iprot); + struct.setKeyIsSet(true); + } + if (incoming.get(1)) { + struct.value = iprot.readBinary(); + struct.setValueIsSet(true); + } + } finally { + prot.decrementRecursionDepth(); } } } diff --git a/core/src/main/thrift-gen-java/org/apache/accumulo/core/dataImpl/thrift/TMutation.java b/core/src/main/thrift-gen-java/org/apache/accumulo/core/dataImpl/thrift/TMutation.java index c5e8fd37975..a49de54f374 100644 --- a/core/src/main/thrift-gen-java/org/apache/accumulo/core/dataImpl/thrift/TMutation.java +++ b/core/src/main/thrift-gen-java/org/apache/accumulo/core/dataImpl/thrift/TMutation.java @@ -17,7 +17,7 @@ * under the License. */ /* - * Autogenerated by Thrift Compiler (0.17.0) + * Autogenerated by Thrift Compiler (0.23.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -120,7 +120,7 @@ public java.lang.String getFieldName() { // isset id assignments private static final int __ENTRIES_ISSET_ID = 0; private byte __isset_bitfield = 0; - private static final _Fields optionals[] = {_Fields.SOURCES}; + private static final _Fields[] optionals = {_Fields.SOURCES}; public static final java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); @@ -709,84 +709,89 @@ private static class TMutationStandardScheme extends org.apache.thrift.scheme.St @Override public void read(org.apache.thrift.protocol.TProtocol iprot, TMutation struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TField schemeField; - iprot.readStructBegin(); - while (true) - { - schemeField = iprot.readFieldBegin(); - if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { - break; - } - switch (schemeField.id) { - case 1: // ROW - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.row = iprot.readBinary(); - struct.setRowIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 2: // DATA - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.data = iprot.readBinary(); - struct.setDataIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } + iprot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; - case 3: // VALUES - if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { - { - org.apache.thrift.protocol.TList _list0 = iprot.readListBegin(); - struct.values = new java.util.ArrayList(_list0.size); - @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer _elem1; - for (int _i2 = 0; _i2 < _list0.size; ++_i2) + } + switch (schemeField.id) { + case 1: // ROW + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.row = iprot.readBinary(); + struct.setRowIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 2: // DATA + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.data = iprot.readBinary(); + struct.setDataIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 3: // VALUES + if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - _elem1 = iprot.readBinary(); - struct.values.add(_elem1); + org.apache.thrift.protocol.TList _list0 = iprot.readListBegin(); + struct.values = new java.util.ArrayList(_list0.size); + @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer _elem1; + for (int _i2 = 0; _i2 < _list0.size; ++_i2) + { + _elem1 = iprot.readBinary(); + struct.values.add(_elem1); + } + iprot.readListEnd(); } - iprot.readListEnd(); + struct.setValuesIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } - struct.setValuesIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 4: // ENTRIES - if (schemeField.type == org.apache.thrift.protocol.TType.I32) { - struct.entries = iprot.readI32(); - struct.setEntriesIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 5: // SOURCES - if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { - { - org.apache.thrift.protocol.TList _list3 = iprot.readListBegin(); - struct.sources = new java.util.ArrayList(_list3.size); - @org.apache.thrift.annotation.Nullable java.lang.String _elem4; - for (int _i5 = 0; _i5 < _list3.size; ++_i5) + break; + case 4: // ENTRIES + if (schemeField.type == org.apache.thrift.protocol.TType.I32) { + struct.entries = iprot.readI32(); + struct.setEntriesIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 5: // SOURCES + if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - _elem4 = iprot.readString(); - struct.sources.add(_elem4); + org.apache.thrift.protocol.TList _list3 = iprot.readListBegin(); + struct.sources = new java.util.ArrayList(_list3.size); + @org.apache.thrift.annotation.Nullable java.lang.String _elem4; + for (int _i5 = 0; _i5 < _list3.size; ++_i5) + { + _elem4 = iprot.readString(); + struct.sources.add(_elem4); + } + iprot.readListEnd(); } - iprot.readListEnd(); + struct.setSourcesIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } - struct.setSourcesIsSet(true); - } else { + break; + default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - default: - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); } - iprot.readFieldEnd(); - } - iprot.readStructEnd(); + iprot.readStructEnd(); - // check for required fields of primitive type, which can't be checked in the validate method - struct.validate(); + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } finally { + iprot.decrementRecursionDepth(); + } } @Override @@ -899,45 +904,50 @@ public void write(org.apache.thrift.protocol.TProtocol prot, TMutation struct) t @Override public void read(org.apache.thrift.protocol.TProtocol prot, TMutation struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; - java.util.BitSet incoming = iprot.readBitSet(5); - if (incoming.get(0)) { - struct.row = iprot.readBinary(); - struct.setRowIsSet(true); - } - if (incoming.get(1)) { - struct.data = iprot.readBinary(); - struct.setDataIsSet(true); - } - if (incoming.get(2)) { - { - org.apache.thrift.protocol.TList _list10 = iprot.readListBegin(org.apache.thrift.protocol.TType.STRING); - struct.values = new java.util.ArrayList(_list10.size); - @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer _elem11; - for (int _i12 = 0; _i12 < _list10.size; ++_i12) + prot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(5); + if (incoming.get(0)) { + struct.row = iprot.readBinary(); + struct.setRowIsSet(true); + } + if (incoming.get(1)) { + struct.data = iprot.readBinary(); + struct.setDataIsSet(true); + } + if (incoming.get(2)) { { - _elem11 = iprot.readBinary(); - struct.values.add(_elem11); + org.apache.thrift.protocol.TList _list10 = iprot.readListBegin(org.apache.thrift.protocol.TType.STRING); + struct.values = new java.util.ArrayList(_list10.size); + @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer _elem11; + for (int _i12 = 0; _i12 < _list10.size; ++_i12) + { + _elem11 = iprot.readBinary(); + struct.values.add(_elem11); + } } + struct.setValuesIsSet(true); } - struct.setValuesIsSet(true); - } - if (incoming.get(3)) { - struct.entries = iprot.readI32(); - struct.setEntriesIsSet(true); - } - if (incoming.get(4)) { - { - org.apache.thrift.protocol.TList _list13 = iprot.readListBegin(org.apache.thrift.protocol.TType.STRING); - struct.sources = new java.util.ArrayList(_list13.size); - @org.apache.thrift.annotation.Nullable java.lang.String _elem14; - for (int _i15 = 0; _i15 < _list13.size; ++_i15) + if (incoming.get(3)) { + struct.entries = iprot.readI32(); + struct.setEntriesIsSet(true); + } + if (incoming.get(4)) { { - _elem14 = iprot.readString(); - struct.sources.add(_elem14); + org.apache.thrift.protocol.TList _list13 = iprot.readListBegin(org.apache.thrift.protocol.TType.STRING); + struct.sources = new java.util.ArrayList(_list13.size); + @org.apache.thrift.annotation.Nullable java.lang.String _elem14; + for (int _i15 = 0; _i15 < _list13.size; ++_i15) + { + _elem14 = iprot.readString(); + struct.sources.add(_elem14); + } } + struct.setSourcesIsSet(true); } - struct.setSourcesIsSet(true); + } finally { + prot.decrementRecursionDepth(); } } } diff --git a/core/src/main/thrift-gen-java/org/apache/accumulo/core/dataImpl/thrift/TRange.java b/core/src/main/thrift-gen-java/org/apache/accumulo/core/dataImpl/thrift/TRange.java index 125cfaf4211..01deed97db2 100644 --- a/core/src/main/thrift-gen-java/org/apache/accumulo/core/dataImpl/thrift/TRange.java +++ b/core/src/main/thrift-gen-java/org/apache/accumulo/core/dataImpl/thrift/TRange.java @@ -17,7 +17,7 @@ * under the License. */ /* - * Autogenerated by Thrift Compiler (0.17.0) + * Autogenerated by Thrift Compiler (0.23.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -713,74 +713,79 @@ private static class TRangeStandardScheme extends org.apache.thrift.scheme.Stand @Override public void read(org.apache.thrift.protocol.TProtocol iprot, TRange struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TField schemeField; - iprot.readStructBegin(); - while (true) - { - schemeField = iprot.readFieldBegin(); - if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { - break; - } - switch (schemeField.id) { - case 1: // START - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.start = new TKey(); - struct.start.read(iprot); - struct.setStartIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 2: // STOP - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.stop = new TKey(); - struct.stop.read(iprot); - struct.setStopIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } + iprot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; - case 3: // START_KEY_INCLUSIVE - if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) { - struct.startKeyInclusive = iprot.readBool(); - struct.setStartKeyInclusiveIsSet(true); - } else { + } + switch (schemeField.id) { + case 1: // START + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.start = new TKey(); + struct.start.read(iprot); + struct.setStartIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 2: // STOP + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.stop = new TKey(); + struct.stop.read(iprot); + struct.setStopIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 3: // START_KEY_INCLUSIVE + if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) { + struct.startKeyInclusive = iprot.readBool(); + struct.setStartKeyInclusiveIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 4: // STOP_KEY_INCLUSIVE + if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) { + struct.stopKeyInclusive = iprot.readBool(); + struct.setStopKeyInclusiveIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 5: // INFINITE_START_KEY + if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) { + struct.infiniteStartKey = iprot.readBool(); + struct.setInfiniteStartKeyIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 6: // INFINITE_STOP_KEY + if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) { + struct.infiniteStopKey = iprot.readBool(); + struct.setInfiniteStopKeyIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 4: // STOP_KEY_INCLUSIVE - if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) { - struct.stopKeyInclusive = iprot.readBool(); - struct.setStopKeyInclusiveIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 5: // INFINITE_START_KEY - if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) { - struct.infiniteStartKey = iprot.readBool(); - struct.setInfiniteStartKeyIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 6: // INFINITE_STOP_KEY - if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) { - struct.infiniteStopKey = iprot.readBool(); - struct.setInfiniteStopKeyIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - default: - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); } - iprot.readFieldEnd(); - } - iprot.readStructEnd(); + iprot.readStructEnd(); - // check for required fields of primitive type, which can't be checked in the validate method - struct.validate(); + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } finally { + iprot.decrementRecursionDepth(); + } } @Override @@ -870,33 +875,38 @@ public void write(org.apache.thrift.protocol.TProtocol prot, TRange struct) thro @Override public void read(org.apache.thrift.protocol.TProtocol prot, TRange struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; - java.util.BitSet incoming = iprot.readBitSet(6); - if (incoming.get(0)) { - struct.start = new TKey(); - struct.start.read(iprot); - struct.setStartIsSet(true); - } - if (incoming.get(1)) { - struct.stop = new TKey(); - struct.stop.read(iprot); - struct.setStopIsSet(true); - } - if (incoming.get(2)) { - struct.startKeyInclusive = iprot.readBool(); - struct.setStartKeyInclusiveIsSet(true); - } - if (incoming.get(3)) { - struct.stopKeyInclusive = iprot.readBool(); - struct.setStopKeyInclusiveIsSet(true); - } - if (incoming.get(4)) { - struct.infiniteStartKey = iprot.readBool(); - struct.setInfiniteStartKeyIsSet(true); - } - if (incoming.get(5)) { - struct.infiniteStopKey = iprot.readBool(); - struct.setInfiniteStopKeyIsSet(true); + prot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(6); + if (incoming.get(0)) { + struct.start = new TKey(); + struct.start.read(iprot); + struct.setStartIsSet(true); + } + if (incoming.get(1)) { + struct.stop = new TKey(); + struct.stop.read(iprot); + struct.setStopIsSet(true); + } + if (incoming.get(2)) { + struct.startKeyInclusive = iprot.readBool(); + struct.setStartKeyInclusiveIsSet(true); + } + if (incoming.get(3)) { + struct.stopKeyInclusive = iprot.readBool(); + struct.setStopKeyInclusiveIsSet(true); + } + if (incoming.get(4)) { + struct.infiniteStartKey = iprot.readBool(); + struct.setInfiniteStartKeyIsSet(true); + } + if (incoming.get(5)) { + struct.infiniteStopKey = iprot.readBool(); + struct.setInfiniteStopKeyIsSet(true); + } + } finally { + prot.decrementRecursionDepth(); } } } diff --git a/core/src/main/thrift-gen-java/org/apache/accumulo/core/dataImpl/thrift/TRowRange.java b/core/src/main/thrift-gen-java/org/apache/accumulo/core/dataImpl/thrift/TRowRange.java index e421350ef33..5cc8669500d 100644 --- a/core/src/main/thrift-gen-java/org/apache/accumulo/core/dataImpl/thrift/TRowRange.java +++ b/core/src/main/thrift-gen-java/org/apache/accumulo/core/dataImpl/thrift/TRowRange.java @@ -17,7 +17,7 @@ * under the License. */ /* - * Autogenerated by Thrift Compiler (0.17.0) + * Autogenerated by Thrift Compiler (0.23.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -429,40 +429,45 @@ private static class TRowRangeStandardScheme extends org.apache.thrift.scheme.St @Override public void read(org.apache.thrift.protocol.TProtocol iprot, TRowRange struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TField schemeField; - iprot.readStructBegin(); - while (true) - { - schemeField = iprot.readFieldBegin(); - if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { - break; - } - switch (schemeField.id) { - case 1: // START_ROW - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.startRow = iprot.readBinary(); - struct.setStartRowIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } + iprot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; - case 2: // END_ROW - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.endRow = iprot.readBinary(); - struct.setEndRowIsSet(true); - } else { + } + switch (schemeField.id) { + case 1: // START_ROW + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.startRow = iprot.readBinary(); + struct.setStartRowIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 2: // END_ROW + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.endRow = iprot.readBinary(); + struct.setEndRowIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - default: - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); } - iprot.readFieldEnd(); - } - iprot.readStructEnd(); + iprot.readStructEnd(); - // check for required fields of primitive type, which can't be checked in the validate method - struct.validate(); + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } finally { + iprot.decrementRecursionDepth(); + } } @Override @@ -516,15 +521,20 @@ public void write(org.apache.thrift.protocol.TProtocol prot, TRowRange struct) t @Override public void read(org.apache.thrift.protocol.TProtocol prot, TRowRange struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; - java.util.BitSet incoming = iprot.readBitSet(2); - if (incoming.get(0)) { - struct.startRow = iprot.readBinary(); - struct.setStartRowIsSet(true); - } - if (incoming.get(1)) { - struct.endRow = iprot.readBinary(); - struct.setEndRowIsSet(true); + prot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(2); + if (incoming.get(0)) { + struct.startRow = iprot.readBinary(); + struct.setStartRowIsSet(true); + } + if (incoming.get(1)) { + struct.endRow = iprot.readBinary(); + struct.setEndRowIsSet(true); + } + } finally { + prot.decrementRecursionDepth(); } } } diff --git a/core/src/main/thrift-gen-java/org/apache/accumulo/core/dataImpl/thrift/TSummaries.java b/core/src/main/thrift-gen-java/org/apache/accumulo/core/dataImpl/thrift/TSummaries.java index 478b814b8aa..b2c12a61875 100644 --- a/core/src/main/thrift-gen-java/org/apache/accumulo/core/dataImpl/thrift/TSummaries.java +++ b/core/src/main/thrift-gen-java/org/apache/accumulo/core/dataImpl/thrift/TSummaries.java @@ -17,7 +17,7 @@ * under the License. */ /* - * Autogenerated by Thrift Compiler (0.17.0) + * Autogenerated by Thrift Compiler (0.23.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -646,75 +646,80 @@ private static class TSummariesStandardScheme extends org.apache.thrift.scheme.S @Override public void read(org.apache.thrift.protocol.TProtocol iprot, TSummaries struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TField schemeField; - iprot.readStructBegin(); - while (true) - { - schemeField = iprot.readFieldBegin(); - if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { - break; - } - switch (schemeField.id) { - case 1: // FINISHED - if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) { - struct.finished = iprot.readBool(); - struct.setFinishedIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 2: // SESSION_ID - if (schemeField.type == org.apache.thrift.protocol.TType.I64) { - struct.sessionId = iprot.readI64(); - struct.setSessionIdIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 3: // TOTAL_FILES - if (schemeField.type == org.apache.thrift.protocol.TType.I64) { - struct.totalFiles = iprot.readI64(); - struct.setTotalFilesIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 4: // DELETED_FILES - if (schemeField.type == org.apache.thrift.protocol.TType.I64) { - struct.deletedFiles = iprot.readI64(); - struct.setDeletedFilesIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } + iprot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; - case 5: // SUMMARIES - if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { - { - org.apache.thrift.protocol.TList _list114 = iprot.readListBegin(); - struct.summaries = new java.util.ArrayList(_list114.size); - @org.apache.thrift.annotation.Nullable TSummary _elem115; - for (int _i116 = 0; _i116 < _list114.size; ++_i116) + } + switch (schemeField.id) { + case 1: // FINISHED + if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) { + struct.finished = iprot.readBool(); + struct.setFinishedIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 2: // SESSION_ID + if (schemeField.type == org.apache.thrift.protocol.TType.I64) { + struct.sessionId = iprot.readI64(); + struct.setSessionIdIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 3: // TOTAL_FILES + if (schemeField.type == org.apache.thrift.protocol.TType.I64) { + struct.totalFiles = iprot.readI64(); + struct.setTotalFilesIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 4: // DELETED_FILES + if (schemeField.type == org.apache.thrift.protocol.TType.I64) { + struct.deletedFiles = iprot.readI64(); + struct.setDeletedFilesIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 5: // SUMMARIES + if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - _elem115 = new TSummary(); - _elem115.read(iprot); - struct.summaries.add(_elem115); + org.apache.thrift.protocol.TList _list114 = iprot.readListBegin(); + struct.summaries = new java.util.ArrayList(_list114.size); + @org.apache.thrift.annotation.Nullable TSummary _elem115; + for (int _i116 = 0; _i116 < _list114.size; ++_i116) + { + _elem115 = new TSummary(); + _elem115.read(iprot); + struct.summaries.add(_elem115); + } + iprot.readListEnd(); } - iprot.readListEnd(); + struct.setSummariesIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } - struct.setSummariesIsSet(true); - } else { + break; + default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - default: - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); } - iprot.readFieldEnd(); - } - iprot.readStructEnd(); + iprot.readStructEnd(); - // check for required fields of primitive type, which can't be checked in the validate method - struct.validate(); + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } finally { + iprot.decrementRecursionDepth(); + } } @Override @@ -806,37 +811,42 @@ public void write(org.apache.thrift.protocol.TProtocol prot, TSummaries struct) @Override public void read(org.apache.thrift.protocol.TProtocol prot, TSummaries struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; - java.util.BitSet incoming = iprot.readBitSet(5); - if (incoming.get(0)) { - struct.finished = iprot.readBool(); - struct.setFinishedIsSet(true); - } - if (incoming.get(1)) { - struct.sessionId = iprot.readI64(); - struct.setSessionIdIsSet(true); - } - if (incoming.get(2)) { - struct.totalFiles = iprot.readI64(); - struct.setTotalFilesIsSet(true); - } - if (incoming.get(3)) { - struct.deletedFiles = iprot.readI64(); - struct.setDeletedFilesIsSet(true); - } - if (incoming.get(4)) { - { - org.apache.thrift.protocol.TList _list119 = iprot.readListBegin(org.apache.thrift.protocol.TType.STRUCT); - struct.summaries = new java.util.ArrayList(_list119.size); - @org.apache.thrift.annotation.Nullable TSummary _elem120; - for (int _i121 = 0; _i121 < _list119.size; ++_i121) + prot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(5); + if (incoming.get(0)) { + struct.finished = iprot.readBool(); + struct.setFinishedIsSet(true); + } + if (incoming.get(1)) { + struct.sessionId = iprot.readI64(); + struct.setSessionIdIsSet(true); + } + if (incoming.get(2)) { + struct.totalFiles = iprot.readI64(); + struct.setTotalFilesIsSet(true); + } + if (incoming.get(3)) { + struct.deletedFiles = iprot.readI64(); + struct.setDeletedFilesIsSet(true); + } + if (incoming.get(4)) { { - _elem120 = new TSummary(); - _elem120.read(iprot); - struct.summaries.add(_elem120); + org.apache.thrift.protocol.TList _list119 = iprot.readListBegin(org.apache.thrift.protocol.TType.STRUCT); + struct.summaries = new java.util.ArrayList(_list119.size); + @org.apache.thrift.annotation.Nullable TSummary _elem120; + for (int _i121 = 0; _i121 < _list119.size; ++_i121) + { + _elem120 = new TSummary(); + _elem120.read(iprot); + struct.summaries.add(_elem120); + } } + struct.setSummariesIsSet(true); } - struct.setSummariesIsSet(true); + } finally { + prot.decrementRecursionDepth(); } } } diff --git a/core/src/main/thrift-gen-java/org/apache/accumulo/core/dataImpl/thrift/TSummarizerConfiguration.java b/core/src/main/thrift-gen-java/org/apache/accumulo/core/dataImpl/thrift/TSummarizerConfiguration.java index 8bcfd1dc5fa..f19768b8021 100644 --- a/core/src/main/thrift-gen-java/org/apache/accumulo/core/dataImpl/thrift/TSummarizerConfiguration.java +++ b/core/src/main/thrift-gen-java/org/apache/accumulo/core/dataImpl/thrift/TSummarizerConfiguration.java @@ -17,7 +17,7 @@ * under the License. */ /* - * Autogenerated by Thrift Compiler (0.17.0) + * Autogenerated by Thrift Compiler (0.23.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -499,60 +499,65 @@ private static class TSummarizerConfigurationStandardScheme extends org.apache.t @Override public void read(org.apache.thrift.protocol.TProtocol iprot, TSummarizerConfiguration struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TField schemeField; - iprot.readStructBegin(); - while (true) - { - schemeField = iprot.readFieldBegin(); - if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { - break; - } - switch (schemeField.id) { - case 1: // CLASSNAME - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.classname = iprot.readString(); - struct.setClassnameIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } + iprot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; - case 2: // OPTIONS - if (schemeField.type == org.apache.thrift.protocol.TType.MAP) { - { - org.apache.thrift.protocol.TMap _map94 = iprot.readMapBegin(); - struct.options = new java.util.HashMap(2*_map94.size); - @org.apache.thrift.annotation.Nullable java.lang.String _key95; - @org.apache.thrift.annotation.Nullable java.lang.String _val96; - for (int _i97 = 0; _i97 < _map94.size; ++_i97) + } + switch (schemeField.id) { + case 1: // CLASSNAME + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.classname = iprot.readString(); + struct.setClassnameIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 2: // OPTIONS + if (schemeField.type == org.apache.thrift.protocol.TType.MAP) { { - _key95 = iprot.readString(); - _val96 = iprot.readString(); - struct.options.put(_key95, _val96); + org.apache.thrift.protocol.TMap _map94 = iprot.readMapBegin(); + struct.options = new java.util.HashMap(2*_map94.size); + @org.apache.thrift.annotation.Nullable java.lang.String _key95; + @org.apache.thrift.annotation.Nullable java.lang.String _val96; + for (int _i97 = 0; _i97 < _map94.size; ++_i97) + { + _key95 = iprot.readString(); + _val96 = iprot.readString(); + struct.options.put(_key95, _val96); + } + iprot.readMapEnd(); } - iprot.readMapEnd(); + struct.setOptionsIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } - struct.setOptionsIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 3: // CONFIG_ID - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.configId = iprot.readString(); - struct.setConfigIdIsSet(true); - } else { + break; + case 3: // CONFIG_ID + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.configId = iprot.readString(); + struct.setConfigIdIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - default: - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); } - iprot.readFieldEnd(); - } - iprot.readStructEnd(); + iprot.readStructEnd(); - // check for required fields of primitive type, which can't be checked in the validate method - struct.validate(); + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } finally { + iprot.decrementRecursionDepth(); + } } @Override @@ -632,30 +637,35 @@ public void write(org.apache.thrift.protocol.TProtocol prot, TSummarizerConfigur @Override public void read(org.apache.thrift.protocol.TProtocol prot, TSummarizerConfiguration struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; - java.util.BitSet incoming = iprot.readBitSet(3); - if (incoming.get(0)) { - struct.classname = iprot.readString(); - struct.setClassnameIsSet(true); - } - if (incoming.get(1)) { - { - org.apache.thrift.protocol.TMap _map100 = iprot.readMapBegin(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING); - struct.options = new java.util.HashMap(2*_map100.size); - @org.apache.thrift.annotation.Nullable java.lang.String _key101; - @org.apache.thrift.annotation.Nullable java.lang.String _val102; - for (int _i103 = 0; _i103 < _map100.size; ++_i103) + prot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(3); + if (incoming.get(0)) { + struct.classname = iprot.readString(); + struct.setClassnameIsSet(true); + } + if (incoming.get(1)) { { - _key101 = iprot.readString(); - _val102 = iprot.readString(); - struct.options.put(_key101, _val102); + org.apache.thrift.protocol.TMap _map100 = iprot.readMapBegin(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING); + struct.options = new java.util.HashMap(2*_map100.size); + @org.apache.thrift.annotation.Nullable java.lang.String _key101; + @org.apache.thrift.annotation.Nullable java.lang.String _val102; + for (int _i103 = 0; _i103 < _map100.size; ++_i103) + { + _key101 = iprot.readString(); + _val102 = iprot.readString(); + struct.options.put(_key101, _val102); + } } + struct.setOptionsIsSet(true); } - struct.setOptionsIsSet(true); - } - if (incoming.get(2)) { - struct.configId = iprot.readString(); - struct.setConfigIdIsSet(true); + if (incoming.get(2)) { + struct.configId = iprot.readString(); + struct.setConfigIdIsSet(true); + } + } finally { + prot.decrementRecursionDepth(); } } } diff --git a/core/src/main/thrift-gen-java/org/apache/accumulo/core/dataImpl/thrift/TSummary.java b/core/src/main/thrift-gen-java/org/apache/accumulo/core/dataImpl/thrift/TSummary.java index c0c76b44ebd..07edcd4208a 100644 --- a/core/src/main/thrift-gen-java/org/apache/accumulo/core/dataImpl/thrift/TSummary.java +++ b/core/src/main/thrift-gen-java/org/apache/accumulo/core/dataImpl/thrift/TSummary.java @@ -17,7 +17,7 @@ * under the License. */ /* - * Autogenerated by Thrift Compiler (0.17.0) + * Autogenerated by Thrift Compiler (0.23.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -649,77 +649,82 @@ private static class TSummaryStandardScheme extends org.apache.thrift.scheme.Sta @Override public void read(org.apache.thrift.protocol.TProtocol iprot, TSummary struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TField schemeField; - iprot.readStructBegin(); - while (true) - { - schemeField = iprot.readFieldBegin(); - if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { - break; - } - switch (schemeField.id) { - case 1: // SUMMARY - if (schemeField.type == org.apache.thrift.protocol.TType.MAP) { - { - org.apache.thrift.protocol.TMap _map104 = iprot.readMapBegin(); - struct.summary = new java.util.HashMap(2*_map104.size); - @org.apache.thrift.annotation.Nullable java.lang.String _key105; - long _val106; - for (int _i107 = 0; _i107 < _map104.size; ++_i107) + iprot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { + break; + } + switch (schemeField.id) { + case 1: // SUMMARY + if (schemeField.type == org.apache.thrift.protocol.TType.MAP) { { - _key105 = iprot.readString(); - _val106 = iprot.readI64(); - struct.summary.put(_key105, _val106); + org.apache.thrift.protocol.TMap _map104 = iprot.readMapBegin(); + struct.summary = new java.util.HashMap(2*_map104.size); + @org.apache.thrift.annotation.Nullable java.lang.String _key105; + long _val106; + for (int _i107 = 0; _i107 < _map104.size; ++_i107) + { + _key105 = iprot.readString(); + _val106 = iprot.readI64(); + struct.summary.put(_key105, _val106); + } + iprot.readMapEnd(); } - iprot.readMapEnd(); + struct.setSummaryIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } - struct.setSummaryIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 2: // CONFIG - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.config = new TSummarizerConfiguration(); - struct.config.read(iprot); - struct.setConfigIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 3: // FILES_CONTAINING - if (schemeField.type == org.apache.thrift.protocol.TType.I64) { - struct.filesContaining = iprot.readI64(); - struct.setFilesContainingIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 4: // FILES_EXCEEDING - if (schemeField.type == org.apache.thrift.protocol.TType.I64) { - struct.filesExceeding = iprot.readI64(); - struct.setFilesExceedingIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 5: // FILES_LARGE - if (schemeField.type == org.apache.thrift.protocol.TType.I64) { - struct.filesLarge = iprot.readI64(); - struct.setFilesLargeIsSet(true); - } else { + break; + case 2: // CONFIG + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.config = new TSummarizerConfiguration(); + struct.config.read(iprot); + struct.setConfigIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 3: // FILES_CONTAINING + if (schemeField.type == org.apache.thrift.protocol.TType.I64) { + struct.filesContaining = iprot.readI64(); + struct.setFilesContainingIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 4: // FILES_EXCEEDING + if (schemeField.type == org.apache.thrift.protocol.TType.I64) { + struct.filesExceeding = iprot.readI64(); + struct.setFilesExceedingIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 5: // FILES_LARGE + if (schemeField.type == org.apache.thrift.protocol.TType.I64) { + struct.filesLarge = iprot.readI64(); + struct.setFilesLargeIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - default: - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); } - iprot.readFieldEnd(); - } - iprot.readStructEnd(); + iprot.readStructEnd(); - // check for required fields of primitive type, which can't be checked in the validate method - struct.validate(); + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } finally { + iprot.decrementRecursionDepth(); + } } @Override @@ -815,39 +820,44 @@ public void write(org.apache.thrift.protocol.TProtocol prot, TSummary struct) th @Override public void read(org.apache.thrift.protocol.TProtocol prot, TSummary struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; - java.util.BitSet incoming = iprot.readBitSet(5); - if (incoming.get(0)) { - { - org.apache.thrift.protocol.TMap _map110 = iprot.readMapBegin(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.I64); - struct.summary = new java.util.HashMap(2*_map110.size); - @org.apache.thrift.annotation.Nullable java.lang.String _key111; - long _val112; - for (int _i113 = 0; _i113 < _map110.size; ++_i113) + prot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(5); + if (incoming.get(0)) { { - _key111 = iprot.readString(); - _val112 = iprot.readI64(); - struct.summary.put(_key111, _val112); + org.apache.thrift.protocol.TMap _map110 = iprot.readMapBegin(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.I64); + struct.summary = new java.util.HashMap(2*_map110.size); + @org.apache.thrift.annotation.Nullable java.lang.String _key111; + long _val112; + for (int _i113 = 0; _i113 < _map110.size; ++_i113) + { + _key111 = iprot.readString(); + _val112 = iprot.readI64(); + struct.summary.put(_key111, _val112); + } } + struct.setSummaryIsSet(true); } - struct.setSummaryIsSet(true); - } - if (incoming.get(1)) { - struct.config = new TSummarizerConfiguration(); - struct.config.read(iprot); - struct.setConfigIsSet(true); - } - if (incoming.get(2)) { - struct.filesContaining = iprot.readI64(); - struct.setFilesContainingIsSet(true); - } - if (incoming.get(3)) { - struct.filesExceeding = iprot.readI64(); - struct.setFilesExceedingIsSet(true); - } - if (incoming.get(4)) { - struct.filesLarge = iprot.readI64(); - struct.setFilesLargeIsSet(true); + if (incoming.get(1)) { + struct.config = new TSummarizerConfiguration(); + struct.config.read(iprot); + struct.setConfigIsSet(true); + } + if (incoming.get(2)) { + struct.filesContaining = iprot.readI64(); + struct.setFilesContainingIsSet(true); + } + if (incoming.get(3)) { + struct.filesExceeding = iprot.readI64(); + struct.setFilesExceedingIsSet(true); + } + if (incoming.get(4)) { + struct.filesLarge = iprot.readI64(); + struct.setFilesLargeIsSet(true); + } + } finally { + prot.decrementRecursionDepth(); } } } diff --git a/core/src/main/thrift-gen-java/org/apache/accumulo/core/dataImpl/thrift/TSummaryRequest.java b/core/src/main/thrift-gen-java/org/apache/accumulo/core/dataImpl/thrift/TSummaryRequest.java index c517d2e70d3..733ff804f59 100644 --- a/core/src/main/thrift-gen-java/org/apache/accumulo/core/dataImpl/thrift/TSummaryRequest.java +++ b/core/src/main/thrift-gen-java/org/apache/accumulo/core/dataImpl/thrift/TSummaryRequest.java @@ -17,7 +17,7 @@ * under the License. */ /* - * Autogenerated by Thrift Compiler (0.17.0) + * Autogenerated by Thrift Compiler (0.23.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -591,68 +591,73 @@ private static class TSummaryRequestStandardScheme extends org.apache.thrift.sch @Override public void read(org.apache.thrift.protocol.TProtocol iprot, TSummaryRequest struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TField schemeField; - iprot.readStructBegin(); - while (true) - { - schemeField = iprot.readFieldBegin(); - if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { - break; - } - switch (schemeField.id) { - case 1: // TABLE_ID - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.tableId = iprot.readString(); - struct.setTableIdIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 2: // BOUNDS - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.bounds = new TRowRange(); - struct.bounds.read(iprot); - struct.setBoundsIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } + iprot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; - case 3: // SUMMARIZERS - if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { - { - org.apache.thrift.protocol.TList _list122 = iprot.readListBegin(); - struct.summarizers = new java.util.ArrayList(_list122.size); - @org.apache.thrift.annotation.Nullable TSummarizerConfiguration _elem123; - for (int _i124 = 0; _i124 < _list122.size; ++_i124) + } + switch (schemeField.id) { + case 1: // TABLE_ID + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.tableId = iprot.readString(); + struct.setTableIdIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 2: // BOUNDS + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.bounds = new TRowRange(); + struct.bounds.read(iprot); + struct.setBoundsIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 3: // SUMMARIZERS + if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - _elem123 = new TSummarizerConfiguration(); - _elem123.read(iprot); - struct.summarizers.add(_elem123); + org.apache.thrift.protocol.TList _list122 = iprot.readListBegin(); + struct.summarizers = new java.util.ArrayList(_list122.size); + @org.apache.thrift.annotation.Nullable TSummarizerConfiguration _elem123; + for (int _i124 = 0; _i124 < _list122.size; ++_i124) + { + _elem123 = new TSummarizerConfiguration(); + _elem123.read(iprot); + struct.summarizers.add(_elem123); + } + iprot.readListEnd(); } - iprot.readListEnd(); + struct.setSummarizersIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } - struct.setSummarizersIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 4: // SUMMARIZER_PATTERN - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.summarizerPattern = iprot.readString(); - struct.setSummarizerPatternIsSet(true); - } else { + break; + case 4: // SUMMARIZER_PATTERN + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.summarizerPattern = iprot.readString(); + struct.setSummarizerPatternIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - default: - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); } - iprot.readFieldEnd(); - } - iprot.readStructEnd(); + iprot.readStructEnd(); - // check for required fields of primitive type, which can't be checked in the validate method - struct.validate(); + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } finally { + iprot.decrementRecursionDepth(); + } } @Override @@ -741,34 +746,39 @@ public void write(org.apache.thrift.protocol.TProtocol prot, TSummaryRequest str @Override public void read(org.apache.thrift.protocol.TProtocol prot, TSummaryRequest struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; - java.util.BitSet incoming = iprot.readBitSet(4); - if (incoming.get(0)) { - struct.tableId = iprot.readString(); - struct.setTableIdIsSet(true); - } - if (incoming.get(1)) { - struct.bounds = new TRowRange(); - struct.bounds.read(iprot); - struct.setBoundsIsSet(true); - } - if (incoming.get(2)) { - { - org.apache.thrift.protocol.TList _list127 = iprot.readListBegin(org.apache.thrift.protocol.TType.STRUCT); - struct.summarizers = new java.util.ArrayList(_list127.size); - @org.apache.thrift.annotation.Nullable TSummarizerConfiguration _elem128; - for (int _i129 = 0; _i129 < _list127.size; ++_i129) + prot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(4); + if (incoming.get(0)) { + struct.tableId = iprot.readString(); + struct.setTableIdIsSet(true); + } + if (incoming.get(1)) { + struct.bounds = new TRowRange(); + struct.bounds.read(iprot); + struct.setBoundsIsSet(true); + } + if (incoming.get(2)) { { - _elem128 = new TSummarizerConfiguration(); - _elem128.read(iprot); - struct.summarizers.add(_elem128); + org.apache.thrift.protocol.TList _list127 = iprot.readListBegin(org.apache.thrift.protocol.TType.STRUCT); + struct.summarizers = new java.util.ArrayList(_list127.size); + @org.apache.thrift.annotation.Nullable TSummarizerConfiguration _elem128; + for (int _i129 = 0; _i129 < _list127.size; ++_i129) + { + _elem128 = new TSummarizerConfiguration(); + _elem128.read(iprot); + struct.summarizers.add(_elem128); + } } + struct.setSummarizersIsSet(true); } - struct.setSummarizersIsSet(true); - } - if (incoming.get(3)) { - struct.summarizerPattern = iprot.readString(); - struct.setSummarizerPatternIsSet(true); + if (incoming.get(3)) { + struct.summarizerPattern = iprot.readString(); + struct.setSummarizerPatternIsSet(true); + } + } finally { + prot.decrementRecursionDepth(); } } } diff --git a/core/src/main/thrift-gen-java/org/apache/accumulo/core/dataImpl/thrift/UpdateErrors.java b/core/src/main/thrift-gen-java/org/apache/accumulo/core/dataImpl/thrift/UpdateErrors.java index 894a83d2f81..f7bbe1c4b68 100644 --- a/core/src/main/thrift-gen-java/org/apache/accumulo/core/dataImpl/thrift/UpdateErrors.java +++ b/core/src/main/thrift-gen-java/org/apache/accumulo/core/dataImpl/thrift/UpdateErrors.java @@ -17,7 +17,7 @@ * under the License. */ /* - * Autogenerated by Thrift Compiler (0.17.0) + * Autogenerated by Thrift Compiler (0.23.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -556,85 +556,90 @@ private static class UpdateErrorsStandardScheme extends org.apache.thrift.scheme @Override public void read(org.apache.thrift.protocol.TProtocol iprot, UpdateErrors struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TField schemeField; - iprot.readStructBegin(); - while (true) - { - schemeField = iprot.readFieldBegin(); - if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { - break; - } - switch (schemeField.id) { - case 1: // FAILED_EXTENTS - if (schemeField.type == org.apache.thrift.protocol.TType.MAP) { - { - org.apache.thrift.protocol.TMap _map58 = iprot.readMapBegin(); - struct.failedExtents = new java.util.HashMap(2*_map58.size); - @org.apache.thrift.annotation.Nullable TKeyExtent _key59; - long _val60; - for (int _i61 = 0; _i61 < _map58.size; ++_i61) + iprot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { + break; + } + switch (schemeField.id) { + case 1: // FAILED_EXTENTS + if (schemeField.type == org.apache.thrift.protocol.TType.MAP) { { - _key59 = new TKeyExtent(); - _key59.read(iprot); - _val60 = iprot.readI64(); - struct.failedExtents.put(_key59, _val60); + org.apache.thrift.protocol.TMap _map58 = iprot.readMapBegin(); + struct.failedExtents = new java.util.HashMap(2*_map58.size); + @org.apache.thrift.annotation.Nullable TKeyExtent _key59; + long _val60; + for (int _i61 = 0; _i61 < _map58.size; ++_i61) + { + _key59 = new TKeyExtent(); + _key59.read(iprot); + _val60 = iprot.readI64(); + struct.failedExtents.put(_key59, _val60); + } + iprot.readMapEnd(); } - iprot.readMapEnd(); + struct.setFailedExtentsIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } - struct.setFailedExtentsIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 2: // VIOLATION_SUMMARIES - if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { - { - org.apache.thrift.protocol.TList _list62 = iprot.readListBegin(); - struct.violationSummaries = new java.util.ArrayList(_list62.size); - @org.apache.thrift.annotation.Nullable TConstraintViolationSummary _elem63; - for (int _i64 = 0; _i64 < _list62.size; ++_i64) + break; + case 2: // VIOLATION_SUMMARIES + if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - _elem63 = new TConstraintViolationSummary(); - _elem63.read(iprot); - struct.violationSummaries.add(_elem63); + org.apache.thrift.protocol.TList _list62 = iprot.readListBegin(); + struct.violationSummaries = new java.util.ArrayList(_list62.size); + @org.apache.thrift.annotation.Nullable TConstraintViolationSummary _elem63; + for (int _i64 = 0; _i64 < _list62.size; ++_i64) + { + _elem63 = new TConstraintViolationSummary(); + _elem63.read(iprot); + struct.violationSummaries.add(_elem63); + } + iprot.readListEnd(); } - iprot.readListEnd(); + struct.setViolationSummariesIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } - struct.setViolationSummariesIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 3: // AUTHORIZATION_FAILURES - if (schemeField.type == org.apache.thrift.protocol.TType.MAP) { - { - org.apache.thrift.protocol.TMap _map65 = iprot.readMapBegin(); - struct.authorizationFailures = new java.util.HashMap(2*_map65.size); - @org.apache.thrift.annotation.Nullable TKeyExtent _key66; - @org.apache.thrift.annotation.Nullable org.apache.accumulo.core.clientImpl.thrift.SecurityErrorCode _val67; - for (int _i68 = 0; _i68 < _map65.size; ++_i68) + break; + case 3: // AUTHORIZATION_FAILURES + if (schemeField.type == org.apache.thrift.protocol.TType.MAP) { { - _key66 = new TKeyExtent(); - _key66.read(iprot); - _val67 = org.apache.accumulo.core.clientImpl.thrift.SecurityErrorCode.findByValue(iprot.readI32()); - struct.authorizationFailures.put(_key66, _val67); + org.apache.thrift.protocol.TMap _map65 = iprot.readMapBegin(); + struct.authorizationFailures = new java.util.HashMap(2*_map65.size); + @org.apache.thrift.annotation.Nullable TKeyExtent _key66; + @org.apache.thrift.annotation.Nullable org.apache.accumulo.core.clientImpl.thrift.SecurityErrorCode _val67; + for (int _i68 = 0; _i68 < _map65.size; ++_i68) + { + _key66 = new TKeyExtent(); + _key66.read(iprot); + _val67 = org.apache.accumulo.core.clientImpl.thrift.SecurityErrorCode.findByValue(iprot.readI32()); + struct.authorizationFailures.put(_key66, _val67); + } + iprot.readMapEnd(); } - iprot.readMapEnd(); + struct.setAuthorizationFailuresIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } - struct.setAuthorizationFailuresIsSet(true); - } else { + break; + default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - default: - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); } - iprot.readFieldEnd(); - } - iprot.readStructEnd(); + iprot.readStructEnd(); - // check for required fields of primitive type, which can't be checked in the validate method - struct.validate(); + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } finally { + iprot.decrementRecursionDepth(); + } } @Override @@ -742,53 +747,58 @@ public void write(org.apache.thrift.protocol.TProtocol prot, UpdateErrors struct @Override public void read(org.apache.thrift.protocol.TProtocol prot, UpdateErrors struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; - java.util.BitSet incoming = iprot.readBitSet(3); - if (incoming.get(0)) { - { - org.apache.thrift.protocol.TMap _map75 = iprot.readMapBegin(org.apache.thrift.protocol.TType.STRUCT, org.apache.thrift.protocol.TType.I64); - struct.failedExtents = new java.util.HashMap(2*_map75.size); - @org.apache.thrift.annotation.Nullable TKeyExtent _key76; - long _val77; - for (int _i78 = 0; _i78 < _map75.size; ++_i78) + prot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(3); + if (incoming.get(0)) { { - _key76 = new TKeyExtent(); - _key76.read(iprot); - _val77 = iprot.readI64(); - struct.failedExtents.put(_key76, _val77); + org.apache.thrift.protocol.TMap _map75 = iprot.readMapBegin(org.apache.thrift.protocol.TType.STRUCT, org.apache.thrift.protocol.TType.I64); + struct.failedExtents = new java.util.HashMap(2*_map75.size); + @org.apache.thrift.annotation.Nullable TKeyExtent _key76; + long _val77; + for (int _i78 = 0; _i78 < _map75.size; ++_i78) + { + _key76 = new TKeyExtent(); + _key76.read(iprot); + _val77 = iprot.readI64(); + struct.failedExtents.put(_key76, _val77); + } } + struct.setFailedExtentsIsSet(true); } - struct.setFailedExtentsIsSet(true); - } - if (incoming.get(1)) { - { - org.apache.thrift.protocol.TList _list79 = iprot.readListBegin(org.apache.thrift.protocol.TType.STRUCT); - struct.violationSummaries = new java.util.ArrayList(_list79.size); - @org.apache.thrift.annotation.Nullable TConstraintViolationSummary _elem80; - for (int _i81 = 0; _i81 < _list79.size; ++_i81) + if (incoming.get(1)) { { - _elem80 = new TConstraintViolationSummary(); - _elem80.read(iprot); - struct.violationSummaries.add(_elem80); + org.apache.thrift.protocol.TList _list79 = iprot.readListBegin(org.apache.thrift.protocol.TType.STRUCT); + struct.violationSummaries = new java.util.ArrayList(_list79.size); + @org.apache.thrift.annotation.Nullable TConstraintViolationSummary _elem80; + for (int _i81 = 0; _i81 < _list79.size; ++_i81) + { + _elem80 = new TConstraintViolationSummary(); + _elem80.read(iprot); + struct.violationSummaries.add(_elem80); + } } + struct.setViolationSummariesIsSet(true); } - struct.setViolationSummariesIsSet(true); - } - if (incoming.get(2)) { - { - org.apache.thrift.protocol.TMap _map82 = iprot.readMapBegin(org.apache.thrift.protocol.TType.STRUCT, org.apache.thrift.protocol.TType.I32); - struct.authorizationFailures = new java.util.HashMap(2*_map82.size); - @org.apache.thrift.annotation.Nullable TKeyExtent _key83; - @org.apache.thrift.annotation.Nullable org.apache.accumulo.core.clientImpl.thrift.SecurityErrorCode _val84; - for (int _i85 = 0; _i85 < _map82.size; ++_i85) + if (incoming.get(2)) { { - _key83 = new TKeyExtent(); - _key83.read(iprot); - _val84 = org.apache.accumulo.core.clientImpl.thrift.SecurityErrorCode.findByValue(iprot.readI32()); - struct.authorizationFailures.put(_key83, _val84); + org.apache.thrift.protocol.TMap _map82 = iprot.readMapBegin(org.apache.thrift.protocol.TType.STRUCT, org.apache.thrift.protocol.TType.I32); + struct.authorizationFailures = new java.util.HashMap(2*_map82.size); + @org.apache.thrift.annotation.Nullable TKeyExtent _key83; + @org.apache.thrift.annotation.Nullable org.apache.accumulo.core.clientImpl.thrift.SecurityErrorCode _val84; + for (int _i85 = 0; _i85 < _map82.size; ++_i85) + { + _key83 = new TKeyExtent(); + _key83.read(iprot); + _val84 = org.apache.accumulo.core.clientImpl.thrift.SecurityErrorCode.findByValue(iprot.readI32()); + struct.authorizationFailures.put(_key83, _val84); + } } + struct.setAuthorizationFailuresIsSet(true); } - struct.setAuthorizationFailuresIsSet(true); + } finally { + prot.decrementRecursionDepth(); } } } diff --git a/core/src/main/thrift-gen-java/org/apache/accumulo/core/gc/thrift/GCMonitorService.java b/core/src/main/thrift-gen-java/org/apache/accumulo/core/gc/thrift/GCMonitorService.java index e4b737d5063..176af003338 100644 --- a/core/src/main/thrift-gen-java/org/apache/accumulo/core/gc/thrift/GCMonitorService.java +++ b/core/src/main/thrift-gen-java/org/apache/accumulo/core/gc/thrift/GCMonitorService.java @@ -17,7 +17,7 @@ * under the License. */ /* - * Autogenerated by Thrift Compiler (0.17.0) + * Autogenerated by Thrift Compiler (0.23.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -151,19 +151,19 @@ public GCStatus getResult() throws org.apache.accumulo.core.clientImpl.thrift.Th public static class Processor extends org.apache.thrift.TBaseProcessor implements org.apache.thrift.TProcessor { private static final org.slf4j.Logger _LOGGER = org.slf4j.LoggerFactory.getLogger(Processor.class.getName()); public Processor(I iface) { - super(iface, getProcessMap(new java.util.HashMap>())); + super(iface, getProcessMap(new java.util.HashMap>())); } - protected Processor(I iface, java.util.Map> processMap) { + protected Processor(I iface, java.util.Map> processMap) { super(iface, getProcessMap(processMap)); } - private static java.util.Map> getProcessMap(java.util.Map> processMap) { + private static java.util.Map> getProcessMap(java.util.Map> processMap) { processMap.put("getStatus", new getStatus()); return processMap; } - public static class getStatus extends org.apache.thrift.ProcessFunction { + public static class getStatus extends org.apache.thrift.ProcessFunction { public getStatus() { super("getStatus"); } @@ -174,7 +174,7 @@ public getStatus_args getEmptyArgsInstance() { } @Override - protected boolean isOneway() { + public boolean isOneway() { return false; } @@ -183,9 +183,14 @@ protected boolean rethrowUnhandledExceptions() { return false; } + @Override + public getStatus_result getEmptyResultInstance() { + return new getStatus_result(); + } + @Override public getStatus_result getResult(I iface, getStatus_args args) throws org.apache.thrift.TException { - getStatus_result result = new getStatus_result(); + getStatus_result result = getEmptyResultInstance(); try { result.success = iface.getStatus(args.tinfo, args.credentials); } catch (org.apache.accumulo.core.clientImpl.thrift.ThriftSecurityException sec) { @@ -200,23 +205,28 @@ public getStatus_result getResult(I iface, getStatus_args args) throws org.apach public static class AsyncProcessor extends org.apache.thrift.TBaseAsyncProcessor { private static final org.slf4j.Logger _LOGGER = org.slf4j.LoggerFactory.getLogger(AsyncProcessor.class.getName()); public AsyncProcessor(I iface) { - super(iface, getProcessMap(new java.util.HashMap>())); + super(iface, getProcessMap(new java.util.HashMap>())); } - protected AsyncProcessor(I iface, java.util.Map> processMap) { + protected AsyncProcessor(I iface, java.util.Map> processMap) { super(iface, getProcessMap(processMap)); } - private static java.util.Map> getProcessMap(java.util.Map> processMap) { + private static java.util.Map> getProcessMap(java.util.Map> processMap) { processMap.put("getStatus", new getStatus()); return processMap; } - public static class getStatus extends org.apache.thrift.AsyncProcessFunction { + public static class getStatus extends org.apache.thrift.AsyncProcessFunction { public getStatus() { super("getStatus"); } + @Override + public getStatus_result getEmptyResultInstance() { + return new getStatus_result(); + } + @Override public getStatus_args getEmptyArgsInstance() { return new getStatus_args(); @@ -273,7 +283,7 @@ public void onError(java.lang.Exception e) { } @Override - protected boolean isOneway() { + public boolean isOneway() { return false; } @@ -670,42 +680,47 @@ private static class getStatus_argsStandardScheme extends org.apache.thrift.sche @Override public void read(org.apache.thrift.protocol.TProtocol iprot, getStatus_args struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TField schemeField; - iprot.readStructBegin(); - while (true) - { - schemeField = iprot.readFieldBegin(); - if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { - break; - } - switch (schemeField.id) { - case 2: // TINFO - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.tinfo = new org.apache.accumulo.core.clientImpl.thrift.TInfo(); - struct.tinfo.read(iprot); - struct.setTinfoIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } + iprot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; - case 1: // CREDENTIALS - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); - struct.credentials.read(iprot); - struct.setCredentialsIsSet(true); - } else { + } + switch (schemeField.id) { + case 2: // TINFO + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.tinfo = new org.apache.accumulo.core.clientImpl.thrift.TInfo(); + struct.tinfo.read(iprot); + struct.setTinfoIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 1: // CREDENTIALS + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); + struct.credentials.read(iprot); + struct.setCredentialsIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - default: - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); } - iprot.readFieldEnd(); - } - iprot.readStructEnd(); + iprot.readStructEnd(); - // check for required fields of primitive type, which can't be checked in the validate method - struct.validate(); + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } finally { + iprot.decrementRecursionDepth(); + } } @Override @@ -759,17 +774,22 @@ public void write(org.apache.thrift.protocol.TProtocol prot, getStatus_args stru @Override public void read(org.apache.thrift.protocol.TProtocol prot, getStatus_args struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; - java.util.BitSet incoming = iprot.readBitSet(2); - if (incoming.get(0)) { - struct.tinfo = new org.apache.accumulo.core.clientImpl.thrift.TInfo(); - struct.tinfo.read(iprot); - struct.setTinfoIsSet(true); - } - if (incoming.get(1)) { - struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); - struct.credentials.read(iprot); - struct.setCredentialsIsSet(true); + prot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(2); + if (incoming.get(0)) { + struct.tinfo = new org.apache.accumulo.core.clientImpl.thrift.TInfo(); + struct.tinfo.read(iprot); + struct.setTinfoIsSet(true); + } + if (incoming.get(1)) { + struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); + struct.credentials.read(iprot); + struct.setCredentialsIsSet(true); + } + } finally { + prot.decrementRecursionDepth(); } } } @@ -1160,42 +1180,47 @@ private static class getStatus_resultStandardScheme extends org.apache.thrift.sc @Override public void read(org.apache.thrift.protocol.TProtocol iprot, getStatus_result struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TField schemeField; - iprot.readStructBegin(); - while (true) - { - schemeField = iprot.readFieldBegin(); - if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { - break; - } - switch (schemeField.id) { - case 0: // SUCCESS - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.success = new GCStatus(); - struct.success.read(iprot); - struct.setSuccessIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } + iprot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; - case 1: // SEC - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.sec = new org.apache.accumulo.core.clientImpl.thrift.ThriftSecurityException(); - struct.sec.read(iprot); - struct.setSecIsSet(true); - } else { + } + switch (schemeField.id) { + case 0: // SUCCESS + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.success = new GCStatus(); + struct.success.read(iprot); + struct.setSuccessIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 1: // SEC + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.sec = new org.apache.accumulo.core.clientImpl.thrift.ThriftSecurityException(); + struct.sec.read(iprot); + struct.setSecIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - default: - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); } - iprot.readFieldEnd(); - } - iprot.readStructEnd(); + iprot.readStructEnd(); - // check for required fields of primitive type, which can't be checked in the validate method - struct.validate(); + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } finally { + iprot.decrementRecursionDepth(); + } } @Override @@ -1249,17 +1274,22 @@ public void write(org.apache.thrift.protocol.TProtocol prot, getStatus_result st @Override public void read(org.apache.thrift.protocol.TProtocol prot, getStatus_result struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; - java.util.BitSet incoming = iprot.readBitSet(2); - if (incoming.get(0)) { - struct.success = new GCStatus(); - struct.success.read(iprot); - struct.setSuccessIsSet(true); - } - if (incoming.get(1)) { - struct.sec = new org.apache.accumulo.core.clientImpl.thrift.ThriftSecurityException(); - struct.sec.read(iprot); - struct.setSecIsSet(true); + prot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(2); + if (incoming.get(0)) { + struct.success = new GCStatus(); + struct.success.read(iprot); + struct.setSuccessIsSet(true); + } + if (incoming.get(1)) { + struct.sec = new org.apache.accumulo.core.clientImpl.thrift.ThriftSecurityException(); + struct.sec.read(iprot); + struct.setSecIsSet(true); + } + } finally { + prot.decrementRecursionDepth(); } } } diff --git a/core/src/main/thrift-gen-java/org/apache/accumulo/core/gc/thrift/GCStatus.java b/core/src/main/thrift-gen-java/org/apache/accumulo/core/gc/thrift/GCStatus.java index 50a95d81004..60798da5e79 100644 --- a/core/src/main/thrift-gen-java/org/apache/accumulo/core/gc/thrift/GCStatus.java +++ b/core/src/main/thrift-gen-java/org/apache/accumulo/core/gc/thrift/GCStatus.java @@ -17,7 +17,7 @@ * under the License. */ /* - * Autogenerated by Thrift Compiler (0.17.0) + * Autogenerated by Thrift Compiler (0.23.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -579,60 +579,65 @@ private static class GCStatusStandardScheme extends org.apache.thrift.scheme.Sta @Override public void read(org.apache.thrift.protocol.TProtocol iprot, GCStatus struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TField schemeField; - iprot.readStructBegin(); - while (true) - { - schemeField = iprot.readFieldBegin(); - if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { - break; - } - switch (schemeField.id) { - case 1: // LAST - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.last = new GcCycleStats(); - struct.last.read(iprot); - struct.setLastIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } + iprot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; - case 2: // LAST_LOG - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.lastLog = new GcCycleStats(); - struct.lastLog.read(iprot); - struct.setLastLogIsSet(true); - } else { + } + switch (schemeField.id) { + case 1: // LAST + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.last = new GcCycleStats(); + struct.last.read(iprot); + struct.setLastIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 2: // LAST_LOG + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.lastLog = new GcCycleStats(); + struct.lastLog.read(iprot); + struct.setLastLogIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 3: // CURRENT + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.current = new GcCycleStats(); + struct.current.read(iprot); + struct.setCurrentIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 4: // CURRENT_LOG + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.currentLog = new GcCycleStats(); + struct.currentLog.read(iprot); + struct.setCurrentLogIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 3: // CURRENT - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.current = new GcCycleStats(); - struct.current.read(iprot); - struct.setCurrentIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 4: // CURRENT_LOG - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.currentLog = new GcCycleStats(); - struct.currentLog.read(iprot); - struct.setCurrentLogIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - default: - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); } - iprot.readFieldEnd(); - } - iprot.readStructEnd(); + iprot.readStructEnd(); - // check for required fields of primitive type, which can't be checked in the validate method - struct.validate(); + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } finally { + iprot.decrementRecursionDepth(); + } } @Override @@ -708,27 +713,32 @@ public void write(org.apache.thrift.protocol.TProtocol prot, GCStatus struct) th @Override public void read(org.apache.thrift.protocol.TProtocol prot, GCStatus struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; - java.util.BitSet incoming = iprot.readBitSet(4); - if (incoming.get(0)) { - struct.last = new GcCycleStats(); - struct.last.read(iprot); - struct.setLastIsSet(true); - } - if (incoming.get(1)) { - struct.lastLog = new GcCycleStats(); - struct.lastLog.read(iprot); - struct.setLastLogIsSet(true); - } - if (incoming.get(2)) { - struct.current = new GcCycleStats(); - struct.current.read(iprot); - struct.setCurrentIsSet(true); - } - if (incoming.get(3)) { - struct.currentLog = new GcCycleStats(); - struct.currentLog.read(iprot); - struct.setCurrentLogIsSet(true); + prot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(4); + if (incoming.get(0)) { + struct.last = new GcCycleStats(); + struct.last.read(iprot); + struct.setLastIsSet(true); + } + if (incoming.get(1)) { + struct.lastLog = new GcCycleStats(); + struct.lastLog.read(iprot); + struct.setLastLogIsSet(true); + } + if (incoming.get(2)) { + struct.current = new GcCycleStats(); + struct.current.read(iprot); + struct.setCurrentIsSet(true); + } + if (incoming.get(3)) { + struct.currentLog = new GcCycleStats(); + struct.currentLog.read(iprot); + struct.setCurrentLogIsSet(true); + } + } finally { + prot.decrementRecursionDepth(); } } } diff --git a/core/src/main/thrift-gen-java/org/apache/accumulo/core/gc/thrift/GcCycleStats.java b/core/src/main/thrift-gen-java/org/apache/accumulo/core/gc/thrift/GcCycleStats.java index acb7f5bc896..9f3858d0d75 100644 --- a/core/src/main/thrift-gen-java/org/apache/accumulo/core/gc/thrift/GcCycleStats.java +++ b/core/src/main/thrift-gen-java/org/apache/accumulo/core/gc/thrift/GcCycleStats.java @@ -17,7 +17,7 @@ * under the License. */ /* - * Autogenerated by Thrift Compiler (0.17.0) + * Autogenerated by Thrift Compiler (0.23.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -768,80 +768,85 @@ private static class GcCycleStatsStandardScheme extends org.apache.thrift.scheme @Override public void read(org.apache.thrift.protocol.TProtocol iprot, GcCycleStats struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TField schemeField; - iprot.readStructBegin(); - while (true) - { - schemeField = iprot.readFieldBegin(); - if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { - break; - } - switch (schemeField.id) { - case 1: // STARTED - if (schemeField.type == org.apache.thrift.protocol.TType.I64) { - struct.started = iprot.readI64(); - struct.setStartedIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 2: // FINISHED - if (schemeField.type == org.apache.thrift.protocol.TType.I64) { - struct.finished = iprot.readI64(); - struct.setFinishedIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 3: // CANDIDATES - if (schemeField.type == org.apache.thrift.protocol.TType.I64) { - struct.candidates = iprot.readI64(); - struct.setCandidatesIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 4: // IN_USE - if (schemeField.type == org.apache.thrift.protocol.TType.I64) { - struct.inUse = iprot.readI64(); - struct.setInUseIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 5: // DELETED - if (schemeField.type == org.apache.thrift.protocol.TType.I64) { - struct.deleted = iprot.readI64(); - struct.setDeletedIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 6: // ERRORS - if (schemeField.type == org.apache.thrift.protocol.TType.I64) { - struct.errors = iprot.readI64(); - struct.setErrorsIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } + iprot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; - case 7: // BULKS - if (schemeField.type == org.apache.thrift.protocol.TType.I64) { - struct.bulks = iprot.readI64(); - struct.setBulksIsSet(true); - } else { + } + switch (schemeField.id) { + case 1: // STARTED + if (schemeField.type == org.apache.thrift.protocol.TType.I64) { + struct.started = iprot.readI64(); + struct.setStartedIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 2: // FINISHED + if (schemeField.type == org.apache.thrift.protocol.TType.I64) { + struct.finished = iprot.readI64(); + struct.setFinishedIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 3: // CANDIDATES + if (schemeField.type == org.apache.thrift.protocol.TType.I64) { + struct.candidates = iprot.readI64(); + struct.setCandidatesIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 4: // IN_USE + if (schemeField.type == org.apache.thrift.protocol.TType.I64) { + struct.inUse = iprot.readI64(); + struct.setInUseIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 5: // DELETED + if (schemeField.type == org.apache.thrift.protocol.TType.I64) { + struct.deleted = iprot.readI64(); + struct.setDeletedIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 6: // ERRORS + if (schemeField.type == org.apache.thrift.protocol.TType.I64) { + struct.errors = iprot.readI64(); + struct.setErrorsIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 7: // BULKS + if (schemeField.type == org.apache.thrift.protocol.TType.I64) { + struct.bulks = iprot.readI64(); + struct.setBulksIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - default: - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); } - iprot.readFieldEnd(); - } - iprot.readStructEnd(); + iprot.readStructEnd(); - // check for required fields of primitive type, which can't be checked in the validate method - struct.validate(); + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } finally { + iprot.decrementRecursionDepth(); + } } @Override @@ -936,35 +941,40 @@ public void write(org.apache.thrift.protocol.TProtocol prot, GcCycleStats struct @Override public void read(org.apache.thrift.protocol.TProtocol prot, GcCycleStats struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; - java.util.BitSet incoming = iprot.readBitSet(7); - if (incoming.get(0)) { - struct.started = iprot.readI64(); - struct.setStartedIsSet(true); - } - if (incoming.get(1)) { - struct.finished = iprot.readI64(); - struct.setFinishedIsSet(true); - } - if (incoming.get(2)) { - struct.candidates = iprot.readI64(); - struct.setCandidatesIsSet(true); - } - if (incoming.get(3)) { - struct.inUse = iprot.readI64(); - struct.setInUseIsSet(true); - } - if (incoming.get(4)) { - struct.deleted = iprot.readI64(); - struct.setDeletedIsSet(true); - } - if (incoming.get(5)) { - struct.errors = iprot.readI64(); - struct.setErrorsIsSet(true); - } - if (incoming.get(6)) { - struct.bulks = iprot.readI64(); - struct.setBulksIsSet(true); + prot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(7); + if (incoming.get(0)) { + struct.started = iprot.readI64(); + struct.setStartedIsSet(true); + } + if (incoming.get(1)) { + struct.finished = iprot.readI64(); + struct.setFinishedIsSet(true); + } + if (incoming.get(2)) { + struct.candidates = iprot.readI64(); + struct.setCandidatesIsSet(true); + } + if (incoming.get(3)) { + struct.inUse = iprot.readI64(); + struct.setInUseIsSet(true); + } + if (incoming.get(4)) { + struct.deleted = iprot.readI64(); + struct.setDeletedIsSet(true); + } + if (incoming.get(5)) { + struct.errors = iprot.readI64(); + struct.setErrorsIsSet(true); + } + if (incoming.get(6)) { + struct.bulks = iprot.readI64(); + struct.setBulksIsSet(true); + } + } finally { + prot.decrementRecursionDepth(); } } } diff --git a/core/src/main/thrift-gen-java/org/apache/accumulo/core/manager/thrift/Compacting.java b/core/src/main/thrift-gen-java/org/apache/accumulo/core/manager/thrift/Compacting.java index ba0f12109a2..56d1c4d2fdd 100644 --- a/core/src/main/thrift-gen-java/org/apache/accumulo/core/manager/thrift/Compacting.java +++ b/core/src/main/thrift-gen-java/org/apache/accumulo/core/manager/thrift/Compacting.java @@ -17,7 +17,7 @@ * under the License. */ /* - * Autogenerated by Thrift Compiler (0.17.0) + * Autogenerated by Thrift Compiler (0.23.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -393,40 +393,45 @@ private static class CompactingStandardScheme extends org.apache.thrift.scheme.S @Override public void read(org.apache.thrift.protocol.TProtocol iprot, Compacting struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TField schemeField; - iprot.readStructBegin(); - while (true) - { - schemeField = iprot.readFieldBegin(); - if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { - break; - } - switch (schemeField.id) { - case 1: // RUNNING - if (schemeField.type == org.apache.thrift.protocol.TType.I32) { - struct.running = iprot.readI32(); - struct.setRunningIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } + iprot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; - case 2: // QUEUED - if (schemeField.type == org.apache.thrift.protocol.TType.I32) { - struct.queued = iprot.readI32(); - struct.setQueuedIsSet(true); - } else { + } + switch (schemeField.id) { + case 1: // RUNNING + if (schemeField.type == org.apache.thrift.protocol.TType.I32) { + struct.running = iprot.readI32(); + struct.setRunningIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 2: // QUEUED + if (schemeField.type == org.apache.thrift.protocol.TType.I32) { + struct.queued = iprot.readI32(); + struct.setQueuedIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - default: - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); } - iprot.readFieldEnd(); - } - iprot.readStructEnd(); + iprot.readStructEnd(); - // check for required fields of primitive type, which can't be checked in the validate method - struct.validate(); + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } finally { + iprot.decrementRecursionDepth(); + } } @Override @@ -476,15 +481,20 @@ public void write(org.apache.thrift.protocol.TProtocol prot, Compacting struct) @Override public void read(org.apache.thrift.protocol.TProtocol prot, Compacting struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; - java.util.BitSet incoming = iprot.readBitSet(2); - if (incoming.get(0)) { - struct.running = iprot.readI32(); - struct.setRunningIsSet(true); - } - if (incoming.get(1)) { - struct.queued = iprot.readI32(); - struct.setQueuedIsSet(true); + prot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(2); + if (incoming.get(0)) { + struct.running = iprot.readI32(); + struct.setRunningIsSet(true); + } + if (incoming.get(1)) { + struct.queued = iprot.readI32(); + struct.setQueuedIsSet(true); + } + } finally { + prot.decrementRecursionDepth(); } } } diff --git a/core/src/main/thrift-gen-java/org/apache/accumulo/core/manager/thrift/DeadServer.java b/core/src/main/thrift-gen-java/org/apache/accumulo/core/manager/thrift/DeadServer.java index 348185b5067..a395f2c3939 100644 --- a/core/src/main/thrift-gen-java/org/apache/accumulo/core/manager/thrift/DeadServer.java +++ b/core/src/main/thrift-gen-java/org/apache/accumulo/core/manager/thrift/DeadServer.java @@ -17,7 +17,7 @@ * under the License. */ /* - * Autogenerated by Thrift Compiler (0.17.0) + * Autogenerated by Thrift Compiler (0.23.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -564,56 +564,61 @@ private static class DeadServerStandardScheme extends org.apache.thrift.scheme.S @Override public void read(org.apache.thrift.protocol.TProtocol iprot, DeadServer struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TField schemeField; - iprot.readStructBegin(); - while (true) - { - schemeField = iprot.readFieldBegin(); - if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { - break; - } - switch (schemeField.id) { - case 1: // SERVER - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.server = iprot.readString(); - struct.setServerIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } + iprot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; - case 2: // LAST_STATUS - if (schemeField.type == org.apache.thrift.protocol.TType.I64) { - struct.lastStatus = iprot.readI64(); - struct.setLastStatusIsSet(true); - } else { + } + switch (schemeField.id) { + case 1: // SERVER + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.server = iprot.readString(); + struct.setServerIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 2: // LAST_STATUS + if (schemeField.type == org.apache.thrift.protocol.TType.I64) { + struct.lastStatus = iprot.readI64(); + struct.setLastStatusIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 3: // STATUS + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.status = iprot.readString(); + struct.setStatusIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 4: // RESOURCE_GROUP + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.resourceGroup = iprot.readString(); + struct.setResourceGroupIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 3: // STATUS - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.status = iprot.readString(); - struct.setStatusIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 4: // RESOURCE_GROUP - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.resourceGroup = iprot.readString(); - struct.setResourceGroupIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - default: - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); } - iprot.readFieldEnd(); - } - iprot.readStructEnd(); + iprot.readStructEnd(); - // check for required fields of primitive type, which can't be checked in the validate method - struct.validate(); + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } finally { + iprot.decrementRecursionDepth(); + } } @Override @@ -687,23 +692,28 @@ public void write(org.apache.thrift.protocol.TProtocol prot, DeadServer struct) @Override public void read(org.apache.thrift.protocol.TProtocol prot, DeadServer struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; - java.util.BitSet incoming = iprot.readBitSet(4); - if (incoming.get(0)) { - struct.server = iprot.readString(); - struct.setServerIsSet(true); - } - if (incoming.get(1)) { - struct.lastStatus = iprot.readI64(); - struct.setLastStatusIsSet(true); - } - if (incoming.get(2)) { - struct.status = iprot.readString(); - struct.setStatusIsSet(true); - } - if (incoming.get(3)) { - struct.resourceGroup = iprot.readString(); - struct.setResourceGroupIsSet(true); + prot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(4); + if (incoming.get(0)) { + struct.server = iprot.readString(); + struct.setServerIsSet(true); + } + if (incoming.get(1)) { + struct.lastStatus = iprot.readI64(); + struct.setLastStatusIsSet(true); + } + if (incoming.get(2)) { + struct.status = iprot.readString(); + struct.setStatusIsSet(true); + } + if (incoming.get(3)) { + struct.resourceGroup = iprot.readString(); + struct.setResourceGroupIsSet(true); + } + } finally { + prot.decrementRecursionDepth(); } } } diff --git a/core/src/main/thrift-gen-java/org/apache/accumulo/core/manager/thrift/FateService.java b/core/src/main/thrift-gen-java/org/apache/accumulo/core/manager/thrift/FateService.java index 5fbeeb4276c..1d11b97f79c 100644 --- a/core/src/main/thrift-gen-java/org/apache/accumulo/core/manager/thrift/FateService.java +++ b/core/src/main/thrift-gen-java/org/apache/accumulo/core/manager/thrift/FateService.java @@ -17,7 +17,7 @@ * under the License. */ /* - * Autogenerated by Thrift Compiler (0.17.0) + * Autogenerated by Thrift Compiler (0.23.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -484,14 +484,14 @@ public java.lang.Boolean getResult() throws org.apache.accumulo.core.clientImpl. public static class Processor extends org.apache.thrift.TBaseProcessor implements org.apache.thrift.TProcessor { private static final org.slf4j.Logger _LOGGER = org.slf4j.LoggerFactory.getLogger(Processor.class.getName()); public Processor(I iface) { - super(iface, getProcessMap(new java.util.HashMap>())); + super(iface, getProcessMap(new java.util.HashMap>())); } - protected Processor(I iface, java.util.Map> processMap) { + protected Processor(I iface, java.util.Map> processMap) { super(iface, getProcessMap(processMap)); } - private static java.util.Map> getProcessMap(java.util.Map> processMap) { + private static java.util.Map> getProcessMap(java.util.Map> processMap) { processMap.put("beginFateOperation", new beginFateOperation()); processMap.put("executeFateOperation", new executeFateOperation()); processMap.put("waitForFateOperation", new waitForFateOperation()); @@ -500,7 +500,7 @@ protected Processor(I iface, java.util.Map extends org.apache.thrift.ProcessFunction { + public static class beginFateOperation extends org.apache.thrift.ProcessFunction { public beginFateOperation() { super("beginFateOperation"); } @@ -511,7 +511,7 @@ public beginFateOperation_args getEmptyArgsInstance() { } @Override - protected boolean isOneway() { + public boolean isOneway() { return false; } @@ -520,9 +520,14 @@ protected boolean rethrowUnhandledExceptions() { return false; } + @Override + public beginFateOperation_result getEmptyResultInstance() { + return new beginFateOperation_result(); + } + @Override public beginFateOperation_result getResult(I iface, beginFateOperation_args args) throws org.apache.thrift.TException { - beginFateOperation_result result = new beginFateOperation_result(); + beginFateOperation_result result = getEmptyResultInstance(); try { result.success = iface.beginFateOperation(args.tinfo, args.credentials, args.type); } catch (org.apache.accumulo.core.clientImpl.thrift.ThriftSecurityException sec) { @@ -534,7 +539,7 @@ public beginFateOperation_result getResult(I iface, beginFateOperation_args args } } - public static class executeFateOperation extends org.apache.thrift.ProcessFunction { + public static class executeFateOperation extends org.apache.thrift.ProcessFunction { public executeFateOperation() { super("executeFateOperation"); } @@ -545,7 +550,7 @@ public executeFateOperation_args getEmptyArgsInstance() { } @Override - protected boolean isOneway() { + public boolean isOneway() { return false; } @@ -554,9 +559,14 @@ protected boolean rethrowUnhandledExceptions() { return false; } + @Override + public executeFateOperation_result getEmptyResultInstance() { + return new executeFateOperation_result(); + } + @Override public executeFateOperation_result getResult(I iface, executeFateOperation_args args) throws org.apache.thrift.TException { - executeFateOperation_result result = new executeFateOperation_result(); + executeFateOperation_result result = getEmptyResultInstance(); try { iface.executeFateOperation(args.tinfo, args.credentials, args.opid, args.op, args.arguments, args.options, args.autoClean); } catch (org.apache.accumulo.core.clientImpl.thrift.ThriftSecurityException sec) { @@ -570,7 +580,7 @@ public executeFateOperation_result getResult(I iface, executeFateOperation_args } } - public static class waitForFateOperation extends org.apache.thrift.ProcessFunction { + public static class waitForFateOperation extends org.apache.thrift.ProcessFunction { public waitForFateOperation() { super("waitForFateOperation"); } @@ -581,7 +591,7 @@ public waitForFateOperation_args getEmptyArgsInstance() { } @Override - protected boolean isOneway() { + public boolean isOneway() { return false; } @@ -590,9 +600,14 @@ protected boolean rethrowUnhandledExceptions() { return false; } + @Override + public waitForFateOperation_result getEmptyResultInstance() { + return new waitForFateOperation_result(); + } + @Override public waitForFateOperation_result getResult(I iface, waitForFateOperation_args args) throws org.apache.thrift.TException { - waitForFateOperation_result result = new waitForFateOperation_result(); + waitForFateOperation_result result = getEmptyResultInstance(); try { result.success = iface.waitForFateOperation(args.tinfo, args.credentials, args.opid); } catch (org.apache.accumulo.core.clientImpl.thrift.ThriftSecurityException sec) { @@ -606,7 +621,7 @@ public waitForFateOperation_result getResult(I iface, waitForFateOperation_args } } - public static class finishFateOperation extends org.apache.thrift.ProcessFunction { + public static class finishFateOperation extends org.apache.thrift.ProcessFunction { public finishFateOperation() { super("finishFateOperation"); } @@ -617,7 +632,7 @@ public finishFateOperation_args getEmptyArgsInstance() { } @Override - protected boolean isOneway() { + public boolean isOneway() { return false; } @@ -626,9 +641,14 @@ protected boolean rethrowUnhandledExceptions() { return false; } + @Override + public finishFateOperation_result getEmptyResultInstance() { + return new finishFateOperation_result(); + } + @Override public finishFateOperation_result getResult(I iface, finishFateOperation_args args) throws org.apache.thrift.TException { - finishFateOperation_result result = new finishFateOperation_result(); + finishFateOperation_result result = getEmptyResultInstance(); try { iface.finishFateOperation(args.tinfo, args.credentials, args.opid); } catch (org.apache.accumulo.core.clientImpl.thrift.ThriftSecurityException sec) { @@ -640,7 +660,7 @@ public finishFateOperation_result getResult(I iface, finishFateOperation_args ar } } - public static class cancelFateOperation extends org.apache.thrift.ProcessFunction { + public static class cancelFateOperation extends org.apache.thrift.ProcessFunction { public cancelFateOperation() { super("cancelFateOperation"); } @@ -651,7 +671,7 @@ public cancelFateOperation_args getEmptyArgsInstance() { } @Override - protected boolean isOneway() { + public boolean isOneway() { return false; } @@ -660,9 +680,14 @@ protected boolean rethrowUnhandledExceptions() { return false; } + @Override + public cancelFateOperation_result getEmptyResultInstance() { + return new cancelFateOperation_result(); + } + @Override public cancelFateOperation_result getResult(I iface, cancelFateOperation_args args) throws org.apache.thrift.TException { - cancelFateOperation_result result = new cancelFateOperation_result(); + cancelFateOperation_result result = getEmptyResultInstance(); try { result.success = iface.cancelFateOperation(args.tinfo, args.credentials, args.opid); result.setSuccessIsSet(true); @@ -680,14 +705,14 @@ public cancelFateOperation_result getResult(I iface, cancelFateOperation_args ar public static class AsyncProcessor extends org.apache.thrift.TBaseAsyncProcessor { private static final org.slf4j.Logger _LOGGER = org.slf4j.LoggerFactory.getLogger(AsyncProcessor.class.getName()); public AsyncProcessor(I iface) { - super(iface, getProcessMap(new java.util.HashMap>())); + super(iface, getProcessMap(new java.util.HashMap>())); } - protected AsyncProcessor(I iface, java.util.Map> processMap) { + protected AsyncProcessor(I iface, java.util.Map> processMap) { super(iface, getProcessMap(processMap)); } - private static java.util.Map> getProcessMap(java.util.Map> processMap) { + private static java.util.Map> getProcessMap(java.util.Map> processMap) { processMap.put("beginFateOperation", new beginFateOperation()); processMap.put("executeFateOperation", new executeFateOperation()); processMap.put("waitForFateOperation", new waitForFateOperation()); @@ -696,11 +721,16 @@ protected AsyncProcessor(I iface, java.util.Map extends org.apache.thrift.AsyncProcessFunction { + public static class beginFateOperation extends org.apache.thrift.AsyncProcessFunction { public beginFateOperation() { super("beginFateOperation"); } + @Override + public beginFateOperation_result getEmptyResultInstance() { + return new beginFateOperation_result(); + } + @Override public beginFateOperation_args getEmptyArgsInstance() { return new beginFateOperation_args(); @@ -761,7 +791,7 @@ public void onError(java.lang.Exception e) { } @Override - protected boolean isOneway() { + public boolean isOneway() { return false; } @@ -771,11 +801,16 @@ public void start(I iface, beginFateOperation_args args, org.apache.thrift.async } } - public static class executeFateOperation extends org.apache.thrift.AsyncProcessFunction { + public static class executeFateOperation extends org.apache.thrift.AsyncProcessFunction { public executeFateOperation() { super("executeFateOperation"); } + @Override + public executeFateOperation_result getEmptyResultInstance() { + return new executeFateOperation_result(); + } + @Override public executeFateOperation_args getEmptyArgsInstance() { return new executeFateOperation_args(); @@ -839,7 +874,7 @@ public void onError(java.lang.Exception e) { } @Override - protected boolean isOneway() { + public boolean isOneway() { return false; } @@ -849,11 +884,16 @@ public void start(I iface, executeFateOperation_args args, org.apache.thrift.asy } } - public static class waitForFateOperation extends org.apache.thrift.AsyncProcessFunction { + public static class waitForFateOperation extends org.apache.thrift.AsyncProcessFunction { public waitForFateOperation() { super("waitForFateOperation"); } + @Override + public waitForFateOperation_result getEmptyResultInstance() { + return new waitForFateOperation_result(); + } + @Override public waitForFateOperation_args getEmptyArgsInstance() { return new waitForFateOperation_args(); @@ -918,7 +958,7 @@ public void onError(java.lang.Exception e) { } @Override - protected boolean isOneway() { + public boolean isOneway() { return false; } @@ -928,11 +968,16 @@ public void start(I iface, waitForFateOperation_args args, org.apache.thrift.asy } } - public static class finishFateOperation extends org.apache.thrift.AsyncProcessFunction { + public static class finishFateOperation extends org.apache.thrift.AsyncProcessFunction { public finishFateOperation() { super("finishFateOperation"); } + @Override + public finishFateOperation_result getEmptyResultInstance() { + return new finishFateOperation_result(); + } + @Override public finishFateOperation_args getEmptyArgsInstance() { return new finishFateOperation_args(); @@ -992,7 +1037,7 @@ public void onError(java.lang.Exception e) { } @Override - protected boolean isOneway() { + public boolean isOneway() { return false; } @@ -1002,11 +1047,16 @@ public void start(I iface, finishFateOperation_args args, org.apache.thrift.asyn } } - public static class cancelFateOperation extends org.apache.thrift.AsyncProcessFunction { + public static class cancelFateOperation extends org.apache.thrift.AsyncProcessFunction { public cancelFateOperation() { super("cancelFateOperation"); } + @Override + public cancelFateOperation_result getEmptyResultInstance() { + return new cancelFateOperation_result(); + } + @Override public cancelFateOperation_args getEmptyArgsInstance() { return new cancelFateOperation_args(); @@ -1068,7 +1118,7 @@ public void onError(java.lang.Exception e) { } @Override - protected boolean isOneway() { + public boolean isOneway() { return false; } @@ -1563,50 +1613,55 @@ private static class beginFateOperation_argsStandardScheme extends org.apache.th @Override public void read(org.apache.thrift.protocol.TProtocol iprot, beginFateOperation_args struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TField schemeField; - iprot.readStructBegin(); - while (true) - { - schemeField = iprot.readFieldBegin(); - if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { - break; - } - switch (schemeField.id) { - case 1: // TINFO - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.tinfo = new org.apache.accumulo.core.clientImpl.thrift.TInfo(); - struct.tinfo.read(iprot); - struct.setTinfoIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 2: // CREDENTIALS - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); - struct.credentials.read(iprot); - struct.setCredentialsIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } + iprot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; - case 3: // TYPE - if (schemeField.type == org.apache.thrift.protocol.TType.I32) { - struct.type = org.apache.accumulo.core.manager.thrift.TFateInstanceType.findByValue(iprot.readI32()); - struct.setTypeIsSet(true); - } else { + } + switch (schemeField.id) { + case 1: // TINFO + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.tinfo = new org.apache.accumulo.core.clientImpl.thrift.TInfo(); + struct.tinfo.read(iprot); + struct.setTinfoIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 2: // CREDENTIALS + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); + struct.credentials.read(iprot); + struct.setCredentialsIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 3: // TYPE + if (schemeField.type == org.apache.thrift.protocol.TType.I32) { + struct.type = org.apache.accumulo.core.manager.thrift.TFateInstanceType.findByValue(iprot.readI32()); + struct.setTypeIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - default: - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); } - iprot.readFieldEnd(); - } - iprot.readStructEnd(); + iprot.readStructEnd(); - // check for required fields of primitive type, which can't be checked in the validate method - struct.validate(); + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } finally { + iprot.decrementRecursionDepth(); + } } @Override @@ -1671,21 +1726,26 @@ public void write(org.apache.thrift.protocol.TProtocol prot, beginFateOperation_ @Override public void read(org.apache.thrift.protocol.TProtocol prot, beginFateOperation_args struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; - java.util.BitSet incoming = iprot.readBitSet(3); - if (incoming.get(0)) { - struct.tinfo = new org.apache.accumulo.core.clientImpl.thrift.TInfo(); - struct.tinfo.read(iprot); - struct.setTinfoIsSet(true); - } - if (incoming.get(1)) { - struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); - struct.credentials.read(iprot); - struct.setCredentialsIsSet(true); - } - if (incoming.get(2)) { - struct.type = org.apache.accumulo.core.manager.thrift.TFateInstanceType.findByValue(iprot.readI32()); - struct.setTypeIsSet(true); + prot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(3); + if (incoming.get(0)) { + struct.tinfo = new org.apache.accumulo.core.clientImpl.thrift.TInfo(); + struct.tinfo.read(iprot); + struct.setTinfoIsSet(true); + } + if (incoming.get(1)) { + struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); + struct.credentials.read(iprot); + struct.setCredentialsIsSet(true); + } + if (incoming.get(2)) { + struct.type = org.apache.accumulo.core.manager.thrift.TFateInstanceType.findByValue(iprot.readI32()); + struct.setTypeIsSet(true); + } + } finally { + prot.decrementRecursionDepth(); } } } @@ -2158,51 +2218,56 @@ private static class beginFateOperation_resultStandardScheme extends org.apache. @Override public void read(org.apache.thrift.protocol.TProtocol iprot, beginFateOperation_result struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TField schemeField; - iprot.readStructBegin(); - while (true) - { - schemeField = iprot.readFieldBegin(); - if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { - break; - } - switch (schemeField.id) { - case 0: // SUCCESS - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.success = new TFateId(); - struct.success.read(iprot); - struct.setSuccessIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 1: // SEC - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.sec = new org.apache.accumulo.core.clientImpl.thrift.ThriftSecurityException(); - struct.sec.read(iprot); - struct.setSecIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } + iprot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; - case 2: // TNASE - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.tnase = new org.apache.accumulo.core.clientImpl.thrift.ThriftNotActiveServiceException(); - struct.tnase.read(iprot); - struct.setTnaseIsSet(true); - } else { + } + switch (schemeField.id) { + case 0: // SUCCESS + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.success = new TFateId(); + struct.success.read(iprot); + struct.setSuccessIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 1: // SEC + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.sec = new org.apache.accumulo.core.clientImpl.thrift.ThriftSecurityException(); + struct.sec.read(iprot); + struct.setSecIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 2: // TNASE + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.tnase = new org.apache.accumulo.core.clientImpl.thrift.ThriftNotActiveServiceException(); + struct.tnase.read(iprot); + struct.setTnaseIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - default: - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); } - iprot.readFieldEnd(); - } - iprot.readStructEnd(); + iprot.readStructEnd(); - // check for required fields of primitive type, which can't be checked in the validate method - struct.validate(); + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } finally { + iprot.decrementRecursionDepth(); + } } @Override @@ -2267,22 +2332,27 @@ public void write(org.apache.thrift.protocol.TProtocol prot, beginFateOperation_ @Override public void read(org.apache.thrift.protocol.TProtocol prot, beginFateOperation_result struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; - java.util.BitSet incoming = iprot.readBitSet(3); - if (incoming.get(0)) { - struct.success = new TFateId(); - struct.success.read(iprot); - struct.setSuccessIsSet(true); - } - if (incoming.get(1)) { - struct.sec = new org.apache.accumulo.core.clientImpl.thrift.ThriftSecurityException(); - struct.sec.read(iprot); - struct.setSecIsSet(true); - } - if (incoming.get(2)) { - struct.tnase = new org.apache.accumulo.core.clientImpl.thrift.ThriftNotActiveServiceException(); - struct.tnase.read(iprot); - struct.setTnaseIsSet(true); + prot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(3); + if (incoming.get(0)) { + struct.success = new TFateId(); + struct.success.read(iprot); + struct.setSuccessIsSet(true); + } + if (incoming.get(1)) { + struct.sec = new org.apache.accumulo.core.clientImpl.thrift.ThriftSecurityException(); + struct.sec.read(iprot); + struct.setSecIsSet(true); + } + if (incoming.get(2)) { + struct.tnase = new org.apache.accumulo.core.clientImpl.thrift.ThriftNotActiveServiceException(); + struct.tnase.read(iprot); + struct.setTnaseIsSet(true); + } + } finally { + prot.decrementRecursionDepth(); } } } @@ -3135,105 +3205,110 @@ private static class executeFateOperation_argsStandardScheme extends org.apache. @Override public void read(org.apache.thrift.protocol.TProtocol iprot, executeFateOperation_args struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TField schemeField; - iprot.readStructBegin(); - while (true) - { - schemeField = iprot.readFieldBegin(); - if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { - break; - } - switch (schemeField.id) { - case 1: // TINFO - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.tinfo = new org.apache.accumulo.core.clientImpl.thrift.TInfo(); - struct.tinfo.read(iprot); - struct.setTinfoIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 2: // CREDENTIALS - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); - struct.credentials.read(iprot); - struct.setCredentialsIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 3: // OPID - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.opid = new TFateId(); - struct.opid.read(iprot); - struct.setOpidIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 4: // OP - if (schemeField.type == org.apache.thrift.protocol.TType.I32) { - struct.op = org.apache.accumulo.core.manager.thrift.TFateOperation.findByValue(iprot.readI32()); - struct.setOpIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } + iprot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; - case 5: // ARGUMENTS - if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { - { - org.apache.thrift.protocol.TList _list78 = iprot.readListBegin(); - struct.arguments = new java.util.ArrayList(_list78.size); - @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer _elem79; - for (int _i80 = 0; _i80 < _list78.size; ++_i80) + } + switch (schemeField.id) { + case 1: // TINFO + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.tinfo = new org.apache.accumulo.core.clientImpl.thrift.TInfo(); + struct.tinfo.read(iprot); + struct.setTinfoIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 2: // CREDENTIALS + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); + struct.credentials.read(iprot); + struct.setCredentialsIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 3: // OPID + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.opid = new TFateId(); + struct.opid.read(iprot); + struct.setOpidIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 4: // OP + if (schemeField.type == org.apache.thrift.protocol.TType.I32) { + struct.op = org.apache.accumulo.core.manager.thrift.TFateOperation.findByValue(iprot.readI32()); + struct.setOpIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 5: // ARGUMENTS + if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - _elem79 = iprot.readBinary(); - struct.arguments.add(_elem79); + org.apache.thrift.protocol.TList _list78 = iprot.readListBegin(); + struct.arguments = new java.util.ArrayList(_list78.size); + @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer _elem79; + for (int _i80 = 0; _i80 < _list78.size; ++_i80) + { + _elem79 = iprot.readBinary(); + struct.arguments.add(_elem79); + } + iprot.readListEnd(); } - iprot.readListEnd(); + struct.setArgumentsIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } - struct.setArgumentsIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 6: // OPTIONS - if (schemeField.type == org.apache.thrift.protocol.TType.MAP) { - { - org.apache.thrift.protocol.TMap _map81 = iprot.readMapBegin(); - struct.options = new java.util.HashMap(2*_map81.size); - @org.apache.thrift.annotation.Nullable java.lang.String _key82; - @org.apache.thrift.annotation.Nullable java.lang.String _val83; - for (int _i84 = 0; _i84 < _map81.size; ++_i84) + break; + case 6: // OPTIONS + if (schemeField.type == org.apache.thrift.protocol.TType.MAP) { { - _key82 = iprot.readString(); - _val83 = iprot.readString(); - struct.options.put(_key82, _val83); + org.apache.thrift.protocol.TMap _map81 = iprot.readMapBegin(); + struct.options = new java.util.HashMap(2*_map81.size); + @org.apache.thrift.annotation.Nullable java.lang.String _key82; + @org.apache.thrift.annotation.Nullable java.lang.String _val83; + for (int _i84 = 0; _i84 < _map81.size; ++_i84) + { + _key82 = iprot.readString(); + _val83 = iprot.readString(); + struct.options.put(_key82, _val83); + } + iprot.readMapEnd(); } - iprot.readMapEnd(); + struct.setOptionsIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } - struct.setOptionsIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 7: // AUTO_CLEAN - if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) { - struct.autoClean = iprot.readBool(); - struct.setAutoCleanIsSet(true); - } else { + break; + case 7: // AUTO_CLEAN + if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) { + struct.autoClean = iprot.readBool(); + struct.setAutoCleanIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - default: - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); } - iprot.readFieldEnd(); - } - iprot.readStructEnd(); + iprot.readStructEnd(); - // check for required fields of primitive type, which can't be checked in the validate method - struct.validate(); + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } finally { + iprot.decrementRecursionDepth(); + } } @Override @@ -3368,58 +3443,63 @@ public void write(org.apache.thrift.protocol.TProtocol prot, executeFateOperatio @Override public void read(org.apache.thrift.protocol.TProtocol prot, executeFateOperation_args struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; - java.util.BitSet incoming = iprot.readBitSet(7); - if (incoming.get(0)) { - struct.tinfo = new org.apache.accumulo.core.clientImpl.thrift.TInfo(); - struct.tinfo.read(iprot); - struct.setTinfoIsSet(true); - } - if (incoming.get(1)) { - struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); - struct.credentials.read(iprot); - struct.setCredentialsIsSet(true); - } - if (incoming.get(2)) { - struct.opid = new TFateId(); - struct.opid.read(iprot); - struct.setOpidIsSet(true); - } - if (incoming.get(3)) { - struct.op = org.apache.accumulo.core.manager.thrift.TFateOperation.findByValue(iprot.readI32()); - struct.setOpIsSet(true); - } - if (incoming.get(4)) { - { - org.apache.thrift.protocol.TList _list89 = iprot.readListBegin(org.apache.thrift.protocol.TType.STRING); - struct.arguments = new java.util.ArrayList(_list89.size); - @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer _elem90; - for (int _i91 = 0; _i91 < _list89.size; ++_i91) + prot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(7); + if (incoming.get(0)) { + struct.tinfo = new org.apache.accumulo.core.clientImpl.thrift.TInfo(); + struct.tinfo.read(iprot); + struct.setTinfoIsSet(true); + } + if (incoming.get(1)) { + struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); + struct.credentials.read(iprot); + struct.setCredentialsIsSet(true); + } + if (incoming.get(2)) { + struct.opid = new TFateId(); + struct.opid.read(iprot); + struct.setOpidIsSet(true); + } + if (incoming.get(3)) { + struct.op = org.apache.accumulo.core.manager.thrift.TFateOperation.findByValue(iprot.readI32()); + struct.setOpIsSet(true); + } + if (incoming.get(4)) { { - _elem90 = iprot.readBinary(); - struct.arguments.add(_elem90); + org.apache.thrift.protocol.TList _list89 = iprot.readListBegin(org.apache.thrift.protocol.TType.STRING); + struct.arguments = new java.util.ArrayList(_list89.size); + @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer _elem90; + for (int _i91 = 0; _i91 < _list89.size; ++_i91) + { + _elem90 = iprot.readBinary(); + struct.arguments.add(_elem90); + } } + struct.setArgumentsIsSet(true); } - struct.setArgumentsIsSet(true); - } - if (incoming.get(5)) { - { - org.apache.thrift.protocol.TMap _map92 = iprot.readMapBegin(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING); - struct.options = new java.util.HashMap(2*_map92.size); - @org.apache.thrift.annotation.Nullable java.lang.String _key93; - @org.apache.thrift.annotation.Nullable java.lang.String _val94; - for (int _i95 = 0; _i95 < _map92.size; ++_i95) + if (incoming.get(5)) { { - _key93 = iprot.readString(); - _val94 = iprot.readString(); - struct.options.put(_key93, _val94); + org.apache.thrift.protocol.TMap _map92 = iprot.readMapBegin(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING); + struct.options = new java.util.HashMap(2*_map92.size); + @org.apache.thrift.annotation.Nullable java.lang.String _key93; + @org.apache.thrift.annotation.Nullable java.lang.String _val94; + for (int _i95 = 0; _i95 < _map92.size; ++_i95) + { + _key93 = iprot.readString(); + _val94 = iprot.readString(); + struct.options.put(_key93, _val94); + } } + struct.setOptionsIsSet(true); } - struct.setOptionsIsSet(true); - } - if (incoming.get(6)) { - struct.autoClean = iprot.readBool(); - struct.setAutoCleanIsSet(true); + if (incoming.get(6)) { + struct.autoClean = iprot.readBool(); + struct.setAutoCleanIsSet(true); + } + } finally { + prot.decrementRecursionDepth(); } } } @@ -3889,51 +3969,56 @@ private static class executeFateOperation_resultStandardScheme extends org.apach @Override public void read(org.apache.thrift.protocol.TProtocol iprot, executeFateOperation_result struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TField schemeField; - iprot.readStructBegin(); - while (true) - { - schemeField = iprot.readFieldBegin(); - if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { - break; - } - switch (schemeField.id) { - case 1: // SEC - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.sec = new org.apache.accumulo.core.clientImpl.thrift.ThriftSecurityException(); - struct.sec.read(iprot); - struct.setSecIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 2: // TOPE - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.tope = new org.apache.accumulo.core.clientImpl.thrift.ThriftTableOperationException(); - struct.tope.read(iprot); - struct.setTopeIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } + iprot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; - case 3: // TNASE - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.tnase = new org.apache.accumulo.core.clientImpl.thrift.ThriftNotActiveServiceException(); - struct.tnase.read(iprot); - struct.setTnaseIsSet(true); - } else { + } + switch (schemeField.id) { + case 1: // SEC + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.sec = new org.apache.accumulo.core.clientImpl.thrift.ThriftSecurityException(); + struct.sec.read(iprot); + struct.setSecIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 2: // TOPE + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.tope = new org.apache.accumulo.core.clientImpl.thrift.ThriftTableOperationException(); + struct.tope.read(iprot); + struct.setTopeIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 3: // TNASE + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.tnase = new org.apache.accumulo.core.clientImpl.thrift.ThriftNotActiveServiceException(); + struct.tnase.read(iprot); + struct.setTnaseIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - default: - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); } - iprot.readFieldEnd(); - } - iprot.readStructEnd(); + iprot.readStructEnd(); - // check for required fields of primitive type, which can't be checked in the validate method - struct.validate(); + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } finally { + iprot.decrementRecursionDepth(); + } } @Override @@ -3998,22 +4083,27 @@ public void write(org.apache.thrift.protocol.TProtocol prot, executeFateOperatio @Override public void read(org.apache.thrift.protocol.TProtocol prot, executeFateOperation_result struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; - java.util.BitSet incoming = iprot.readBitSet(3); - if (incoming.get(0)) { - struct.sec = new org.apache.accumulo.core.clientImpl.thrift.ThriftSecurityException(); - struct.sec.read(iprot); - struct.setSecIsSet(true); - } - if (incoming.get(1)) { - struct.tope = new org.apache.accumulo.core.clientImpl.thrift.ThriftTableOperationException(); - struct.tope.read(iprot); - struct.setTopeIsSet(true); - } - if (incoming.get(2)) { - struct.tnase = new org.apache.accumulo.core.clientImpl.thrift.ThriftNotActiveServiceException(); - struct.tnase.read(iprot); - struct.setTnaseIsSet(true); + prot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(3); + if (incoming.get(0)) { + struct.sec = new org.apache.accumulo.core.clientImpl.thrift.ThriftSecurityException(); + struct.sec.read(iprot); + struct.setSecIsSet(true); + } + if (incoming.get(1)) { + struct.tope = new org.apache.accumulo.core.clientImpl.thrift.ThriftTableOperationException(); + struct.tope.read(iprot); + struct.setTopeIsSet(true); + } + if (incoming.get(2)) { + struct.tnase = new org.apache.accumulo.core.clientImpl.thrift.ThriftNotActiveServiceException(); + struct.tnase.read(iprot); + struct.setTnaseIsSet(true); + } + } finally { + prot.decrementRecursionDepth(); } } } @@ -4493,51 +4583,56 @@ private static class waitForFateOperation_argsStandardScheme extends org.apache. @Override public void read(org.apache.thrift.protocol.TProtocol iprot, waitForFateOperation_args struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TField schemeField; - iprot.readStructBegin(); - while (true) - { - schemeField = iprot.readFieldBegin(); - if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { - break; - } - switch (schemeField.id) { - case 1: // TINFO - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.tinfo = new org.apache.accumulo.core.clientImpl.thrift.TInfo(); - struct.tinfo.read(iprot); - struct.setTinfoIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 2: // CREDENTIALS - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); - struct.credentials.read(iprot); - struct.setCredentialsIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } + iprot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; - case 3: // OPID - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.opid = new TFateId(); - struct.opid.read(iprot); - struct.setOpidIsSet(true); - } else { + } + switch (schemeField.id) { + case 1: // TINFO + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.tinfo = new org.apache.accumulo.core.clientImpl.thrift.TInfo(); + struct.tinfo.read(iprot); + struct.setTinfoIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 2: // CREDENTIALS + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); + struct.credentials.read(iprot); + struct.setCredentialsIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 3: // OPID + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.opid = new TFateId(); + struct.opid.read(iprot); + struct.setOpidIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - default: - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); } - iprot.readFieldEnd(); - } - iprot.readStructEnd(); + iprot.readStructEnd(); - // check for required fields of primitive type, which can't be checked in the validate method - struct.validate(); + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } finally { + iprot.decrementRecursionDepth(); + } } @Override @@ -4602,22 +4697,27 @@ public void write(org.apache.thrift.protocol.TProtocol prot, waitForFateOperatio @Override public void read(org.apache.thrift.protocol.TProtocol prot, waitForFateOperation_args struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; - java.util.BitSet incoming = iprot.readBitSet(3); - if (incoming.get(0)) { - struct.tinfo = new org.apache.accumulo.core.clientImpl.thrift.TInfo(); - struct.tinfo.read(iprot); - struct.setTinfoIsSet(true); - } - if (incoming.get(1)) { - struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); - struct.credentials.read(iprot); - struct.setCredentialsIsSet(true); - } - if (incoming.get(2)) { - struct.opid = new TFateId(); - struct.opid.read(iprot); - struct.setOpidIsSet(true); + prot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(3); + if (incoming.get(0)) { + struct.tinfo = new org.apache.accumulo.core.clientImpl.thrift.TInfo(); + struct.tinfo.read(iprot); + struct.setTinfoIsSet(true); + } + if (incoming.get(1)) { + struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); + struct.credentials.read(iprot); + struct.setCredentialsIsSet(true); + } + if (incoming.get(2)) { + struct.opid = new TFateId(); + struct.opid.read(iprot); + struct.setOpidIsSet(true); + } + } finally { + prot.decrementRecursionDepth(); } } } @@ -5169,59 +5269,64 @@ private static class waitForFateOperation_resultStandardScheme extends org.apach @Override public void read(org.apache.thrift.protocol.TProtocol iprot, waitForFateOperation_result struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TField schemeField; - iprot.readStructBegin(); - while (true) - { - schemeField = iprot.readFieldBegin(); - if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { - break; - } - switch (schemeField.id) { - case 0: // SUCCESS - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.success = iprot.readString(); - struct.setSuccessIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 1: // SEC - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.sec = new org.apache.accumulo.core.clientImpl.thrift.ThriftSecurityException(); - struct.sec.read(iprot); - struct.setSecIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 2: // TOPE - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.tope = new org.apache.accumulo.core.clientImpl.thrift.ThriftTableOperationException(); - struct.tope.read(iprot); - struct.setTopeIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } + iprot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; - case 3: // TNASE - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.tnase = new org.apache.accumulo.core.clientImpl.thrift.ThriftNotActiveServiceException(); - struct.tnase.read(iprot); - struct.setTnaseIsSet(true); - } else { + } + switch (schemeField.id) { + case 0: // SUCCESS + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.success = iprot.readString(); + struct.setSuccessIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 1: // SEC + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.sec = new org.apache.accumulo.core.clientImpl.thrift.ThriftSecurityException(); + struct.sec.read(iprot); + struct.setSecIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 2: // TOPE + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.tope = new org.apache.accumulo.core.clientImpl.thrift.ThriftTableOperationException(); + struct.tope.read(iprot); + struct.setTopeIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 3: // TNASE + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.tnase = new org.apache.accumulo.core.clientImpl.thrift.ThriftNotActiveServiceException(); + struct.tnase.read(iprot); + struct.setTnaseIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - default: - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); } - iprot.readFieldEnd(); - } - iprot.readStructEnd(); + iprot.readStructEnd(); - // check for required fields of primitive type, which can't be checked in the validate method - struct.validate(); + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } finally { + iprot.decrementRecursionDepth(); + } } @Override @@ -5297,26 +5402,31 @@ public void write(org.apache.thrift.protocol.TProtocol prot, waitForFateOperatio @Override public void read(org.apache.thrift.protocol.TProtocol prot, waitForFateOperation_result struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; - java.util.BitSet incoming = iprot.readBitSet(4); - if (incoming.get(0)) { - struct.success = iprot.readString(); - struct.setSuccessIsSet(true); - } - if (incoming.get(1)) { - struct.sec = new org.apache.accumulo.core.clientImpl.thrift.ThriftSecurityException(); - struct.sec.read(iprot); - struct.setSecIsSet(true); - } - if (incoming.get(2)) { - struct.tope = new org.apache.accumulo.core.clientImpl.thrift.ThriftTableOperationException(); - struct.tope.read(iprot); - struct.setTopeIsSet(true); - } - if (incoming.get(3)) { - struct.tnase = new org.apache.accumulo.core.clientImpl.thrift.ThriftNotActiveServiceException(); - struct.tnase.read(iprot); - struct.setTnaseIsSet(true); + prot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(4); + if (incoming.get(0)) { + struct.success = iprot.readString(); + struct.setSuccessIsSet(true); + } + if (incoming.get(1)) { + struct.sec = new org.apache.accumulo.core.clientImpl.thrift.ThriftSecurityException(); + struct.sec.read(iprot); + struct.setSecIsSet(true); + } + if (incoming.get(2)) { + struct.tope = new org.apache.accumulo.core.clientImpl.thrift.ThriftTableOperationException(); + struct.tope.read(iprot); + struct.setTopeIsSet(true); + } + if (incoming.get(3)) { + struct.tnase = new org.apache.accumulo.core.clientImpl.thrift.ThriftNotActiveServiceException(); + struct.tnase.read(iprot); + struct.setTnaseIsSet(true); + } + } finally { + prot.decrementRecursionDepth(); } } } @@ -5796,51 +5906,56 @@ private static class finishFateOperation_argsStandardScheme extends org.apache.t @Override public void read(org.apache.thrift.protocol.TProtocol iprot, finishFateOperation_args struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TField schemeField; - iprot.readStructBegin(); - while (true) - { - schemeField = iprot.readFieldBegin(); - if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { - break; - } - switch (schemeField.id) { - case 1: // TINFO - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.tinfo = new org.apache.accumulo.core.clientImpl.thrift.TInfo(); - struct.tinfo.read(iprot); - struct.setTinfoIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 2: // CREDENTIALS - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); - struct.credentials.read(iprot); - struct.setCredentialsIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } + iprot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; - case 3: // OPID - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.opid = new TFateId(); - struct.opid.read(iprot); - struct.setOpidIsSet(true); - } else { + } + switch (schemeField.id) { + case 1: // TINFO + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.tinfo = new org.apache.accumulo.core.clientImpl.thrift.TInfo(); + struct.tinfo.read(iprot); + struct.setTinfoIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 2: // CREDENTIALS + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); + struct.credentials.read(iprot); + struct.setCredentialsIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 3: // OPID + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.opid = new TFateId(); + struct.opid.read(iprot); + struct.setOpidIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - default: - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); } - iprot.readFieldEnd(); - } - iprot.readStructEnd(); + iprot.readStructEnd(); - // check for required fields of primitive type, which can't be checked in the validate method - struct.validate(); + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } finally { + iprot.decrementRecursionDepth(); + } } @Override @@ -5905,22 +6020,27 @@ public void write(org.apache.thrift.protocol.TProtocol prot, finishFateOperation @Override public void read(org.apache.thrift.protocol.TProtocol prot, finishFateOperation_args struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; - java.util.BitSet incoming = iprot.readBitSet(3); - if (incoming.get(0)) { - struct.tinfo = new org.apache.accumulo.core.clientImpl.thrift.TInfo(); - struct.tinfo.read(iprot); - struct.setTinfoIsSet(true); - } - if (incoming.get(1)) { - struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); - struct.credentials.read(iprot); - struct.setCredentialsIsSet(true); - } - if (incoming.get(2)) { - struct.opid = new TFateId(); - struct.opid.read(iprot); - struct.setOpidIsSet(true); + prot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(3); + if (incoming.get(0)) { + struct.tinfo = new org.apache.accumulo.core.clientImpl.thrift.TInfo(); + struct.tinfo.read(iprot); + struct.setTinfoIsSet(true); + } + if (incoming.get(1)) { + struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); + struct.credentials.read(iprot); + struct.setCredentialsIsSet(true); + } + if (incoming.get(2)) { + struct.opid = new TFateId(); + struct.opid.read(iprot); + struct.setOpidIsSet(true); + } + } finally { + prot.decrementRecursionDepth(); } } } @@ -6308,42 +6428,47 @@ private static class finishFateOperation_resultStandardScheme extends org.apache @Override public void read(org.apache.thrift.protocol.TProtocol iprot, finishFateOperation_result struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TField schemeField; - iprot.readStructBegin(); - while (true) - { - schemeField = iprot.readFieldBegin(); - if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { - break; - } - switch (schemeField.id) { - case 1: // SEC - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.sec = new org.apache.accumulo.core.clientImpl.thrift.ThriftSecurityException(); - struct.sec.read(iprot); - struct.setSecIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } + iprot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; - case 2: // TNASE - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.tnase = new org.apache.accumulo.core.clientImpl.thrift.ThriftNotActiveServiceException(); - struct.tnase.read(iprot); - struct.setTnaseIsSet(true); - } else { + } + switch (schemeField.id) { + case 1: // SEC + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.sec = new org.apache.accumulo.core.clientImpl.thrift.ThriftSecurityException(); + struct.sec.read(iprot); + struct.setSecIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 2: // TNASE + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.tnase = new org.apache.accumulo.core.clientImpl.thrift.ThriftNotActiveServiceException(); + struct.tnase.read(iprot); + struct.setTnaseIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - default: - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); } - iprot.readFieldEnd(); - } - iprot.readStructEnd(); + iprot.readStructEnd(); - // check for required fields of primitive type, which can't be checked in the validate method - struct.validate(); + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } finally { + iprot.decrementRecursionDepth(); + } } @Override @@ -6397,17 +6522,22 @@ public void write(org.apache.thrift.protocol.TProtocol prot, finishFateOperation @Override public void read(org.apache.thrift.protocol.TProtocol prot, finishFateOperation_result struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; - java.util.BitSet incoming = iprot.readBitSet(2); - if (incoming.get(0)) { - struct.sec = new org.apache.accumulo.core.clientImpl.thrift.ThriftSecurityException(); - struct.sec.read(iprot); - struct.setSecIsSet(true); - } - if (incoming.get(1)) { - struct.tnase = new org.apache.accumulo.core.clientImpl.thrift.ThriftNotActiveServiceException(); - struct.tnase.read(iprot); - struct.setTnaseIsSet(true); + prot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(2); + if (incoming.get(0)) { + struct.sec = new org.apache.accumulo.core.clientImpl.thrift.ThriftSecurityException(); + struct.sec.read(iprot); + struct.setSecIsSet(true); + } + if (incoming.get(1)) { + struct.tnase = new org.apache.accumulo.core.clientImpl.thrift.ThriftNotActiveServiceException(); + struct.tnase.read(iprot); + struct.setTnaseIsSet(true); + } + } finally { + prot.decrementRecursionDepth(); } } } @@ -6887,51 +7017,56 @@ private static class cancelFateOperation_argsStandardScheme extends org.apache.t @Override public void read(org.apache.thrift.protocol.TProtocol iprot, cancelFateOperation_args struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TField schemeField; - iprot.readStructBegin(); - while (true) - { - schemeField = iprot.readFieldBegin(); - if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { - break; - } - switch (schemeField.id) { - case 1: // TINFO - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.tinfo = new org.apache.accumulo.core.clientImpl.thrift.TInfo(); - struct.tinfo.read(iprot); - struct.setTinfoIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 2: // CREDENTIALS - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); - struct.credentials.read(iprot); - struct.setCredentialsIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } + iprot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; - case 3: // OPID - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.opid = new TFateId(); - struct.opid.read(iprot); - struct.setOpidIsSet(true); - } else { + } + switch (schemeField.id) { + case 1: // TINFO + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.tinfo = new org.apache.accumulo.core.clientImpl.thrift.TInfo(); + struct.tinfo.read(iprot); + struct.setTinfoIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 2: // CREDENTIALS + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); + struct.credentials.read(iprot); + struct.setCredentialsIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 3: // OPID + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.opid = new TFateId(); + struct.opid.read(iprot); + struct.setOpidIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - default: - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); } - iprot.readFieldEnd(); - } - iprot.readStructEnd(); + iprot.readStructEnd(); - // check for required fields of primitive type, which can't be checked in the validate method - struct.validate(); + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } finally { + iprot.decrementRecursionDepth(); + } } @Override @@ -6996,22 +7131,27 @@ public void write(org.apache.thrift.protocol.TProtocol prot, cancelFateOperation @Override public void read(org.apache.thrift.protocol.TProtocol prot, cancelFateOperation_args struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; - java.util.BitSet incoming = iprot.readBitSet(3); - if (incoming.get(0)) { - struct.tinfo = new org.apache.accumulo.core.clientImpl.thrift.TInfo(); - struct.tinfo.read(iprot); - struct.setTinfoIsSet(true); - } - if (incoming.get(1)) { - struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); - struct.credentials.read(iprot); - struct.setCredentialsIsSet(true); - } - if (incoming.get(2)) { - struct.opid = new TFateId(); - struct.opid.read(iprot); - struct.setOpidIsSet(true); + prot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(3); + if (incoming.get(0)) { + struct.tinfo = new org.apache.accumulo.core.clientImpl.thrift.TInfo(); + struct.tinfo.read(iprot); + struct.setTinfoIsSet(true); + } + if (incoming.get(1)) { + struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); + struct.credentials.read(iprot); + struct.setCredentialsIsSet(true); + } + if (incoming.get(2)) { + struct.opid = new TFateId(); + struct.opid.read(iprot); + struct.setOpidIsSet(true); + } + } finally { + prot.decrementRecursionDepth(); } } } @@ -7478,50 +7618,55 @@ private static class cancelFateOperation_resultStandardScheme extends org.apache @Override public void read(org.apache.thrift.protocol.TProtocol iprot, cancelFateOperation_result struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TField schemeField; - iprot.readStructBegin(); - while (true) - { - schemeField = iprot.readFieldBegin(); - if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { - break; - } - switch (schemeField.id) { - case 0: // SUCCESS - if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) { - struct.success = iprot.readBool(); - struct.setSuccessIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 1: // SEC - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.sec = new org.apache.accumulo.core.clientImpl.thrift.ThriftSecurityException(); - struct.sec.read(iprot); - struct.setSecIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } + iprot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; - case 2: // TNASE - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.tnase = new org.apache.accumulo.core.clientImpl.thrift.ThriftNotActiveServiceException(); - struct.tnase.read(iprot); - struct.setTnaseIsSet(true); - } else { + } + switch (schemeField.id) { + case 0: // SUCCESS + if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) { + struct.success = iprot.readBool(); + struct.setSuccessIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 1: // SEC + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.sec = new org.apache.accumulo.core.clientImpl.thrift.ThriftSecurityException(); + struct.sec.read(iprot); + struct.setSecIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 2: // TNASE + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.tnase = new org.apache.accumulo.core.clientImpl.thrift.ThriftNotActiveServiceException(); + struct.tnase.read(iprot); + struct.setTnaseIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - default: - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); } - iprot.readFieldEnd(); - } - iprot.readStructEnd(); + iprot.readStructEnd(); - // check for required fields of primitive type, which can't be checked in the validate method - struct.validate(); + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } finally { + iprot.decrementRecursionDepth(); + } } @Override @@ -7586,21 +7731,26 @@ public void write(org.apache.thrift.protocol.TProtocol prot, cancelFateOperation @Override public void read(org.apache.thrift.protocol.TProtocol prot, cancelFateOperation_result struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; - java.util.BitSet incoming = iprot.readBitSet(3); - if (incoming.get(0)) { - struct.success = iprot.readBool(); - struct.setSuccessIsSet(true); - } - if (incoming.get(1)) { - struct.sec = new org.apache.accumulo.core.clientImpl.thrift.ThriftSecurityException(); - struct.sec.read(iprot); - struct.setSecIsSet(true); - } - if (incoming.get(2)) { - struct.tnase = new org.apache.accumulo.core.clientImpl.thrift.ThriftNotActiveServiceException(); - struct.tnase.read(iprot); - struct.setTnaseIsSet(true); + prot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(3); + if (incoming.get(0)) { + struct.success = iprot.readBool(); + struct.setSuccessIsSet(true); + } + if (incoming.get(1)) { + struct.sec = new org.apache.accumulo.core.clientImpl.thrift.ThriftSecurityException(); + struct.sec.read(iprot); + struct.setSecIsSet(true); + } + if (incoming.get(2)) { + struct.tnase = new org.apache.accumulo.core.clientImpl.thrift.ThriftNotActiveServiceException(); + struct.tnase.read(iprot); + struct.setTnaseIsSet(true); + } + } finally { + prot.decrementRecursionDepth(); } } } diff --git a/core/src/main/thrift-gen-java/org/apache/accumulo/core/manager/thrift/FateWorkerService.java b/core/src/main/thrift-gen-java/org/apache/accumulo/core/manager/thrift/FateWorkerService.java index 7cfbb74d300..bb0dfe5a899 100644 --- a/core/src/main/thrift-gen-java/org/apache/accumulo/core/manager/thrift/FateWorkerService.java +++ b/core/src/main/thrift-gen-java/org/apache/accumulo/core/manager/thrift/FateWorkerService.java @@ -17,7 +17,7 @@ * under the License. */ /* - * Autogenerated by Thrift Compiler (0.17.0) + * Autogenerated by Thrift Compiler (0.23.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -298,21 +298,21 @@ public Void getResult() throws org.apache.thrift.TException { public static class Processor extends org.apache.thrift.TBaseProcessor implements org.apache.thrift.TProcessor { private static final org.slf4j.Logger _LOGGER = org.slf4j.LoggerFactory.getLogger(Processor.class.getName()); public Processor(I iface) { - super(iface, getProcessMap(new java.util.HashMap>())); + super(iface, getProcessMap(new java.util.HashMap>())); } - protected Processor(I iface, java.util.Map> processMap) { + protected Processor(I iface, java.util.Map> processMap) { super(iface, getProcessMap(processMap)); } - private static java.util.Map> getProcessMap(java.util.Map> processMap) { + private static java.util.Map> getProcessMap(java.util.Map> processMap) { processMap.put("getPartitions", new getPartitions()); processMap.put("setPartitions", new setPartitions()); processMap.put("seeded", new seeded()); return processMap; } - public static class getPartitions extends org.apache.thrift.ProcessFunction { + public static class getPartitions extends org.apache.thrift.ProcessFunction { public getPartitions() { super("getPartitions"); } @@ -323,7 +323,7 @@ public getPartitions_args getEmptyArgsInstance() { } @Override - protected boolean isOneway() { + public boolean isOneway() { return false; } @@ -332,9 +332,14 @@ protected boolean rethrowUnhandledExceptions() { return false; } + @Override + public getPartitions_result getEmptyResultInstance() { + return new getPartitions_result(); + } + @Override public getPartitions_result getResult(I iface, getPartitions_args args) throws org.apache.thrift.TException { - getPartitions_result result = new getPartitions_result(); + getPartitions_result result = getEmptyResultInstance(); try { result.success = iface.getPartitions(args.tinfo, args.credentials); } catch (org.apache.accumulo.core.clientImpl.thrift.ThriftSecurityException sec) { @@ -344,7 +349,7 @@ public getPartitions_result getResult(I iface, getPartitions_args args) throws o } } - public static class setPartitions extends org.apache.thrift.ProcessFunction { + public static class setPartitions extends org.apache.thrift.ProcessFunction { public setPartitions() { super("setPartitions"); } @@ -355,7 +360,7 @@ public setPartitions_args getEmptyArgsInstance() { } @Override - protected boolean isOneway() { + public boolean isOneway() { return false; } @@ -364,9 +369,14 @@ protected boolean rethrowUnhandledExceptions() { return false; } + @Override + public setPartitions_result getEmptyResultInstance() { + return new setPartitions_result(); + } + @Override public setPartitions_result getResult(I iface, setPartitions_args args) throws org.apache.thrift.TException { - setPartitions_result result = new setPartitions_result(); + setPartitions_result result = getEmptyResultInstance(); try { result.success = iface.setPartitions(args.tinfo, args.credentials, args.updateId, args.desired); result.setSuccessIsSet(true); @@ -377,7 +387,7 @@ public setPartitions_result getResult(I iface, setPartitions_args args) throws o } } - public static class seeded extends org.apache.thrift.ProcessFunction { + public static class seeded extends org.apache.thrift.ProcessFunction { public seeded() { super("seeded"); } @@ -388,7 +398,7 @@ public seeded_args getEmptyArgsInstance() { } @Override - protected boolean isOneway() { + public boolean isOneway() { return false; } @@ -397,9 +407,14 @@ protected boolean rethrowUnhandledExceptions() { return false; } + @Override + public seeded_result getEmptyResultInstance() { + return new seeded_result(); + } + @Override public seeded_result getResult(I iface, seeded_args args) throws org.apache.thrift.TException { - seeded_result result = new seeded_result(); + seeded_result result = getEmptyResultInstance(); iface.seeded(args.tinfo, args.credentials, args.tpartitions); return result; } @@ -410,25 +425,30 @@ public seeded_result getResult(I iface, seeded_args args) throws org.apache.thri public static class AsyncProcessor extends org.apache.thrift.TBaseAsyncProcessor { private static final org.slf4j.Logger _LOGGER = org.slf4j.LoggerFactory.getLogger(AsyncProcessor.class.getName()); public AsyncProcessor(I iface) { - super(iface, getProcessMap(new java.util.HashMap>())); + super(iface, getProcessMap(new java.util.HashMap>())); } - protected AsyncProcessor(I iface, java.util.Map> processMap) { + protected AsyncProcessor(I iface, java.util.Map> processMap) { super(iface, getProcessMap(processMap)); } - private static java.util.Map> getProcessMap(java.util.Map> processMap) { + private static java.util.Map> getProcessMap(java.util.Map> processMap) { processMap.put("getPartitions", new getPartitions()); processMap.put("setPartitions", new setPartitions()); processMap.put("seeded", new seeded()); return processMap; } - public static class getPartitions extends org.apache.thrift.AsyncProcessFunction { + public static class getPartitions extends org.apache.thrift.AsyncProcessFunction { public getPartitions() { super("getPartitions"); } + @Override + public getPartitions_result getEmptyResultInstance() { + return new getPartitions_result(); + } + @Override public getPartitions_args getEmptyArgsInstance() { return new getPartitions_args(); @@ -485,7 +505,7 @@ public void onError(java.lang.Exception e) { } @Override - protected boolean isOneway() { + public boolean isOneway() { return false; } @@ -495,11 +515,16 @@ public void start(I iface, getPartitions_args args, org.apache.thrift.async.Asyn } } - public static class setPartitions extends org.apache.thrift.AsyncProcessFunction { + public static class setPartitions extends org.apache.thrift.AsyncProcessFunction { public setPartitions() { super("setPartitions"); } + @Override + public setPartitions_result getEmptyResultInstance() { + return new setPartitions_result(); + } + @Override public setPartitions_args getEmptyArgsInstance() { return new setPartitions_args(); @@ -557,7 +582,7 @@ public void onError(java.lang.Exception e) { } @Override - protected boolean isOneway() { + public boolean isOneway() { return false; } @@ -567,11 +592,16 @@ public void start(I iface, setPartitions_args args, org.apache.thrift.async.Asyn } } - public static class seeded extends org.apache.thrift.AsyncProcessFunction { + public static class seeded extends org.apache.thrift.AsyncProcessFunction { public seeded() { super("seeded"); } + @Override + public seeded_result getEmptyResultInstance() { + return new seeded_result(); + } + @Override public seeded_args getEmptyArgsInstance() { return new seeded_args(); @@ -623,7 +653,7 @@ public void onError(java.lang.Exception e) { } @Override - protected boolean isOneway() { + public boolean isOneway() { return false; } @@ -1020,42 +1050,47 @@ private static class getPartitions_argsStandardScheme extends org.apache.thrift. @Override public void read(org.apache.thrift.protocol.TProtocol iprot, getPartitions_args struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TField schemeField; - iprot.readStructBegin(); - while (true) - { - schemeField = iprot.readFieldBegin(); - if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { - break; - } - switch (schemeField.id) { - case 1: // TINFO - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.tinfo = new org.apache.accumulo.core.clientImpl.thrift.TInfo(); - struct.tinfo.read(iprot); - struct.setTinfoIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } + iprot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; - case 2: // CREDENTIALS - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); - struct.credentials.read(iprot); - struct.setCredentialsIsSet(true); - } else { + } + switch (schemeField.id) { + case 1: // TINFO + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.tinfo = new org.apache.accumulo.core.clientImpl.thrift.TInfo(); + struct.tinfo.read(iprot); + struct.setTinfoIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 2: // CREDENTIALS + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); + struct.credentials.read(iprot); + struct.setCredentialsIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - default: - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); } - iprot.readFieldEnd(); - } - iprot.readStructEnd(); + iprot.readStructEnd(); - // check for required fields of primitive type, which can't be checked in the validate method - struct.validate(); + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } finally { + iprot.decrementRecursionDepth(); + } } @Override @@ -1109,17 +1144,22 @@ public void write(org.apache.thrift.protocol.TProtocol prot, getPartitions_args @Override public void read(org.apache.thrift.protocol.TProtocol prot, getPartitions_args struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; - java.util.BitSet incoming = iprot.readBitSet(2); - if (incoming.get(0)) { - struct.tinfo = new org.apache.accumulo.core.clientImpl.thrift.TInfo(); - struct.tinfo.read(iprot); - struct.setTinfoIsSet(true); - } - if (incoming.get(1)) { - struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); - struct.credentials.read(iprot); - struct.setCredentialsIsSet(true); + prot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(2); + if (incoming.get(0)) { + struct.tinfo = new org.apache.accumulo.core.clientImpl.thrift.TInfo(); + struct.tinfo.read(iprot); + struct.setTinfoIsSet(true); + } + if (incoming.get(1)) { + struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); + struct.credentials.read(iprot); + struct.setCredentialsIsSet(true); + } + } finally { + prot.decrementRecursionDepth(); } } } @@ -1510,42 +1550,47 @@ private static class getPartitions_resultStandardScheme extends org.apache.thrif @Override public void read(org.apache.thrift.protocol.TProtocol iprot, getPartitions_result struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TField schemeField; - iprot.readStructBegin(); - while (true) - { - schemeField = iprot.readFieldBegin(); - if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { - break; - } - switch (schemeField.id) { - case 0: // SUCCESS - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.success = new TFatePartitions(); - struct.success.read(iprot); - struct.setSuccessIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } + iprot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; - case 1: // SEC - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.sec = new org.apache.accumulo.core.clientImpl.thrift.ThriftSecurityException(); - struct.sec.read(iprot); - struct.setSecIsSet(true); - } else { + } + switch (schemeField.id) { + case 0: // SUCCESS + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.success = new TFatePartitions(); + struct.success.read(iprot); + struct.setSuccessIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 1: // SEC + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.sec = new org.apache.accumulo.core.clientImpl.thrift.ThriftSecurityException(); + struct.sec.read(iprot); + struct.setSecIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - default: - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); } - iprot.readFieldEnd(); - } - iprot.readStructEnd(); + iprot.readStructEnd(); - // check for required fields of primitive type, which can't be checked in the validate method - struct.validate(); + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } finally { + iprot.decrementRecursionDepth(); + } } @Override @@ -1599,17 +1644,22 @@ public void write(org.apache.thrift.protocol.TProtocol prot, getPartitions_resul @Override public void read(org.apache.thrift.protocol.TProtocol prot, getPartitions_result struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; - java.util.BitSet incoming = iprot.readBitSet(2); - if (incoming.get(0)) { - struct.success = new TFatePartitions(); - struct.success.read(iprot); - struct.setSuccessIsSet(true); - } - if (incoming.get(1)) { - struct.sec = new org.apache.accumulo.core.clientImpl.thrift.ThriftSecurityException(); - struct.sec.read(iprot); - struct.setSecIsSet(true); + prot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(2); + if (incoming.get(0)) { + struct.success = new TFatePartitions(); + struct.success.read(iprot); + struct.setSuccessIsSet(true); + } + if (incoming.get(1)) { + struct.sec = new org.apache.accumulo.core.clientImpl.thrift.ThriftSecurityException(); + struct.sec.read(iprot); + struct.setSecIsSet(true); + } + } finally { + prot.decrementRecursionDepth(); } } } @@ -2186,69 +2236,74 @@ private static class setPartitions_argsStandardScheme extends org.apache.thrift. @Override public void read(org.apache.thrift.protocol.TProtocol iprot, setPartitions_args struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TField schemeField; - iprot.readStructBegin(); - while (true) - { - schemeField = iprot.readFieldBegin(); - if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { - break; - } - switch (schemeField.id) { - case 1: // TINFO - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.tinfo = new org.apache.accumulo.core.clientImpl.thrift.TInfo(); - struct.tinfo.read(iprot); - struct.setTinfoIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 2: // CREDENTIALS - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); - struct.credentials.read(iprot); - struct.setCredentialsIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 3: // UPDATE_ID - if (schemeField.type == org.apache.thrift.protocol.TType.I64) { - struct.updateId = iprot.readI64(); - struct.setUpdateIdIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } + iprot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; - case 4: // DESIRED - if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { - { - org.apache.thrift.protocol.TList _list138 = iprot.readListBegin(); - struct.desired = new java.util.ArrayList(_list138.size); - @org.apache.thrift.annotation.Nullable TFatePartition _elem139; - for (int _i140 = 0; _i140 < _list138.size; ++_i140) + } + switch (schemeField.id) { + case 1: // TINFO + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.tinfo = new org.apache.accumulo.core.clientImpl.thrift.TInfo(); + struct.tinfo.read(iprot); + struct.setTinfoIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 2: // CREDENTIALS + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); + struct.credentials.read(iprot); + struct.setCredentialsIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 3: // UPDATE_ID + if (schemeField.type == org.apache.thrift.protocol.TType.I64) { + struct.updateId = iprot.readI64(); + struct.setUpdateIdIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 4: // DESIRED + if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - _elem139 = new TFatePartition(); - _elem139.read(iprot); - struct.desired.add(_elem139); + org.apache.thrift.protocol.TList _list138 = iprot.readListBegin(); + struct.desired = new java.util.ArrayList(_list138.size); + @org.apache.thrift.annotation.Nullable TFatePartition _elem139; + for (int _i140 = 0; _i140 < _list138.size; ++_i140) + { + _elem139 = new TFatePartition(); + _elem139.read(iprot); + struct.desired.add(_elem139); + } + iprot.readListEnd(); } - iprot.readListEnd(); + struct.setDesiredIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } - struct.setDesiredIsSet(true); - } else { + break; + default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - default: - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); } - iprot.readFieldEnd(); - } - iprot.readStructEnd(); + iprot.readStructEnd(); - // check for required fields of primitive type, which can't be checked in the validate method - struct.validate(); + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } finally { + iprot.decrementRecursionDepth(); + } } @Override @@ -2335,35 +2390,40 @@ public void write(org.apache.thrift.protocol.TProtocol prot, setPartitions_args @Override public void read(org.apache.thrift.protocol.TProtocol prot, setPartitions_args struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; - java.util.BitSet incoming = iprot.readBitSet(4); - if (incoming.get(0)) { - struct.tinfo = new org.apache.accumulo.core.clientImpl.thrift.TInfo(); - struct.tinfo.read(iprot); - struct.setTinfoIsSet(true); - } - if (incoming.get(1)) { - struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); - struct.credentials.read(iprot); - struct.setCredentialsIsSet(true); - } - if (incoming.get(2)) { - struct.updateId = iprot.readI64(); - struct.setUpdateIdIsSet(true); - } - if (incoming.get(3)) { - { - org.apache.thrift.protocol.TList _list143 = iprot.readListBegin(org.apache.thrift.protocol.TType.STRUCT); - struct.desired = new java.util.ArrayList(_list143.size); - @org.apache.thrift.annotation.Nullable TFatePartition _elem144; - for (int _i145 = 0; _i145 < _list143.size; ++_i145) + prot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(4); + if (incoming.get(0)) { + struct.tinfo = new org.apache.accumulo.core.clientImpl.thrift.TInfo(); + struct.tinfo.read(iprot); + struct.setTinfoIsSet(true); + } + if (incoming.get(1)) { + struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); + struct.credentials.read(iprot); + struct.setCredentialsIsSet(true); + } + if (incoming.get(2)) { + struct.updateId = iprot.readI64(); + struct.setUpdateIdIsSet(true); + } + if (incoming.get(3)) { { - _elem144 = new TFatePartition(); - _elem144.read(iprot); - struct.desired.add(_elem144); + org.apache.thrift.protocol.TList _list143 = iprot.readListBegin(org.apache.thrift.protocol.TType.STRUCT); + struct.desired = new java.util.ArrayList(_list143.size); + @org.apache.thrift.annotation.Nullable TFatePartition _elem144; + for (int _i145 = 0; _i145 < _list143.size; ++_i145) + { + _elem144 = new TFatePartition(); + _elem144.read(iprot); + struct.desired.add(_elem144); + } } + struct.setDesiredIsSet(true); } - struct.setDesiredIsSet(true); + } finally { + prot.decrementRecursionDepth(); } } } @@ -2748,41 +2808,46 @@ private static class setPartitions_resultStandardScheme extends org.apache.thrif @Override public void read(org.apache.thrift.protocol.TProtocol iprot, setPartitions_result struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TField schemeField; - iprot.readStructBegin(); - while (true) - { - schemeField = iprot.readFieldBegin(); - if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { - break; - } - switch (schemeField.id) { - case 0: // SUCCESS - if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) { - struct.success = iprot.readBool(); - struct.setSuccessIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } + iprot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; - case 1: // SEC - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.sec = new org.apache.accumulo.core.clientImpl.thrift.ThriftSecurityException(); - struct.sec.read(iprot); - struct.setSecIsSet(true); - } else { + } + switch (schemeField.id) { + case 0: // SUCCESS + if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) { + struct.success = iprot.readBool(); + struct.setSuccessIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 1: // SEC + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.sec = new org.apache.accumulo.core.clientImpl.thrift.ThriftSecurityException(); + struct.sec.read(iprot); + struct.setSecIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - default: - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); } - iprot.readFieldEnd(); - } - iprot.readStructEnd(); + iprot.readStructEnd(); - // check for required fields of primitive type, which can't be checked in the validate method - struct.validate(); + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } finally { + iprot.decrementRecursionDepth(); + } } @Override @@ -2836,16 +2901,21 @@ public void write(org.apache.thrift.protocol.TProtocol prot, setPartitions_resul @Override public void read(org.apache.thrift.protocol.TProtocol prot, setPartitions_result struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; - java.util.BitSet incoming = iprot.readBitSet(2); - if (incoming.get(0)) { - struct.success = iprot.readBool(); - struct.setSuccessIsSet(true); - } - if (incoming.get(1)) { - struct.sec = new org.apache.accumulo.core.clientImpl.thrift.ThriftSecurityException(); - struct.sec.read(iprot); - struct.setSecIsSet(true); + prot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(2); + if (incoming.get(0)) { + struct.success = iprot.readBool(); + struct.setSuccessIsSet(true); + } + if (incoming.get(1)) { + struct.sec = new org.apache.accumulo.core.clientImpl.thrift.ThriftSecurityException(); + struct.sec.read(iprot); + struct.setSecIsSet(true); + } + } finally { + prot.decrementRecursionDepth(); } } } @@ -3343,61 +3413,66 @@ private static class seeded_argsStandardScheme extends org.apache.thrift.scheme. @Override public void read(org.apache.thrift.protocol.TProtocol iprot, seeded_args struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TField schemeField; - iprot.readStructBegin(); - while (true) - { - schemeField = iprot.readFieldBegin(); - if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { - break; - } - switch (schemeField.id) { - case 1: // TINFO - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.tinfo = new org.apache.accumulo.core.clientImpl.thrift.TInfo(); - struct.tinfo.read(iprot); - struct.setTinfoIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 2: // CREDENTIALS - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); - struct.credentials.read(iprot); - struct.setCredentialsIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } + iprot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; - case 3: // TPARTITIONS - if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { - { - org.apache.thrift.protocol.TList _list146 = iprot.readListBegin(); - struct.tpartitions = new java.util.ArrayList(_list146.size); - @org.apache.thrift.annotation.Nullable TFatePartition _elem147; - for (int _i148 = 0; _i148 < _list146.size; ++_i148) + } + switch (schemeField.id) { + case 1: // TINFO + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.tinfo = new org.apache.accumulo.core.clientImpl.thrift.TInfo(); + struct.tinfo.read(iprot); + struct.setTinfoIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 2: // CREDENTIALS + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); + struct.credentials.read(iprot); + struct.setCredentialsIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 3: // TPARTITIONS + if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - _elem147 = new TFatePartition(); - _elem147.read(iprot); - struct.tpartitions.add(_elem147); + org.apache.thrift.protocol.TList _list146 = iprot.readListBegin(); + struct.tpartitions = new java.util.ArrayList(_list146.size); + @org.apache.thrift.annotation.Nullable TFatePartition _elem147; + for (int _i148 = 0; _i148 < _list146.size; ++_i148) + { + _elem147 = new TFatePartition(); + _elem147.read(iprot); + struct.tpartitions.add(_elem147); + } + iprot.readListEnd(); } - iprot.readListEnd(); + struct.setTpartitionsIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } - struct.setTpartitionsIsSet(true); - } else { + break; + default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - default: - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); } - iprot.readFieldEnd(); - } - iprot.readStructEnd(); + iprot.readStructEnd(); - // check for required fields of primitive type, which can't be checked in the validate method - struct.validate(); + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } finally { + iprot.decrementRecursionDepth(); + } } @Override @@ -3475,31 +3550,36 @@ public void write(org.apache.thrift.protocol.TProtocol prot, seeded_args struct) @Override public void read(org.apache.thrift.protocol.TProtocol prot, seeded_args struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; - java.util.BitSet incoming = iprot.readBitSet(3); - if (incoming.get(0)) { - struct.tinfo = new org.apache.accumulo.core.clientImpl.thrift.TInfo(); - struct.tinfo.read(iprot); - struct.setTinfoIsSet(true); - } - if (incoming.get(1)) { - struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); - struct.credentials.read(iprot); - struct.setCredentialsIsSet(true); - } - if (incoming.get(2)) { - { - org.apache.thrift.protocol.TList _list151 = iprot.readListBegin(org.apache.thrift.protocol.TType.STRUCT); - struct.tpartitions = new java.util.ArrayList(_list151.size); - @org.apache.thrift.annotation.Nullable TFatePartition _elem152; - for (int _i153 = 0; _i153 < _list151.size; ++_i153) + prot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(3); + if (incoming.get(0)) { + struct.tinfo = new org.apache.accumulo.core.clientImpl.thrift.TInfo(); + struct.tinfo.read(iprot); + struct.setTinfoIsSet(true); + } + if (incoming.get(1)) { + struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); + struct.credentials.read(iprot); + struct.setCredentialsIsSet(true); + } + if (incoming.get(2)) { { - _elem152 = new TFatePartition(); - _elem152.read(iprot); - struct.tpartitions.add(_elem152); + org.apache.thrift.protocol.TList _list151 = iprot.readListBegin(org.apache.thrift.protocol.TType.STRUCT); + struct.tpartitions = new java.util.ArrayList(_list151.size); + @org.apache.thrift.annotation.Nullable TFatePartition _elem152; + for (int _i153 = 0; _i153 < _list151.size; ++_i153) + { + _elem152 = new TFatePartition(); + _elem152.read(iprot); + struct.tpartitions.add(_elem152); + } } + struct.setTpartitionsIsSet(true); } - struct.setTpartitionsIsSet(true); + } finally { + prot.decrementRecursionDepth(); } } } @@ -3718,24 +3798,29 @@ private static class seeded_resultStandardScheme extends org.apache.thrift.schem @Override public void read(org.apache.thrift.protocol.TProtocol iprot, seeded_result struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TField schemeField; - iprot.readStructBegin(); - while (true) - { - schemeField = iprot.readFieldBegin(); - if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { - break; - } - switch (schemeField.id) { - default: - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + iprot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { + break; + } + switch (schemeField.id) { + default: + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); } - iprot.readFieldEnd(); - } - iprot.readStructEnd(); + iprot.readStructEnd(); - // check for required fields of primitive type, which can't be checked in the validate method - struct.validate(); + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } finally { + iprot.decrementRecursionDepth(); + } } @Override @@ -3765,7 +3850,12 @@ public void write(org.apache.thrift.protocol.TProtocol prot, seeded_result struc @Override public void read(org.apache.thrift.protocol.TProtocol prot, seeded_result struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + prot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + } finally { + prot.decrementRecursionDepth(); + } } } diff --git a/core/src/main/thrift-gen-java/org/apache/accumulo/core/manager/thrift/ManagerClientService.java b/core/src/main/thrift-gen-java/org/apache/accumulo/core/manager/thrift/ManagerClientService.java index 0455f9be21a..6ce4f3536f2 100644 --- a/core/src/main/thrift-gen-java/org/apache/accumulo/core/manager/thrift/ManagerClientService.java +++ b/core/src/main/thrift-gen-java/org/apache/accumulo/core/manager/thrift/ManagerClientService.java @@ -17,7 +17,7 @@ * under the License. */ /* - * Autogenerated by Thrift Compiler (0.17.0) + * Autogenerated by Thrift Compiler (0.23.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -2400,14 +2400,14 @@ public Void getResult() throws org.apache.accumulo.core.clientImpl.thrift.Thrift public static class Processor extends org.apache.thrift.TBaseProcessor implements org.apache.thrift.TProcessor { private static final org.slf4j.Logger _LOGGER = org.slf4j.LoggerFactory.getLogger(Processor.class.getName()); public Processor(I iface) { - super(iface, getProcessMap(new java.util.HashMap>())); + super(iface, getProcessMap(new java.util.HashMap>())); } - protected Processor(I iface, java.util.Map> processMap) { + protected Processor(I iface, java.util.Map> processMap) { super(iface, getProcessMap(processMap)); } - private static java.util.Map> getProcessMap(java.util.Map> processMap) { + private static java.util.Map> getProcessMap(java.util.Map> processMap) { processMap.put("initiateFlush", new initiateFlush()); processMap.put("waitForFlush", new waitForFlush()); processMap.put("setTableProperty", new setTableProperty()); @@ -2440,7 +2440,7 @@ protected Processor(I iface, java.util.Map extends org.apache.thrift.ProcessFunction { + public static class initiateFlush extends org.apache.thrift.ProcessFunction { public initiateFlush() { super("initiateFlush"); } @@ -2451,7 +2451,7 @@ public initiateFlush_args getEmptyArgsInstance() { } @Override - protected boolean isOneway() { + public boolean isOneway() { return false; } @@ -2460,9 +2460,14 @@ protected boolean rethrowUnhandledExceptions() { return false; } + @Override + public initiateFlush_result getEmptyResultInstance() { + return new initiateFlush_result(); + } + @Override public initiateFlush_result getResult(I iface, initiateFlush_args args) throws org.apache.thrift.TException { - initiateFlush_result result = new initiateFlush_result(); + initiateFlush_result result = getEmptyResultInstance(); try { result.success = iface.initiateFlush(args.tinfo, args.credentials, args.tableName); result.setSuccessIsSet(true); @@ -2477,7 +2482,7 @@ public initiateFlush_result getResult(I iface, initiateFlush_args args) throws o } } - public static class waitForFlush extends org.apache.thrift.ProcessFunction { + public static class waitForFlush extends org.apache.thrift.ProcessFunction { public waitForFlush() { super("waitForFlush"); } @@ -2488,7 +2493,7 @@ public waitForFlush_args getEmptyArgsInstance() { } @Override - protected boolean isOneway() { + public boolean isOneway() { return false; } @@ -2497,9 +2502,14 @@ protected boolean rethrowUnhandledExceptions() { return false; } + @Override + public waitForFlush_result getEmptyResultInstance() { + return new waitForFlush_result(); + } + @Override public waitForFlush_result getResult(I iface, waitForFlush_args args) throws org.apache.thrift.TException { - waitForFlush_result result = new waitForFlush_result(); + waitForFlush_result result = getEmptyResultInstance(); try { iface.waitForFlush(args.tinfo, args.credentials, args.tableName, args.startRow, args.endRow, args.flushID, args.maxLoops); } catch (org.apache.accumulo.core.clientImpl.thrift.ThriftSecurityException sec) { @@ -2513,7 +2523,7 @@ public waitForFlush_result getResult(I iface, waitForFlush_args args) throws org } } - public static class setTableProperty extends org.apache.thrift.ProcessFunction { + public static class setTableProperty extends org.apache.thrift.ProcessFunction { public setTableProperty() { super("setTableProperty"); } @@ -2524,7 +2534,7 @@ public setTableProperty_args getEmptyArgsInstance() { } @Override - protected boolean isOneway() { + public boolean isOneway() { return false; } @@ -2533,9 +2543,14 @@ protected boolean rethrowUnhandledExceptions() { return false; } + @Override + public setTableProperty_result getEmptyResultInstance() { + return new setTableProperty_result(); + } + @Override public setTableProperty_result getResult(I iface, setTableProperty_args args) throws org.apache.thrift.TException { - setTableProperty_result result = new setTableProperty_result(); + setTableProperty_result result = getEmptyResultInstance(); try { iface.setTableProperty(args.tinfo, args.credentials, args.tableName, args.property, args.value); } catch (org.apache.accumulo.core.clientImpl.thrift.ThriftSecurityException sec) { @@ -2551,7 +2566,7 @@ public setTableProperty_result getResult(I iface, setTableProperty_args args) th } } - public static class modifyTableProperties extends org.apache.thrift.ProcessFunction { + public static class modifyTableProperties extends org.apache.thrift.ProcessFunction { public modifyTableProperties() { super("modifyTableProperties"); } @@ -2562,7 +2577,7 @@ public modifyTableProperties_args getEmptyArgsInstance() { } @Override - protected boolean isOneway() { + public boolean isOneway() { return false; } @@ -2571,9 +2586,14 @@ protected boolean rethrowUnhandledExceptions() { return false; } + @Override + public modifyTableProperties_result getEmptyResultInstance() { + return new modifyTableProperties_result(); + } + @Override public modifyTableProperties_result getResult(I iface, modifyTableProperties_args args) throws org.apache.thrift.TException { - modifyTableProperties_result result = new modifyTableProperties_result(); + modifyTableProperties_result result = getEmptyResultInstance(); try { iface.modifyTableProperties(args.tinfo, args.credentials, args.tableName, args.vProperties); } catch (org.apache.accumulo.core.clientImpl.thrift.ThriftSecurityException sec) { @@ -2591,7 +2611,7 @@ public modifyTableProperties_result getResult(I iface, modifyTableProperties_arg } } - public static class removeTableProperty extends org.apache.thrift.ProcessFunction { + public static class removeTableProperty extends org.apache.thrift.ProcessFunction { public removeTableProperty() { super("removeTableProperty"); } @@ -2602,7 +2622,7 @@ public removeTableProperty_args getEmptyArgsInstance() { } @Override - protected boolean isOneway() { + public boolean isOneway() { return false; } @@ -2611,9 +2631,14 @@ protected boolean rethrowUnhandledExceptions() { return false; } + @Override + public removeTableProperty_result getEmptyResultInstance() { + return new removeTableProperty_result(); + } + @Override public removeTableProperty_result getResult(I iface, removeTableProperty_args args) throws org.apache.thrift.TException { - removeTableProperty_result result = new removeTableProperty_result(); + removeTableProperty_result result = getEmptyResultInstance(); try { iface.removeTableProperty(args.tinfo, args.credentials, args.tableName, args.property); } catch (org.apache.accumulo.core.clientImpl.thrift.ThriftSecurityException sec) { @@ -2627,7 +2652,7 @@ public removeTableProperty_result getResult(I iface, removeTableProperty_args ar } } - public static class setNamespaceProperty extends org.apache.thrift.ProcessFunction { + public static class setNamespaceProperty extends org.apache.thrift.ProcessFunction { public setNamespaceProperty() { super("setNamespaceProperty"); } @@ -2638,7 +2663,7 @@ public setNamespaceProperty_args getEmptyArgsInstance() { } @Override - protected boolean isOneway() { + public boolean isOneway() { return false; } @@ -2647,9 +2672,14 @@ protected boolean rethrowUnhandledExceptions() { return false; } + @Override + public setNamespaceProperty_result getEmptyResultInstance() { + return new setNamespaceProperty_result(); + } + @Override public setNamespaceProperty_result getResult(I iface, setNamespaceProperty_args args) throws org.apache.thrift.TException { - setNamespaceProperty_result result = new setNamespaceProperty_result(); + setNamespaceProperty_result result = getEmptyResultInstance(); try { iface.setNamespaceProperty(args.tinfo, args.credentials, args.ns, args.property, args.value); } catch (org.apache.accumulo.core.clientImpl.thrift.ThriftSecurityException sec) { @@ -2665,7 +2695,7 @@ public setNamespaceProperty_result getResult(I iface, setNamespaceProperty_args } } - public static class modifyNamespaceProperties extends org.apache.thrift.ProcessFunction { + public static class modifyNamespaceProperties extends org.apache.thrift.ProcessFunction { public modifyNamespaceProperties() { super("modifyNamespaceProperties"); } @@ -2676,7 +2706,7 @@ public modifyNamespaceProperties_args getEmptyArgsInstance() { } @Override - protected boolean isOneway() { + public boolean isOneway() { return false; } @@ -2685,9 +2715,14 @@ protected boolean rethrowUnhandledExceptions() { return false; } + @Override + public modifyNamespaceProperties_result getEmptyResultInstance() { + return new modifyNamespaceProperties_result(); + } + @Override public modifyNamespaceProperties_result getResult(I iface, modifyNamespaceProperties_args args) throws org.apache.thrift.TException { - modifyNamespaceProperties_result result = new modifyNamespaceProperties_result(); + modifyNamespaceProperties_result result = getEmptyResultInstance(); try { iface.modifyNamespaceProperties(args.tinfo, args.credentials, args.ns, args.vProperties); } catch (org.apache.accumulo.core.clientImpl.thrift.ThriftSecurityException sec) { @@ -2705,7 +2740,7 @@ public modifyNamespaceProperties_result getResult(I iface, modifyNamespaceProper } } - public static class removeNamespaceProperty extends org.apache.thrift.ProcessFunction { + public static class removeNamespaceProperty extends org.apache.thrift.ProcessFunction { public removeNamespaceProperty() { super("removeNamespaceProperty"); } @@ -2716,7 +2751,7 @@ public removeNamespaceProperty_args getEmptyArgsInstance() { } @Override - protected boolean isOneway() { + public boolean isOneway() { return false; } @@ -2725,9 +2760,14 @@ protected boolean rethrowUnhandledExceptions() { return false; } + @Override + public removeNamespaceProperty_result getEmptyResultInstance() { + return new removeNamespaceProperty_result(); + } + @Override public removeNamespaceProperty_result getResult(I iface, removeNamespaceProperty_args args) throws org.apache.thrift.TException { - removeNamespaceProperty_result result = new removeNamespaceProperty_result(); + removeNamespaceProperty_result result = getEmptyResultInstance(); try { iface.removeNamespaceProperty(args.tinfo, args.credentials, args.ns, args.property); } catch (org.apache.accumulo.core.clientImpl.thrift.ThriftSecurityException sec) { @@ -2741,7 +2781,7 @@ public removeNamespaceProperty_result getResult(I iface, removeNamespaceProperty } } - public static class setManagerGoalState extends org.apache.thrift.ProcessFunction { + public static class setManagerGoalState extends org.apache.thrift.ProcessFunction { public setManagerGoalState() { super("setManagerGoalState"); } @@ -2752,7 +2792,7 @@ public setManagerGoalState_args getEmptyArgsInstance() { } @Override - protected boolean isOneway() { + public boolean isOneway() { return false; } @@ -2761,9 +2801,14 @@ protected boolean rethrowUnhandledExceptions() { return false; } + @Override + public setManagerGoalState_result getEmptyResultInstance() { + return new setManagerGoalState_result(); + } + @Override public setManagerGoalState_result getResult(I iface, setManagerGoalState_args args) throws org.apache.thrift.TException { - setManagerGoalState_result result = new setManagerGoalState_result(); + setManagerGoalState_result result = getEmptyResultInstance(); try { iface.setManagerGoalState(args.tinfo, args.credentials, args.state); } catch (org.apache.accumulo.core.clientImpl.thrift.ThriftSecurityException sec) { @@ -2775,7 +2820,7 @@ public setManagerGoalState_result getResult(I iface, setManagerGoalState_args ar } } - public static class shutdown extends org.apache.thrift.ProcessFunction { + public static class shutdown extends org.apache.thrift.ProcessFunction { public shutdown() { super("shutdown"); } @@ -2786,7 +2831,7 @@ public shutdown_args getEmptyArgsInstance() { } @Override - protected boolean isOneway() { + public boolean isOneway() { return false; } @@ -2795,9 +2840,14 @@ protected boolean rethrowUnhandledExceptions() { return false; } + @Override + public shutdown_result getEmptyResultInstance() { + return new shutdown_result(); + } + @Override public shutdown_result getResult(I iface, shutdown_args args) throws org.apache.thrift.TException { - shutdown_result result = new shutdown_result(); + shutdown_result result = getEmptyResultInstance(); try { iface.shutdown(args.tinfo, args.credentials, args.stopTabletServers); } catch (org.apache.accumulo.core.clientImpl.thrift.ThriftSecurityException sec) { @@ -2809,7 +2859,7 @@ public shutdown_result getResult(I iface, shutdown_args args) throws org.apache. } } - public static class shutdownTabletServer extends org.apache.thrift.ProcessFunction { + public static class shutdownTabletServer extends org.apache.thrift.ProcessFunction { public shutdownTabletServer() { super("shutdownTabletServer"); } @@ -2820,7 +2870,7 @@ public shutdownTabletServer_args getEmptyArgsInstance() { } @Override - protected boolean isOneway() { + public boolean isOneway() { return false; } @@ -2829,9 +2879,14 @@ protected boolean rethrowUnhandledExceptions() { return false; } + @Override + public shutdownTabletServer_result getEmptyResultInstance() { + return new shutdownTabletServer_result(); + } + @Override public shutdownTabletServer_result getResult(I iface, shutdownTabletServer_args args) throws org.apache.thrift.TException { - shutdownTabletServer_result result = new shutdownTabletServer_result(); + shutdownTabletServer_result result = getEmptyResultInstance(); try { iface.shutdownTabletServer(args.tinfo, args.credentials, args.tabletServer, args.force); } catch (org.apache.accumulo.core.clientImpl.thrift.ThriftSecurityException sec) { @@ -2843,7 +2898,7 @@ public shutdownTabletServer_result getResult(I iface, shutdownTabletServer_args } } - public static class tabletServerStopping extends org.apache.thrift.ProcessFunction { + public static class tabletServerStopping extends org.apache.thrift.ProcessFunction { public tabletServerStopping() { super("tabletServerStopping"); } @@ -2854,7 +2909,7 @@ public tabletServerStopping_args getEmptyArgsInstance() { } @Override - protected boolean isOneway() { + public boolean isOneway() { return false; } @@ -2863,9 +2918,14 @@ protected boolean rethrowUnhandledExceptions() { return false; } + @Override + public tabletServerStopping_result getEmptyResultInstance() { + return new tabletServerStopping_result(); + } + @Override public tabletServerStopping_result getResult(I iface, tabletServerStopping_args args) throws org.apache.thrift.TException { - tabletServerStopping_result result = new tabletServerStopping_result(); + tabletServerStopping_result result = getEmptyResultInstance(); try { iface.tabletServerStopping(args.tinfo, args.credentials, args.tabletServer, args.resourceGroup); } catch (org.apache.accumulo.core.clientImpl.thrift.ThriftSecurityException sec) { @@ -2877,7 +2937,7 @@ public tabletServerStopping_result getResult(I iface, tabletServerStopping_args } } - public static class setSystemProperty extends org.apache.thrift.ProcessFunction { + public static class setSystemProperty extends org.apache.thrift.ProcessFunction { public setSystemProperty() { super("setSystemProperty"); } @@ -2888,7 +2948,7 @@ public setSystemProperty_args getEmptyArgsInstance() { } @Override - protected boolean isOneway() { + public boolean isOneway() { return false; } @@ -2897,9 +2957,14 @@ protected boolean rethrowUnhandledExceptions() { return false; } + @Override + public setSystemProperty_result getEmptyResultInstance() { + return new setSystemProperty_result(); + } + @Override public setSystemProperty_result getResult(I iface, setSystemProperty_args args) throws org.apache.thrift.TException { - setSystemProperty_result result = new setSystemProperty_result(); + setSystemProperty_result result = getEmptyResultInstance(); try { iface.setSystemProperty(args.tinfo, args.credentials, args.property, args.value); } catch (org.apache.accumulo.core.clientImpl.thrift.ThriftSecurityException sec) { @@ -2913,7 +2978,7 @@ public setSystemProperty_result getResult(I iface, setSystemProperty_args args) } } - public static class modifySystemProperties extends org.apache.thrift.ProcessFunction { + public static class modifySystemProperties extends org.apache.thrift.ProcessFunction { public modifySystemProperties() { super("modifySystemProperties"); } @@ -2924,7 +2989,7 @@ public modifySystemProperties_args getEmptyArgsInstance() { } @Override - protected boolean isOneway() { + public boolean isOneway() { return false; } @@ -2933,9 +2998,14 @@ protected boolean rethrowUnhandledExceptions() { return false; } + @Override + public modifySystemProperties_result getEmptyResultInstance() { + return new modifySystemProperties_result(); + } + @Override public modifySystemProperties_result getResult(I iface, modifySystemProperties_args args) throws org.apache.thrift.TException { - modifySystemProperties_result result = new modifySystemProperties_result(); + modifySystemProperties_result result = getEmptyResultInstance(); try { iface.modifySystemProperties(args.tinfo, args.credentials, args.vProperties); } catch (org.apache.accumulo.core.clientImpl.thrift.ThriftSecurityException sec) { @@ -2951,7 +3021,7 @@ public modifySystemProperties_result getResult(I iface, modifySystemProperties_a } } - public static class removeSystemProperty extends org.apache.thrift.ProcessFunction { + public static class removeSystemProperty extends org.apache.thrift.ProcessFunction { public removeSystemProperty() { super("removeSystemProperty"); } @@ -2962,7 +3032,7 @@ public removeSystemProperty_args getEmptyArgsInstance() { } @Override - protected boolean isOneway() { + public boolean isOneway() { return false; } @@ -2971,9 +3041,14 @@ protected boolean rethrowUnhandledExceptions() { return false; } + @Override + public removeSystemProperty_result getEmptyResultInstance() { + return new removeSystemProperty_result(); + } + @Override public removeSystemProperty_result getResult(I iface, removeSystemProperty_args args) throws org.apache.thrift.TException { - removeSystemProperty_result result = new removeSystemProperty_result(); + removeSystemProperty_result result = getEmptyResultInstance(); try { iface.removeSystemProperty(args.tinfo, args.credentials, args.property); } catch (org.apache.accumulo.core.clientImpl.thrift.ThriftSecurityException sec) { @@ -2985,7 +3060,7 @@ public removeSystemProperty_result getResult(I iface, removeSystemProperty_args } } - public static class createResourceGroupNode extends org.apache.thrift.ProcessFunction { + public static class createResourceGroupNode extends org.apache.thrift.ProcessFunction { public createResourceGroupNode() { super("createResourceGroupNode"); } @@ -2996,7 +3071,7 @@ public createResourceGroupNode_args getEmptyArgsInstance() { } @Override - protected boolean isOneway() { + public boolean isOneway() { return false; } @@ -3005,9 +3080,14 @@ protected boolean rethrowUnhandledExceptions() { return false; } + @Override + public createResourceGroupNode_result getEmptyResultInstance() { + return new createResourceGroupNode_result(); + } + @Override public createResourceGroupNode_result getResult(I iface, createResourceGroupNode_args args) throws org.apache.thrift.TException { - createResourceGroupNode_result result = new createResourceGroupNode_result(); + createResourceGroupNode_result result = getEmptyResultInstance(); try { iface.createResourceGroupNode(args.tinfo, args.credentials, args.resourceGroup); } catch (org.apache.accumulo.core.clientImpl.thrift.ThriftSecurityException sec) { @@ -3019,7 +3099,7 @@ public createResourceGroupNode_result getResult(I iface, createResourceGroupNode } } - public static class removeResourceGroupNode extends org.apache.thrift.ProcessFunction { + public static class removeResourceGroupNode extends org.apache.thrift.ProcessFunction { public removeResourceGroupNode() { super("removeResourceGroupNode"); } @@ -3030,7 +3110,7 @@ public removeResourceGroupNode_args getEmptyArgsInstance() { } @Override - protected boolean isOneway() { + public boolean isOneway() { return false; } @@ -3039,9 +3119,14 @@ protected boolean rethrowUnhandledExceptions() { return false; } + @Override + public removeResourceGroupNode_result getEmptyResultInstance() { + return new removeResourceGroupNode_result(); + } + @Override public removeResourceGroupNode_result getResult(I iface, removeResourceGroupNode_args args) throws org.apache.thrift.TException { - removeResourceGroupNode_result result = new removeResourceGroupNode_result(); + removeResourceGroupNode_result result = getEmptyResultInstance(); try { iface.removeResourceGroupNode(args.tinfo, args.credentials, args.resourceGroup); } catch (org.apache.accumulo.core.clientImpl.thrift.ThriftSecurityException sec) { @@ -3055,7 +3140,7 @@ public removeResourceGroupNode_result getResult(I iface, removeResourceGroupNode } } - public static class setResourceGroupProperty extends org.apache.thrift.ProcessFunction { + public static class setResourceGroupProperty extends org.apache.thrift.ProcessFunction { public setResourceGroupProperty() { super("setResourceGroupProperty"); } @@ -3066,7 +3151,7 @@ public setResourceGroupProperty_args getEmptyArgsInstance() { } @Override - protected boolean isOneway() { + public boolean isOneway() { return false; } @@ -3075,9 +3160,14 @@ protected boolean rethrowUnhandledExceptions() { return false; } + @Override + public setResourceGroupProperty_result getEmptyResultInstance() { + return new setResourceGroupProperty_result(); + } + @Override public setResourceGroupProperty_result getResult(I iface, setResourceGroupProperty_args args) throws org.apache.thrift.TException { - setResourceGroupProperty_result result = new setResourceGroupProperty_result(); + setResourceGroupProperty_result result = getEmptyResultInstance(); try { iface.setResourceGroupProperty(args.tinfo, args.credentials, args.resourceGroup, args.property, args.value); } catch (org.apache.accumulo.core.clientImpl.thrift.ThriftSecurityException sec) { @@ -3093,7 +3183,7 @@ public setResourceGroupProperty_result getResult(I iface, setResourceGroupProper } } - public static class modifyResourceGroupProperties extends org.apache.thrift.ProcessFunction { + public static class modifyResourceGroupProperties extends org.apache.thrift.ProcessFunction { public modifyResourceGroupProperties() { super("modifyResourceGroupProperties"); } @@ -3104,7 +3194,7 @@ public modifyResourceGroupProperties_args getEmptyArgsInstance() { } @Override - protected boolean isOneway() { + public boolean isOneway() { return false; } @@ -3113,9 +3203,14 @@ protected boolean rethrowUnhandledExceptions() { return false; } + @Override + public modifyResourceGroupProperties_result getEmptyResultInstance() { + return new modifyResourceGroupProperties_result(); + } + @Override public modifyResourceGroupProperties_result getResult(I iface, modifyResourceGroupProperties_args args) throws org.apache.thrift.TException { - modifyResourceGroupProperties_result result = new modifyResourceGroupProperties_result(); + modifyResourceGroupProperties_result result = getEmptyResultInstance(); try { iface.modifyResourceGroupProperties(args.tinfo, args.credentials, args.resourceGroup, args.vProperties); } catch (org.apache.accumulo.core.clientImpl.thrift.ThriftSecurityException sec) { @@ -3133,7 +3228,7 @@ public modifyResourceGroupProperties_result getResult(I iface, modifyResourceGro } } - public static class removeResourceGroupProperty extends org.apache.thrift.ProcessFunction { + public static class removeResourceGroupProperty extends org.apache.thrift.ProcessFunction { public removeResourceGroupProperty() { super("removeResourceGroupProperty"); } @@ -3144,7 +3239,7 @@ public removeResourceGroupProperty_args getEmptyArgsInstance() { } @Override - protected boolean isOneway() { + public boolean isOneway() { return false; } @@ -3153,9 +3248,14 @@ protected boolean rethrowUnhandledExceptions() { return false; } + @Override + public removeResourceGroupProperty_result getEmptyResultInstance() { + return new removeResourceGroupProperty_result(); + } + @Override public removeResourceGroupProperty_result getResult(I iface, removeResourceGroupProperty_args args) throws org.apache.thrift.TException { - removeResourceGroupProperty_result result = new removeResourceGroupProperty_result(); + removeResourceGroupProperty_result result = getEmptyResultInstance(); try { iface.removeResourceGroupProperty(args.tinfo, args.credentials, args.resourceGroup, args.property); } catch (org.apache.accumulo.core.clientImpl.thrift.ThriftSecurityException sec) { @@ -3169,7 +3269,7 @@ public removeResourceGroupProperty_result getResult(I iface, removeResourceGroup } } - public static class getManagerStats extends org.apache.thrift.ProcessFunction { + public static class getManagerStats extends org.apache.thrift.ProcessFunction { public getManagerStats() { super("getManagerStats"); } @@ -3180,7 +3280,7 @@ public getManagerStats_args getEmptyArgsInstance() { } @Override - protected boolean isOneway() { + public boolean isOneway() { return false; } @@ -3189,9 +3289,14 @@ protected boolean rethrowUnhandledExceptions() { return false; } + @Override + public getManagerStats_result getEmptyResultInstance() { + return new getManagerStats_result(); + } + @Override public getManagerStats_result getResult(I iface, getManagerStats_args args) throws org.apache.thrift.TException { - getManagerStats_result result = new getManagerStats_result(); + getManagerStats_result result = getEmptyResultInstance(); try { result.success = iface.getManagerStats(args.tinfo, args.credentials); } catch (org.apache.accumulo.core.clientImpl.thrift.ThriftSecurityException sec) { @@ -3203,7 +3308,7 @@ public getManagerStats_result getResult(I iface, getManagerStats_args args) thro } } - public static class waitForBalance extends org.apache.thrift.ProcessFunction { + public static class waitForBalance extends org.apache.thrift.ProcessFunction { public waitForBalance() { super("waitForBalance"); } @@ -3214,7 +3319,7 @@ public waitForBalance_args getEmptyArgsInstance() { } @Override - protected boolean isOneway() { + public boolean isOneway() { return false; } @@ -3223,9 +3328,14 @@ protected boolean rethrowUnhandledExceptions() { return false; } + @Override + public waitForBalance_result getEmptyResultInstance() { + return new waitForBalance_result(); + } + @Override public waitForBalance_result getResult(I iface, waitForBalance_args args) throws org.apache.thrift.TException { - waitForBalance_result result = new waitForBalance_result(); + waitForBalance_result result = getEmptyResultInstance(); try { iface.waitForBalance(args.tinfo); } catch (org.apache.accumulo.core.clientImpl.thrift.ThriftNotActiveServiceException tnase) { @@ -3235,7 +3345,7 @@ public waitForBalance_result getResult(I iface, waitForBalance_args args) throws } } - public static class reportTabletStatus extends org.apache.thrift.ProcessFunction { + public static class reportTabletStatus extends org.apache.thrift.ProcessFunction { public reportTabletStatus() { super("reportTabletStatus"); } @@ -3246,7 +3356,7 @@ public reportTabletStatus_args getEmptyArgsInstance() { } @Override - protected boolean isOneway() { + public boolean isOneway() { return true; } @@ -3255,6 +3365,11 @@ protected boolean rethrowUnhandledExceptions() { return false; } + @Override + public org.apache.thrift.TBase getEmptyResultInstance() { + return null; + } + @Override public org.apache.thrift.TBase getResult(I iface, reportTabletStatus_args args) throws org.apache.thrift.TException { iface.reportTabletStatus(args.tinfo, args.credentials, args.serverName, args.status, args.tablet); @@ -3262,7 +3377,7 @@ public org.apache.thrift.TBase getResult(I iface, reportTabletStatus_args args) } } - public static class getActiveTservers extends org.apache.thrift.ProcessFunction { + public static class getActiveTservers extends org.apache.thrift.ProcessFunction { public getActiveTservers() { super("getActiveTservers"); } @@ -3273,7 +3388,7 @@ public getActiveTservers_args getEmptyArgsInstance() { } @Override - protected boolean isOneway() { + public boolean isOneway() { return false; } @@ -3282,9 +3397,14 @@ protected boolean rethrowUnhandledExceptions() { return false; } + @Override + public getActiveTservers_result getEmptyResultInstance() { + return new getActiveTservers_result(); + } + @Override public getActiveTservers_result getResult(I iface, getActiveTservers_args args) throws org.apache.thrift.TException { - getActiveTservers_result result = new getActiveTservers_result(); + getActiveTservers_result result = getEmptyResultInstance(); try { result.success = iface.getActiveTservers(args.tinfo, args.credentials); } catch (org.apache.accumulo.core.clientImpl.thrift.ThriftSecurityException sec) { @@ -3296,7 +3416,7 @@ public getActiveTservers_result getResult(I iface, getActiveTservers_args args) } } - public static class getDelegationToken extends org.apache.thrift.ProcessFunction { + public static class getDelegationToken extends org.apache.thrift.ProcessFunction { public getDelegationToken() { super("getDelegationToken"); } @@ -3307,7 +3427,7 @@ public getDelegationToken_args getEmptyArgsInstance() { } @Override - protected boolean isOneway() { + public boolean isOneway() { return false; } @@ -3316,9 +3436,14 @@ protected boolean rethrowUnhandledExceptions() { return false; } + @Override + public getDelegationToken_result getEmptyResultInstance() { + return new getDelegationToken_result(); + } + @Override public getDelegationToken_result getResult(I iface, getDelegationToken_args args) throws org.apache.thrift.TException { - getDelegationToken_result result = new getDelegationToken_result(); + getDelegationToken_result result = getEmptyResultInstance(); try { result.success = iface.getDelegationToken(args.tinfo, args.credentials, args.cfg); } catch (org.apache.accumulo.core.clientImpl.thrift.ThriftSecurityException sec) { @@ -3330,7 +3455,7 @@ public getDelegationToken_result getResult(I iface, getDelegationToken_args args } } - public static class requestTabletHosting extends org.apache.thrift.ProcessFunction { + public static class requestTabletHosting extends org.apache.thrift.ProcessFunction { public requestTabletHosting() { super("requestTabletHosting"); } @@ -3341,7 +3466,7 @@ public requestTabletHosting_args getEmptyArgsInstance() { } @Override - protected boolean isOneway() { + public boolean isOneway() { return false; } @@ -3350,9 +3475,14 @@ protected boolean rethrowUnhandledExceptions() { return false; } + @Override + public requestTabletHosting_result getEmptyResultInstance() { + return new requestTabletHosting_result(); + } + @Override public requestTabletHosting_result getResult(I iface, requestTabletHosting_args args) throws org.apache.thrift.TException { - requestTabletHosting_result result = new requestTabletHosting_result(); + requestTabletHosting_result result = getEmptyResultInstance(); try { iface.requestTabletHosting(args.tinfo, args.credentials, args.tableId, args.extents); } catch (org.apache.accumulo.core.clientImpl.thrift.ThriftSecurityException sec) { @@ -3366,7 +3496,7 @@ public requestTabletHosting_result getResult(I iface, requestTabletHosting_args } } - public static class updateTabletMergeability extends org.apache.thrift.ProcessFunction { + public static class updateTabletMergeability extends org.apache.thrift.ProcessFunction { public updateTabletMergeability() { super("updateTabletMergeability"); } @@ -3377,7 +3507,7 @@ public updateTabletMergeability_args getEmptyArgsInstance() { } @Override - protected boolean isOneway() { + public boolean isOneway() { return false; } @@ -3386,9 +3516,14 @@ protected boolean rethrowUnhandledExceptions() { return false; } + @Override + public updateTabletMergeability_result getEmptyResultInstance() { + return new updateTabletMergeability_result(); + } + @Override public updateTabletMergeability_result getResult(I iface, updateTabletMergeability_args args) throws org.apache.thrift.TException { - updateTabletMergeability_result result = new updateTabletMergeability_result(); + updateTabletMergeability_result result = getEmptyResultInstance(); try { result.success = iface.updateTabletMergeability(args.tinfo, args.credentials, args.tableName, args.splits); } catch (org.apache.accumulo.core.clientImpl.thrift.ThriftSecurityException sec) { @@ -3402,7 +3537,7 @@ public updateTabletMergeability_result getResult(I iface, updateTabletMergeabili } } - public static class getManagerTimeNanos extends org.apache.thrift.ProcessFunction { + public static class getManagerTimeNanos extends org.apache.thrift.ProcessFunction { public getManagerTimeNanos() { super("getManagerTimeNanos"); } @@ -3413,7 +3548,7 @@ public getManagerTimeNanos_args getEmptyArgsInstance() { } @Override - protected boolean isOneway() { + public boolean isOneway() { return false; } @@ -3422,9 +3557,14 @@ protected boolean rethrowUnhandledExceptions() { return false; } + @Override + public getManagerTimeNanos_result getEmptyResultInstance() { + return new getManagerTimeNanos_result(); + } + @Override public getManagerTimeNanos_result getResult(I iface, getManagerTimeNanos_args args) throws org.apache.thrift.TException { - getManagerTimeNanos_result result = new getManagerTimeNanos_result(); + getManagerTimeNanos_result result = getEmptyResultInstance(); try { result.success = iface.getManagerTimeNanos(args.tinfo, args.credentials); result.setSuccessIsSet(true); @@ -3437,7 +3577,7 @@ public getManagerTimeNanos_result getResult(I iface, getManagerTimeNanos_args ar } } - public static class processEvents extends org.apache.thrift.ProcessFunction { + public static class processEvents extends org.apache.thrift.ProcessFunction { public processEvents() { super("processEvents"); } @@ -3448,7 +3588,7 @@ public processEvents_args getEmptyArgsInstance() { } @Override - protected boolean isOneway() { + public boolean isOneway() { return false; } @@ -3457,9 +3597,14 @@ protected boolean rethrowUnhandledExceptions() { return false; } + @Override + public processEvents_result getEmptyResultInstance() { + return new processEvents_result(); + } + @Override public processEvents_result getResult(I iface, processEvents_args args) throws org.apache.thrift.TException { - processEvents_result result = new processEvents_result(); + processEvents_result result = getEmptyResultInstance(); try { iface.processEvents(args.tinfo, args.credentials, args.events); } catch (org.apache.accumulo.core.clientImpl.thrift.ThriftSecurityException sec) { @@ -3476,14 +3621,14 @@ public processEvents_result getResult(I iface, processEvents_args args) throws o public static class AsyncProcessor extends org.apache.thrift.TBaseAsyncProcessor { private static final org.slf4j.Logger _LOGGER = org.slf4j.LoggerFactory.getLogger(AsyncProcessor.class.getName()); public AsyncProcessor(I iface) { - super(iface, getProcessMap(new java.util.HashMap>())); + super(iface, getProcessMap(new java.util.HashMap>())); } - protected AsyncProcessor(I iface, java.util.Map> processMap) { + protected AsyncProcessor(I iface, java.util.Map> processMap) { super(iface, getProcessMap(processMap)); } - private static java.util.Map> getProcessMap(java.util.Map> processMap) { + private static java.util.Map> getProcessMap(java.util.Map> processMap) { processMap.put("initiateFlush", new initiateFlush()); processMap.put("waitForFlush", new waitForFlush()); processMap.put("setTableProperty", new setTableProperty()); @@ -3516,11 +3661,16 @@ protected AsyncProcessor(I iface, java.util.Map extends org.apache.thrift.AsyncProcessFunction { + public static class initiateFlush extends org.apache.thrift.AsyncProcessFunction { public initiateFlush() { super("initiateFlush"); } + @Override + public initiateFlush_result getEmptyResultInstance() { + return new initiateFlush_result(); + } + @Override public initiateFlush_args getEmptyArgsInstance() { return new initiateFlush_args(); @@ -3586,7 +3736,7 @@ public void onError(java.lang.Exception e) { } @Override - protected boolean isOneway() { + public boolean isOneway() { return false; } @@ -3596,11 +3746,16 @@ public void start(I iface, initiateFlush_args args, org.apache.thrift.async.Asyn } } - public static class waitForFlush extends org.apache.thrift.AsyncProcessFunction { + public static class waitForFlush extends org.apache.thrift.AsyncProcessFunction { public waitForFlush() { super("waitForFlush"); } + @Override + public waitForFlush_result getEmptyResultInstance() { + return new waitForFlush_result(); + } + @Override public waitForFlush_args getEmptyArgsInstance() { return new waitForFlush_args(); @@ -3664,7 +3819,7 @@ public void onError(java.lang.Exception e) { } @Override - protected boolean isOneway() { + public boolean isOneway() { return false; } @@ -3674,11 +3829,16 @@ public void start(I iface, waitForFlush_args args, org.apache.thrift.async.Async } } - public static class setTableProperty extends org.apache.thrift.AsyncProcessFunction { + public static class setTableProperty extends org.apache.thrift.AsyncProcessFunction { public setTableProperty() { super("setTableProperty"); } + @Override + public setTableProperty_result getEmptyResultInstance() { + return new setTableProperty_result(); + } + @Override public setTableProperty_args getEmptyArgsInstance() { return new setTableProperty_args(); @@ -3746,7 +3906,7 @@ public void onError(java.lang.Exception e) { } @Override - protected boolean isOneway() { + public boolean isOneway() { return false; } @@ -3756,11 +3916,16 @@ public void start(I iface, setTableProperty_args args, org.apache.thrift.async.A } } - public static class modifyTableProperties extends org.apache.thrift.AsyncProcessFunction { + public static class modifyTableProperties extends org.apache.thrift.AsyncProcessFunction { public modifyTableProperties() { super("modifyTableProperties"); } + @Override + public modifyTableProperties_result getEmptyResultInstance() { + return new modifyTableProperties_result(); + } + @Override public modifyTableProperties_args getEmptyArgsInstance() { return new modifyTableProperties_args(); @@ -3832,7 +3997,7 @@ public void onError(java.lang.Exception e) { } @Override - protected boolean isOneway() { + public boolean isOneway() { return false; } @@ -3842,11 +4007,16 @@ public void start(I iface, modifyTableProperties_args args, org.apache.thrift.as } } - public static class removeTableProperty extends org.apache.thrift.AsyncProcessFunction { + public static class removeTableProperty extends org.apache.thrift.AsyncProcessFunction { public removeTableProperty() { super("removeTableProperty"); } + @Override + public removeTableProperty_result getEmptyResultInstance() { + return new removeTableProperty_result(); + } + @Override public removeTableProperty_args getEmptyArgsInstance() { return new removeTableProperty_args(); @@ -3910,7 +4080,7 @@ public void onError(java.lang.Exception e) { } @Override - protected boolean isOneway() { + public boolean isOneway() { return false; } @@ -3920,11 +4090,16 @@ public void start(I iface, removeTableProperty_args args, org.apache.thrift.asyn } } - public static class setNamespaceProperty extends org.apache.thrift.AsyncProcessFunction { + public static class setNamespaceProperty extends org.apache.thrift.AsyncProcessFunction { public setNamespaceProperty() { super("setNamespaceProperty"); } + @Override + public setNamespaceProperty_result getEmptyResultInstance() { + return new setNamespaceProperty_result(); + } + @Override public setNamespaceProperty_args getEmptyArgsInstance() { return new setNamespaceProperty_args(); @@ -3992,7 +4167,7 @@ public void onError(java.lang.Exception e) { } @Override - protected boolean isOneway() { + public boolean isOneway() { return false; } @@ -4002,11 +4177,16 @@ public void start(I iface, setNamespaceProperty_args args, org.apache.thrift.asy } } - public static class modifyNamespaceProperties extends org.apache.thrift.AsyncProcessFunction { + public static class modifyNamespaceProperties extends org.apache.thrift.AsyncProcessFunction { public modifyNamespaceProperties() { super("modifyNamespaceProperties"); } + @Override + public modifyNamespaceProperties_result getEmptyResultInstance() { + return new modifyNamespaceProperties_result(); + } + @Override public modifyNamespaceProperties_args getEmptyArgsInstance() { return new modifyNamespaceProperties_args(); @@ -4078,7 +4258,7 @@ public void onError(java.lang.Exception e) { } @Override - protected boolean isOneway() { + public boolean isOneway() { return false; } @@ -4088,11 +4268,16 @@ public void start(I iface, modifyNamespaceProperties_args args, org.apache.thrif } } - public static class removeNamespaceProperty extends org.apache.thrift.AsyncProcessFunction { + public static class removeNamespaceProperty extends org.apache.thrift.AsyncProcessFunction { public removeNamespaceProperty() { super("removeNamespaceProperty"); } + @Override + public removeNamespaceProperty_result getEmptyResultInstance() { + return new removeNamespaceProperty_result(); + } + @Override public removeNamespaceProperty_args getEmptyArgsInstance() { return new removeNamespaceProperty_args(); @@ -4156,7 +4341,7 @@ public void onError(java.lang.Exception e) { } @Override - protected boolean isOneway() { + public boolean isOneway() { return false; } @@ -4166,11 +4351,16 @@ public void start(I iface, removeNamespaceProperty_args args, org.apache.thrift. } } - public static class setManagerGoalState extends org.apache.thrift.AsyncProcessFunction { + public static class setManagerGoalState extends org.apache.thrift.AsyncProcessFunction { public setManagerGoalState() { super("setManagerGoalState"); } + @Override + public setManagerGoalState_result getEmptyResultInstance() { + return new setManagerGoalState_result(); + } + @Override public setManagerGoalState_args getEmptyArgsInstance() { return new setManagerGoalState_args(); @@ -4230,7 +4420,7 @@ public void onError(java.lang.Exception e) { } @Override - protected boolean isOneway() { + public boolean isOneway() { return false; } @@ -4240,11 +4430,16 @@ public void start(I iface, setManagerGoalState_args args, org.apache.thrift.asyn } } - public static class shutdown extends org.apache.thrift.AsyncProcessFunction { + public static class shutdown extends org.apache.thrift.AsyncProcessFunction { public shutdown() { super("shutdown"); } + @Override + public shutdown_result getEmptyResultInstance() { + return new shutdown_result(); + } + @Override public shutdown_args getEmptyArgsInstance() { return new shutdown_args(); @@ -4304,7 +4499,7 @@ public void onError(java.lang.Exception e) { } @Override - protected boolean isOneway() { + public boolean isOneway() { return false; } @@ -4314,11 +4509,16 @@ public void start(I iface, shutdown_args args, org.apache.thrift.async.AsyncMeth } } - public static class shutdownTabletServer extends org.apache.thrift.AsyncProcessFunction { + public static class shutdownTabletServer extends org.apache.thrift.AsyncProcessFunction { public shutdownTabletServer() { super("shutdownTabletServer"); } + @Override + public shutdownTabletServer_result getEmptyResultInstance() { + return new shutdownTabletServer_result(); + } + @Override public shutdownTabletServer_args getEmptyArgsInstance() { return new shutdownTabletServer_args(); @@ -4378,7 +4578,7 @@ public void onError(java.lang.Exception e) { } @Override - protected boolean isOneway() { + public boolean isOneway() { return false; } @@ -4388,11 +4588,16 @@ public void start(I iface, shutdownTabletServer_args args, org.apache.thrift.asy } } - public static class tabletServerStopping extends org.apache.thrift.AsyncProcessFunction { + public static class tabletServerStopping extends org.apache.thrift.AsyncProcessFunction { public tabletServerStopping() { super("tabletServerStopping"); } + @Override + public tabletServerStopping_result getEmptyResultInstance() { + return new tabletServerStopping_result(); + } + @Override public tabletServerStopping_args getEmptyArgsInstance() { return new tabletServerStopping_args(); @@ -4452,7 +4657,7 @@ public void onError(java.lang.Exception e) { } @Override - protected boolean isOneway() { + public boolean isOneway() { return false; } @@ -4462,11 +4667,16 @@ public void start(I iface, tabletServerStopping_args args, org.apache.thrift.asy } } - public static class setSystemProperty extends org.apache.thrift.AsyncProcessFunction { + public static class setSystemProperty extends org.apache.thrift.AsyncProcessFunction { public setSystemProperty() { super("setSystemProperty"); } + @Override + public setSystemProperty_result getEmptyResultInstance() { + return new setSystemProperty_result(); + } + @Override public setSystemProperty_args getEmptyArgsInstance() { return new setSystemProperty_args(); @@ -4530,7 +4740,7 @@ public void onError(java.lang.Exception e) { } @Override - protected boolean isOneway() { + public boolean isOneway() { return false; } @@ -4540,11 +4750,16 @@ public void start(I iface, setSystemProperty_args args, org.apache.thrift.async. } } - public static class modifySystemProperties extends org.apache.thrift.AsyncProcessFunction { + public static class modifySystemProperties extends org.apache.thrift.AsyncProcessFunction { public modifySystemProperties() { super("modifySystemProperties"); } + @Override + public modifySystemProperties_result getEmptyResultInstance() { + return new modifySystemProperties_result(); + } + @Override public modifySystemProperties_args getEmptyArgsInstance() { return new modifySystemProperties_args(); @@ -4612,7 +4827,7 @@ public void onError(java.lang.Exception e) { } @Override - protected boolean isOneway() { + public boolean isOneway() { return false; } @@ -4622,11 +4837,16 @@ public void start(I iface, modifySystemProperties_args args, org.apache.thrift.a } } - public static class removeSystemProperty extends org.apache.thrift.AsyncProcessFunction { + public static class removeSystemProperty extends org.apache.thrift.AsyncProcessFunction { public removeSystemProperty() { super("removeSystemProperty"); } + @Override + public removeSystemProperty_result getEmptyResultInstance() { + return new removeSystemProperty_result(); + } + @Override public removeSystemProperty_args getEmptyArgsInstance() { return new removeSystemProperty_args(); @@ -4686,7 +4906,7 @@ public void onError(java.lang.Exception e) { } @Override - protected boolean isOneway() { + public boolean isOneway() { return false; } @@ -4696,11 +4916,16 @@ public void start(I iface, removeSystemProperty_args args, org.apache.thrift.asy } } - public static class createResourceGroupNode extends org.apache.thrift.AsyncProcessFunction { + public static class createResourceGroupNode extends org.apache.thrift.AsyncProcessFunction { public createResourceGroupNode() { super("createResourceGroupNode"); } + @Override + public createResourceGroupNode_result getEmptyResultInstance() { + return new createResourceGroupNode_result(); + } + @Override public createResourceGroupNode_args getEmptyArgsInstance() { return new createResourceGroupNode_args(); @@ -4760,7 +4985,7 @@ public void onError(java.lang.Exception e) { } @Override - protected boolean isOneway() { + public boolean isOneway() { return false; } @@ -4770,11 +4995,16 @@ public void start(I iface, createResourceGroupNode_args args, org.apache.thrift. } } - public static class removeResourceGroupNode extends org.apache.thrift.AsyncProcessFunction { + public static class removeResourceGroupNode extends org.apache.thrift.AsyncProcessFunction { public removeResourceGroupNode() { super("removeResourceGroupNode"); } + @Override + public removeResourceGroupNode_result getEmptyResultInstance() { + return new removeResourceGroupNode_result(); + } + @Override public removeResourceGroupNode_args getEmptyArgsInstance() { return new removeResourceGroupNode_args(); @@ -4838,7 +5068,7 @@ public void onError(java.lang.Exception e) { } @Override - protected boolean isOneway() { + public boolean isOneway() { return false; } @@ -4848,11 +5078,16 @@ public void start(I iface, removeResourceGroupNode_args args, org.apache.thrift. } } - public static class setResourceGroupProperty extends org.apache.thrift.AsyncProcessFunction { + public static class setResourceGroupProperty extends org.apache.thrift.AsyncProcessFunction { public setResourceGroupProperty() { super("setResourceGroupProperty"); } + @Override + public setResourceGroupProperty_result getEmptyResultInstance() { + return new setResourceGroupProperty_result(); + } + @Override public setResourceGroupProperty_args getEmptyArgsInstance() { return new setResourceGroupProperty_args(); @@ -4920,7 +5155,7 @@ public void onError(java.lang.Exception e) { } @Override - protected boolean isOneway() { + public boolean isOneway() { return false; } @@ -4930,11 +5165,16 @@ public void start(I iface, setResourceGroupProperty_args args, org.apache.thrift } } - public static class modifyResourceGroupProperties extends org.apache.thrift.AsyncProcessFunction { + public static class modifyResourceGroupProperties extends org.apache.thrift.AsyncProcessFunction { public modifyResourceGroupProperties() { super("modifyResourceGroupProperties"); } + @Override + public modifyResourceGroupProperties_result getEmptyResultInstance() { + return new modifyResourceGroupProperties_result(); + } + @Override public modifyResourceGroupProperties_args getEmptyArgsInstance() { return new modifyResourceGroupProperties_args(); @@ -5006,7 +5246,7 @@ public void onError(java.lang.Exception e) { } @Override - protected boolean isOneway() { + public boolean isOneway() { return false; } @@ -5016,11 +5256,16 @@ public void start(I iface, modifyResourceGroupProperties_args args, org.apache.t } } - public static class removeResourceGroupProperty extends org.apache.thrift.AsyncProcessFunction { + public static class removeResourceGroupProperty extends org.apache.thrift.AsyncProcessFunction { public removeResourceGroupProperty() { super("removeResourceGroupProperty"); } + @Override + public removeResourceGroupProperty_result getEmptyResultInstance() { + return new removeResourceGroupProperty_result(); + } + @Override public removeResourceGroupProperty_args getEmptyArgsInstance() { return new removeResourceGroupProperty_args(); @@ -5084,7 +5329,7 @@ public void onError(java.lang.Exception e) { } @Override - protected boolean isOneway() { + public boolean isOneway() { return false; } @@ -5094,11 +5339,16 @@ public void start(I iface, removeResourceGroupProperty_args args, org.apache.thr } } - public static class getManagerStats extends org.apache.thrift.AsyncProcessFunction { + public static class getManagerStats extends org.apache.thrift.AsyncProcessFunction { public getManagerStats() { super("getManagerStats"); } + @Override + public getManagerStats_result getEmptyResultInstance() { + return new getManagerStats_result(); + } + @Override public getManagerStats_args getEmptyArgsInstance() { return new getManagerStats_args(); @@ -5159,7 +5409,7 @@ public void onError(java.lang.Exception e) { } @Override - protected boolean isOneway() { + public boolean isOneway() { return false; } @@ -5169,11 +5419,16 @@ public void start(I iface, getManagerStats_args args, org.apache.thrift.async.As } } - public static class waitForBalance extends org.apache.thrift.AsyncProcessFunction { + public static class waitForBalance extends org.apache.thrift.AsyncProcessFunction { public waitForBalance() { super("waitForBalance"); } + @Override + public waitForBalance_result getEmptyResultInstance() { + return new waitForBalance_result(); + } + @Override public waitForBalance_args getEmptyArgsInstance() { return new waitForBalance_args(); @@ -5229,7 +5484,7 @@ public void onError(java.lang.Exception e) { } @Override - protected boolean isOneway() { + public boolean isOneway() { return false; } @@ -5239,11 +5494,16 @@ public void start(I iface, waitForBalance_args args, org.apache.thrift.async.Asy } } - public static class reportTabletStatus extends org.apache.thrift.AsyncProcessFunction { + public static class reportTabletStatus extends org.apache.thrift.AsyncProcessFunction { public reportTabletStatus() { super("reportTabletStatus"); } + @Override + public org.apache.thrift.TBase getEmptyResultInstance() { + return null; + } + @Override public reportTabletStatus_args getEmptyArgsInstance() { return new reportTabletStatus_args(); @@ -5269,7 +5529,7 @@ public void onError(java.lang.Exception e) { } @Override - protected boolean isOneway() { + public boolean isOneway() { return true; } @@ -5279,11 +5539,16 @@ public void start(I iface, reportTabletStatus_args args, org.apache.thrift.async } } - public static class getActiveTservers extends org.apache.thrift.AsyncProcessFunction> { + public static class getActiveTservers extends org.apache.thrift.AsyncProcessFunction, getActiveTservers_result> { public getActiveTservers() { super("getActiveTservers"); } + @Override + public getActiveTservers_result getEmptyResultInstance() { + return new getActiveTservers_result(); + } + @Override public getActiveTservers_args getEmptyArgsInstance() { return new getActiveTservers_args(); @@ -5344,7 +5609,7 @@ public void onError(java.lang.Exception e) { } @Override - protected boolean isOneway() { + public boolean isOneway() { return false; } @@ -5354,11 +5619,16 @@ public void start(I iface, getActiveTservers_args args, org.apache.thrift.async. } } - public static class getDelegationToken extends org.apache.thrift.AsyncProcessFunction { + public static class getDelegationToken extends org.apache.thrift.AsyncProcessFunction { public getDelegationToken() { super("getDelegationToken"); } + @Override + public getDelegationToken_result getEmptyResultInstance() { + return new getDelegationToken_result(); + } + @Override public getDelegationToken_args getEmptyArgsInstance() { return new getDelegationToken_args(); @@ -5419,7 +5689,7 @@ public void onError(java.lang.Exception e) { } @Override - protected boolean isOneway() { + public boolean isOneway() { return false; } @@ -5429,11 +5699,16 @@ public void start(I iface, getDelegationToken_args args, org.apache.thrift.async } } - public static class requestTabletHosting extends org.apache.thrift.AsyncProcessFunction { + public static class requestTabletHosting extends org.apache.thrift.AsyncProcessFunction { public requestTabletHosting() { super("requestTabletHosting"); } + @Override + public requestTabletHosting_result getEmptyResultInstance() { + return new requestTabletHosting_result(); + } + @Override public requestTabletHosting_args getEmptyArgsInstance() { return new requestTabletHosting_args(); @@ -5497,7 +5772,7 @@ public void onError(java.lang.Exception e) { } @Override - protected boolean isOneway() { + public boolean isOneway() { return false; } @@ -5507,11 +5782,16 @@ public void start(I iface, requestTabletHosting_args args, org.apache.thrift.asy } } - public static class updateTabletMergeability extends org.apache.thrift.AsyncProcessFunction> { + public static class updateTabletMergeability extends org.apache.thrift.AsyncProcessFunction, updateTabletMergeability_result> { public updateTabletMergeability() { super("updateTabletMergeability"); } + @Override + public updateTabletMergeability_result getEmptyResultInstance() { + return new updateTabletMergeability_result(); + } + @Override public updateTabletMergeability_args getEmptyArgsInstance() { return new updateTabletMergeability_args(); @@ -5576,7 +5856,7 @@ public void onError(java.lang.Exception e) { } @Override - protected boolean isOneway() { + public boolean isOneway() { return false; } @@ -5586,11 +5866,16 @@ public void start(I iface, updateTabletMergeability_args args, org.apache.thrift } } - public static class getManagerTimeNanos extends org.apache.thrift.AsyncProcessFunction { + public static class getManagerTimeNanos extends org.apache.thrift.AsyncProcessFunction { public getManagerTimeNanos() { super("getManagerTimeNanos"); } + @Override + public getManagerTimeNanos_result getEmptyResultInstance() { + return new getManagerTimeNanos_result(); + } + @Override public getManagerTimeNanos_args getEmptyArgsInstance() { return new getManagerTimeNanos_args(); @@ -5652,7 +5937,7 @@ public void onError(java.lang.Exception e) { } @Override - protected boolean isOneway() { + public boolean isOneway() { return false; } @@ -5662,11 +5947,16 @@ public void start(I iface, getManagerTimeNanos_args args, org.apache.thrift.asyn } } - public static class processEvents extends org.apache.thrift.AsyncProcessFunction { + public static class processEvents extends org.apache.thrift.AsyncProcessFunction { public processEvents() { super("processEvents"); } + @Override + public processEvents_result getEmptyResultInstance() { + return new processEvents_result(); + } + @Override public processEvents_args getEmptyArgsInstance() { return new processEvents_args(); @@ -5726,7 +6016,7 @@ public void onError(java.lang.Exception e) { } @Override - protected boolean isOneway() { + public boolean isOneway() { return false; } @@ -6205,50 +6495,55 @@ private static class initiateFlush_argsStandardScheme extends org.apache.thrift. @Override public void read(org.apache.thrift.protocol.TProtocol iprot, initiateFlush_args struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TField schemeField; - iprot.readStructBegin(); - while (true) - { - schemeField = iprot.readFieldBegin(); - if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { - break; - } - switch (schemeField.id) { - case 1: // TINFO - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.tinfo = new org.apache.accumulo.core.clientImpl.thrift.TInfo(); - struct.tinfo.read(iprot); - struct.setTinfoIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 2: // CREDENTIALS - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); - struct.credentials.read(iprot); - struct.setCredentialsIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } + iprot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; - case 3: // TABLE_NAME - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.tableName = iprot.readString(); - struct.setTableNameIsSet(true); - } else { + } + switch (schemeField.id) { + case 1: // TINFO + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.tinfo = new org.apache.accumulo.core.clientImpl.thrift.TInfo(); + struct.tinfo.read(iprot); + struct.setTinfoIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 2: // CREDENTIALS + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); + struct.credentials.read(iprot); + struct.setCredentialsIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 3: // TABLE_NAME + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.tableName = iprot.readString(); + struct.setTableNameIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - default: - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); } - iprot.readFieldEnd(); - } - iprot.readStructEnd(); + iprot.readStructEnd(); - // check for required fields of primitive type, which can't be checked in the validate method - struct.validate(); + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } finally { + iprot.decrementRecursionDepth(); + } } @Override @@ -6313,21 +6608,26 @@ public void write(org.apache.thrift.protocol.TProtocol prot, initiateFlush_args @Override public void read(org.apache.thrift.protocol.TProtocol prot, initiateFlush_args struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; - java.util.BitSet incoming = iprot.readBitSet(3); - if (incoming.get(0)) { - struct.tinfo = new org.apache.accumulo.core.clientImpl.thrift.TInfo(); - struct.tinfo.read(iprot); - struct.setTinfoIsSet(true); - } - if (incoming.get(1)) { - struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); - struct.credentials.read(iprot); - struct.setCredentialsIsSet(true); - } - if (incoming.get(2)) { - struct.tableName = iprot.readString(); - struct.setTableNameIsSet(true); + prot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(3); + if (incoming.get(0)) { + struct.tinfo = new org.apache.accumulo.core.clientImpl.thrift.TInfo(); + struct.tinfo.read(iprot); + struct.setTinfoIsSet(true); + } + if (incoming.get(1)) { + struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); + struct.credentials.read(iprot); + struct.setCredentialsIsSet(true); + } + if (incoming.get(2)) { + struct.tableName = iprot.readString(); + struct.setTableNameIsSet(true); + } + } finally { + prot.decrementRecursionDepth(); } } } @@ -6876,59 +7176,64 @@ private static class initiateFlush_resultStandardScheme extends org.apache.thrif @Override public void read(org.apache.thrift.protocol.TProtocol iprot, initiateFlush_result struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TField schemeField; - iprot.readStructBegin(); - while (true) - { - schemeField = iprot.readFieldBegin(); - if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { - break; - } - switch (schemeField.id) { - case 0: // SUCCESS - if (schemeField.type == org.apache.thrift.protocol.TType.I64) { - struct.success = iprot.readI64(); - struct.setSuccessIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 1: // SEC - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.sec = new org.apache.accumulo.core.clientImpl.thrift.ThriftSecurityException(); - struct.sec.read(iprot); - struct.setSecIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 2: // TOPE - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.tope = new org.apache.accumulo.core.clientImpl.thrift.ThriftTableOperationException(); - struct.tope.read(iprot); - struct.setTopeIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } + iprot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; - case 3: // TNASE - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.tnase = new org.apache.accumulo.core.clientImpl.thrift.ThriftNotActiveServiceException(); - struct.tnase.read(iprot); - struct.setTnaseIsSet(true); - } else { + } + switch (schemeField.id) { + case 0: // SUCCESS + if (schemeField.type == org.apache.thrift.protocol.TType.I64) { + struct.success = iprot.readI64(); + struct.setSuccessIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 1: // SEC + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.sec = new org.apache.accumulo.core.clientImpl.thrift.ThriftSecurityException(); + struct.sec.read(iprot); + struct.setSecIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 2: // TOPE + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.tope = new org.apache.accumulo.core.clientImpl.thrift.ThriftTableOperationException(); + struct.tope.read(iprot); + struct.setTopeIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 3: // TNASE + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.tnase = new org.apache.accumulo.core.clientImpl.thrift.ThriftNotActiveServiceException(); + struct.tnase.read(iprot); + struct.setTnaseIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - default: - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); } - iprot.readFieldEnd(); - } - iprot.readStructEnd(); + iprot.readStructEnd(); - // check for required fields of primitive type, which can't be checked in the validate method - struct.validate(); + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } finally { + iprot.decrementRecursionDepth(); + } } @Override @@ -7004,26 +7309,31 @@ public void write(org.apache.thrift.protocol.TProtocol prot, initiateFlush_resul @Override public void read(org.apache.thrift.protocol.TProtocol prot, initiateFlush_result struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; - java.util.BitSet incoming = iprot.readBitSet(4); - if (incoming.get(0)) { - struct.success = iprot.readI64(); - struct.setSuccessIsSet(true); - } - if (incoming.get(1)) { - struct.sec = new org.apache.accumulo.core.clientImpl.thrift.ThriftSecurityException(); - struct.sec.read(iprot); - struct.setSecIsSet(true); - } - if (incoming.get(2)) { - struct.tope = new org.apache.accumulo.core.clientImpl.thrift.ThriftTableOperationException(); - struct.tope.read(iprot); - struct.setTopeIsSet(true); - } - if (incoming.get(3)) { - struct.tnase = new org.apache.accumulo.core.clientImpl.thrift.ThriftNotActiveServiceException(); - struct.tnase.read(iprot); - struct.setTnaseIsSet(true); + prot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(4); + if (incoming.get(0)) { + struct.success = iprot.readI64(); + struct.setSuccessIsSet(true); + } + if (incoming.get(1)) { + struct.sec = new org.apache.accumulo.core.clientImpl.thrift.ThriftSecurityException(); + struct.sec.read(iprot); + struct.setSecIsSet(true); + } + if (incoming.get(2)) { + struct.tope = new org.apache.accumulo.core.clientImpl.thrift.ThriftTableOperationException(); + struct.tope.read(iprot); + struct.setTopeIsSet(true); + } + if (incoming.get(3)) { + struct.tnase = new org.apache.accumulo.core.clientImpl.thrift.ThriftNotActiveServiceException(); + struct.tnase.read(iprot); + struct.setTnaseIsSet(true); + } + } finally { + prot.decrementRecursionDepth(); } } } @@ -7844,82 +8154,87 @@ private static class waitForFlush_argsStandardScheme extends org.apache.thrift.s @Override public void read(org.apache.thrift.protocol.TProtocol iprot, waitForFlush_args struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TField schemeField; - iprot.readStructBegin(); - while (true) - { - schemeField = iprot.readFieldBegin(); - if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { - break; - } - switch (schemeField.id) { - case 1: // TINFO - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.tinfo = new org.apache.accumulo.core.clientImpl.thrift.TInfo(); - struct.tinfo.read(iprot); - struct.setTinfoIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 2: // CREDENTIALS - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); - struct.credentials.read(iprot); - struct.setCredentialsIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 3: // TABLE_NAME - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.tableName = iprot.readString(); - struct.setTableNameIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 4: // START_ROW - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.startRow = iprot.readBinary(); - struct.setStartRowIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 5: // END_ROW - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.endRow = iprot.readBinary(); - struct.setEndRowIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 6: // FLUSH_ID - if (schemeField.type == org.apache.thrift.protocol.TType.I64) { - struct.flushID = iprot.readI64(); - struct.setFlushIDIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } + iprot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; - case 7: // MAX_LOOPS - if (schemeField.type == org.apache.thrift.protocol.TType.I64) { - struct.maxLoops = iprot.readI64(); - struct.setMaxLoopsIsSet(true); - } else { + } + switch (schemeField.id) { + case 1: // TINFO + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.tinfo = new org.apache.accumulo.core.clientImpl.thrift.TInfo(); + struct.tinfo.read(iprot); + struct.setTinfoIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 2: // CREDENTIALS + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); + struct.credentials.read(iprot); + struct.setCredentialsIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 3: // TABLE_NAME + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.tableName = iprot.readString(); + struct.setTableNameIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 4: // START_ROW + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.startRow = iprot.readBinary(); + struct.setStartRowIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 5: // END_ROW + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.endRow = iprot.readBinary(); + struct.setEndRowIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 6: // FLUSH_ID + if (schemeField.type == org.apache.thrift.protocol.TType.I64) { + struct.flushID = iprot.readI64(); + struct.setFlushIDIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 7: // MAX_LOOPS + if (schemeField.type == org.apache.thrift.protocol.TType.I64) { + struct.maxLoops = iprot.readI64(); + struct.setMaxLoopsIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - default: - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); } - iprot.readFieldEnd(); - } - iprot.readStructEnd(); + iprot.readStructEnd(); - // check for required fields of primitive type, which can't be checked in the validate method - struct.validate(); + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } finally { + iprot.decrementRecursionDepth(); + } } @Override @@ -8024,37 +8339,42 @@ public void write(org.apache.thrift.protocol.TProtocol prot, waitForFlush_args s @Override public void read(org.apache.thrift.protocol.TProtocol prot, waitForFlush_args struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; - java.util.BitSet incoming = iprot.readBitSet(7); - if (incoming.get(0)) { - struct.tinfo = new org.apache.accumulo.core.clientImpl.thrift.TInfo(); - struct.tinfo.read(iprot); - struct.setTinfoIsSet(true); - } - if (incoming.get(1)) { - struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); - struct.credentials.read(iprot); - struct.setCredentialsIsSet(true); - } - if (incoming.get(2)) { - struct.tableName = iprot.readString(); - struct.setTableNameIsSet(true); - } - if (incoming.get(3)) { - struct.startRow = iprot.readBinary(); - struct.setStartRowIsSet(true); - } - if (incoming.get(4)) { - struct.endRow = iprot.readBinary(); - struct.setEndRowIsSet(true); - } - if (incoming.get(5)) { - struct.flushID = iprot.readI64(); - struct.setFlushIDIsSet(true); - } - if (incoming.get(6)) { - struct.maxLoops = iprot.readI64(); - struct.setMaxLoopsIsSet(true); + prot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(7); + if (incoming.get(0)) { + struct.tinfo = new org.apache.accumulo.core.clientImpl.thrift.TInfo(); + struct.tinfo.read(iprot); + struct.setTinfoIsSet(true); + } + if (incoming.get(1)) { + struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); + struct.credentials.read(iprot); + struct.setCredentialsIsSet(true); + } + if (incoming.get(2)) { + struct.tableName = iprot.readString(); + struct.setTableNameIsSet(true); + } + if (incoming.get(3)) { + struct.startRow = iprot.readBinary(); + struct.setStartRowIsSet(true); + } + if (incoming.get(4)) { + struct.endRow = iprot.readBinary(); + struct.setEndRowIsSet(true); + } + if (incoming.get(5)) { + struct.flushID = iprot.readI64(); + struct.setFlushIDIsSet(true); + } + if (incoming.get(6)) { + struct.maxLoops = iprot.readI64(); + struct.setMaxLoopsIsSet(true); + } + } finally { + prot.decrementRecursionDepth(); } } } @@ -8524,51 +8844,56 @@ private static class waitForFlush_resultStandardScheme extends org.apache.thrift @Override public void read(org.apache.thrift.protocol.TProtocol iprot, waitForFlush_result struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TField schemeField; - iprot.readStructBegin(); - while (true) - { - schemeField = iprot.readFieldBegin(); - if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { - break; - } - switch (schemeField.id) { - case 1: // SEC - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.sec = new org.apache.accumulo.core.clientImpl.thrift.ThriftSecurityException(); - struct.sec.read(iprot); - struct.setSecIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 2: // TOPE - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.tope = new org.apache.accumulo.core.clientImpl.thrift.ThriftTableOperationException(); - struct.tope.read(iprot); - struct.setTopeIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } + iprot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; - case 3: // TNASE - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.tnase = new org.apache.accumulo.core.clientImpl.thrift.ThriftNotActiveServiceException(); - struct.tnase.read(iprot); - struct.setTnaseIsSet(true); - } else { + } + switch (schemeField.id) { + case 1: // SEC + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.sec = new org.apache.accumulo.core.clientImpl.thrift.ThriftSecurityException(); + struct.sec.read(iprot); + struct.setSecIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 2: // TOPE + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.tope = new org.apache.accumulo.core.clientImpl.thrift.ThriftTableOperationException(); + struct.tope.read(iprot); + struct.setTopeIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 3: // TNASE + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.tnase = new org.apache.accumulo.core.clientImpl.thrift.ThriftNotActiveServiceException(); + struct.tnase.read(iprot); + struct.setTnaseIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - default: - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); } - iprot.readFieldEnd(); - } - iprot.readStructEnd(); + iprot.readStructEnd(); - // check for required fields of primitive type, which can't be checked in the validate method - struct.validate(); + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } finally { + iprot.decrementRecursionDepth(); + } } @Override @@ -8633,22 +8958,27 @@ public void write(org.apache.thrift.protocol.TProtocol prot, waitForFlush_result @Override public void read(org.apache.thrift.protocol.TProtocol prot, waitForFlush_result struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; - java.util.BitSet incoming = iprot.readBitSet(3); - if (incoming.get(0)) { - struct.sec = new org.apache.accumulo.core.clientImpl.thrift.ThriftSecurityException(); - struct.sec.read(iprot); - struct.setSecIsSet(true); - } - if (incoming.get(1)) { - struct.tope = new org.apache.accumulo.core.clientImpl.thrift.ThriftTableOperationException(); - struct.tope.read(iprot); - struct.setTopeIsSet(true); - } - if (incoming.get(2)) { - struct.tnase = new org.apache.accumulo.core.clientImpl.thrift.ThriftNotActiveServiceException(); - struct.tnase.read(iprot); - struct.setTnaseIsSet(true); + prot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(3); + if (incoming.get(0)) { + struct.sec = new org.apache.accumulo.core.clientImpl.thrift.ThriftSecurityException(); + struct.sec.read(iprot); + struct.setSecIsSet(true); + } + if (incoming.get(1)) { + struct.tope = new org.apache.accumulo.core.clientImpl.thrift.ThriftTableOperationException(); + struct.tope.read(iprot); + struct.setTopeIsSet(true); + } + if (incoming.get(2)) { + struct.tnase = new org.apache.accumulo.core.clientImpl.thrift.ThriftNotActiveServiceException(); + struct.tnase.read(iprot); + struct.setTnaseIsSet(true); + } + } finally { + prot.decrementRecursionDepth(); } } } @@ -9289,66 +9619,71 @@ private static class setTableProperty_argsStandardScheme extends org.apache.thri @Override public void read(org.apache.thrift.protocol.TProtocol iprot, setTableProperty_args struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TField schemeField; - iprot.readStructBegin(); - while (true) - { - schemeField = iprot.readFieldBegin(); - if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { - break; - } - switch (schemeField.id) { - case 1: // TINFO - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.tinfo = new org.apache.accumulo.core.clientImpl.thrift.TInfo(); - struct.tinfo.read(iprot); - struct.setTinfoIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 2: // CREDENTIALS - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); - struct.credentials.read(iprot); - struct.setCredentialsIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 3: // TABLE_NAME - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.tableName = iprot.readString(); - struct.setTableNameIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 4: // PROPERTY - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.property = iprot.readString(); - struct.setPropertyIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } + iprot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; - case 5: // VALUE - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.value = iprot.readString(); - struct.setValueIsSet(true); - } else { + } + switch (schemeField.id) { + case 1: // TINFO + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.tinfo = new org.apache.accumulo.core.clientImpl.thrift.TInfo(); + struct.tinfo.read(iprot); + struct.setTinfoIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 2: // CREDENTIALS + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); + struct.credentials.read(iprot); + struct.setCredentialsIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 3: // TABLE_NAME + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.tableName = iprot.readString(); + struct.setTableNameIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 4: // PROPERTY + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.property = iprot.readString(); + struct.setPropertyIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 5: // VALUE + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.value = iprot.readString(); + struct.setValueIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - default: - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); } - iprot.readFieldEnd(); - } - iprot.readStructEnd(); + iprot.readStructEnd(); - // check for required fields of primitive type, which can't be checked in the validate method - struct.validate(); + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } finally { + iprot.decrementRecursionDepth(); + } } @Override @@ -9435,29 +9770,34 @@ public void write(org.apache.thrift.protocol.TProtocol prot, setTableProperty_ar @Override public void read(org.apache.thrift.protocol.TProtocol prot, setTableProperty_args struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; - java.util.BitSet incoming = iprot.readBitSet(5); - if (incoming.get(0)) { - struct.tinfo = new org.apache.accumulo.core.clientImpl.thrift.TInfo(); - struct.tinfo.read(iprot); - struct.setTinfoIsSet(true); - } - if (incoming.get(1)) { - struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); - struct.credentials.read(iprot); - struct.setCredentialsIsSet(true); - } - if (incoming.get(2)) { - struct.tableName = iprot.readString(); - struct.setTableNameIsSet(true); - } - if (incoming.get(3)) { - struct.property = iprot.readString(); - struct.setPropertyIsSet(true); - } - if (incoming.get(4)) { - struct.value = iprot.readString(); - struct.setValueIsSet(true); + prot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(5); + if (incoming.get(0)) { + struct.tinfo = new org.apache.accumulo.core.clientImpl.thrift.TInfo(); + struct.tinfo.read(iprot); + struct.setTinfoIsSet(true); + } + if (incoming.get(1)) { + struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); + struct.credentials.read(iprot); + struct.setCredentialsIsSet(true); + } + if (incoming.get(2)) { + struct.tableName = iprot.readString(); + struct.setTableNameIsSet(true); + } + if (incoming.get(3)) { + struct.property = iprot.readString(); + struct.setPropertyIsSet(true); + } + if (incoming.get(4)) { + struct.value = iprot.readString(); + struct.setValueIsSet(true); + } + } finally { + prot.decrementRecursionDepth(); } } } @@ -10009,60 +10349,65 @@ private static class setTableProperty_resultStandardScheme extends org.apache.th @Override public void read(org.apache.thrift.protocol.TProtocol iprot, setTableProperty_result struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TField schemeField; - iprot.readStructBegin(); - while (true) - { - schemeField = iprot.readFieldBegin(); - if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { - break; - } - switch (schemeField.id) { - case 1: // SEC - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.sec = new org.apache.accumulo.core.clientImpl.thrift.ThriftSecurityException(); - struct.sec.read(iprot); - struct.setSecIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 2: // TOPE - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.tope = new org.apache.accumulo.core.clientImpl.thrift.ThriftTableOperationException(); - struct.tope.read(iprot); - struct.setTopeIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 3: // TNASE - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.tnase = new org.apache.accumulo.core.clientImpl.thrift.ThriftNotActiveServiceException(); - struct.tnase.read(iprot); - struct.setTnaseIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } + iprot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; - case 4: // TPE - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.tpe = new ThriftPropertyException(); - struct.tpe.read(iprot); - struct.setTpeIsSet(true); - } else { + } + switch (schemeField.id) { + case 1: // SEC + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.sec = new org.apache.accumulo.core.clientImpl.thrift.ThriftSecurityException(); + struct.sec.read(iprot); + struct.setSecIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 2: // TOPE + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.tope = new org.apache.accumulo.core.clientImpl.thrift.ThriftTableOperationException(); + struct.tope.read(iprot); + struct.setTopeIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 3: // TNASE + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.tnase = new org.apache.accumulo.core.clientImpl.thrift.ThriftNotActiveServiceException(); + struct.tnase.read(iprot); + struct.setTnaseIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 4: // TPE + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.tpe = new ThriftPropertyException(); + struct.tpe.read(iprot); + struct.setTpeIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - default: - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); } - iprot.readFieldEnd(); - } - iprot.readStructEnd(); + iprot.readStructEnd(); - // check for required fields of primitive type, which can't be checked in the validate method - struct.validate(); + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } finally { + iprot.decrementRecursionDepth(); + } } @Override @@ -10138,27 +10483,32 @@ public void write(org.apache.thrift.protocol.TProtocol prot, setTableProperty_re @Override public void read(org.apache.thrift.protocol.TProtocol prot, setTableProperty_result struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; - java.util.BitSet incoming = iprot.readBitSet(4); - if (incoming.get(0)) { - struct.sec = new org.apache.accumulo.core.clientImpl.thrift.ThriftSecurityException(); - struct.sec.read(iprot); - struct.setSecIsSet(true); - } - if (incoming.get(1)) { - struct.tope = new org.apache.accumulo.core.clientImpl.thrift.ThriftTableOperationException(); - struct.tope.read(iprot); - struct.setTopeIsSet(true); - } - if (incoming.get(2)) { - struct.tnase = new org.apache.accumulo.core.clientImpl.thrift.ThriftNotActiveServiceException(); - struct.tnase.read(iprot); - struct.setTnaseIsSet(true); - } - if (incoming.get(3)) { - struct.tpe = new ThriftPropertyException(); - struct.tpe.read(iprot); - struct.setTpeIsSet(true); + prot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(4); + if (incoming.get(0)) { + struct.sec = new org.apache.accumulo.core.clientImpl.thrift.ThriftSecurityException(); + struct.sec.read(iprot); + struct.setSecIsSet(true); + } + if (incoming.get(1)) { + struct.tope = new org.apache.accumulo.core.clientImpl.thrift.ThriftTableOperationException(); + struct.tope.read(iprot); + struct.setTopeIsSet(true); + } + if (incoming.get(2)) { + struct.tnase = new org.apache.accumulo.core.clientImpl.thrift.ThriftNotActiveServiceException(); + struct.tnase.read(iprot); + struct.setTnaseIsSet(true); + } + if (incoming.get(3)) { + struct.tpe = new ThriftPropertyException(); + struct.tpe.read(iprot); + struct.setTpeIsSet(true); + } + } finally { + prot.decrementRecursionDepth(); } } } @@ -10720,59 +11070,64 @@ private static class modifyTableProperties_argsStandardScheme extends org.apache @Override public void read(org.apache.thrift.protocol.TProtocol iprot, modifyTableProperties_args struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TField schemeField; - iprot.readStructBegin(); - while (true) - { - schemeField = iprot.readFieldBegin(); - if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { - break; - } - switch (schemeField.id) { - case 1: // TINFO - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.tinfo = new org.apache.accumulo.core.clientImpl.thrift.TInfo(); - struct.tinfo.read(iprot); - struct.setTinfoIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 2: // CREDENTIALS - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); - struct.credentials.read(iprot); - struct.setCredentialsIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 3: // TABLE_NAME - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.tableName = iprot.readString(); - struct.setTableNameIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } + iprot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; - case 4: // V_PROPERTIES - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.vProperties = new org.apache.accumulo.core.clientImpl.thrift.TVersionedProperties(); - struct.vProperties.read(iprot); - struct.setVPropertiesIsSet(true); - } else { + } + switch (schemeField.id) { + case 1: // TINFO + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.tinfo = new org.apache.accumulo.core.clientImpl.thrift.TInfo(); + struct.tinfo.read(iprot); + struct.setTinfoIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 2: // CREDENTIALS + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); + struct.credentials.read(iprot); + struct.setCredentialsIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 3: // TABLE_NAME + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.tableName = iprot.readString(); + struct.setTableNameIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 4: // V_PROPERTIES + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.vProperties = new org.apache.accumulo.core.clientImpl.thrift.TVersionedProperties(); + struct.vProperties.read(iprot); + struct.setVPropertiesIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - default: - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); } - iprot.readFieldEnd(); - } - iprot.readStructEnd(); + iprot.readStructEnd(); - // check for required fields of primitive type, which can't be checked in the validate method - struct.validate(); + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } finally { + iprot.decrementRecursionDepth(); + } } @Override @@ -10848,26 +11203,31 @@ public void write(org.apache.thrift.protocol.TProtocol prot, modifyTableProperti @Override public void read(org.apache.thrift.protocol.TProtocol prot, modifyTableProperties_args struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; - java.util.BitSet incoming = iprot.readBitSet(4); - if (incoming.get(0)) { - struct.tinfo = new org.apache.accumulo.core.clientImpl.thrift.TInfo(); - struct.tinfo.read(iprot); - struct.setTinfoIsSet(true); - } - if (incoming.get(1)) { - struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); - struct.credentials.read(iprot); - struct.setCredentialsIsSet(true); - } - if (incoming.get(2)) { - struct.tableName = iprot.readString(); - struct.setTableNameIsSet(true); - } - if (incoming.get(3)) { - struct.vProperties = new org.apache.accumulo.core.clientImpl.thrift.TVersionedProperties(); - struct.vProperties.read(iprot); - struct.setVPropertiesIsSet(true); + prot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(4); + if (incoming.get(0)) { + struct.tinfo = new org.apache.accumulo.core.clientImpl.thrift.TInfo(); + struct.tinfo.read(iprot); + struct.setTinfoIsSet(true); + } + if (incoming.get(1)) { + struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); + struct.credentials.read(iprot); + struct.setCredentialsIsSet(true); + } + if (incoming.get(2)) { + struct.tableName = iprot.readString(); + struct.setTableNameIsSet(true); + } + if (incoming.get(3)) { + struct.vProperties = new org.apache.accumulo.core.clientImpl.thrift.TVersionedProperties(); + struct.vProperties.read(iprot); + struct.setVPropertiesIsSet(true); + } + } finally { + prot.decrementRecursionDepth(); } } } @@ -11501,69 +11861,74 @@ private static class modifyTableProperties_resultStandardScheme extends org.apac @Override public void read(org.apache.thrift.protocol.TProtocol iprot, modifyTableProperties_result struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TField schemeField; - iprot.readStructBegin(); - while (true) - { - schemeField = iprot.readFieldBegin(); - if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { - break; - } - switch (schemeField.id) { - case 1: // SEC - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.sec = new org.apache.accumulo.core.clientImpl.thrift.ThriftSecurityException(); - struct.sec.read(iprot); - struct.setSecIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 2: // TOPE - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.tope = new org.apache.accumulo.core.clientImpl.thrift.ThriftTableOperationException(); - struct.tope.read(iprot); - struct.setTopeIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 3: // TNASE - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.tnase = new org.apache.accumulo.core.clientImpl.thrift.ThriftNotActiveServiceException(); - struct.tnase.read(iprot); - struct.setTnaseIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 4: // TCME - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.tcme = new org.apache.accumulo.core.clientImpl.thrift.ThriftConcurrentModificationException(); - struct.tcme.read(iprot); - struct.setTcmeIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } + iprot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; - case 5: // TPE - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.tpe = new ThriftPropertyException(); - struct.tpe.read(iprot); - struct.setTpeIsSet(true); - } else { + } + switch (schemeField.id) { + case 1: // SEC + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.sec = new org.apache.accumulo.core.clientImpl.thrift.ThriftSecurityException(); + struct.sec.read(iprot); + struct.setSecIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 2: // TOPE + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.tope = new org.apache.accumulo.core.clientImpl.thrift.ThriftTableOperationException(); + struct.tope.read(iprot); + struct.setTopeIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 3: // TNASE + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.tnase = new org.apache.accumulo.core.clientImpl.thrift.ThriftNotActiveServiceException(); + struct.tnase.read(iprot); + struct.setTnaseIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 4: // TCME + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.tcme = new org.apache.accumulo.core.clientImpl.thrift.ThriftConcurrentModificationException(); + struct.tcme.read(iprot); + struct.setTcmeIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 5: // TPE + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.tpe = new ThriftPropertyException(); + struct.tpe.read(iprot); + struct.setTpeIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - default: - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); } - iprot.readFieldEnd(); - } - iprot.readStructEnd(); + iprot.readStructEnd(); - // check for required fields of primitive type, which can't be checked in the validate method - struct.validate(); + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } finally { + iprot.decrementRecursionDepth(); + } } @Override @@ -11650,32 +12015,37 @@ public void write(org.apache.thrift.protocol.TProtocol prot, modifyTableProperti @Override public void read(org.apache.thrift.protocol.TProtocol prot, modifyTableProperties_result struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; - java.util.BitSet incoming = iprot.readBitSet(5); - if (incoming.get(0)) { - struct.sec = new org.apache.accumulo.core.clientImpl.thrift.ThriftSecurityException(); - struct.sec.read(iprot); - struct.setSecIsSet(true); - } - if (incoming.get(1)) { - struct.tope = new org.apache.accumulo.core.clientImpl.thrift.ThriftTableOperationException(); - struct.tope.read(iprot); - struct.setTopeIsSet(true); - } - if (incoming.get(2)) { - struct.tnase = new org.apache.accumulo.core.clientImpl.thrift.ThriftNotActiveServiceException(); - struct.tnase.read(iprot); - struct.setTnaseIsSet(true); - } - if (incoming.get(3)) { - struct.tcme = new org.apache.accumulo.core.clientImpl.thrift.ThriftConcurrentModificationException(); - struct.tcme.read(iprot); - struct.setTcmeIsSet(true); - } - if (incoming.get(4)) { - struct.tpe = new ThriftPropertyException(); - struct.tpe.read(iprot); - struct.setTpeIsSet(true); + prot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(5); + if (incoming.get(0)) { + struct.sec = new org.apache.accumulo.core.clientImpl.thrift.ThriftSecurityException(); + struct.sec.read(iprot); + struct.setSecIsSet(true); + } + if (incoming.get(1)) { + struct.tope = new org.apache.accumulo.core.clientImpl.thrift.ThriftTableOperationException(); + struct.tope.read(iprot); + struct.setTopeIsSet(true); + } + if (incoming.get(2)) { + struct.tnase = new org.apache.accumulo.core.clientImpl.thrift.ThriftNotActiveServiceException(); + struct.tnase.read(iprot); + struct.setTnaseIsSet(true); + } + if (incoming.get(3)) { + struct.tcme = new org.apache.accumulo.core.clientImpl.thrift.ThriftConcurrentModificationException(); + struct.tcme.read(iprot); + struct.setTcmeIsSet(true); + } + if (incoming.get(4)) { + struct.tpe = new ThriftPropertyException(); + struct.tpe.read(iprot); + struct.setTpeIsSet(true); + } + } finally { + prot.decrementRecursionDepth(); } } } @@ -12234,58 +12604,63 @@ private static class removeTableProperty_argsStandardScheme extends org.apache.t @Override public void read(org.apache.thrift.protocol.TProtocol iprot, removeTableProperty_args struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TField schemeField; - iprot.readStructBegin(); - while (true) - { - schemeField = iprot.readFieldBegin(); - if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { - break; - } - switch (schemeField.id) { - case 1: // TINFO - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.tinfo = new org.apache.accumulo.core.clientImpl.thrift.TInfo(); - struct.tinfo.read(iprot); - struct.setTinfoIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 2: // CREDENTIALS - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); - struct.credentials.read(iprot); - struct.setCredentialsIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 3: // TABLE_NAME - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.tableName = iprot.readString(); - struct.setTableNameIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } + iprot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; - case 4: // PROPERTY - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.property = iprot.readString(); - struct.setPropertyIsSet(true); - } else { + } + switch (schemeField.id) { + case 1: // TINFO + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.tinfo = new org.apache.accumulo.core.clientImpl.thrift.TInfo(); + struct.tinfo.read(iprot); + struct.setTinfoIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 2: // CREDENTIALS + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); + struct.credentials.read(iprot); + struct.setCredentialsIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 3: // TABLE_NAME + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.tableName = iprot.readString(); + struct.setTableNameIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 4: // PROPERTY + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.property = iprot.readString(); + struct.setPropertyIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - default: - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); } - iprot.readFieldEnd(); - } - iprot.readStructEnd(); + iprot.readStructEnd(); - // check for required fields of primitive type, which can't be checked in the validate method - struct.validate(); + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } finally { + iprot.decrementRecursionDepth(); + } } @Override @@ -12361,25 +12736,30 @@ public void write(org.apache.thrift.protocol.TProtocol prot, removeTableProperty @Override public void read(org.apache.thrift.protocol.TProtocol prot, removeTableProperty_args struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; - java.util.BitSet incoming = iprot.readBitSet(4); - if (incoming.get(0)) { - struct.tinfo = new org.apache.accumulo.core.clientImpl.thrift.TInfo(); - struct.tinfo.read(iprot); - struct.setTinfoIsSet(true); - } - if (incoming.get(1)) { - struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); - struct.credentials.read(iprot); - struct.setCredentialsIsSet(true); - } - if (incoming.get(2)) { - struct.tableName = iprot.readString(); - struct.setTableNameIsSet(true); - } - if (incoming.get(3)) { - struct.property = iprot.readString(); - struct.setPropertyIsSet(true); + prot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(4); + if (incoming.get(0)) { + struct.tinfo = new org.apache.accumulo.core.clientImpl.thrift.TInfo(); + struct.tinfo.read(iprot); + struct.setTinfoIsSet(true); + } + if (incoming.get(1)) { + struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); + struct.credentials.read(iprot); + struct.setCredentialsIsSet(true); + } + if (incoming.get(2)) { + struct.tableName = iprot.readString(); + struct.setTableNameIsSet(true); + } + if (incoming.get(3)) { + struct.property = iprot.readString(); + struct.setPropertyIsSet(true); + } + } finally { + prot.decrementRecursionDepth(); } } } @@ -12849,51 +13229,56 @@ private static class removeTableProperty_resultStandardScheme extends org.apache @Override public void read(org.apache.thrift.protocol.TProtocol iprot, removeTableProperty_result struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TField schemeField; - iprot.readStructBegin(); - while (true) - { - schemeField = iprot.readFieldBegin(); - if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { - break; - } - switch (schemeField.id) { - case 1: // SEC - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.sec = new org.apache.accumulo.core.clientImpl.thrift.ThriftSecurityException(); - struct.sec.read(iprot); - struct.setSecIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 2: // TOPE - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.tope = new org.apache.accumulo.core.clientImpl.thrift.ThriftTableOperationException(); - struct.tope.read(iprot); - struct.setTopeIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } + iprot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; - case 3: // TNASE - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.tnase = new org.apache.accumulo.core.clientImpl.thrift.ThriftNotActiveServiceException(); - struct.tnase.read(iprot); - struct.setTnaseIsSet(true); - } else { + } + switch (schemeField.id) { + case 1: // SEC + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.sec = new org.apache.accumulo.core.clientImpl.thrift.ThriftSecurityException(); + struct.sec.read(iprot); + struct.setSecIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 2: // TOPE + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.tope = new org.apache.accumulo.core.clientImpl.thrift.ThriftTableOperationException(); + struct.tope.read(iprot); + struct.setTopeIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 3: // TNASE + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.tnase = new org.apache.accumulo.core.clientImpl.thrift.ThriftNotActiveServiceException(); + struct.tnase.read(iprot); + struct.setTnaseIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - default: - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); } - iprot.readFieldEnd(); - } - iprot.readStructEnd(); + iprot.readStructEnd(); - // check for required fields of primitive type, which can't be checked in the validate method - struct.validate(); + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } finally { + iprot.decrementRecursionDepth(); + } } @Override @@ -12958,22 +13343,27 @@ public void write(org.apache.thrift.protocol.TProtocol prot, removeTableProperty @Override public void read(org.apache.thrift.protocol.TProtocol prot, removeTableProperty_result struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; - java.util.BitSet incoming = iprot.readBitSet(3); - if (incoming.get(0)) { - struct.sec = new org.apache.accumulo.core.clientImpl.thrift.ThriftSecurityException(); - struct.sec.read(iprot); - struct.setSecIsSet(true); - } - if (incoming.get(1)) { - struct.tope = new org.apache.accumulo.core.clientImpl.thrift.ThriftTableOperationException(); - struct.tope.read(iprot); - struct.setTopeIsSet(true); - } - if (incoming.get(2)) { - struct.tnase = new org.apache.accumulo.core.clientImpl.thrift.ThriftNotActiveServiceException(); - struct.tnase.read(iprot); - struct.setTnaseIsSet(true); + prot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(3); + if (incoming.get(0)) { + struct.sec = new org.apache.accumulo.core.clientImpl.thrift.ThriftSecurityException(); + struct.sec.read(iprot); + struct.setSecIsSet(true); + } + if (incoming.get(1)) { + struct.tope = new org.apache.accumulo.core.clientImpl.thrift.ThriftTableOperationException(); + struct.tope.read(iprot); + struct.setTopeIsSet(true); + } + if (incoming.get(2)) { + struct.tnase = new org.apache.accumulo.core.clientImpl.thrift.ThriftNotActiveServiceException(); + struct.tnase.read(iprot); + struct.setTnaseIsSet(true); + } + } finally { + prot.decrementRecursionDepth(); } } } @@ -13614,66 +14004,71 @@ private static class setNamespaceProperty_argsStandardScheme extends org.apache. @Override public void read(org.apache.thrift.protocol.TProtocol iprot, setNamespaceProperty_args struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TField schemeField; - iprot.readStructBegin(); - while (true) - { - schemeField = iprot.readFieldBegin(); - if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { - break; - } - switch (schemeField.id) { - case 1: // TINFO - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.tinfo = new org.apache.accumulo.core.clientImpl.thrift.TInfo(); - struct.tinfo.read(iprot); - struct.setTinfoIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 2: // CREDENTIALS - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); - struct.credentials.read(iprot); - struct.setCredentialsIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 3: // NS - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.ns = iprot.readString(); - struct.setNsIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 4: // PROPERTY - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.property = iprot.readString(); - struct.setPropertyIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } + iprot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; - case 5: // VALUE - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.value = iprot.readString(); - struct.setValueIsSet(true); - } else { + } + switch (schemeField.id) { + case 1: // TINFO + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.tinfo = new org.apache.accumulo.core.clientImpl.thrift.TInfo(); + struct.tinfo.read(iprot); + struct.setTinfoIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 2: // CREDENTIALS + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); + struct.credentials.read(iprot); + struct.setCredentialsIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 3: // NS + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.ns = iprot.readString(); + struct.setNsIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 4: // PROPERTY + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.property = iprot.readString(); + struct.setPropertyIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 5: // VALUE + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.value = iprot.readString(); + struct.setValueIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - default: - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); } - iprot.readFieldEnd(); - } - iprot.readStructEnd(); + iprot.readStructEnd(); - // check for required fields of primitive type, which can't be checked in the validate method - struct.validate(); + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } finally { + iprot.decrementRecursionDepth(); + } } @Override @@ -13760,29 +14155,34 @@ public void write(org.apache.thrift.protocol.TProtocol prot, setNamespacePropert @Override public void read(org.apache.thrift.protocol.TProtocol prot, setNamespaceProperty_args struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; - java.util.BitSet incoming = iprot.readBitSet(5); - if (incoming.get(0)) { - struct.tinfo = new org.apache.accumulo.core.clientImpl.thrift.TInfo(); - struct.tinfo.read(iprot); - struct.setTinfoIsSet(true); - } - if (incoming.get(1)) { - struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); - struct.credentials.read(iprot); - struct.setCredentialsIsSet(true); - } - if (incoming.get(2)) { - struct.ns = iprot.readString(); - struct.setNsIsSet(true); - } - if (incoming.get(3)) { - struct.property = iprot.readString(); - struct.setPropertyIsSet(true); - } - if (incoming.get(4)) { - struct.value = iprot.readString(); - struct.setValueIsSet(true); + prot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(5); + if (incoming.get(0)) { + struct.tinfo = new org.apache.accumulo.core.clientImpl.thrift.TInfo(); + struct.tinfo.read(iprot); + struct.setTinfoIsSet(true); + } + if (incoming.get(1)) { + struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); + struct.credentials.read(iprot); + struct.setCredentialsIsSet(true); + } + if (incoming.get(2)) { + struct.ns = iprot.readString(); + struct.setNsIsSet(true); + } + if (incoming.get(3)) { + struct.property = iprot.readString(); + struct.setPropertyIsSet(true); + } + if (incoming.get(4)) { + struct.value = iprot.readString(); + struct.setValueIsSet(true); + } + } finally { + prot.decrementRecursionDepth(); } } } @@ -14334,60 +14734,65 @@ private static class setNamespaceProperty_resultStandardScheme extends org.apach @Override public void read(org.apache.thrift.protocol.TProtocol iprot, setNamespaceProperty_result struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TField schemeField; - iprot.readStructBegin(); - while (true) - { - schemeField = iprot.readFieldBegin(); - if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { - break; - } - switch (schemeField.id) { - case 1: // SEC - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.sec = new org.apache.accumulo.core.clientImpl.thrift.ThriftSecurityException(); - struct.sec.read(iprot); - struct.setSecIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 2: // TOPE - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.tope = new org.apache.accumulo.core.clientImpl.thrift.ThriftTableOperationException(); - struct.tope.read(iprot); - struct.setTopeIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 3: // TNASE - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.tnase = new org.apache.accumulo.core.clientImpl.thrift.ThriftNotActiveServiceException(); - struct.tnase.read(iprot); - struct.setTnaseIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } + iprot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; - case 4: // TPE - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.tpe = new ThriftPropertyException(); - struct.tpe.read(iprot); - struct.setTpeIsSet(true); - } else { + } + switch (schemeField.id) { + case 1: // SEC + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.sec = new org.apache.accumulo.core.clientImpl.thrift.ThriftSecurityException(); + struct.sec.read(iprot); + struct.setSecIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 2: // TOPE + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.tope = new org.apache.accumulo.core.clientImpl.thrift.ThriftTableOperationException(); + struct.tope.read(iprot); + struct.setTopeIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 3: // TNASE + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.tnase = new org.apache.accumulo.core.clientImpl.thrift.ThriftNotActiveServiceException(); + struct.tnase.read(iprot); + struct.setTnaseIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 4: // TPE + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.tpe = new ThriftPropertyException(); + struct.tpe.read(iprot); + struct.setTpeIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - default: - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); } - iprot.readFieldEnd(); - } - iprot.readStructEnd(); + iprot.readStructEnd(); - // check for required fields of primitive type, which can't be checked in the validate method - struct.validate(); + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } finally { + iprot.decrementRecursionDepth(); + } } @Override @@ -14463,27 +14868,32 @@ public void write(org.apache.thrift.protocol.TProtocol prot, setNamespacePropert @Override public void read(org.apache.thrift.protocol.TProtocol prot, setNamespaceProperty_result struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; - java.util.BitSet incoming = iprot.readBitSet(4); - if (incoming.get(0)) { - struct.sec = new org.apache.accumulo.core.clientImpl.thrift.ThriftSecurityException(); - struct.sec.read(iprot); - struct.setSecIsSet(true); - } - if (incoming.get(1)) { - struct.tope = new org.apache.accumulo.core.clientImpl.thrift.ThriftTableOperationException(); - struct.tope.read(iprot); - struct.setTopeIsSet(true); - } - if (incoming.get(2)) { - struct.tnase = new org.apache.accumulo.core.clientImpl.thrift.ThriftNotActiveServiceException(); - struct.tnase.read(iprot); - struct.setTnaseIsSet(true); - } - if (incoming.get(3)) { - struct.tpe = new ThriftPropertyException(); - struct.tpe.read(iprot); - struct.setTpeIsSet(true); + prot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(4); + if (incoming.get(0)) { + struct.sec = new org.apache.accumulo.core.clientImpl.thrift.ThriftSecurityException(); + struct.sec.read(iprot); + struct.setSecIsSet(true); + } + if (incoming.get(1)) { + struct.tope = new org.apache.accumulo.core.clientImpl.thrift.ThriftTableOperationException(); + struct.tope.read(iprot); + struct.setTopeIsSet(true); + } + if (incoming.get(2)) { + struct.tnase = new org.apache.accumulo.core.clientImpl.thrift.ThriftNotActiveServiceException(); + struct.tnase.read(iprot); + struct.setTnaseIsSet(true); + } + if (incoming.get(3)) { + struct.tpe = new ThriftPropertyException(); + struct.tpe.read(iprot); + struct.setTpeIsSet(true); + } + } finally { + prot.decrementRecursionDepth(); } } } @@ -15045,59 +15455,64 @@ private static class modifyNamespaceProperties_argsStandardScheme extends org.ap @Override public void read(org.apache.thrift.protocol.TProtocol iprot, modifyNamespaceProperties_args struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TField schemeField; - iprot.readStructBegin(); - while (true) - { - schemeField = iprot.readFieldBegin(); - if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { - break; - } - switch (schemeField.id) { - case 1: // TINFO - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.tinfo = new org.apache.accumulo.core.clientImpl.thrift.TInfo(); - struct.tinfo.read(iprot); - struct.setTinfoIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 2: // CREDENTIALS - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); - struct.credentials.read(iprot); - struct.setCredentialsIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 3: // NS - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.ns = iprot.readString(); - struct.setNsIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } + iprot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; - case 4: // V_PROPERTIES - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.vProperties = new org.apache.accumulo.core.clientImpl.thrift.TVersionedProperties(); - struct.vProperties.read(iprot); - struct.setVPropertiesIsSet(true); - } else { + } + switch (schemeField.id) { + case 1: // TINFO + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.tinfo = new org.apache.accumulo.core.clientImpl.thrift.TInfo(); + struct.tinfo.read(iprot); + struct.setTinfoIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 2: // CREDENTIALS + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); + struct.credentials.read(iprot); + struct.setCredentialsIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 3: // NS + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.ns = iprot.readString(); + struct.setNsIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 4: // V_PROPERTIES + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.vProperties = new org.apache.accumulo.core.clientImpl.thrift.TVersionedProperties(); + struct.vProperties.read(iprot); + struct.setVPropertiesIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - default: - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); } - iprot.readFieldEnd(); - } - iprot.readStructEnd(); + iprot.readStructEnd(); - // check for required fields of primitive type, which can't be checked in the validate method - struct.validate(); + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } finally { + iprot.decrementRecursionDepth(); + } } @Override @@ -15173,26 +15588,31 @@ public void write(org.apache.thrift.protocol.TProtocol prot, modifyNamespaceProp @Override public void read(org.apache.thrift.protocol.TProtocol prot, modifyNamespaceProperties_args struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; - java.util.BitSet incoming = iprot.readBitSet(4); - if (incoming.get(0)) { - struct.tinfo = new org.apache.accumulo.core.clientImpl.thrift.TInfo(); - struct.tinfo.read(iprot); - struct.setTinfoIsSet(true); - } - if (incoming.get(1)) { - struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); - struct.credentials.read(iprot); - struct.setCredentialsIsSet(true); - } - if (incoming.get(2)) { - struct.ns = iprot.readString(); - struct.setNsIsSet(true); - } - if (incoming.get(3)) { - struct.vProperties = new org.apache.accumulo.core.clientImpl.thrift.TVersionedProperties(); - struct.vProperties.read(iprot); - struct.setVPropertiesIsSet(true); + prot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(4); + if (incoming.get(0)) { + struct.tinfo = new org.apache.accumulo.core.clientImpl.thrift.TInfo(); + struct.tinfo.read(iprot); + struct.setTinfoIsSet(true); + } + if (incoming.get(1)) { + struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); + struct.credentials.read(iprot); + struct.setCredentialsIsSet(true); + } + if (incoming.get(2)) { + struct.ns = iprot.readString(); + struct.setNsIsSet(true); + } + if (incoming.get(3)) { + struct.vProperties = new org.apache.accumulo.core.clientImpl.thrift.TVersionedProperties(); + struct.vProperties.read(iprot); + struct.setVPropertiesIsSet(true); + } + } finally { + prot.decrementRecursionDepth(); } } } @@ -15826,69 +16246,74 @@ private static class modifyNamespaceProperties_resultStandardScheme extends org. @Override public void read(org.apache.thrift.protocol.TProtocol iprot, modifyNamespaceProperties_result struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TField schemeField; - iprot.readStructBegin(); - while (true) - { - schemeField = iprot.readFieldBegin(); - if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { - break; - } - switch (schemeField.id) { - case 1: // SEC - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.sec = new org.apache.accumulo.core.clientImpl.thrift.ThriftSecurityException(); - struct.sec.read(iprot); - struct.setSecIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 2: // TOPE - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.tope = new org.apache.accumulo.core.clientImpl.thrift.ThriftTableOperationException(); - struct.tope.read(iprot); - struct.setTopeIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 3: // TNASE - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.tnase = new org.apache.accumulo.core.clientImpl.thrift.ThriftNotActiveServiceException(); - struct.tnase.read(iprot); - struct.setTnaseIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 4: // TCME - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.tcme = new org.apache.accumulo.core.clientImpl.thrift.ThriftConcurrentModificationException(); - struct.tcme.read(iprot); - struct.setTcmeIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } + iprot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; - case 5: // TPE - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.tpe = new ThriftPropertyException(); - struct.tpe.read(iprot); - struct.setTpeIsSet(true); - } else { + } + switch (schemeField.id) { + case 1: // SEC + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.sec = new org.apache.accumulo.core.clientImpl.thrift.ThriftSecurityException(); + struct.sec.read(iprot); + struct.setSecIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 2: // TOPE + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.tope = new org.apache.accumulo.core.clientImpl.thrift.ThriftTableOperationException(); + struct.tope.read(iprot); + struct.setTopeIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 3: // TNASE + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.tnase = new org.apache.accumulo.core.clientImpl.thrift.ThriftNotActiveServiceException(); + struct.tnase.read(iprot); + struct.setTnaseIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 4: // TCME + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.tcme = new org.apache.accumulo.core.clientImpl.thrift.ThriftConcurrentModificationException(); + struct.tcme.read(iprot); + struct.setTcmeIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 5: // TPE + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.tpe = new ThriftPropertyException(); + struct.tpe.read(iprot); + struct.setTpeIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - default: - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); } - iprot.readFieldEnd(); - } - iprot.readStructEnd(); + iprot.readStructEnd(); - // check for required fields of primitive type, which can't be checked in the validate method - struct.validate(); + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } finally { + iprot.decrementRecursionDepth(); + } } @Override @@ -15975,32 +16400,37 @@ public void write(org.apache.thrift.protocol.TProtocol prot, modifyNamespaceProp @Override public void read(org.apache.thrift.protocol.TProtocol prot, modifyNamespaceProperties_result struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; - java.util.BitSet incoming = iprot.readBitSet(5); - if (incoming.get(0)) { - struct.sec = new org.apache.accumulo.core.clientImpl.thrift.ThriftSecurityException(); - struct.sec.read(iprot); - struct.setSecIsSet(true); - } - if (incoming.get(1)) { - struct.tope = new org.apache.accumulo.core.clientImpl.thrift.ThriftTableOperationException(); - struct.tope.read(iprot); - struct.setTopeIsSet(true); - } - if (incoming.get(2)) { - struct.tnase = new org.apache.accumulo.core.clientImpl.thrift.ThriftNotActiveServiceException(); - struct.tnase.read(iprot); - struct.setTnaseIsSet(true); - } - if (incoming.get(3)) { - struct.tcme = new org.apache.accumulo.core.clientImpl.thrift.ThriftConcurrentModificationException(); - struct.tcme.read(iprot); - struct.setTcmeIsSet(true); - } - if (incoming.get(4)) { - struct.tpe = new ThriftPropertyException(); - struct.tpe.read(iprot); - struct.setTpeIsSet(true); + prot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(5); + if (incoming.get(0)) { + struct.sec = new org.apache.accumulo.core.clientImpl.thrift.ThriftSecurityException(); + struct.sec.read(iprot); + struct.setSecIsSet(true); + } + if (incoming.get(1)) { + struct.tope = new org.apache.accumulo.core.clientImpl.thrift.ThriftTableOperationException(); + struct.tope.read(iprot); + struct.setTopeIsSet(true); + } + if (incoming.get(2)) { + struct.tnase = new org.apache.accumulo.core.clientImpl.thrift.ThriftNotActiveServiceException(); + struct.tnase.read(iprot); + struct.setTnaseIsSet(true); + } + if (incoming.get(3)) { + struct.tcme = new org.apache.accumulo.core.clientImpl.thrift.ThriftConcurrentModificationException(); + struct.tcme.read(iprot); + struct.setTcmeIsSet(true); + } + if (incoming.get(4)) { + struct.tpe = new ThriftPropertyException(); + struct.tpe.read(iprot); + struct.setTpeIsSet(true); + } + } finally { + prot.decrementRecursionDepth(); } } } @@ -16559,58 +16989,63 @@ private static class removeNamespaceProperty_argsStandardScheme extends org.apac @Override public void read(org.apache.thrift.protocol.TProtocol iprot, removeNamespaceProperty_args struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TField schemeField; - iprot.readStructBegin(); - while (true) - { - schemeField = iprot.readFieldBegin(); - if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { - break; - } - switch (schemeField.id) { - case 1: // TINFO - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.tinfo = new org.apache.accumulo.core.clientImpl.thrift.TInfo(); - struct.tinfo.read(iprot); - struct.setTinfoIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 2: // CREDENTIALS - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); - struct.credentials.read(iprot); - struct.setCredentialsIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 3: // NS - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.ns = iprot.readString(); - struct.setNsIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } + iprot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; - case 4: // PROPERTY - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.property = iprot.readString(); - struct.setPropertyIsSet(true); - } else { + } + switch (schemeField.id) { + case 1: // TINFO + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.tinfo = new org.apache.accumulo.core.clientImpl.thrift.TInfo(); + struct.tinfo.read(iprot); + struct.setTinfoIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 2: // CREDENTIALS + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); + struct.credentials.read(iprot); + struct.setCredentialsIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 3: // NS + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.ns = iprot.readString(); + struct.setNsIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 4: // PROPERTY + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.property = iprot.readString(); + struct.setPropertyIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - default: - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); } - iprot.readFieldEnd(); - } - iprot.readStructEnd(); + iprot.readStructEnd(); - // check for required fields of primitive type, which can't be checked in the validate method - struct.validate(); + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } finally { + iprot.decrementRecursionDepth(); + } } @Override @@ -16686,25 +17121,30 @@ public void write(org.apache.thrift.protocol.TProtocol prot, removeNamespaceProp @Override public void read(org.apache.thrift.protocol.TProtocol prot, removeNamespaceProperty_args struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; - java.util.BitSet incoming = iprot.readBitSet(4); - if (incoming.get(0)) { - struct.tinfo = new org.apache.accumulo.core.clientImpl.thrift.TInfo(); - struct.tinfo.read(iprot); - struct.setTinfoIsSet(true); - } - if (incoming.get(1)) { - struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); - struct.credentials.read(iprot); - struct.setCredentialsIsSet(true); - } - if (incoming.get(2)) { - struct.ns = iprot.readString(); - struct.setNsIsSet(true); - } - if (incoming.get(3)) { - struct.property = iprot.readString(); - struct.setPropertyIsSet(true); + prot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(4); + if (incoming.get(0)) { + struct.tinfo = new org.apache.accumulo.core.clientImpl.thrift.TInfo(); + struct.tinfo.read(iprot); + struct.setTinfoIsSet(true); + } + if (incoming.get(1)) { + struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); + struct.credentials.read(iprot); + struct.setCredentialsIsSet(true); + } + if (incoming.get(2)) { + struct.ns = iprot.readString(); + struct.setNsIsSet(true); + } + if (incoming.get(3)) { + struct.property = iprot.readString(); + struct.setPropertyIsSet(true); + } + } finally { + prot.decrementRecursionDepth(); } } } @@ -17174,51 +17614,56 @@ private static class removeNamespaceProperty_resultStandardScheme extends org.ap @Override public void read(org.apache.thrift.protocol.TProtocol iprot, removeNamespaceProperty_result struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TField schemeField; - iprot.readStructBegin(); - while (true) - { - schemeField = iprot.readFieldBegin(); - if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { - break; - } - switch (schemeField.id) { - case 1: // SEC - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.sec = new org.apache.accumulo.core.clientImpl.thrift.ThriftSecurityException(); - struct.sec.read(iprot); - struct.setSecIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 2: // TOPE - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.tope = new org.apache.accumulo.core.clientImpl.thrift.ThriftTableOperationException(); - struct.tope.read(iprot); - struct.setTopeIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } + iprot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; - case 3: // TNASE - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.tnase = new org.apache.accumulo.core.clientImpl.thrift.ThriftNotActiveServiceException(); - struct.tnase.read(iprot); - struct.setTnaseIsSet(true); - } else { + } + switch (schemeField.id) { + case 1: // SEC + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.sec = new org.apache.accumulo.core.clientImpl.thrift.ThriftSecurityException(); + struct.sec.read(iprot); + struct.setSecIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 2: // TOPE + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.tope = new org.apache.accumulo.core.clientImpl.thrift.ThriftTableOperationException(); + struct.tope.read(iprot); + struct.setTopeIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 3: // TNASE + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.tnase = new org.apache.accumulo.core.clientImpl.thrift.ThriftNotActiveServiceException(); + struct.tnase.read(iprot); + struct.setTnaseIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - default: - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); } - iprot.readFieldEnd(); - } - iprot.readStructEnd(); + iprot.readStructEnd(); - // check for required fields of primitive type, which can't be checked in the validate method - struct.validate(); + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } finally { + iprot.decrementRecursionDepth(); + } } @Override @@ -17283,22 +17728,27 @@ public void write(org.apache.thrift.protocol.TProtocol prot, removeNamespaceProp @Override public void read(org.apache.thrift.protocol.TProtocol prot, removeNamespaceProperty_result struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; - java.util.BitSet incoming = iprot.readBitSet(3); - if (incoming.get(0)) { - struct.sec = new org.apache.accumulo.core.clientImpl.thrift.ThriftSecurityException(); - struct.sec.read(iprot); - struct.setSecIsSet(true); - } - if (incoming.get(1)) { - struct.tope = new org.apache.accumulo.core.clientImpl.thrift.ThriftTableOperationException(); - struct.tope.read(iprot); - struct.setTopeIsSet(true); - } - if (incoming.get(2)) { - struct.tnase = new org.apache.accumulo.core.clientImpl.thrift.ThriftNotActiveServiceException(); - struct.tnase.read(iprot); - struct.setTnaseIsSet(true); + prot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(3); + if (incoming.get(0)) { + struct.sec = new org.apache.accumulo.core.clientImpl.thrift.ThriftSecurityException(); + struct.sec.read(iprot); + struct.setSecIsSet(true); + } + if (incoming.get(1)) { + struct.tope = new org.apache.accumulo.core.clientImpl.thrift.ThriftTableOperationException(); + struct.tope.read(iprot); + struct.setTopeIsSet(true); + } + if (incoming.get(2)) { + struct.tnase = new org.apache.accumulo.core.clientImpl.thrift.ThriftNotActiveServiceException(); + struct.tnase.read(iprot); + struct.setTnaseIsSet(true); + } + } finally { + prot.decrementRecursionDepth(); } } } @@ -17791,50 +18241,55 @@ private static class setManagerGoalState_argsStandardScheme extends org.apache.t @Override public void read(org.apache.thrift.protocol.TProtocol iprot, setManagerGoalState_args struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TField schemeField; - iprot.readStructBegin(); - while (true) - { - schemeField = iprot.readFieldBegin(); - if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { - break; - } - switch (schemeField.id) { - case 1: // TINFO - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.tinfo = new org.apache.accumulo.core.clientImpl.thrift.TInfo(); - struct.tinfo.read(iprot); - struct.setTinfoIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 2: // CREDENTIALS - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); - struct.credentials.read(iprot); - struct.setCredentialsIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } + iprot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; - case 3: // STATE - if (schemeField.type == org.apache.thrift.protocol.TType.I32) { - struct.state = org.apache.accumulo.core.manager.thrift.ManagerGoalState.findByValue(iprot.readI32()); - struct.setStateIsSet(true); - } else { + } + switch (schemeField.id) { + case 1: // TINFO + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.tinfo = new org.apache.accumulo.core.clientImpl.thrift.TInfo(); + struct.tinfo.read(iprot); + struct.setTinfoIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 2: // CREDENTIALS + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); + struct.credentials.read(iprot); + struct.setCredentialsIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 3: // STATE + if (schemeField.type == org.apache.thrift.protocol.TType.I32) { + struct.state = org.apache.accumulo.core.manager.thrift.ManagerGoalState.findByValue(iprot.readI32()); + struct.setStateIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - default: - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); } - iprot.readFieldEnd(); - } - iprot.readStructEnd(); + iprot.readStructEnd(); - // check for required fields of primitive type, which can't be checked in the validate method - struct.validate(); + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } finally { + iprot.decrementRecursionDepth(); + } } @Override @@ -17899,21 +18354,26 @@ public void write(org.apache.thrift.protocol.TProtocol prot, setManagerGoalState @Override public void read(org.apache.thrift.protocol.TProtocol prot, setManagerGoalState_args struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; - java.util.BitSet incoming = iprot.readBitSet(3); - if (incoming.get(0)) { - struct.tinfo = new org.apache.accumulo.core.clientImpl.thrift.TInfo(); - struct.tinfo.read(iprot); - struct.setTinfoIsSet(true); - } - if (incoming.get(1)) { - struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); - struct.credentials.read(iprot); - struct.setCredentialsIsSet(true); - } - if (incoming.get(2)) { - struct.state = org.apache.accumulo.core.manager.thrift.ManagerGoalState.findByValue(iprot.readI32()); - struct.setStateIsSet(true); + prot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(3); + if (incoming.get(0)) { + struct.tinfo = new org.apache.accumulo.core.clientImpl.thrift.TInfo(); + struct.tinfo.read(iprot); + struct.setTinfoIsSet(true); + } + if (incoming.get(1)) { + struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); + struct.credentials.read(iprot); + struct.setCredentialsIsSet(true); + } + if (incoming.get(2)) { + struct.state = org.apache.accumulo.core.manager.thrift.ManagerGoalState.findByValue(iprot.readI32()); + struct.setStateIsSet(true); + } + } finally { + prot.decrementRecursionDepth(); } } } @@ -18301,42 +18761,47 @@ private static class setManagerGoalState_resultStandardScheme extends org.apache @Override public void read(org.apache.thrift.protocol.TProtocol iprot, setManagerGoalState_result struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TField schemeField; - iprot.readStructBegin(); - while (true) - { - schemeField = iprot.readFieldBegin(); - if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { - break; - } - switch (schemeField.id) { - case 1: // SEC - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.sec = new org.apache.accumulo.core.clientImpl.thrift.ThriftSecurityException(); - struct.sec.read(iprot); - struct.setSecIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } + iprot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; - case 2: // TNASE - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.tnase = new org.apache.accumulo.core.clientImpl.thrift.ThriftNotActiveServiceException(); - struct.tnase.read(iprot); - struct.setTnaseIsSet(true); - } else { + } + switch (schemeField.id) { + case 1: // SEC + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.sec = new org.apache.accumulo.core.clientImpl.thrift.ThriftSecurityException(); + struct.sec.read(iprot); + struct.setSecIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 2: // TNASE + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.tnase = new org.apache.accumulo.core.clientImpl.thrift.ThriftNotActiveServiceException(); + struct.tnase.read(iprot); + struct.setTnaseIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - default: - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); } - iprot.readFieldEnd(); - } - iprot.readStructEnd(); + iprot.readStructEnd(); - // check for required fields of primitive type, which can't be checked in the validate method - struct.validate(); + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } finally { + iprot.decrementRecursionDepth(); + } } @Override @@ -18390,17 +18855,22 @@ public void write(org.apache.thrift.protocol.TProtocol prot, setManagerGoalState @Override public void read(org.apache.thrift.protocol.TProtocol prot, setManagerGoalState_result struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; - java.util.BitSet incoming = iprot.readBitSet(2); - if (incoming.get(0)) { - struct.sec = new org.apache.accumulo.core.clientImpl.thrift.ThriftSecurityException(); - struct.sec.read(iprot); - struct.setSecIsSet(true); - } - if (incoming.get(1)) { - struct.tnase = new org.apache.accumulo.core.clientImpl.thrift.ThriftNotActiveServiceException(); - struct.tnase.read(iprot); - struct.setTnaseIsSet(true); + prot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(2); + if (incoming.get(0)) { + struct.sec = new org.apache.accumulo.core.clientImpl.thrift.ThriftSecurityException(); + struct.sec.read(iprot); + struct.setSecIsSet(true); + } + if (incoming.get(1)) { + struct.tnase = new org.apache.accumulo.core.clientImpl.thrift.ThriftNotActiveServiceException(); + struct.tnase.read(iprot); + struct.setTnaseIsSet(true); + } + } finally { + prot.decrementRecursionDepth(); } } } @@ -18874,50 +19344,55 @@ private static class shutdown_argsStandardScheme extends org.apache.thrift.schem @Override public void read(org.apache.thrift.protocol.TProtocol iprot, shutdown_args struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TField schemeField; - iprot.readStructBegin(); - while (true) - { - schemeField = iprot.readFieldBegin(); - if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { - break; - } - switch (schemeField.id) { - case 1: // TINFO - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.tinfo = new org.apache.accumulo.core.clientImpl.thrift.TInfo(); - struct.tinfo.read(iprot); - struct.setTinfoIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 2: // CREDENTIALS - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); - struct.credentials.read(iprot); - struct.setCredentialsIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } + iprot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; - case 3: // STOP_TABLET_SERVERS - if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) { - struct.stopTabletServers = iprot.readBool(); - struct.setStopTabletServersIsSet(true); - } else { + } + switch (schemeField.id) { + case 1: // TINFO + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.tinfo = new org.apache.accumulo.core.clientImpl.thrift.TInfo(); + struct.tinfo.read(iprot); + struct.setTinfoIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 2: // CREDENTIALS + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); + struct.credentials.read(iprot); + struct.setCredentialsIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 3: // STOP_TABLET_SERVERS + if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) { + struct.stopTabletServers = iprot.readBool(); + struct.setStopTabletServersIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - default: - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); } - iprot.readFieldEnd(); - } - iprot.readStructEnd(); + iprot.readStructEnd(); - // check for required fields of primitive type, which can't be checked in the validate method - struct.validate(); + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } finally { + iprot.decrementRecursionDepth(); + } } @Override @@ -18980,21 +19455,26 @@ public void write(org.apache.thrift.protocol.TProtocol prot, shutdown_args struc @Override public void read(org.apache.thrift.protocol.TProtocol prot, shutdown_args struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; - java.util.BitSet incoming = iprot.readBitSet(3); - if (incoming.get(0)) { - struct.tinfo = new org.apache.accumulo.core.clientImpl.thrift.TInfo(); - struct.tinfo.read(iprot); - struct.setTinfoIsSet(true); - } - if (incoming.get(1)) { - struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); - struct.credentials.read(iprot); - struct.setCredentialsIsSet(true); - } - if (incoming.get(2)) { - struct.stopTabletServers = iprot.readBool(); - struct.setStopTabletServersIsSet(true); + prot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(3); + if (incoming.get(0)) { + struct.tinfo = new org.apache.accumulo.core.clientImpl.thrift.TInfo(); + struct.tinfo.read(iprot); + struct.setTinfoIsSet(true); + } + if (incoming.get(1)) { + struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); + struct.credentials.read(iprot); + struct.setCredentialsIsSet(true); + } + if (incoming.get(2)) { + struct.stopTabletServers = iprot.readBool(); + struct.setStopTabletServersIsSet(true); + } + } finally { + prot.decrementRecursionDepth(); } } } @@ -19382,42 +19862,47 @@ private static class shutdown_resultStandardScheme extends org.apache.thrift.sch @Override public void read(org.apache.thrift.protocol.TProtocol iprot, shutdown_result struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TField schemeField; - iprot.readStructBegin(); - while (true) - { - schemeField = iprot.readFieldBegin(); - if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { - break; - } - switch (schemeField.id) { - case 1: // SEC - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.sec = new org.apache.accumulo.core.clientImpl.thrift.ThriftSecurityException(); - struct.sec.read(iprot); - struct.setSecIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } + iprot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; - case 2: // TNASE - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.tnase = new org.apache.accumulo.core.clientImpl.thrift.ThriftNotActiveServiceException(); - struct.tnase.read(iprot); - struct.setTnaseIsSet(true); - } else { + } + switch (schemeField.id) { + case 1: // SEC + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.sec = new org.apache.accumulo.core.clientImpl.thrift.ThriftSecurityException(); + struct.sec.read(iprot); + struct.setSecIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 2: // TNASE + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.tnase = new org.apache.accumulo.core.clientImpl.thrift.ThriftNotActiveServiceException(); + struct.tnase.read(iprot); + struct.setTnaseIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - default: - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); } - iprot.readFieldEnd(); - } - iprot.readStructEnd(); + iprot.readStructEnd(); - // check for required fields of primitive type, which can't be checked in the validate method - struct.validate(); + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } finally { + iprot.decrementRecursionDepth(); + } } @Override @@ -19471,17 +19956,22 @@ public void write(org.apache.thrift.protocol.TProtocol prot, shutdown_result str @Override public void read(org.apache.thrift.protocol.TProtocol prot, shutdown_result struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; - java.util.BitSet incoming = iprot.readBitSet(2); - if (incoming.get(0)) { - struct.sec = new org.apache.accumulo.core.clientImpl.thrift.ThriftSecurityException(); - struct.sec.read(iprot); - struct.setSecIsSet(true); - } - if (incoming.get(1)) { - struct.tnase = new org.apache.accumulo.core.clientImpl.thrift.ThriftNotActiveServiceException(); - struct.tnase.read(iprot); - struct.setTnaseIsSet(true); + prot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(2); + if (incoming.get(0)) { + struct.sec = new org.apache.accumulo.core.clientImpl.thrift.ThriftSecurityException(); + struct.sec.read(iprot); + struct.setSecIsSet(true); + } + if (incoming.get(1)) { + struct.tnase = new org.apache.accumulo.core.clientImpl.thrift.ThriftNotActiveServiceException(); + struct.tnase.read(iprot); + struct.setTnaseIsSet(true); + } + } finally { + prot.decrementRecursionDepth(); } } } @@ -20037,58 +20527,63 @@ private static class shutdownTabletServer_argsStandardScheme extends org.apache. @Override public void read(org.apache.thrift.protocol.TProtocol iprot, shutdownTabletServer_args struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TField schemeField; - iprot.readStructBegin(); - while (true) - { - schemeField = iprot.readFieldBegin(); - if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { - break; - } - switch (schemeField.id) { - case 1: // TINFO - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.tinfo = new org.apache.accumulo.core.clientImpl.thrift.TInfo(); - struct.tinfo.read(iprot); - struct.setTinfoIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 2: // CREDENTIALS - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); - struct.credentials.read(iprot); - struct.setCredentialsIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 3: // TABLET_SERVER - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.tabletServer = iprot.readString(); - struct.setTabletServerIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } + iprot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; - case 4: // FORCE - if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) { - struct.force = iprot.readBool(); - struct.setForceIsSet(true); - } else { + } + switch (schemeField.id) { + case 1: // TINFO + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.tinfo = new org.apache.accumulo.core.clientImpl.thrift.TInfo(); + struct.tinfo.read(iprot); + struct.setTinfoIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 2: // CREDENTIALS + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); + struct.credentials.read(iprot); + struct.setCredentialsIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 3: // TABLET_SERVER + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.tabletServer = iprot.readString(); + struct.setTabletServerIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 4: // FORCE + if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) { + struct.force = iprot.readBool(); + struct.setForceIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - default: - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); } - iprot.readFieldEnd(); - } - iprot.readStructEnd(); + iprot.readStructEnd(); - // check for required fields of primitive type, which can't be checked in the validate method - struct.validate(); + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } finally { + iprot.decrementRecursionDepth(); + } } @Override @@ -20162,25 +20657,30 @@ public void write(org.apache.thrift.protocol.TProtocol prot, shutdownTabletServe @Override public void read(org.apache.thrift.protocol.TProtocol prot, shutdownTabletServer_args struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; - java.util.BitSet incoming = iprot.readBitSet(4); - if (incoming.get(0)) { - struct.tinfo = new org.apache.accumulo.core.clientImpl.thrift.TInfo(); - struct.tinfo.read(iprot); - struct.setTinfoIsSet(true); - } - if (incoming.get(1)) { - struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); - struct.credentials.read(iprot); - struct.setCredentialsIsSet(true); - } - if (incoming.get(2)) { - struct.tabletServer = iprot.readString(); - struct.setTabletServerIsSet(true); - } - if (incoming.get(3)) { - struct.force = iprot.readBool(); - struct.setForceIsSet(true); + prot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(4); + if (incoming.get(0)) { + struct.tinfo = new org.apache.accumulo.core.clientImpl.thrift.TInfo(); + struct.tinfo.read(iprot); + struct.setTinfoIsSet(true); + } + if (incoming.get(1)) { + struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); + struct.credentials.read(iprot); + struct.setCredentialsIsSet(true); + } + if (incoming.get(2)) { + struct.tabletServer = iprot.readString(); + struct.setTabletServerIsSet(true); + } + if (incoming.get(3)) { + struct.force = iprot.readBool(); + struct.setForceIsSet(true); + } + } finally { + prot.decrementRecursionDepth(); } } } @@ -20568,42 +21068,47 @@ private static class shutdownTabletServer_resultStandardScheme extends org.apach @Override public void read(org.apache.thrift.protocol.TProtocol iprot, shutdownTabletServer_result struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TField schemeField; - iprot.readStructBegin(); - while (true) - { - schemeField = iprot.readFieldBegin(); - if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { - break; - } - switch (schemeField.id) { - case 1: // SEC - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.sec = new org.apache.accumulo.core.clientImpl.thrift.ThriftSecurityException(); - struct.sec.read(iprot); - struct.setSecIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } + iprot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; - case 2: // TNASE - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.tnase = new org.apache.accumulo.core.clientImpl.thrift.ThriftNotActiveServiceException(); - struct.tnase.read(iprot); - struct.setTnaseIsSet(true); - } else { + } + switch (schemeField.id) { + case 1: // SEC + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.sec = new org.apache.accumulo.core.clientImpl.thrift.ThriftSecurityException(); + struct.sec.read(iprot); + struct.setSecIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 2: // TNASE + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.tnase = new org.apache.accumulo.core.clientImpl.thrift.ThriftNotActiveServiceException(); + struct.tnase.read(iprot); + struct.setTnaseIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - default: - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); } - iprot.readFieldEnd(); - } - iprot.readStructEnd(); + iprot.readStructEnd(); - // check for required fields of primitive type, which can't be checked in the validate method - struct.validate(); + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } finally { + iprot.decrementRecursionDepth(); + } } @Override @@ -20657,17 +21162,22 @@ public void write(org.apache.thrift.protocol.TProtocol prot, shutdownTabletServe @Override public void read(org.apache.thrift.protocol.TProtocol prot, shutdownTabletServer_result struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; - java.util.BitSet incoming = iprot.readBitSet(2); - if (incoming.get(0)) { - struct.sec = new org.apache.accumulo.core.clientImpl.thrift.ThriftSecurityException(); - struct.sec.read(iprot); - struct.setSecIsSet(true); - } - if (incoming.get(1)) { - struct.tnase = new org.apache.accumulo.core.clientImpl.thrift.ThriftNotActiveServiceException(); - struct.tnase.read(iprot); - struct.setTnaseIsSet(true); + prot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(2); + if (incoming.get(0)) { + struct.sec = new org.apache.accumulo.core.clientImpl.thrift.ThriftSecurityException(); + struct.sec.read(iprot); + struct.setSecIsSet(true); + } + if (incoming.get(1)) { + struct.tnase = new org.apache.accumulo.core.clientImpl.thrift.ThriftNotActiveServiceException(); + struct.tnase.read(iprot); + struct.setTnaseIsSet(true); + } + } finally { + prot.decrementRecursionDepth(); } } } @@ -21226,58 +21736,63 @@ private static class tabletServerStopping_argsStandardScheme extends org.apache. @Override public void read(org.apache.thrift.protocol.TProtocol iprot, tabletServerStopping_args struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TField schemeField; - iprot.readStructBegin(); - while (true) - { - schemeField = iprot.readFieldBegin(); - if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { - break; - } - switch (schemeField.id) { - case 1: // TINFO - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.tinfo = new org.apache.accumulo.core.clientImpl.thrift.TInfo(); - struct.tinfo.read(iprot); - struct.setTinfoIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 2: // CREDENTIALS - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); - struct.credentials.read(iprot); - struct.setCredentialsIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 3: // TABLET_SERVER - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.tabletServer = iprot.readString(); - struct.setTabletServerIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } + iprot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; - case 4: // RESOURCE_GROUP - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.resourceGroup = iprot.readString(); - struct.setResourceGroupIsSet(true); - } else { + } + switch (schemeField.id) { + case 1: // TINFO + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.tinfo = new org.apache.accumulo.core.clientImpl.thrift.TInfo(); + struct.tinfo.read(iprot); + struct.setTinfoIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 2: // CREDENTIALS + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); + struct.credentials.read(iprot); + struct.setCredentialsIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 3: // TABLET_SERVER + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.tabletServer = iprot.readString(); + struct.setTabletServerIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 4: // RESOURCE_GROUP + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.resourceGroup = iprot.readString(); + struct.setResourceGroupIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - default: - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); } - iprot.readFieldEnd(); - } - iprot.readStructEnd(); + iprot.readStructEnd(); - // check for required fields of primitive type, which can't be checked in the validate method - struct.validate(); + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } finally { + iprot.decrementRecursionDepth(); + } } @Override @@ -21353,25 +21868,30 @@ public void write(org.apache.thrift.protocol.TProtocol prot, tabletServerStoppin @Override public void read(org.apache.thrift.protocol.TProtocol prot, tabletServerStopping_args struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; - java.util.BitSet incoming = iprot.readBitSet(4); - if (incoming.get(0)) { - struct.tinfo = new org.apache.accumulo.core.clientImpl.thrift.TInfo(); - struct.tinfo.read(iprot); - struct.setTinfoIsSet(true); - } - if (incoming.get(1)) { - struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); - struct.credentials.read(iprot); - struct.setCredentialsIsSet(true); - } - if (incoming.get(2)) { - struct.tabletServer = iprot.readString(); - struct.setTabletServerIsSet(true); - } - if (incoming.get(3)) { - struct.resourceGroup = iprot.readString(); - struct.setResourceGroupIsSet(true); + prot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(4); + if (incoming.get(0)) { + struct.tinfo = new org.apache.accumulo.core.clientImpl.thrift.TInfo(); + struct.tinfo.read(iprot); + struct.setTinfoIsSet(true); + } + if (incoming.get(1)) { + struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); + struct.credentials.read(iprot); + struct.setCredentialsIsSet(true); + } + if (incoming.get(2)) { + struct.tabletServer = iprot.readString(); + struct.setTabletServerIsSet(true); + } + if (incoming.get(3)) { + struct.resourceGroup = iprot.readString(); + struct.setResourceGroupIsSet(true); + } + } finally { + prot.decrementRecursionDepth(); } } } @@ -21759,42 +22279,47 @@ private static class tabletServerStopping_resultStandardScheme extends org.apach @Override public void read(org.apache.thrift.protocol.TProtocol iprot, tabletServerStopping_result struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TField schemeField; - iprot.readStructBegin(); - while (true) - { - schemeField = iprot.readFieldBegin(); - if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { - break; - } - switch (schemeField.id) { - case 1: // SEC - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.sec = new org.apache.accumulo.core.clientImpl.thrift.ThriftSecurityException(); - struct.sec.read(iprot); - struct.setSecIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } + iprot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; - case 2: // TNASE - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.tnase = new org.apache.accumulo.core.clientImpl.thrift.ThriftNotActiveServiceException(); - struct.tnase.read(iprot); - struct.setTnaseIsSet(true); - } else { + } + switch (schemeField.id) { + case 1: // SEC + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.sec = new org.apache.accumulo.core.clientImpl.thrift.ThriftSecurityException(); + struct.sec.read(iprot); + struct.setSecIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 2: // TNASE + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.tnase = new org.apache.accumulo.core.clientImpl.thrift.ThriftNotActiveServiceException(); + struct.tnase.read(iprot); + struct.setTnaseIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - default: - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); } - iprot.readFieldEnd(); - } - iprot.readStructEnd(); + iprot.readStructEnd(); - // check for required fields of primitive type, which can't be checked in the validate method - struct.validate(); + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } finally { + iprot.decrementRecursionDepth(); + } } @Override @@ -21848,17 +22373,22 @@ public void write(org.apache.thrift.protocol.TProtocol prot, tabletServerStoppin @Override public void read(org.apache.thrift.protocol.TProtocol prot, tabletServerStopping_result struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; - java.util.BitSet incoming = iprot.readBitSet(2); - if (incoming.get(0)) { - struct.sec = new org.apache.accumulo.core.clientImpl.thrift.ThriftSecurityException(); - struct.sec.read(iprot); - struct.setSecIsSet(true); - } - if (incoming.get(1)) { - struct.tnase = new org.apache.accumulo.core.clientImpl.thrift.ThriftNotActiveServiceException(); - struct.tnase.read(iprot); - struct.setTnaseIsSet(true); + prot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(2); + if (incoming.get(0)) { + struct.sec = new org.apache.accumulo.core.clientImpl.thrift.ThriftSecurityException(); + struct.sec.read(iprot); + struct.setSecIsSet(true); + } + if (incoming.get(1)) { + struct.tnase = new org.apache.accumulo.core.clientImpl.thrift.ThriftNotActiveServiceException(); + struct.tnase.read(iprot); + struct.setTnaseIsSet(true); + } + } finally { + prot.decrementRecursionDepth(); } } } @@ -22417,58 +22947,63 @@ private static class setSystemProperty_argsStandardScheme extends org.apache.thr @Override public void read(org.apache.thrift.protocol.TProtocol iprot, setSystemProperty_args struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TField schemeField; - iprot.readStructBegin(); - while (true) - { - schemeField = iprot.readFieldBegin(); - if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { - break; - } - switch (schemeField.id) { - case 1: // TINFO - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.tinfo = new org.apache.accumulo.core.clientImpl.thrift.TInfo(); - struct.tinfo.read(iprot); - struct.setTinfoIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 2: // CREDENTIALS - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); - struct.credentials.read(iprot); - struct.setCredentialsIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 3: // PROPERTY - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.property = iprot.readString(); - struct.setPropertyIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } + iprot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; - case 4: // VALUE - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.value = iprot.readString(); - struct.setValueIsSet(true); - } else { + } + switch (schemeField.id) { + case 1: // TINFO + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.tinfo = new org.apache.accumulo.core.clientImpl.thrift.TInfo(); + struct.tinfo.read(iprot); + struct.setTinfoIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 2: // CREDENTIALS + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); + struct.credentials.read(iprot); + struct.setCredentialsIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 3: // PROPERTY + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.property = iprot.readString(); + struct.setPropertyIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 4: // VALUE + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.value = iprot.readString(); + struct.setValueIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - default: - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); } - iprot.readFieldEnd(); - } - iprot.readStructEnd(); + iprot.readStructEnd(); - // check for required fields of primitive type, which can't be checked in the validate method - struct.validate(); + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } finally { + iprot.decrementRecursionDepth(); + } } @Override @@ -22544,25 +23079,30 @@ public void write(org.apache.thrift.protocol.TProtocol prot, setSystemProperty_a @Override public void read(org.apache.thrift.protocol.TProtocol prot, setSystemProperty_args struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; - java.util.BitSet incoming = iprot.readBitSet(4); - if (incoming.get(0)) { - struct.tinfo = new org.apache.accumulo.core.clientImpl.thrift.TInfo(); - struct.tinfo.read(iprot); - struct.setTinfoIsSet(true); - } - if (incoming.get(1)) { - struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); - struct.credentials.read(iprot); - struct.setCredentialsIsSet(true); - } - if (incoming.get(2)) { - struct.property = iprot.readString(); - struct.setPropertyIsSet(true); - } - if (incoming.get(3)) { - struct.value = iprot.readString(); - struct.setValueIsSet(true); + prot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(4); + if (incoming.get(0)) { + struct.tinfo = new org.apache.accumulo.core.clientImpl.thrift.TInfo(); + struct.tinfo.read(iprot); + struct.setTinfoIsSet(true); + } + if (incoming.get(1)) { + struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); + struct.credentials.read(iprot); + struct.setCredentialsIsSet(true); + } + if (incoming.get(2)) { + struct.property = iprot.readString(); + struct.setPropertyIsSet(true); + } + if (incoming.get(3)) { + struct.value = iprot.readString(); + struct.setValueIsSet(true); + } + } finally { + prot.decrementRecursionDepth(); } } } @@ -23032,51 +23572,56 @@ private static class setSystemProperty_resultStandardScheme extends org.apache.t @Override public void read(org.apache.thrift.protocol.TProtocol iprot, setSystemProperty_result struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TField schemeField; - iprot.readStructBegin(); - while (true) - { - schemeField = iprot.readFieldBegin(); - if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { - break; - } - switch (schemeField.id) { - case 1: // SEC - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.sec = new org.apache.accumulo.core.clientImpl.thrift.ThriftSecurityException(); - struct.sec.read(iprot); - struct.setSecIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 2: // TNASE - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.tnase = new org.apache.accumulo.core.clientImpl.thrift.ThriftNotActiveServiceException(); - struct.tnase.read(iprot); - struct.setTnaseIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } + iprot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; - case 3: // TPE - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.tpe = new ThriftPropertyException(); - struct.tpe.read(iprot); - struct.setTpeIsSet(true); - } else { + } + switch (schemeField.id) { + case 1: // SEC + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.sec = new org.apache.accumulo.core.clientImpl.thrift.ThriftSecurityException(); + struct.sec.read(iprot); + struct.setSecIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 2: // TNASE + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.tnase = new org.apache.accumulo.core.clientImpl.thrift.ThriftNotActiveServiceException(); + struct.tnase.read(iprot); + struct.setTnaseIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 3: // TPE + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.tpe = new ThriftPropertyException(); + struct.tpe.read(iprot); + struct.setTpeIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - default: - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); } - iprot.readFieldEnd(); - } - iprot.readStructEnd(); + iprot.readStructEnd(); - // check for required fields of primitive type, which can't be checked in the validate method - struct.validate(); + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } finally { + iprot.decrementRecursionDepth(); + } } @Override @@ -23141,22 +23686,27 @@ public void write(org.apache.thrift.protocol.TProtocol prot, setSystemProperty_r @Override public void read(org.apache.thrift.protocol.TProtocol prot, setSystemProperty_result struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; - java.util.BitSet incoming = iprot.readBitSet(3); - if (incoming.get(0)) { - struct.sec = new org.apache.accumulo.core.clientImpl.thrift.ThriftSecurityException(); - struct.sec.read(iprot); - struct.setSecIsSet(true); - } - if (incoming.get(1)) { - struct.tnase = new org.apache.accumulo.core.clientImpl.thrift.ThriftNotActiveServiceException(); - struct.tnase.read(iprot); - struct.setTnaseIsSet(true); - } - if (incoming.get(2)) { - struct.tpe = new ThriftPropertyException(); - struct.tpe.read(iprot); - struct.setTpeIsSet(true); + prot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(3); + if (incoming.get(0)) { + struct.sec = new org.apache.accumulo.core.clientImpl.thrift.ThriftSecurityException(); + struct.sec.read(iprot); + struct.setSecIsSet(true); + } + if (incoming.get(1)) { + struct.tnase = new org.apache.accumulo.core.clientImpl.thrift.ThriftNotActiveServiceException(); + struct.tnase.read(iprot); + struct.setTnaseIsSet(true); + } + if (incoming.get(2)) { + struct.tpe = new ThriftPropertyException(); + struct.tpe.read(iprot); + struct.setTpeIsSet(true); + } + } finally { + prot.decrementRecursionDepth(); } } } @@ -23636,51 +24186,56 @@ private static class modifySystemProperties_argsStandardScheme extends org.apach @Override public void read(org.apache.thrift.protocol.TProtocol iprot, modifySystemProperties_args struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TField schemeField; - iprot.readStructBegin(); - while (true) - { - schemeField = iprot.readFieldBegin(); - if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { - break; - } - switch (schemeField.id) { - case 1: // TINFO - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.tinfo = new org.apache.accumulo.core.clientImpl.thrift.TInfo(); - struct.tinfo.read(iprot); - struct.setTinfoIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 2: // CREDENTIALS - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); - struct.credentials.read(iprot); - struct.setCredentialsIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } + iprot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; - case 3: // V_PROPERTIES - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.vProperties = new org.apache.accumulo.core.clientImpl.thrift.TVersionedProperties(); - struct.vProperties.read(iprot); - struct.setVPropertiesIsSet(true); - } else { + } + switch (schemeField.id) { + case 1: // TINFO + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.tinfo = new org.apache.accumulo.core.clientImpl.thrift.TInfo(); + struct.tinfo.read(iprot); + struct.setTinfoIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 2: // CREDENTIALS + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); + struct.credentials.read(iprot); + struct.setCredentialsIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 3: // V_PROPERTIES + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.vProperties = new org.apache.accumulo.core.clientImpl.thrift.TVersionedProperties(); + struct.vProperties.read(iprot); + struct.setVPropertiesIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - default: - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); } - iprot.readFieldEnd(); - } - iprot.readStructEnd(); + iprot.readStructEnd(); - // check for required fields of primitive type, which can't be checked in the validate method - struct.validate(); + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } finally { + iprot.decrementRecursionDepth(); + } } @Override @@ -23745,22 +24300,27 @@ public void write(org.apache.thrift.protocol.TProtocol prot, modifySystemPropert @Override public void read(org.apache.thrift.protocol.TProtocol prot, modifySystemProperties_args struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; - java.util.BitSet incoming = iprot.readBitSet(3); - if (incoming.get(0)) { - struct.tinfo = new org.apache.accumulo.core.clientImpl.thrift.TInfo(); - struct.tinfo.read(iprot); - struct.setTinfoIsSet(true); - } - if (incoming.get(1)) { - struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); - struct.credentials.read(iprot); - struct.setCredentialsIsSet(true); - } - if (incoming.get(2)) { - struct.vProperties = new org.apache.accumulo.core.clientImpl.thrift.TVersionedProperties(); - struct.vProperties.read(iprot); - struct.setVPropertiesIsSet(true); + prot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(3); + if (incoming.get(0)) { + struct.tinfo = new org.apache.accumulo.core.clientImpl.thrift.TInfo(); + struct.tinfo.read(iprot); + struct.setTinfoIsSet(true); + } + if (incoming.get(1)) { + struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); + struct.credentials.read(iprot); + struct.setCredentialsIsSet(true); + } + if (incoming.get(2)) { + struct.vProperties = new org.apache.accumulo.core.clientImpl.thrift.TVersionedProperties(); + struct.vProperties.read(iprot); + struct.setVPropertiesIsSet(true); + } + } finally { + prot.decrementRecursionDepth(); } } } @@ -24312,60 +24872,65 @@ private static class modifySystemProperties_resultStandardScheme extends org.apa @Override public void read(org.apache.thrift.protocol.TProtocol iprot, modifySystemProperties_result struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TField schemeField; - iprot.readStructBegin(); - while (true) - { - schemeField = iprot.readFieldBegin(); - if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { - break; - } - switch (schemeField.id) { - case 1: // SEC - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.sec = new org.apache.accumulo.core.clientImpl.thrift.ThriftSecurityException(); - struct.sec.read(iprot); - struct.setSecIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 2: // TNASE - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.tnase = new org.apache.accumulo.core.clientImpl.thrift.ThriftNotActiveServiceException(); - struct.tnase.read(iprot); - struct.setTnaseIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 3: // TCME - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.tcme = new org.apache.accumulo.core.clientImpl.thrift.ThriftConcurrentModificationException(); - struct.tcme.read(iprot); - struct.setTcmeIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } + iprot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; - case 4: // TPE - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.tpe = new ThriftPropertyException(); - struct.tpe.read(iprot); - struct.setTpeIsSet(true); - } else { + } + switch (schemeField.id) { + case 1: // SEC + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.sec = new org.apache.accumulo.core.clientImpl.thrift.ThriftSecurityException(); + struct.sec.read(iprot); + struct.setSecIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 2: // TNASE + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.tnase = new org.apache.accumulo.core.clientImpl.thrift.ThriftNotActiveServiceException(); + struct.tnase.read(iprot); + struct.setTnaseIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 3: // TCME + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.tcme = new org.apache.accumulo.core.clientImpl.thrift.ThriftConcurrentModificationException(); + struct.tcme.read(iprot); + struct.setTcmeIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 4: // TPE + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.tpe = new ThriftPropertyException(); + struct.tpe.read(iprot); + struct.setTpeIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - default: - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); } - iprot.readFieldEnd(); - } - iprot.readStructEnd(); + iprot.readStructEnd(); - // check for required fields of primitive type, which can't be checked in the validate method - struct.validate(); + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } finally { + iprot.decrementRecursionDepth(); + } } @Override @@ -24441,27 +25006,32 @@ public void write(org.apache.thrift.protocol.TProtocol prot, modifySystemPropert @Override public void read(org.apache.thrift.protocol.TProtocol prot, modifySystemProperties_result struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; - java.util.BitSet incoming = iprot.readBitSet(4); - if (incoming.get(0)) { - struct.sec = new org.apache.accumulo.core.clientImpl.thrift.ThriftSecurityException(); - struct.sec.read(iprot); - struct.setSecIsSet(true); - } - if (incoming.get(1)) { - struct.tnase = new org.apache.accumulo.core.clientImpl.thrift.ThriftNotActiveServiceException(); - struct.tnase.read(iprot); - struct.setTnaseIsSet(true); - } - if (incoming.get(2)) { - struct.tcme = new org.apache.accumulo.core.clientImpl.thrift.ThriftConcurrentModificationException(); - struct.tcme.read(iprot); - struct.setTcmeIsSet(true); - } - if (incoming.get(3)) { - struct.tpe = new ThriftPropertyException(); - struct.tpe.read(iprot); - struct.setTpeIsSet(true); + prot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(4); + if (incoming.get(0)) { + struct.sec = new org.apache.accumulo.core.clientImpl.thrift.ThriftSecurityException(); + struct.sec.read(iprot); + struct.setSecIsSet(true); + } + if (incoming.get(1)) { + struct.tnase = new org.apache.accumulo.core.clientImpl.thrift.ThriftNotActiveServiceException(); + struct.tnase.read(iprot); + struct.setTnaseIsSet(true); + } + if (incoming.get(2)) { + struct.tcme = new org.apache.accumulo.core.clientImpl.thrift.ThriftConcurrentModificationException(); + struct.tcme.read(iprot); + struct.setTcmeIsSet(true); + } + if (incoming.get(3)) { + struct.tpe = new ThriftPropertyException(); + struct.tpe.read(iprot); + struct.setTpeIsSet(true); + } + } finally { + prot.decrementRecursionDepth(); } } } @@ -24938,50 +25508,55 @@ private static class removeSystemProperty_argsStandardScheme extends org.apache. @Override public void read(org.apache.thrift.protocol.TProtocol iprot, removeSystemProperty_args struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TField schemeField; - iprot.readStructBegin(); - while (true) - { - schemeField = iprot.readFieldBegin(); - if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { - break; - } - switch (schemeField.id) { - case 1: // TINFO - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.tinfo = new org.apache.accumulo.core.clientImpl.thrift.TInfo(); - struct.tinfo.read(iprot); - struct.setTinfoIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 2: // CREDENTIALS - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); - struct.credentials.read(iprot); - struct.setCredentialsIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } + iprot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; - case 3: // PROPERTY - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.property = iprot.readString(); - struct.setPropertyIsSet(true); - } else { + } + switch (schemeField.id) { + case 1: // TINFO + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.tinfo = new org.apache.accumulo.core.clientImpl.thrift.TInfo(); + struct.tinfo.read(iprot); + struct.setTinfoIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 2: // CREDENTIALS + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); + struct.credentials.read(iprot); + struct.setCredentialsIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 3: // PROPERTY + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.property = iprot.readString(); + struct.setPropertyIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - default: - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); } - iprot.readFieldEnd(); - } - iprot.readStructEnd(); + iprot.readStructEnd(); - // check for required fields of primitive type, which can't be checked in the validate method - struct.validate(); + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } finally { + iprot.decrementRecursionDepth(); + } } @Override @@ -25046,21 +25621,26 @@ public void write(org.apache.thrift.protocol.TProtocol prot, removeSystemPropert @Override public void read(org.apache.thrift.protocol.TProtocol prot, removeSystemProperty_args struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; - java.util.BitSet incoming = iprot.readBitSet(3); - if (incoming.get(0)) { - struct.tinfo = new org.apache.accumulo.core.clientImpl.thrift.TInfo(); - struct.tinfo.read(iprot); - struct.setTinfoIsSet(true); - } - if (incoming.get(1)) { - struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); - struct.credentials.read(iprot); - struct.setCredentialsIsSet(true); - } - if (incoming.get(2)) { - struct.property = iprot.readString(); - struct.setPropertyIsSet(true); + prot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(3); + if (incoming.get(0)) { + struct.tinfo = new org.apache.accumulo.core.clientImpl.thrift.TInfo(); + struct.tinfo.read(iprot); + struct.setTinfoIsSet(true); + } + if (incoming.get(1)) { + struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); + struct.credentials.read(iprot); + struct.setCredentialsIsSet(true); + } + if (incoming.get(2)) { + struct.property = iprot.readString(); + struct.setPropertyIsSet(true); + } + } finally { + prot.decrementRecursionDepth(); } } } @@ -25448,42 +26028,47 @@ private static class removeSystemProperty_resultStandardScheme extends org.apach @Override public void read(org.apache.thrift.protocol.TProtocol iprot, removeSystemProperty_result struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TField schemeField; - iprot.readStructBegin(); - while (true) - { - schemeField = iprot.readFieldBegin(); - if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { - break; - } - switch (schemeField.id) { - case 1: // SEC - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.sec = new org.apache.accumulo.core.clientImpl.thrift.ThriftSecurityException(); - struct.sec.read(iprot); - struct.setSecIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } + iprot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; - case 2: // TNASE - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.tnase = new org.apache.accumulo.core.clientImpl.thrift.ThriftNotActiveServiceException(); - struct.tnase.read(iprot); - struct.setTnaseIsSet(true); - } else { + } + switch (schemeField.id) { + case 1: // SEC + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.sec = new org.apache.accumulo.core.clientImpl.thrift.ThriftSecurityException(); + struct.sec.read(iprot); + struct.setSecIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 2: // TNASE + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.tnase = new org.apache.accumulo.core.clientImpl.thrift.ThriftNotActiveServiceException(); + struct.tnase.read(iprot); + struct.setTnaseIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - default: - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); } - iprot.readFieldEnd(); - } - iprot.readStructEnd(); + iprot.readStructEnd(); - // check for required fields of primitive type, which can't be checked in the validate method - struct.validate(); + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } finally { + iprot.decrementRecursionDepth(); + } } @Override @@ -25537,17 +26122,22 @@ public void write(org.apache.thrift.protocol.TProtocol prot, removeSystemPropert @Override public void read(org.apache.thrift.protocol.TProtocol prot, removeSystemProperty_result struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; - java.util.BitSet incoming = iprot.readBitSet(2); - if (incoming.get(0)) { - struct.sec = new org.apache.accumulo.core.clientImpl.thrift.ThriftSecurityException(); - struct.sec.read(iprot); - struct.setSecIsSet(true); - } - if (incoming.get(1)) { - struct.tnase = new org.apache.accumulo.core.clientImpl.thrift.ThriftNotActiveServiceException(); - struct.tnase.read(iprot); - struct.setTnaseIsSet(true); + prot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(2); + if (incoming.get(0)) { + struct.sec = new org.apache.accumulo.core.clientImpl.thrift.ThriftSecurityException(); + struct.sec.read(iprot); + struct.setSecIsSet(true); + } + if (incoming.get(1)) { + struct.tnase = new org.apache.accumulo.core.clientImpl.thrift.ThriftNotActiveServiceException(); + struct.tnase.read(iprot); + struct.setTnaseIsSet(true); + } + } finally { + prot.decrementRecursionDepth(); } } } @@ -26024,50 +26614,55 @@ private static class createResourceGroupNode_argsStandardScheme extends org.apac @Override public void read(org.apache.thrift.protocol.TProtocol iprot, createResourceGroupNode_args struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TField schemeField; - iprot.readStructBegin(); - while (true) - { - schemeField = iprot.readFieldBegin(); - if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { - break; - } - switch (schemeField.id) { - case 1: // TINFO - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.tinfo = new org.apache.accumulo.core.clientImpl.thrift.TInfo(); - struct.tinfo.read(iprot); - struct.setTinfoIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 2: // CREDENTIALS - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); - struct.credentials.read(iprot); - struct.setCredentialsIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } + iprot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; - case 3: // RESOURCE_GROUP - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.resourceGroup = iprot.readString(); - struct.setResourceGroupIsSet(true); - } else { + } + switch (schemeField.id) { + case 1: // TINFO + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.tinfo = new org.apache.accumulo.core.clientImpl.thrift.TInfo(); + struct.tinfo.read(iprot); + struct.setTinfoIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 2: // CREDENTIALS + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); + struct.credentials.read(iprot); + struct.setCredentialsIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 3: // RESOURCE_GROUP + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.resourceGroup = iprot.readString(); + struct.setResourceGroupIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - default: - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); } - iprot.readFieldEnd(); - } - iprot.readStructEnd(); + iprot.readStructEnd(); - // check for required fields of primitive type, which can't be checked in the validate method - struct.validate(); + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } finally { + iprot.decrementRecursionDepth(); + } } @Override @@ -26132,21 +26727,26 @@ public void write(org.apache.thrift.protocol.TProtocol prot, createResourceGroup @Override public void read(org.apache.thrift.protocol.TProtocol prot, createResourceGroupNode_args struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; - java.util.BitSet incoming = iprot.readBitSet(3); - if (incoming.get(0)) { - struct.tinfo = new org.apache.accumulo.core.clientImpl.thrift.TInfo(); - struct.tinfo.read(iprot); - struct.setTinfoIsSet(true); - } - if (incoming.get(1)) { - struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); - struct.credentials.read(iprot); - struct.setCredentialsIsSet(true); - } - if (incoming.get(2)) { - struct.resourceGroup = iprot.readString(); - struct.setResourceGroupIsSet(true); + prot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(3); + if (incoming.get(0)) { + struct.tinfo = new org.apache.accumulo.core.clientImpl.thrift.TInfo(); + struct.tinfo.read(iprot); + struct.setTinfoIsSet(true); + } + if (incoming.get(1)) { + struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); + struct.credentials.read(iprot); + struct.setCredentialsIsSet(true); + } + if (incoming.get(2)) { + struct.resourceGroup = iprot.readString(); + struct.setResourceGroupIsSet(true); + } + } finally { + prot.decrementRecursionDepth(); } } } @@ -26534,42 +27134,47 @@ private static class createResourceGroupNode_resultStandardScheme extends org.ap @Override public void read(org.apache.thrift.protocol.TProtocol iprot, createResourceGroupNode_result struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TField schemeField; - iprot.readStructBegin(); - while (true) - { - schemeField = iprot.readFieldBegin(); - if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { - break; - } - switch (schemeField.id) { - case 1: // SEC - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.sec = new org.apache.accumulo.core.clientImpl.thrift.ThriftSecurityException(); - struct.sec.read(iprot); - struct.setSecIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } + iprot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; - case 2: // TNASE - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.tnase = new org.apache.accumulo.core.clientImpl.thrift.ThriftNotActiveServiceException(); - struct.tnase.read(iprot); - struct.setTnaseIsSet(true); - } else { + } + switch (schemeField.id) { + case 1: // SEC + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.sec = new org.apache.accumulo.core.clientImpl.thrift.ThriftSecurityException(); + struct.sec.read(iprot); + struct.setSecIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 2: // TNASE + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.tnase = new org.apache.accumulo.core.clientImpl.thrift.ThriftNotActiveServiceException(); + struct.tnase.read(iprot); + struct.setTnaseIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - default: - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); } - iprot.readFieldEnd(); - } - iprot.readStructEnd(); + iprot.readStructEnd(); - // check for required fields of primitive type, which can't be checked in the validate method - struct.validate(); + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } finally { + iprot.decrementRecursionDepth(); + } } @Override @@ -26623,17 +27228,22 @@ public void write(org.apache.thrift.protocol.TProtocol prot, createResourceGroup @Override public void read(org.apache.thrift.protocol.TProtocol prot, createResourceGroupNode_result struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; - java.util.BitSet incoming = iprot.readBitSet(2); - if (incoming.get(0)) { - struct.sec = new org.apache.accumulo.core.clientImpl.thrift.ThriftSecurityException(); - struct.sec.read(iprot); - struct.setSecIsSet(true); - } - if (incoming.get(1)) { - struct.tnase = new org.apache.accumulo.core.clientImpl.thrift.ThriftNotActiveServiceException(); - struct.tnase.read(iprot); - struct.setTnaseIsSet(true); + prot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(2); + if (incoming.get(0)) { + struct.sec = new org.apache.accumulo.core.clientImpl.thrift.ThriftSecurityException(); + struct.sec.read(iprot); + struct.setSecIsSet(true); + } + if (incoming.get(1)) { + struct.tnase = new org.apache.accumulo.core.clientImpl.thrift.ThriftNotActiveServiceException(); + struct.tnase.read(iprot); + struct.setTnaseIsSet(true); + } + } finally { + prot.decrementRecursionDepth(); } } } @@ -27110,50 +27720,55 @@ private static class removeResourceGroupNode_argsStandardScheme extends org.apac @Override public void read(org.apache.thrift.protocol.TProtocol iprot, removeResourceGroupNode_args struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TField schemeField; - iprot.readStructBegin(); - while (true) - { - schemeField = iprot.readFieldBegin(); - if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { - break; - } - switch (schemeField.id) { - case 1: // TINFO - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.tinfo = new org.apache.accumulo.core.clientImpl.thrift.TInfo(); - struct.tinfo.read(iprot); - struct.setTinfoIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 2: // CREDENTIALS - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); - struct.credentials.read(iprot); - struct.setCredentialsIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } + iprot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; - case 3: // RESOURCE_GROUP - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.resourceGroup = iprot.readString(); - struct.setResourceGroupIsSet(true); - } else { + } + switch (schemeField.id) { + case 1: // TINFO + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.tinfo = new org.apache.accumulo.core.clientImpl.thrift.TInfo(); + struct.tinfo.read(iprot); + struct.setTinfoIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 2: // CREDENTIALS + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); + struct.credentials.read(iprot); + struct.setCredentialsIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 3: // RESOURCE_GROUP + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.resourceGroup = iprot.readString(); + struct.setResourceGroupIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - default: - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); } - iprot.readFieldEnd(); - } - iprot.readStructEnd(); + iprot.readStructEnd(); - // check for required fields of primitive type, which can't be checked in the validate method - struct.validate(); + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } finally { + iprot.decrementRecursionDepth(); + } } @Override @@ -27218,21 +27833,26 @@ public void write(org.apache.thrift.protocol.TProtocol prot, removeResourceGroup @Override public void read(org.apache.thrift.protocol.TProtocol prot, removeResourceGroupNode_args struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; - java.util.BitSet incoming = iprot.readBitSet(3); - if (incoming.get(0)) { - struct.tinfo = new org.apache.accumulo.core.clientImpl.thrift.TInfo(); - struct.tinfo.read(iprot); - struct.setTinfoIsSet(true); - } - if (incoming.get(1)) { - struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); - struct.credentials.read(iprot); - struct.setCredentialsIsSet(true); - } - if (incoming.get(2)) { - struct.resourceGroup = iprot.readString(); - struct.setResourceGroupIsSet(true); + prot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(3); + if (incoming.get(0)) { + struct.tinfo = new org.apache.accumulo.core.clientImpl.thrift.TInfo(); + struct.tinfo.read(iprot); + struct.setTinfoIsSet(true); + } + if (incoming.get(1)) { + struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); + struct.credentials.read(iprot); + struct.setCredentialsIsSet(true); + } + if (incoming.get(2)) { + struct.resourceGroup = iprot.readString(); + struct.setResourceGroupIsSet(true); + } + } finally { + prot.decrementRecursionDepth(); } } } @@ -27702,51 +28322,56 @@ private static class removeResourceGroupNode_resultStandardScheme extends org.ap @Override public void read(org.apache.thrift.protocol.TProtocol iprot, removeResourceGroupNode_result struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TField schemeField; - iprot.readStructBegin(); - while (true) - { - schemeField = iprot.readFieldBegin(); - if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { - break; - } - switch (schemeField.id) { - case 1: // SEC - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.sec = new org.apache.accumulo.core.clientImpl.thrift.ThriftSecurityException(); - struct.sec.read(iprot); - struct.setSecIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 2: // TNASE - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.tnase = new org.apache.accumulo.core.clientImpl.thrift.ThriftNotActiveServiceException(); - struct.tnase.read(iprot); - struct.setTnaseIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } + iprot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; - case 3: // RGNE - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.rgne = new org.apache.accumulo.core.clientImpl.thrift.ThriftResourceGroupNotExistsException(); - struct.rgne.read(iprot); - struct.setRgneIsSet(true); - } else { + } + switch (schemeField.id) { + case 1: // SEC + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.sec = new org.apache.accumulo.core.clientImpl.thrift.ThriftSecurityException(); + struct.sec.read(iprot); + struct.setSecIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 2: // TNASE + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.tnase = new org.apache.accumulo.core.clientImpl.thrift.ThriftNotActiveServiceException(); + struct.tnase.read(iprot); + struct.setTnaseIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 3: // RGNE + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.rgne = new org.apache.accumulo.core.clientImpl.thrift.ThriftResourceGroupNotExistsException(); + struct.rgne.read(iprot); + struct.setRgneIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - default: - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); } - iprot.readFieldEnd(); - } - iprot.readStructEnd(); + iprot.readStructEnd(); - // check for required fields of primitive type, which can't be checked in the validate method - struct.validate(); + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } finally { + iprot.decrementRecursionDepth(); + } } @Override @@ -27811,22 +28436,27 @@ public void write(org.apache.thrift.protocol.TProtocol prot, removeResourceGroup @Override public void read(org.apache.thrift.protocol.TProtocol prot, removeResourceGroupNode_result struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; - java.util.BitSet incoming = iprot.readBitSet(3); - if (incoming.get(0)) { - struct.sec = new org.apache.accumulo.core.clientImpl.thrift.ThriftSecurityException(); - struct.sec.read(iprot); - struct.setSecIsSet(true); - } - if (incoming.get(1)) { - struct.tnase = new org.apache.accumulo.core.clientImpl.thrift.ThriftNotActiveServiceException(); - struct.tnase.read(iprot); - struct.setTnaseIsSet(true); - } - if (incoming.get(2)) { - struct.rgne = new org.apache.accumulo.core.clientImpl.thrift.ThriftResourceGroupNotExistsException(); - struct.rgne.read(iprot); - struct.setRgneIsSet(true); + prot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(3); + if (incoming.get(0)) { + struct.sec = new org.apache.accumulo.core.clientImpl.thrift.ThriftSecurityException(); + struct.sec.read(iprot); + struct.setSecIsSet(true); + } + if (incoming.get(1)) { + struct.tnase = new org.apache.accumulo.core.clientImpl.thrift.ThriftNotActiveServiceException(); + struct.tnase.read(iprot); + struct.setTnaseIsSet(true); + } + if (incoming.get(2)) { + struct.rgne = new org.apache.accumulo.core.clientImpl.thrift.ThriftResourceGroupNotExistsException(); + struct.rgne.read(iprot); + struct.setRgneIsSet(true); + } + } finally { + prot.decrementRecursionDepth(); } } } @@ -28467,66 +29097,71 @@ private static class setResourceGroupProperty_argsStandardScheme extends org.apa @Override public void read(org.apache.thrift.protocol.TProtocol iprot, setResourceGroupProperty_args struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TField schemeField; - iprot.readStructBegin(); - while (true) - { - schemeField = iprot.readFieldBegin(); - if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { - break; - } - switch (schemeField.id) { - case 1: // TINFO - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.tinfo = new org.apache.accumulo.core.clientImpl.thrift.TInfo(); - struct.tinfo.read(iprot); - struct.setTinfoIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 2: // CREDENTIALS - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); - struct.credentials.read(iprot); - struct.setCredentialsIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 3: // RESOURCE_GROUP - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.resourceGroup = iprot.readString(); - struct.setResourceGroupIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 4: // PROPERTY - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.property = iprot.readString(); - struct.setPropertyIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } + iprot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; - case 5: // VALUE - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.value = iprot.readString(); - struct.setValueIsSet(true); - } else { + } + switch (schemeField.id) { + case 1: // TINFO + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.tinfo = new org.apache.accumulo.core.clientImpl.thrift.TInfo(); + struct.tinfo.read(iprot); + struct.setTinfoIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 2: // CREDENTIALS + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); + struct.credentials.read(iprot); + struct.setCredentialsIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 3: // RESOURCE_GROUP + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.resourceGroup = iprot.readString(); + struct.setResourceGroupIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 4: // PROPERTY + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.property = iprot.readString(); + struct.setPropertyIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 5: // VALUE + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.value = iprot.readString(); + struct.setValueIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - default: - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); } - iprot.readFieldEnd(); - } - iprot.readStructEnd(); + iprot.readStructEnd(); - // check for required fields of primitive type, which can't be checked in the validate method - struct.validate(); + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } finally { + iprot.decrementRecursionDepth(); + } } @Override @@ -28613,29 +29248,34 @@ public void write(org.apache.thrift.protocol.TProtocol prot, setResourceGroupPro @Override public void read(org.apache.thrift.protocol.TProtocol prot, setResourceGroupProperty_args struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; - java.util.BitSet incoming = iprot.readBitSet(5); - if (incoming.get(0)) { - struct.tinfo = new org.apache.accumulo.core.clientImpl.thrift.TInfo(); - struct.tinfo.read(iprot); - struct.setTinfoIsSet(true); - } - if (incoming.get(1)) { - struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); - struct.credentials.read(iprot); - struct.setCredentialsIsSet(true); - } - if (incoming.get(2)) { - struct.resourceGroup = iprot.readString(); - struct.setResourceGroupIsSet(true); - } - if (incoming.get(3)) { - struct.property = iprot.readString(); - struct.setPropertyIsSet(true); - } - if (incoming.get(4)) { - struct.value = iprot.readString(); - struct.setValueIsSet(true); + prot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(5); + if (incoming.get(0)) { + struct.tinfo = new org.apache.accumulo.core.clientImpl.thrift.TInfo(); + struct.tinfo.read(iprot); + struct.setTinfoIsSet(true); + } + if (incoming.get(1)) { + struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); + struct.credentials.read(iprot); + struct.setCredentialsIsSet(true); + } + if (incoming.get(2)) { + struct.resourceGroup = iprot.readString(); + struct.setResourceGroupIsSet(true); + } + if (incoming.get(3)) { + struct.property = iprot.readString(); + struct.setPropertyIsSet(true); + } + if (incoming.get(4)) { + struct.value = iprot.readString(); + struct.setValueIsSet(true); + } + } finally { + prot.decrementRecursionDepth(); } } } @@ -29187,60 +29827,65 @@ private static class setResourceGroupProperty_resultStandardScheme extends org.a @Override public void read(org.apache.thrift.protocol.TProtocol iprot, setResourceGroupProperty_result struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TField schemeField; - iprot.readStructBegin(); - while (true) - { - schemeField = iprot.readFieldBegin(); - if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { - break; - } - switch (schemeField.id) { - case 1: // SEC - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.sec = new org.apache.accumulo.core.clientImpl.thrift.ThriftSecurityException(); - struct.sec.read(iprot); - struct.setSecIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 2: // TNASE - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.tnase = new org.apache.accumulo.core.clientImpl.thrift.ThriftNotActiveServiceException(); - struct.tnase.read(iprot); - struct.setTnaseIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 3: // TPE - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.tpe = new ThriftPropertyException(); - struct.tpe.read(iprot); - struct.setTpeIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } + iprot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; - case 4: // RGNE - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.rgne = new org.apache.accumulo.core.clientImpl.thrift.ThriftResourceGroupNotExistsException(); - struct.rgne.read(iprot); - struct.setRgneIsSet(true); - } else { + } + switch (schemeField.id) { + case 1: // SEC + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.sec = new org.apache.accumulo.core.clientImpl.thrift.ThriftSecurityException(); + struct.sec.read(iprot); + struct.setSecIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 2: // TNASE + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.tnase = new org.apache.accumulo.core.clientImpl.thrift.ThriftNotActiveServiceException(); + struct.tnase.read(iprot); + struct.setTnaseIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 3: // TPE + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.tpe = new ThriftPropertyException(); + struct.tpe.read(iprot); + struct.setTpeIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 4: // RGNE + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.rgne = new org.apache.accumulo.core.clientImpl.thrift.ThriftResourceGroupNotExistsException(); + struct.rgne.read(iprot); + struct.setRgneIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - default: - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); } - iprot.readFieldEnd(); - } - iprot.readStructEnd(); + iprot.readStructEnd(); - // check for required fields of primitive type, which can't be checked in the validate method - struct.validate(); + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } finally { + iprot.decrementRecursionDepth(); + } } @Override @@ -29316,27 +29961,32 @@ public void write(org.apache.thrift.protocol.TProtocol prot, setResourceGroupPro @Override public void read(org.apache.thrift.protocol.TProtocol prot, setResourceGroupProperty_result struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; - java.util.BitSet incoming = iprot.readBitSet(4); - if (incoming.get(0)) { - struct.sec = new org.apache.accumulo.core.clientImpl.thrift.ThriftSecurityException(); - struct.sec.read(iprot); - struct.setSecIsSet(true); - } - if (incoming.get(1)) { - struct.tnase = new org.apache.accumulo.core.clientImpl.thrift.ThriftNotActiveServiceException(); - struct.tnase.read(iprot); - struct.setTnaseIsSet(true); - } - if (incoming.get(2)) { - struct.tpe = new ThriftPropertyException(); - struct.tpe.read(iprot); - struct.setTpeIsSet(true); - } - if (incoming.get(3)) { - struct.rgne = new org.apache.accumulo.core.clientImpl.thrift.ThriftResourceGroupNotExistsException(); - struct.rgne.read(iprot); - struct.setRgneIsSet(true); + prot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(4); + if (incoming.get(0)) { + struct.sec = new org.apache.accumulo.core.clientImpl.thrift.ThriftSecurityException(); + struct.sec.read(iprot); + struct.setSecIsSet(true); + } + if (incoming.get(1)) { + struct.tnase = new org.apache.accumulo.core.clientImpl.thrift.ThriftNotActiveServiceException(); + struct.tnase.read(iprot); + struct.setTnaseIsSet(true); + } + if (incoming.get(2)) { + struct.tpe = new ThriftPropertyException(); + struct.tpe.read(iprot); + struct.setTpeIsSet(true); + } + if (incoming.get(3)) { + struct.rgne = new org.apache.accumulo.core.clientImpl.thrift.ThriftResourceGroupNotExistsException(); + struct.rgne.read(iprot); + struct.setRgneIsSet(true); + } + } finally { + prot.decrementRecursionDepth(); } } } @@ -29898,59 +30548,64 @@ private static class modifyResourceGroupProperties_argsStandardScheme extends or @Override public void read(org.apache.thrift.protocol.TProtocol iprot, modifyResourceGroupProperties_args struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TField schemeField; - iprot.readStructBegin(); - while (true) - { - schemeField = iprot.readFieldBegin(); - if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { - break; - } - switch (schemeField.id) { - case 1: // TINFO - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.tinfo = new org.apache.accumulo.core.clientImpl.thrift.TInfo(); - struct.tinfo.read(iprot); - struct.setTinfoIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 2: // CREDENTIALS - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); - struct.credentials.read(iprot); - struct.setCredentialsIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 3: // RESOURCE_GROUP - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.resourceGroup = iprot.readString(); - struct.setResourceGroupIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } + iprot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; - case 4: // V_PROPERTIES - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.vProperties = new org.apache.accumulo.core.clientImpl.thrift.TVersionedProperties(); - struct.vProperties.read(iprot); - struct.setVPropertiesIsSet(true); - } else { + } + switch (schemeField.id) { + case 1: // TINFO + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.tinfo = new org.apache.accumulo.core.clientImpl.thrift.TInfo(); + struct.tinfo.read(iprot); + struct.setTinfoIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 2: // CREDENTIALS + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); + struct.credentials.read(iprot); + struct.setCredentialsIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 3: // RESOURCE_GROUP + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.resourceGroup = iprot.readString(); + struct.setResourceGroupIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 4: // V_PROPERTIES + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.vProperties = new org.apache.accumulo.core.clientImpl.thrift.TVersionedProperties(); + struct.vProperties.read(iprot); + struct.setVPropertiesIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - default: - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); } - iprot.readFieldEnd(); - } - iprot.readStructEnd(); + iprot.readStructEnd(); - // check for required fields of primitive type, which can't be checked in the validate method - struct.validate(); + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } finally { + iprot.decrementRecursionDepth(); + } } @Override @@ -30026,26 +30681,31 @@ public void write(org.apache.thrift.protocol.TProtocol prot, modifyResourceGroup @Override public void read(org.apache.thrift.protocol.TProtocol prot, modifyResourceGroupProperties_args struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; - java.util.BitSet incoming = iprot.readBitSet(4); - if (incoming.get(0)) { - struct.tinfo = new org.apache.accumulo.core.clientImpl.thrift.TInfo(); - struct.tinfo.read(iprot); - struct.setTinfoIsSet(true); - } - if (incoming.get(1)) { - struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); - struct.credentials.read(iprot); - struct.setCredentialsIsSet(true); - } - if (incoming.get(2)) { - struct.resourceGroup = iprot.readString(); - struct.setResourceGroupIsSet(true); - } - if (incoming.get(3)) { - struct.vProperties = new org.apache.accumulo.core.clientImpl.thrift.TVersionedProperties(); - struct.vProperties.read(iprot); - struct.setVPropertiesIsSet(true); + prot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(4); + if (incoming.get(0)) { + struct.tinfo = new org.apache.accumulo.core.clientImpl.thrift.TInfo(); + struct.tinfo.read(iprot); + struct.setTinfoIsSet(true); + } + if (incoming.get(1)) { + struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); + struct.credentials.read(iprot); + struct.setCredentialsIsSet(true); + } + if (incoming.get(2)) { + struct.resourceGroup = iprot.readString(); + struct.setResourceGroupIsSet(true); + } + if (incoming.get(3)) { + struct.vProperties = new org.apache.accumulo.core.clientImpl.thrift.TVersionedProperties(); + struct.vProperties.read(iprot); + struct.setVPropertiesIsSet(true); + } + } finally { + prot.decrementRecursionDepth(); } } } @@ -30679,69 +31339,74 @@ private static class modifyResourceGroupProperties_resultStandardScheme extends @Override public void read(org.apache.thrift.protocol.TProtocol iprot, modifyResourceGroupProperties_result struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TField schemeField; - iprot.readStructBegin(); - while (true) - { - schemeField = iprot.readFieldBegin(); - if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { - break; - } - switch (schemeField.id) { - case 1: // SEC - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.sec = new org.apache.accumulo.core.clientImpl.thrift.ThriftSecurityException(); - struct.sec.read(iprot); - struct.setSecIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 2: // TNASE - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.tnase = new org.apache.accumulo.core.clientImpl.thrift.ThriftNotActiveServiceException(); - struct.tnase.read(iprot); - struct.setTnaseIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 3: // TCME - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.tcme = new org.apache.accumulo.core.clientImpl.thrift.ThriftConcurrentModificationException(); - struct.tcme.read(iprot); - struct.setTcmeIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 4: // TPE - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.tpe = new ThriftPropertyException(); - struct.tpe.read(iprot); - struct.setTpeIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } + iprot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; - case 5: // RGNE - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.rgne = new org.apache.accumulo.core.clientImpl.thrift.ThriftResourceGroupNotExistsException(); - struct.rgne.read(iprot); - struct.setRgneIsSet(true); - } else { + } + switch (schemeField.id) { + case 1: // SEC + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.sec = new org.apache.accumulo.core.clientImpl.thrift.ThriftSecurityException(); + struct.sec.read(iprot); + struct.setSecIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 2: // TNASE + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.tnase = new org.apache.accumulo.core.clientImpl.thrift.ThriftNotActiveServiceException(); + struct.tnase.read(iprot); + struct.setTnaseIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 3: // TCME + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.tcme = new org.apache.accumulo.core.clientImpl.thrift.ThriftConcurrentModificationException(); + struct.tcme.read(iprot); + struct.setTcmeIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 4: // TPE + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.tpe = new ThriftPropertyException(); + struct.tpe.read(iprot); + struct.setTpeIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 5: // RGNE + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.rgne = new org.apache.accumulo.core.clientImpl.thrift.ThriftResourceGroupNotExistsException(); + struct.rgne.read(iprot); + struct.setRgneIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - default: - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); } - iprot.readFieldEnd(); - } - iprot.readStructEnd(); + iprot.readStructEnd(); - // check for required fields of primitive type, which can't be checked in the validate method - struct.validate(); + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } finally { + iprot.decrementRecursionDepth(); + } } @Override @@ -30828,32 +31493,37 @@ public void write(org.apache.thrift.protocol.TProtocol prot, modifyResourceGroup @Override public void read(org.apache.thrift.protocol.TProtocol prot, modifyResourceGroupProperties_result struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; - java.util.BitSet incoming = iprot.readBitSet(5); - if (incoming.get(0)) { - struct.sec = new org.apache.accumulo.core.clientImpl.thrift.ThriftSecurityException(); - struct.sec.read(iprot); - struct.setSecIsSet(true); - } - if (incoming.get(1)) { - struct.tnase = new org.apache.accumulo.core.clientImpl.thrift.ThriftNotActiveServiceException(); - struct.tnase.read(iprot); - struct.setTnaseIsSet(true); - } - if (incoming.get(2)) { - struct.tcme = new org.apache.accumulo.core.clientImpl.thrift.ThriftConcurrentModificationException(); - struct.tcme.read(iprot); - struct.setTcmeIsSet(true); - } - if (incoming.get(3)) { - struct.tpe = new ThriftPropertyException(); - struct.tpe.read(iprot); - struct.setTpeIsSet(true); - } - if (incoming.get(4)) { - struct.rgne = new org.apache.accumulo.core.clientImpl.thrift.ThriftResourceGroupNotExistsException(); - struct.rgne.read(iprot); - struct.setRgneIsSet(true); + prot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(5); + if (incoming.get(0)) { + struct.sec = new org.apache.accumulo.core.clientImpl.thrift.ThriftSecurityException(); + struct.sec.read(iprot); + struct.setSecIsSet(true); + } + if (incoming.get(1)) { + struct.tnase = new org.apache.accumulo.core.clientImpl.thrift.ThriftNotActiveServiceException(); + struct.tnase.read(iprot); + struct.setTnaseIsSet(true); + } + if (incoming.get(2)) { + struct.tcme = new org.apache.accumulo.core.clientImpl.thrift.ThriftConcurrentModificationException(); + struct.tcme.read(iprot); + struct.setTcmeIsSet(true); + } + if (incoming.get(3)) { + struct.tpe = new ThriftPropertyException(); + struct.tpe.read(iprot); + struct.setTpeIsSet(true); + } + if (incoming.get(4)) { + struct.rgne = new org.apache.accumulo.core.clientImpl.thrift.ThriftResourceGroupNotExistsException(); + struct.rgne.read(iprot); + struct.setRgneIsSet(true); + } + } finally { + prot.decrementRecursionDepth(); } } } @@ -31412,58 +32082,63 @@ private static class removeResourceGroupProperty_argsStandardScheme extends org. @Override public void read(org.apache.thrift.protocol.TProtocol iprot, removeResourceGroupProperty_args struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TField schemeField; - iprot.readStructBegin(); - while (true) - { - schemeField = iprot.readFieldBegin(); - if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { - break; - } - switch (schemeField.id) { - case 1: // TINFO - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.tinfo = new org.apache.accumulo.core.clientImpl.thrift.TInfo(); - struct.tinfo.read(iprot); - struct.setTinfoIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 2: // CREDENTIALS - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); - struct.credentials.read(iprot); - struct.setCredentialsIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 3: // RESOURCE_GROUP - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.resourceGroup = iprot.readString(); - struct.setResourceGroupIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } + iprot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; - case 4: // PROPERTY - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.property = iprot.readString(); - struct.setPropertyIsSet(true); - } else { + } + switch (schemeField.id) { + case 1: // TINFO + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.tinfo = new org.apache.accumulo.core.clientImpl.thrift.TInfo(); + struct.tinfo.read(iprot); + struct.setTinfoIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 2: // CREDENTIALS + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); + struct.credentials.read(iprot); + struct.setCredentialsIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 3: // RESOURCE_GROUP + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.resourceGroup = iprot.readString(); + struct.setResourceGroupIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 4: // PROPERTY + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.property = iprot.readString(); + struct.setPropertyIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - default: - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); } - iprot.readFieldEnd(); - } - iprot.readStructEnd(); + iprot.readStructEnd(); - // check for required fields of primitive type, which can't be checked in the validate method - struct.validate(); + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } finally { + iprot.decrementRecursionDepth(); + } } @Override @@ -31539,25 +32214,30 @@ public void write(org.apache.thrift.protocol.TProtocol prot, removeResourceGroup @Override public void read(org.apache.thrift.protocol.TProtocol prot, removeResourceGroupProperty_args struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; - java.util.BitSet incoming = iprot.readBitSet(4); - if (incoming.get(0)) { - struct.tinfo = new org.apache.accumulo.core.clientImpl.thrift.TInfo(); - struct.tinfo.read(iprot); - struct.setTinfoIsSet(true); - } - if (incoming.get(1)) { - struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); - struct.credentials.read(iprot); - struct.setCredentialsIsSet(true); - } - if (incoming.get(2)) { - struct.resourceGroup = iprot.readString(); - struct.setResourceGroupIsSet(true); - } - if (incoming.get(3)) { - struct.property = iprot.readString(); - struct.setPropertyIsSet(true); + prot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(4); + if (incoming.get(0)) { + struct.tinfo = new org.apache.accumulo.core.clientImpl.thrift.TInfo(); + struct.tinfo.read(iprot); + struct.setTinfoIsSet(true); + } + if (incoming.get(1)) { + struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); + struct.credentials.read(iprot); + struct.setCredentialsIsSet(true); + } + if (incoming.get(2)) { + struct.resourceGroup = iprot.readString(); + struct.setResourceGroupIsSet(true); + } + if (incoming.get(3)) { + struct.property = iprot.readString(); + struct.setPropertyIsSet(true); + } + } finally { + prot.decrementRecursionDepth(); } } } @@ -32027,51 +32707,56 @@ private static class removeResourceGroupProperty_resultStandardScheme extends or @Override public void read(org.apache.thrift.protocol.TProtocol iprot, removeResourceGroupProperty_result struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TField schemeField; - iprot.readStructBegin(); - while (true) - { - schemeField = iprot.readFieldBegin(); - if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { - break; - } - switch (schemeField.id) { - case 1: // SEC - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.sec = new org.apache.accumulo.core.clientImpl.thrift.ThriftSecurityException(); - struct.sec.read(iprot); - struct.setSecIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 2: // TNASE - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.tnase = new org.apache.accumulo.core.clientImpl.thrift.ThriftNotActiveServiceException(); - struct.tnase.read(iprot); - struct.setTnaseIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } + iprot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; - case 3: // RGNE - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.rgne = new org.apache.accumulo.core.clientImpl.thrift.ThriftResourceGroupNotExistsException(); - struct.rgne.read(iprot); - struct.setRgneIsSet(true); - } else { + } + switch (schemeField.id) { + case 1: // SEC + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.sec = new org.apache.accumulo.core.clientImpl.thrift.ThriftSecurityException(); + struct.sec.read(iprot); + struct.setSecIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 2: // TNASE + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.tnase = new org.apache.accumulo.core.clientImpl.thrift.ThriftNotActiveServiceException(); + struct.tnase.read(iprot); + struct.setTnaseIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 3: // RGNE + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.rgne = new org.apache.accumulo.core.clientImpl.thrift.ThriftResourceGroupNotExistsException(); + struct.rgne.read(iprot); + struct.setRgneIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - default: - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); } - iprot.readFieldEnd(); - } - iprot.readStructEnd(); + iprot.readStructEnd(); - // check for required fields of primitive type, which can't be checked in the validate method - struct.validate(); + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } finally { + iprot.decrementRecursionDepth(); + } } @Override @@ -32136,22 +32821,27 @@ public void write(org.apache.thrift.protocol.TProtocol prot, removeResourceGroup @Override public void read(org.apache.thrift.protocol.TProtocol prot, removeResourceGroupProperty_result struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; - java.util.BitSet incoming = iprot.readBitSet(3); - if (incoming.get(0)) { - struct.sec = new org.apache.accumulo.core.clientImpl.thrift.ThriftSecurityException(); - struct.sec.read(iprot); - struct.setSecIsSet(true); - } - if (incoming.get(1)) { - struct.tnase = new org.apache.accumulo.core.clientImpl.thrift.ThriftNotActiveServiceException(); - struct.tnase.read(iprot); - struct.setTnaseIsSet(true); - } - if (incoming.get(2)) { - struct.rgne = new org.apache.accumulo.core.clientImpl.thrift.ThriftResourceGroupNotExistsException(); - struct.rgne.read(iprot); - struct.setRgneIsSet(true); + prot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(3); + if (incoming.get(0)) { + struct.sec = new org.apache.accumulo.core.clientImpl.thrift.ThriftSecurityException(); + struct.sec.read(iprot); + struct.setSecIsSet(true); + } + if (incoming.get(1)) { + struct.tnase = new org.apache.accumulo.core.clientImpl.thrift.ThriftNotActiveServiceException(); + struct.tnase.read(iprot); + struct.setTnaseIsSet(true); + } + if (incoming.get(2)) { + struct.rgne = new org.apache.accumulo.core.clientImpl.thrift.ThriftResourceGroupNotExistsException(); + struct.rgne.read(iprot); + struct.setRgneIsSet(true); + } + } finally { + prot.decrementRecursionDepth(); } } } @@ -32546,42 +33236,47 @@ private static class getManagerStats_argsStandardScheme extends org.apache.thrif @Override public void read(org.apache.thrift.protocol.TProtocol iprot, getManagerStats_args struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TField schemeField; - iprot.readStructBegin(); - while (true) - { - schemeField = iprot.readFieldBegin(); - if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { - break; - } - switch (schemeField.id) { - case 1: // TINFO - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.tinfo = new org.apache.accumulo.core.clientImpl.thrift.TInfo(); - struct.tinfo.read(iprot); - struct.setTinfoIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } + iprot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; - case 2: // CREDENTIALS - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); - struct.credentials.read(iprot); - struct.setCredentialsIsSet(true); - } else { + } + switch (schemeField.id) { + case 1: // TINFO + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.tinfo = new org.apache.accumulo.core.clientImpl.thrift.TInfo(); + struct.tinfo.read(iprot); + struct.setTinfoIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 2: // CREDENTIALS + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); + struct.credentials.read(iprot); + struct.setCredentialsIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - default: - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); } - iprot.readFieldEnd(); - } - iprot.readStructEnd(); + iprot.readStructEnd(); - // check for required fields of primitive type, which can't be checked in the validate method - struct.validate(); + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } finally { + iprot.decrementRecursionDepth(); + } } @Override @@ -32635,17 +33330,22 @@ public void write(org.apache.thrift.protocol.TProtocol prot, getManagerStats_arg @Override public void read(org.apache.thrift.protocol.TProtocol prot, getManagerStats_args struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; - java.util.BitSet incoming = iprot.readBitSet(2); - if (incoming.get(0)) { - struct.tinfo = new org.apache.accumulo.core.clientImpl.thrift.TInfo(); - struct.tinfo.read(iprot); - struct.setTinfoIsSet(true); - } - if (incoming.get(1)) { - struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); - struct.credentials.read(iprot); - struct.setCredentialsIsSet(true); + prot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(2); + if (incoming.get(0)) { + struct.tinfo = new org.apache.accumulo.core.clientImpl.thrift.TInfo(); + struct.tinfo.read(iprot); + struct.setTinfoIsSet(true); + } + if (incoming.get(1)) { + struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); + struct.credentials.read(iprot); + struct.setCredentialsIsSet(true); + } + } finally { + prot.decrementRecursionDepth(); } } } @@ -33118,51 +33818,56 @@ private static class getManagerStats_resultStandardScheme extends org.apache.thr @Override public void read(org.apache.thrift.protocol.TProtocol iprot, getManagerStats_result struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TField schemeField; - iprot.readStructBegin(); - while (true) - { - schemeField = iprot.readFieldBegin(); - if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { - break; - } - switch (schemeField.id) { - case 0: // SUCCESS - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.success = new ManagerMonitorInfo(); - struct.success.read(iprot); - struct.setSuccessIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 1: // SEC - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.sec = new org.apache.accumulo.core.clientImpl.thrift.ThriftSecurityException(); - struct.sec.read(iprot); - struct.setSecIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } + iprot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; - case 2: // TNASE - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.tnase = new org.apache.accumulo.core.clientImpl.thrift.ThriftNotActiveServiceException(); - struct.tnase.read(iprot); - struct.setTnaseIsSet(true); - } else { + } + switch (schemeField.id) { + case 0: // SUCCESS + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.success = new ManagerMonitorInfo(); + struct.success.read(iprot); + struct.setSuccessIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 1: // SEC + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.sec = new org.apache.accumulo.core.clientImpl.thrift.ThriftSecurityException(); + struct.sec.read(iprot); + struct.setSecIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 2: // TNASE + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.tnase = new org.apache.accumulo.core.clientImpl.thrift.ThriftNotActiveServiceException(); + struct.tnase.read(iprot); + struct.setTnaseIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - default: - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); } - iprot.readFieldEnd(); - } - iprot.readStructEnd(); + iprot.readStructEnd(); - // check for required fields of primitive type, which can't be checked in the validate method - struct.validate(); + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } finally { + iprot.decrementRecursionDepth(); + } } @Override @@ -33227,22 +33932,27 @@ public void write(org.apache.thrift.protocol.TProtocol prot, getManagerStats_res @Override public void read(org.apache.thrift.protocol.TProtocol prot, getManagerStats_result struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; - java.util.BitSet incoming = iprot.readBitSet(3); - if (incoming.get(0)) { - struct.success = new ManagerMonitorInfo(); - struct.success.read(iprot); - struct.setSuccessIsSet(true); - } - if (incoming.get(1)) { - struct.sec = new org.apache.accumulo.core.clientImpl.thrift.ThriftSecurityException(); - struct.sec.read(iprot); - struct.setSecIsSet(true); - } - if (incoming.get(2)) { - struct.tnase = new org.apache.accumulo.core.clientImpl.thrift.ThriftNotActiveServiceException(); - struct.tnase.read(iprot); - struct.setTnaseIsSet(true); + prot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(3); + if (incoming.get(0)) { + struct.success = new ManagerMonitorInfo(); + struct.success.read(iprot); + struct.setSuccessIsSet(true); + } + if (incoming.get(1)) { + struct.sec = new org.apache.accumulo.core.clientImpl.thrift.ThriftSecurityException(); + struct.sec.read(iprot); + struct.setSecIsSet(true); + } + if (incoming.get(2)) { + struct.tnase = new org.apache.accumulo.core.clientImpl.thrift.ThriftNotActiveServiceException(); + struct.tnase.read(iprot); + struct.setTnaseIsSet(true); + } + } finally { + prot.decrementRecursionDepth(); } } } @@ -33552,33 +34262,38 @@ private static class waitForBalance_argsStandardScheme extends org.apache.thrift @Override public void read(org.apache.thrift.protocol.TProtocol iprot, waitForBalance_args struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TField schemeField; - iprot.readStructBegin(); - while (true) - { - schemeField = iprot.readFieldBegin(); - if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { - break; - } - switch (schemeField.id) { - case 1: // TINFO - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.tinfo = new org.apache.accumulo.core.clientImpl.thrift.TInfo(); - struct.tinfo.read(iprot); - struct.setTinfoIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } + iprot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; - default: - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + switch (schemeField.id) { + case 1: // TINFO + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.tinfo = new org.apache.accumulo.core.clientImpl.thrift.TInfo(); + struct.tinfo.read(iprot); + struct.setTinfoIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + default: + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); } - iprot.readFieldEnd(); - } - iprot.readStructEnd(); + iprot.readStructEnd(); - // check for required fields of primitive type, which can't be checked in the validate method - struct.validate(); + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } finally { + iprot.decrementRecursionDepth(); + } } @Override @@ -33621,12 +34336,17 @@ public void write(org.apache.thrift.protocol.TProtocol prot, waitForBalance_args @Override public void read(org.apache.thrift.protocol.TProtocol prot, waitForBalance_args struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; - java.util.BitSet incoming = iprot.readBitSet(1); - if (incoming.get(0)) { - struct.tinfo = new org.apache.accumulo.core.clientImpl.thrift.TInfo(); - struct.tinfo.read(iprot); - struct.setTinfoIsSet(true); + prot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(1); + if (incoming.get(0)) { + struct.tinfo = new org.apache.accumulo.core.clientImpl.thrift.TInfo(); + struct.tinfo.read(iprot); + struct.setTinfoIsSet(true); + } + } finally { + prot.decrementRecursionDepth(); } } } @@ -33932,33 +34652,38 @@ private static class waitForBalance_resultStandardScheme extends org.apache.thri @Override public void read(org.apache.thrift.protocol.TProtocol iprot, waitForBalance_result struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TField schemeField; - iprot.readStructBegin(); - while (true) - { - schemeField = iprot.readFieldBegin(); - if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { - break; - } - switch (schemeField.id) { - case 1: // TNASE - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.tnase = new org.apache.accumulo.core.clientImpl.thrift.ThriftNotActiveServiceException(); - struct.tnase.read(iprot); - struct.setTnaseIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } + iprot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; - default: - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + switch (schemeField.id) { + case 1: // TNASE + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.tnase = new org.apache.accumulo.core.clientImpl.thrift.ThriftNotActiveServiceException(); + struct.tnase.read(iprot); + struct.setTnaseIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + default: + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); } - iprot.readFieldEnd(); - } - iprot.readStructEnd(); + iprot.readStructEnd(); - // check for required fields of primitive type, which can't be checked in the validate method - struct.validate(); + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } finally { + iprot.decrementRecursionDepth(); + } } @Override @@ -34001,12 +34726,17 @@ public void write(org.apache.thrift.protocol.TProtocol prot, waitForBalance_resu @Override public void read(org.apache.thrift.protocol.TProtocol prot, waitForBalance_result struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; - java.util.BitSet incoming = iprot.readBitSet(1); - if (incoming.get(0)) { - struct.tnase = new org.apache.accumulo.core.clientImpl.thrift.ThriftNotActiveServiceException(); - struct.tnase.read(iprot); - struct.setTnaseIsSet(true); + prot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(1); + if (incoming.get(0)) { + struct.tnase = new org.apache.accumulo.core.clientImpl.thrift.ThriftNotActiveServiceException(); + struct.tnase.read(iprot); + struct.setTnaseIsSet(true); + } + } finally { + prot.decrementRecursionDepth(); } } } @@ -34666,67 +35396,72 @@ private static class reportTabletStatus_argsStandardScheme extends org.apache.th @Override public void read(org.apache.thrift.protocol.TProtocol iprot, reportTabletStatus_args struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TField schemeField; - iprot.readStructBegin(); - while (true) - { - schemeField = iprot.readFieldBegin(); - if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { - break; - } - switch (schemeField.id) { - case 1: // TINFO - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.tinfo = new org.apache.accumulo.core.clientImpl.thrift.TInfo(); - struct.tinfo.read(iprot); - struct.setTinfoIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 2: // CREDENTIALS - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); - struct.credentials.read(iprot); - struct.setCredentialsIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 3: // SERVER_NAME - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.serverName = iprot.readString(); - struct.setServerNameIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 4: // STATUS - if (schemeField.type == org.apache.thrift.protocol.TType.I32) { - struct.status = org.apache.accumulo.core.manager.thrift.TabletLoadState.findByValue(iprot.readI32()); - struct.setStatusIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } + iprot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; - case 5: // TABLET - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.tablet = new org.apache.accumulo.core.dataImpl.thrift.TKeyExtent(); - struct.tablet.read(iprot); - struct.setTabletIsSet(true); - } else { + } + switch (schemeField.id) { + case 1: // TINFO + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.tinfo = new org.apache.accumulo.core.clientImpl.thrift.TInfo(); + struct.tinfo.read(iprot); + struct.setTinfoIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 2: // CREDENTIALS + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); + struct.credentials.read(iprot); + struct.setCredentialsIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 3: // SERVER_NAME + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.serverName = iprot.readString(); + struct.setServerNameIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 4: // STATUS + if (schemeField.type == org.apache.thrift.protocol.TType.I32) { + struct.status = org.apache.accumulo.core.manager.thrift.TabletLoadState.findByValue(iprot.readI32()); + struct.setStatusIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 5: // TABLET + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.tablet = new org.apache.accumulo.core.dataImpl.thrift.TKeyExtent(); + struct.tablet.read(iprot); + struct.setTabletIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - default: - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); } - iprot.readFieldEnd(); - } - iprot.readStructEnd(); + iprot.readStructEnd(); - // check for required fields of primitive type, which can't be checked in the validate method - struct.validate(); + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } finally { + iprot.decrementRecursionDepth(); + } } @Override @@ -34813,30 +35548,35 @@ public void write(org.apache.thrift.protocol.TProtocol prot, reportTabletStatus_ @Override public void read(org.apache.thrift.protocol.TProtocol prot, reportTabletStatus_args struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; - java.util.BitSet incoming = iprot.readBitSet(5); - if (incoming.get(0)) { - struct.tinfo = new org.apache.accumulo.core.clientImpl.thrift.TInfo(); - struct.tinfo.read(iprot); - struct.setTinfoIsSet(true); - } - if (incoming.get(1)) { - struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); - struct.credentials.read(iprot); - struct.setCredentialsIsSet(true); - } - if (incoming.get(2)) { - struct.serverName = iprot.readString(); - struct.setServerNameIsSet(true); - } - if (incoming.get(3)) { - struct.status = org.apache.accumulo.core.manager.thrift.TabletLoadState.findByValue(iprot.readI32()); - struct.setStatusIsSet(true); - } - if (incoming.get(4)) { - struct.tablet = new org.apache.accumulo.core.dataImpl.thrift.TKeyExtent(); - struct.tablet.read(iprot); - struct.setTabletIsSet(true); + prot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(5); + if (incoming.get(0)) { + struct.tinfo = new org.apache.accumulo.core.clientImpl.thrift.TInfo(); + struct.tinfo.read(iprot); + struct.setTinfoIsSet(true); + } + if (incoming.get(1)) { + struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); + struct.credentials.read(iprot); + struct.setCredentialsIsSet(true); + } + if (incoming.get(2)) { + struct.serverName = iprot.readString(); + struct.setServerNameIsSet(true); + } + if (incoming.get(3)) { + struct.status = org.apache.accumulo.core.manager.thrift.TabletLoadState.findByValue(iprot.readI32()); + struct.setStatusIsSet(true); + } + if (incoming.get(4)) { + struct.tablet = new org.apache.accumulo.core.dataImpl.thrift.TKeyExtent(); + struct.tablet.read(iprot); + struct.setTabletIsSet(true); + } + } finally { + prot.decrementRecursionDepth(); } } } @@ -35231,42 +35971,47 @@ private static class getActiveTservers_argsStandardScheme extends org.apache.thr @Override public void read(org.apache.thrift.protocol.TProtocol iprot, getActiveTservers_args struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TField schemeField; - iprot.readStructBegin(); - while (true) - { - schemeField = iprot.readFieldBegin(); - if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { - break; - } - switch (schemeField.id) { - case 1: // TINFO - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.tinfo = new org.apache.accumulo.core.clientImpl.thrift.TInfo(); - struct.tinfo.read(iprot); - struct.setTinfoIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } + iprot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; - case 2: // CREDENTIALS - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); - struct.credentials.read(iprot); - struct.setCredentialsIsSet(true); - } else { + } + switch (schemeField.id) { + case 1: // TINFO + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.tinfo = new org.apache.accumulo.core.clientImpl.thrift.TInfo(); + struct.tinfo.read(iprot); + struct.setTinfoIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 2: // CREDENTIALS + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); + struct.credentials.read(iprot); + struct.setCredentialsIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - default: - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); } - iprot.readFieldEnd(); - } - iprot.readStructEnd(); + iprot.readStructEnd(); - // check for required fields of primitive type, which can't be checked in the validate method - struct.validate(); + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } finally { + iprot.decrementRecursionDepth(); + } } @Override @@ -35320,17 +36065,22 @@ public void write(org.apache.thrift.protocol.TProtocol prot, getActiveTservers_a @Override public void read(org.apache.thrift.protocol.TProtocol prot, getActiveTservers_args struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; - java.util.BitSet incoming = iprot.readBitSet(2); - if (incoming.get(0)) { - struct.tinfo = new org.apache.accumulo.core.clientImpl.thrift.TInfo(); - struct.tinfo.read(iprot); - struct.setTinfoIsSet(true); - } - if (incoming.get(1)) { - struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); - struct.credentials.read(iprot); - struct.setCredentialsIsSet(true); + prot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(2); + if (incoming.get(0)) { + struct.tinfo = new org.apache.accumulo.core.clientImpl.thrift.TInfo(); + struct.tinfo.read(iprot); + struct.setTinfoIsSet(true); + } + if (incoming.get(1)) { + struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); + struct.credentials.read(iprot); + struct.setCredentialsIsSet(true); + } + } finally { + prot.decrementRecursionDepth(); } } } @@ -35818,60 +36568,65 @@ private static class getActiveTservers_resultStandardScheme extends org.apache.t @Override public void read(org.apache.thrift.protocol.TProtocol iprot, getActiveTservers_result struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TField schemeField; - iprot.readStructBegin(); - while (true) - { - schemeField = iprot.readFieldBegin(); - if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { - break; - } - switch (schemeField.id) { - case 0: // SUCCESS - if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { - { - org.apache.thrift.protocol.TList _list96 = iprot.readListBegin(); - struct.success = new java.util.ArrayList(_list96.size); - @org.apache.thrift.annotation.Nullable java.lang.String _elem97; - for (int _i98 = 0; _i98 < _list96.size; ++_i98) + iprot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { + break; + } + switch (schemeField.id) { + case 0: // SUCCESS + if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - _elem97 = iprot.readString(); - struct.success.add(_elem97); + org.apache.thrift.protocol.TList _list96 = iprot.readListBegin(); + struct.success = new java.util.ArrayList(_list96.size); + @org.apache.thrift.annotation.Nullable java.lang.String _elem97; + for (int _i98 = 0; _i98 < _list96.size; ++_i98) + { + _elem97 = iprot.readString(); + struct.success.add(_elem97); + } + iprot.readListEnd(); } - iprot.readListEnd(); + struct.setSuccessIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } - struct.setSuccessIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 1: // SEC - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.sec = new org.apache.accumulo.core.clientImpl.thrift.ThriftSecurityException(); - struct.sec.read(iprot); - struct.setSecIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 2: // TNASE - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.tnase = new org.apache.accumulo.core.clientImpl.thrift.ThriftNotActiveServiceException(); - struct.tnase.read(iprot); - struct.setTnaseIsSet(true); - } else { + break; + case 1: // SEC + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.sec = new org.apache.accumulo.core.clientImpl.thrift.ThriftSecurityException(); + struct.sec.read(iprot); + struct.setSecIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 2: // TNASE + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.tnase = new org.apache.accumulo.core.clientImpl.thrift.ThriftNotActiveServiceException(); + struct.tnase.read(iprot); + struct.setTnaseIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - default: - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); } - iprot.readFieldEnd(); - } - iprot.readStructEnd(); + iprot.readStructEnd(); - // check for required fields of primitive type, which can't be checked in the validate method - struct.validate(); + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } finally { + iprot.decrementRecursionDepth(); + } } @Override @@ -35949,30 +36704,35 @@ public void write(org.apache.thrift.protocol.TProtocol prot, getActiveTservers_r @Override public void read(org.apache.thrift.protocol.TProtocol prot, getActiveTservers_result struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; - java.util.BitSet incoming = iprot.readBitSet(3); - if (incoming.get(0)) { - { - org.apache.thrift.protocol.TList _list101 = iprot.readListBegin(org.apache.thrift.protocol.TType.STRING); - struct.success = new java.util.ArrayList(_list101.size); - @org.apache.thrift.annotation.Nullable java.lang.String _elem102; - for (int _i103 = 0; _i103 < _list101.size; ++_i103) + prot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(3); + if (incoming.get(0)) { { - _elem102 = iprot.readString(); - struct.success.add(_elem102); + org.apache.thrift.protocol.TList _list101 = iprot.readListBegin(org.apache.thrift.protocol.TType.STRING); + struct.success = new java.util.ArrayList(_list101.size); + @org.apache.thrift.annotation.Nullable java.lang.String _elem102; + for (int _i103 = 0; _i103 < _list101.size; ++_i103) + { + _elem102 = iprot.readString(); + struct.success.add(_elem102); + } } + struct.setSuccessIsSet(true); } - struct.setSuccessIsSet(true); - } - if (incoming.get(1)) { - struct.sec = new org.apache.accumulo.core.clientImpl.thrift.ThriftSecurityException(); - struct.sec.read(iprot); - struct.setSecIsSet(true); - } - if (incoming.get(2)) { - struct.tnase = new org.apache.accumulo.core.clientImpl.thrift.ThriftNotActiveServiceException(); - struct.tnase.read(iprot); - struct.setTnaseIsSet(true); + if (incoming.get(1)) { + struct.sec = new org.apache.accumulo.core.clientImpl.thrift.ThriftSecurityException(); + struct.sec.read(iprot); + struct.setSecIsSet(true); + } + if (incoming.get(2)) { + struct.tnase = new org.apache.accumulo.core.clientImpl.thrift.ThriftNotActiveServiceException(); + struct.tnase.read(iprot); + struct.setTnaseIsSet(true); + } + } finally { + prot.decrementRecursionDepth(); } } } @@ -36452,51 +37212,56 @@ private static class getDelegationToken_argsStandardScheme extends org.apache.th @Override public void read(org.apache.thrift.protocol.TProtocol iprot, getDelegationToken_args struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TField schemeField; - iprot.readStructBegin(); - while (true) - { - schemeField = iprot.readFieldBegin(); - if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { - break; - } - switch (schemeField.id) { - case 1: // TINFO - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.tinfo = new org.apache.accumulo.core.clientImpl.thrift.TInfo(); - struct.tinfo.read(iprot); - struct.setTinfoIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 2: // CREDENTIALS - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); - struct.credentials.read(iprot); - struct.setCredentialsIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } + iprot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; - case 3: // CFG - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.cfg = new org.apache.accumulo.core.securityImpl.thrift.TDelegationTokenConfig(); - struct.cfg.read(iprot); - struct.setCfgIsSet(true); - } else { + } + switch (schemeField.id) { + case 1: // TINFO + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.tinfo = new org.apache.accumulo.core.clientImpl.thrift.TInfo(); + struct.tinfo.read(iprot); + struct.setTinfoIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 2: // CREDENTIALS + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); + struct.credentials.read(iprot); + struct.setCredentialsIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 3: // CFG + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.cfg = new org.apache.accumulo.core.securityImpl.thrift.TDelegationTokenConfig(); + struct.cfg.read(iprot); + struct.setCfgIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - default: - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); } - iprot.readFieldEnd(); - } - iprot.readStructEnd(); + iprot.readStructEnd(); - // check for required fields of primitive type, which can't be checked in the validate method - struct.validate(); + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } finally { + iprot.decrementRecursionDepth(); + } } @Override @@ -36561,22 +37326,27 @@ public void write(org.apache.thrift.protocol.TProtocol prot, getDelegationToken_ @Override public void read(org.apache.thrift.protocol.TProtocol prot, getDelegationToken_args struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; - java.util.BitSet incoming = iprot.readBitSet(3); - if (incoming.get(0)) { - struct.tinfo = new org.apache.accumulo.core.clientImpl.thrift.TInfo(); - struct.tinfo.read(iprot); - struct.setTinfoIsSet(true); - } - if (incoming.get(1)) { - struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); - struct.credentials.read(iprot); - struct.setCredentialsIsSet(true); - } - if (incoming.get(2)) { - struct.cfg = new org.apache.accumulo.core.securityImpl.thrift.TDelegationTokenConfig(); - struct.cfg.read(iprot); - struct.setCfgIsSet(true); + prot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(3); + if (incoming.get(0)) { + struct.tinfo = new org.apache.accumulo.core.clientImpl.thrift.TInfo(); + struct.tinfo.read(iprot); + struct.setTinfoIsSet(true); + } + if (incoming.get(1)) { + struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); + struct.credentials.read(iprot); + struct.setCredentialsIsSet(true); + } + if (incoming.get(2)) { + struct.cfg = new org.apache.accumulo.core.securityImpl.thrift.TDelegationTokenConfig(); + struct.cfg.read(iprot); + struct.setCfgIsSet(true); + } + } finally { + prot.decrementRecursionDepth(); } } } @@ -37049,51 +37819,56 @@ private static class getDelegationToken_resultStandardScheme extends org.apache. @Override public void read(org.apache.thrift.protocol.TProtocol iprot, getDelegationToken_result struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TField schemeField; - iprot.readStructBegin(); - while (true) - { - schemeField = iprot.readFieldBegin(); - if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { - break; - } - switch (schemeField.id) { - case 0: // SUCCESS - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.success = new org.apache.accumulo.core.securityImpl.thrift.TDelegationToken(); - struct.success.read(iprot); - struct.setSuccessIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 1: // SEC - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.sec = new org.apache.accumulo.core.clientImpl.thrift.ThriftSecurityException(); - struct.sec.read(iprot); - struct.setSecIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } + iprot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; - case 2: // TNASE - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.tnase = new org.apache.accumulo.core.clientImpl.thrift.ThriftNotActiveServiceException(); - struct.tnase.read(iprot); - struct.setTnaseIsSet(true); - } else { + } + switch (schemeField.id) { + case 0: // SUCCESS + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.success = new org.apache.accumulo.core.securityImpl.thrift.TDelegationToken(); + struct.success.read(iprot); + struct.setSuccessIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 1: // SEC + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.sec = new org.apache.accumulo.core.clientImpl.thrift.ThriftSecurityException(); + struct.sec.read(iprot); + struct.setSecIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 2: // TNASE + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.tnase = new org.apache.accumulo.core.clientImpl.thrift.ThriftNotActiveServiceException(); + struct.tnase.read(iprot); + struct.setTnaseIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - default: - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); } - iprot.readFieldEnd(); - } - iprot.readStructEnd(); + iprot.readStructEnd(); - // check for required fields of primitive type, which can't be checked in the validate method - struct.validate(); + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } finally { + iprot.decrementRecursionDepth(); + } } @Override @@ -37158,22 +37933,27 @@ public void write(org.apache.thrift.protocol.TProtocol prot, getDelegationToken_ @Override public void read(org.apache.thrift.protocol.TProtocol prot, getDelegationToken_result struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; - java.util.BitSet incoming = iprot.readBitSet(3); - if (incoming.get(0)) { - struct.success = new org.apache.accumulo.core.securityImpl.thrift.TDelegationToken(); - struct.success.read(iprot); - struct.setSuccessIsSet(true); - } - if (incoming.get(1)) { - struct.sec = new org.apache.accumulo.core.clientImpl.thrift.ThriftSecurityException(); - struct.sec.read(iprot); - struct.setSecIsSet(true); - } - if (incoming.get(2)) { - struct.tnase = new org.apache.accumulo.core.clientImpl.thrift.ThriftNotActiveServiceException(); - struct.tnase.read(iprot); - struct.setTnaseIsSet(true); + prot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(3); + if (incoming.get(0)) { + struct.success = new org.apache.accumulo.core.securityImpl.thrift.TDelegationToken(); + struct.success.read(iprot); + struct.setSuccessIsSet(true); + } + if (incoming.get(1)) { + struct.sec = new org.apache.accumulo.core.clientImpl.thrift.ThriftSecurityException(); + struct.sec.read(iprot); + struct.setSecIsSet(true); + } + if (incoming.get(2)) { + struct.tnase = new org.apache.accumulo.core.clientImpl.thrift.ThriftNotActiveServiceException(); + struct.tnase.read(iprot); + struct.setTnaseIsSet(true); + } + } finally { + prot.decrementRecursionDepth(); } } } @@ -37753,69 +38533,74 @@ private static class requestTabletHosting_argsStandardScheme extends org.apache. @Override public void read(org.apache.thrift.protocol.TProtocol iprot, requestTabletHosting_args struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TField schemeField; - iprot.readStructBegin(); - while (true) - { - schemeField = iprot.readFieldBegin(); - if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { - break; - } - switch (schemeField.id) { - case 1: // TINFO - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.tinfo = new org.apache.accumulo.core.clientImpl.thrift.TInfo(); - struct.tinfo.read(iprot); - struct.setTinfoIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 2: // CREDENTIALS - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); - struct.credentials.read(iprot); - struct.setCredentialsIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 3: // TABLE_ID - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.tableId = iprot.readString(); - struct.setTableIdIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } + iprot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; - case 4: // EXTENTS - if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { - { - org.apache.thrift.protocol.TList _list104 = iprot.readListBegin(); - struct.extents = new java.util.ArrayList(_list104.size); - @org.apache.thrift.annotation.Nullable org.apache.accumulo.core.dataImpl.thrift.TKeyExtent _elem105; - for (int _i106 = 0; _i106 < _list104.size; ++_i106) + } + switch (schemeField.id) { + case 1: // TINFO + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.tinfo = new org.apache.accumulo.core.clientImpl.thrift.TInfo(); + struct.tinfo.read(iprot); + struct.setTinfoIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 2: // CREDENTIALS + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); + struct.credentials.read(iprot); + struct.setCredentialsIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 3: // TABLE_ID + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.tableId = iprot.readString(); + struct.setTableIdIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 4: // EXTENTS + if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - _elem105 = new org.apache.accumulo.core.dataImpl.thrift.TKeyExtent(); - _elem105.read(iprot); - struct.extents.add(_elem105); + org.apache.thrift.protocol.TList _list104 = iprot.readListBegin(); + struct.extents = new java.util.ArrayList(_list104.size); + @org.apache.thrift.annotation.Nullable org.apache.accumulo.core.dataImpl.thrift.TKeyExtent _elem105; + for (int _i106 = 0; _i106 < _list104.size; ++_i106) + { + _elem105 = new org.apache.accumulo.core.dataImpl.thrift.TKeyExtent(); + _elem105.read(iprot); + struct.extents.add(_elem105); + } + iprot.readListEnd(); } - iprot.readListEnd(); + struct.setExtentsIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } - struct.setExtentsIsSet(true); - } else { + break; + default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - default: - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); } - iprot.readFieldEnd(); - } - iprot.readStructEnd(); + iprot.readStructEnd(); - // check for required fields of primitive type, which can't be checked in the validate method - struct.validate(); + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } finally { + iprot.decrementRecursionDepth(); + } } @Override @@ -37904,35 +38689,40 @@ public void write(org.apache.thrift.protocol.TProtocol prot, requestTabletHostin @Override public void read(org.apache.thrift.protocol.TProtocol prot, requestTabletHosting_args struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; - java.util.BitSet incoming = iprot.readBitSet(4); - if (incoming.get(0)) { - struct.tinfo = new org.apache.accumulo.core.clientImpl.thrift.TInfo(); - struct.tinfo.read(iprot); - struct.setTinfoIsSet(true); - } - if (incoming.get(1)) { - struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); - struct.credentials.read(iprot); - struct.setCredentialsIsSet(true); - } - if (incoming.get(2)) { - struct.tableId = iprot.readString(); - struct.setTableIdIsSet(true); - } - if (incoming.get(3)) { - { - org.apache.thrift.protocol.TList _list109 = iprot.readListBegin(org.apache.thrift.protocol.TType.STRUCT); - struct.extents = new java.util.ArrayList(_list109.size); - @org.apache.thrift.annotation.Nullable org.apache.accumulo.core.dataImpl.thrift.TKeyExtent _elem110; - for (int _i111 = 0; _i111 < _list109.size; ++_i111) + prot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(4); + if (incoming.get(0)) { + struct.tinfo = new org.apache.accumulo.core.clientImpl.thrift.TInfo(); + struct.tinfo.read(iprot); + struct.setTinfoIsSet(true); + } + if (incoming.get(1)) { + struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); + struct.credentials.read(iprot); + struct.setCredentialsIsSet(true); + } + if (incoming.get(2)) { + struct.tableId = iprot.readString(); + struct.setTableIdIsSet(true); + } + if (incoming.get(3)) { { - _elem110 = new org.apache.accumulo.core.dataImpl.thrift.TKeyExtent(); - _elem110.read(iprot); - struct.extents.add(_elem110); + org.apache.thrift.protocol.TList _list109 = iprot.readListBegin(org.apache.thrift.protocol.TType.STRUCT); + struct.extents = new java.util.ArrayList(_list109.size); + @org.apache.thrift.annotation.Nullable org.apache.accumulo.core.dataImpl.thrift.TKeyExtent _elem110; + for (int _i111 = 0; _i111 < _list109.size; ++_i111) + { + _elem110 = new org.apache.accumulo.core.dataImpl.thrift.TKeyExtent(); + _elem110.read(iprot); + struct.extents.add(_elem110); + } } + struct.setExtentsIsSet(true); } - struct.setExtentsIsSet(true); + } finally { + prot.decrementRecursionDepth(); } } } @@ -38402,51 +39192,56 @@ private static class requestTabletHosting_resultStandardScheme extends org.apach @Override public void read(org.apache.thrift.protocol.TProtocol iprot, requestTabletHosting_result struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TField schemeField; - iprot.readStructBegin(); - while (true) - { - schemeField = iprot.readFieldBegin(); - if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { - break; - } - switch (schemeField.id) { - case 1: // SEC - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.sec = new org.apache.accumulo.core.clientImpl.thrift.ThriftSecurityException(); - struct.sec.read(iprot); - struct.setSecIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 2: // TOE - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.toe = new org.apache.accumulo.core.clientImpl.thrift.ThriftTableOperationException(); - struct.toe.read(iprot); - struct.setToeIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } + iprot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; - case 3: // TNASE - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.tnase = new org.apache.accumulo.core.clientImpl.thrift.ThriftNotActiveServiceException(); - struct.tnase.read(iprot); - struct.setTnaseIsSet(true); - } else { + } + switch (schemeField.id) { + case 1: // SEC + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.sec = new org.apache.accumulo.core.clientImpl.thrift.ThriftSecurityException(); + struct.sec.read(iprot); + struct.setSecIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 2: // TOE + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.toe = new org.apache.accumulo.core.clientImpl.thrift.ThriftTableOperationException(); + struct.toe.read(iprot); + struct.setToeIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 3: // TNASE + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.tnase = new org.apache.accumulo.core.clientImpl.thrift.ThriftNotActiveServiceException(); + struct.tnase.read(iprot); + struct.setTnaseIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - default: - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); } - iprot.readFieldEnd(); - } - iprot.readStructEnd(); + iprot.readStructEnd(); - // check for required fields of primitive type, which can't be checked in the validate method - struct.validate(); + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } finally { + iprot.decrementRecursionDepth(); + } } @Override @@ -38511,22 +39306,27 @@ public void write(org.apache.thrift.protocol.TProtocol prot, requestTabletHostin @Override public void read(org.apache.thrift.protocol.TProtocol prot, requestTabletHosting_result struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; - java.util.BitSet incoming = iprot.readBitSet(3); - if (incoming.get(0)) { - struct.sec = new org.apache.accumulo.core.clientImpl.thrift.ThriftSecurityException(); - struct.sec.read(iprot); - struct.setSecIsSet(true); - } - if (incoming.get(1)) { - struct.toe = new org.apache.accumulo.core.clientImpl.thrift.ThriftTableOperationException(); - struct.toe.read(iprot); - struct.setToeIsSet(true); - } - if (incoming.get(2)) { - struct.tnase = new org.apache.accumulo.core.clientImpl.thrift.ThriftNotActiveServiceException(); - struct.tnase.read(iprot); - struct.setTnaseIsSet(true); + prot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(3); + if (incoming.get(0)) { + struct.sec = new org.apache.accumulo.core.clientImpl.thrift.ThriftSecurityException(); + struct.sec.read(iprot); + struct.setSecIsSet(true); + } + if (incoming.get(1)) { + struct.toe = new org.apache.accumulo.core.clientImpl.thrift.ThriftTableOperationException(); + struct.toe.read(iprot); + struct.setToeIsSet(true); + } + if (incoming.get(2)) { + struct.tnase = new org.apache.accumulo.core.clientImpl.thrift.ThriftNotActiveServiceException(); + struct.tnase.read(iprot); + struct.setTnaseIsSet(true); + } + } finally { + prot.decrementRecursionDepth(); } } } @@ -39110,72 +39910,77 @@ private static class updateTabletMergeability_argsStandardScheme extends org.apa @Override public void read(org.apache.thrift.protocol.TProtocol iprot, updateTabletMergeability_args struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TField schemeField; - iprot.readStructBegin(); - while (true) - { - schemeField = iprot.readFieldBegin(); - if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { - break; - } - switch (schemeField.id) { - case 1: // TINFO - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.tinfo = new org.apache.accumulo.core.clientImpl.thrift.TInfo(); - struct.tinfo.read(iprot); - struct.setTinfoIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 2: // CREDENTIALS - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); - struct.credentials.read(iprot); - struct.setCredentialsIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 3: // TABLE_NAME - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.tableName = iprot.readString(); - struct.setTableNameIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } + iprot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; - case 4: // SPLITS - if (schemeField.type == org.apache.thrift.protocol.TType.MAP) { - { - org.apache.thrift.protocol.TMap _map112 = iprot.readMapBegin(); - struct.splits = new java.util.HashMap(2*_map112.size); - @org.apache.thrift.annotation.Nullable org.apache.accumulo.core.dataImpl.thrift.TKeyExtent _key113; - @org.apache.thrift.annotation.Nullable TTabletMergeability _val114; - for (int _i115 = 0; _i115 < _map112.size; ++_i115) + } + switch (schemeField.id) { + case 1: // TINFO + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.tinfo = new org.apache.accumulo.core.clientImpl.thrift.TInfo(); + struct.tinfo.read(iprot); + struct.setTinfoIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 2: // CREDENTIALS + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); + struct.credentials.read(iprot); + struct.setCredentialsIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 3: // TABLE_NAME + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.tableName = iprot.readString(); + struct.setTableNameIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 4: // SPLITS + if (schemeField.type == org.apache.thrift.protocol.TType.MAP) { { - _key113 = new org.apache.accumulo.core.dataImpl.thrift.TKeyExtent(); - _key113.read(iprot); - _val114 = new TTabletMergeability(); - _val114.read(iprot); - struct.splits.put(_key113, _val114); + org.apache.thrift.protocol.TMap _map112 = iprot.readMapBegin(); + struct.splits = new java.util.HashMap(2*_map112.size); + @org.apache.thrift.annotation.Nullable org.apache.accumulo.core.dataImpl.thrift.TKeyExtent _key113; + @org.apache.thrift.annotation.Nullable TTabletMergeability _val114; + for (int _i115 = 0; _i115 < _map112.size; ++_i115) + { + _key113 = new org.apache.accumulo.core.dataImpl.thrift.TKeyExtent(); + _key113.read(iprot); + _val114 = new TTabletMergeability(); + _val114.read(iprot); + struct.splits.put(_key113, _val114); + } + iprot.readMapEnd(); } - iprot.readMapEnd(); + struct.setSplitsIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } - struct.setSplitsIsSet(true); - } else { + break; + default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - default: - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); } - iprot.readFieldEnd(); - } - iprot.readStructEnd(); + iprot.readStructEnd(); - // check for required fields of primitive type, which can't be checked in the validate method - struct.validate(); + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } finally { + iprot.decrementRecursionDepth(); + } } @Override @@ -39266,38 +40071,43 @@ public void write(org.apache.thrift.protocol.TProtocol prot, updateTabletMergeab @Override public void read(org.apache.thrift.protocol.TProtocol prot, updateTabletMergeability_args struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; - java.util.BitSet incoming = iprot.readBitSet(4); - if (incoming.get(0)) { - struct.tinfo = new org.apache.accumulo.core.clientImpl.thrift.TInfo(); - struct.tinfo.read(iprot); - struct.setTinfoIsSet(true); - } - if (incoming.get(1)) { - struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); - struct.credentials.read(iprot); - struct.setCredentialsIsSet(true); - } - if (incoming.get(2)) { - struct.tableName = iprot.readString(); - struct.setTableNameIsSet(true); - } - if (incoming.get(3)) { - { - org.apache.thrift.protocol.TMap _map118 = iprot.readMapBegin(org.apache.thrift.protocol.TType.STRUCT, org.apache.thrift.protocol.TType.STRUCT); - struct.splits = new java.util.HashMap(2*_map118.size); - @org.apache.thrift.annotation.Nullable org.apache.accumulo.core.dataImpl.thrift.TKeyExtent _key119; - @org.apache.thrift.annotation.Nullable TTabletMergeability _val120; - for (int _i121 = 0; _i121 < _map118.size; ++_i121) + prot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(4); + if (incoming.get(0)) { + struct.tinfo = new org.apache.accumulo.core.clientImpl.thrift.TInfo(); + struct.tinfo.read(iprot); + struct.setTinfoIsSet(true); + } + if (incoming.get(1)) { + struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); + struct.credentials.read(iprot); + struct.setCredentialsIsSet(true); + } + if (incoming.get(2)) { + struct.tableName = iprot.readString(); + struct.setTableNameIsSet(true); + } + if (incoming.get(3)) { { - _key119 = new org.apache.accumulo.core.dataImpl.thrift.TKeyExtent(); - _key119.read(iprot); - _val120 = new TTabletMergeability(); - _val120.read(iprot); - struct.splits.put(_key119, _val120); + org.apache.thrift.protocol.TMap _map118 = iprot.readMapBegin(org.apache.thrift.protocol.TType.STRUCT, org.apache.thrift.protocol.TType.STRUCT); + struct.splits = new java.util.HashMap(2*_map118.size); + @org.apache.thrift.annotation.Nullable org.apache.accumulo.core.dataImpl.thrift.TKeyExtent _key119; + @org.apache.thrift.annotation.Nullable TTabletMergeability _val120; + for (int _i121 = 0; _i121 < _map118.size; ++_i121) + { + _key119 = new org.apache.accumulo.core.dataImpl.thrift.TKeyExtent(); + _key119.read(iprot); + _val120 = new TTabletMergeability(); + _val120.read(iprot); + struct.splits.put(_key119, _val120); + } } + struct.setSplitsIsSet(true); } - struct.setSplitsIsSet(true); + } finally { + prot.decrementRecursionDepth(); } } } @@ -39870,70 +40680,75 @@ private static class updateTabletMergeability_resultStandardScheme extends org.a @Override public void read(org.apache.thrift.protocol.TProtocol iprot, updateTabletMergeability_result struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TField schemeField; - iprot.readStructBegin(); - while (true) - { - schemeField = iprot.readFieldBegin(); - if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { - break; - } - switch (schemeField.id) { - case 0: // SUCCESS - if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { - { - org.apache.thrift.protocol.TList _list122 = iprot.readListBegin(); - struct.success = new java.util.ArrayList(_list122.size); - @org.apache.thrift.annotation.Nullable org.apache.accumulo.core.dataImpl.thrift.TKeyExtent _elem123; - for (int _i124 = 0; _i124 < _list122.size; ++_i124) + iprot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { + break; + } + switch (schemeField.id) { + case 0: // SUCCESS + if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - _elem123 = new org.apache.accumulo.core.dataImpl.thrift.TKeyExtent(); - _elem123.read(iprot); - struct.success.add(_elem123); + org.apache.thrift.protocol.TList _list122 = iprot.readListBegin(); + struct.success = new java.util.ArrayList(_list122.size); + @org.apache.thrift.annotation.Nullable org.apache.accumulo.core.dataImpl.thrift.TKeyExtent _elem123; + for (int _i124 = 0; _i124 < _list122.size; ++_i124) + { + _elem123 = new org.apache.accumulo.core.dataImpl.thrift.TKeyExtent(); + _elem123.read(iprot); + struct.success.add(_elem123); + } + iprot.readListEnd(); } - iprot.readListEnd(); + struct.setSuccessIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } - struct.setSuccessIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 1: // SEC - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.sec = new org.apache.accumulo.core.clientImpl.thrift.ThriftSecurityException(); - struct.sec.read(iprot); - struct.setSecIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 2: // TOE - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.toe = new org.apache.accumulo.core.clientImpl.thrift.ThriftTableOperationException(); - struct.toe.read(iprot); - struct.setToeIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 3: // TNASE - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.tnase = new org.apache.accumulo.core.clientImpl.thrift.ThriftNotActiveServiceException(); - struct.tnase.read(iprot); - struct.setTnaseIsSet(true); - } else { + break; + case 1: // SEC + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.sec = new org.apache.accumulo.core.clientImpl.thrift.ThriftSecurityException(); + struct.sec.read(iprot); + struct.setSecIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 2: // TOE + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.toe = new org.apache.accumulo.core.clientImpl.thrift.ThriftTableOperationException(); + struct.toe.read(iprot); + struct.setToeIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 3: // TNASE + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.tnase = new org.apache.accumulo.core.clientImpl.thrift.ThriftNotActiveServiceException(); + struct.tnase.read(iprot); + struct.setTnaseIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - default: - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); } - iprot.readFieldEnd(); - } - iprot.readStructEnd(); + iprot.readStructEnd(); - // check for required fields of primitive type, which can't be checked in the validate method - struct.validate(); + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } finally { + iprot.decrementRecursionDepth(); + } } @Override @@ -40022,36 +40837,41 @@ public void write(org.apache.thrift.protocol.TProtocol prot, updateTabletMergeab @Override public void read(org.apache.thrift.protocol.TProtocol prot, updateTabletMergeability_result struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; - java.util.BitSet incoming = iprot.readBitSet(4); - if (incoming.get(0)) { - { - org.apache.thrift.protocol.TList _list127 = iprot.readListBegin(org.apache.thrift.protocol.TType.STRUCT); - struct.success = new java.util.ArrayList(_list127.size); - @org.apache.thrift.annotation.Nullable org.apache.accumulo.core.dataImpl.thrift.TKeyExtent _elem128; - for (int _i129 = 0; _i129 < _list127.size; ++_i129) + prot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(4); + if (incoming.get(0)) { { - _elem128 = new org.apache.accumulo.core.dataImpl.thrift.TKeyExtent(); - _elem128.read(iprot); - struct.success.add(_elem128); + org.apache.thrift.protocol.TList _list127 = iprot.readListBegin(org.apache.thrift.protocol.TType.STRUCT); + struct.success = new java.util.ArrayList(_list127.size); + @org.apache.thrift.annotation.Nullable org.apache.accumulo.core.dataImpl.thrift.TKeyExtent _elem128; + for (int _i129 = 0; _i129 < _list127.size; ++_i129) + { + _elem128 = new org.apache.accumulo.core.dataImpl.thrift.TKeyExtent(); + _elem128.read(iprot); + struct.success.add(_elem128); + } } + struct.setSuccessIsSet(true); } - struct.setSuccessIsSet(true); - } - if (incoming.get(1)) { - struct.sec = new org.apache.accumulo.core.clientImpl.thrift.ThriftSecurityException(); - struct.sec.read(iprot); - struct.setSecIsSet(true); - } - if (incoming.get(2)) { - struct.toe = new org.apache.accumulo.core.clientImpl.thrift.ThriftTableOperationException(); - struct.toe.read(iprot); - struct.setToeIsSet(true); - } - if (incoming.get(3)) { - struct.tnase = new org.apache.accumulo.core.clientImpl.thrift.ThriftNotActiveServiceException(); - struct.tnase.read(iprot); - struct.setTnaseIsSet(true); + if (incoming.get(1)) { + struct.sec = new org.apache.accumulo.core.clientImpl.thrift.ThriftSecurityException(); + struct.sec.read(iprot); + struct.setSecIsSet(true); + } + if (incoming.get(2)) { + struct.toe = new org.apache.accumulo.core.clientImpl.thrift.ThriftTableOperationException(); + struct.toe.read(iprot); + struct.setToeIsSet(true); + } + if (incoming.get(3)) { + struct.tnase = new org.apache.accumulo.core.clientImpl.thrift.ThriftNotActiveServiceException(); + struct.tnase.read(iprot); + struct.setTnaseIsSet(true); + } + } finally { + prot.decrementRecursionDepth(); } } } @@ -40446,42 +41266,47 @@ private static class getManagerTimeNanos_argsStandardScheme extends org.apache.t @Override public void read(org.apache.thrift.protocol.TProtocol iprot, getManagerTimeNanos_args struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TField schemeField; - iprot.readStructBegin(); - while (true) - { - schemeField = iprot.readFieldBegin(); - if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { - break; - } - switch (schemeField.id) { - case 1: // TINFO - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.tinfo = new org.apache.accumulo.core.clientImpl.thrift.TInfo(); - struct.tinfo.read(iprot); - struct.setTinfoIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } + iprot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; - case 2: // CREDENTIALS - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); - struct.credentials.read(iprot); - struct.setCredentialsIsSet(true); - } else { + } + switch (schemeField.id) { + case 1: // TINFO + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.tinfo = new org.apache.accumulo.core.clientImpl.thrift.TInfo(); + struct.tinfo.read(iprot); + struct.setTinfoIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 2: // CREDENTIALS + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); + struct.credentials.read(iprot); + struct.setCredentialsIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - default: - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); } - iprot.readFieldEnd(); - } - iprot.readStructEnd(); + iprot.readStructEnd(); - // check for required fields of primitive type, which can't be checked in the validate method - struct.validate(); + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } finally { + iprot.decrementRecursionDepth(); + } } @Override @@ -40535,17 +41360,22 @@ public void write(org.apache.thrift.protocol.TProtocol prot, getManagerTimeNanos @Override public void read(org.apache.thrift.protocol.TProtocol prot, getManagerTimeNanos_args struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; - java.util.BitSet incoming = iprot.readBitSet(2); - if (incoming.get(0)) { - struct.tinfo = new org.apache.accumulo.core.clientImpl.thrift.TInfo(); - struct.tinfo.read(iprot); - struct.setTinfoIsSet(true); - } - if (incoming.get(1)) { - struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); - struct.credentials.read(iprot); - struct.setCredentialsIsSet(true); + prot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(2); + if (incoming.get(0)) { + struct.tinfo = new org.apache.accumulo.core.clientImpl.thrift.TInfo(); + struct.tinfo.read(iprot); + struct.setTinfoIsSet(true); + } + if (incoming.get(1)) { + struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); + struct.credentials.read(iprot); + struct.setCredentialsIsSet(true); + } + } finally { + prot.decrementRecursionDepth(); } } } @@ -41012,50 +41842,55 @@ private static class getManagerTimeNanos_resultStandardScheme extends org.apache @Override public void read(org.apache.thrift.protocol.TProtocol iprot, getManagerTimeNanos_result struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TField schemeField; - iprot.readStructBegin(); - while (true) - { - schemeField = iprot.readFieldBegin(); - if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { - break; - } - switch (schemeField.id) { - case 0: // SUCCESS - if (schemeField.type == org.apache.thrift.protocol.TType.I64) { - struct.success = iprot.readI64(); - struct.setSuccessIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 1: // SEC - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.sec = new org.apache.accumulo.core.clientImpl.thrift.ThriftSecurityException(); - struct.sec.read(iprot); - struct.setSecIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } + iprot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; - case 2: // TNASE - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.tnase = new org.apache.accumulo.core.clientImpl.thrift.ThriftNotActiveServiceException(); - struct.tnase.read(iprot); - struct.setTnaseIsSet(true); - } else { + } + switch (schemeField.id) { + case 0: // SUCCESS + if (schemeField.type == org.apache.thrift.protocol.TType.I64) { + struct.success = iprot.readI64(); + struct.setSuccessIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 1: // SEC + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.sec = new org.apache.accumulo.core.clientImpl.thrift.ThriftSecurityException(); + struct.sec.read(iprot); + struct.setSecIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 2: // TNASE + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.tnase = new org.apache.accumulo.core.clientImpl.thrift.ThriftNotActiveServiceException(); + struct.tnase.read(iprot); + struct.setTnaseIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - default: - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); } - iprot.readFieldEnd(); - } - iprot.readStructEnd(); + iprot.readStructEnd(); - // check for required fields of primitive type, which can't be checked in the validate method - struct.validate(); + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } finally { + iprot.decrementRecursionDepth(); + } } @Override @@ -41120,21 +41955,26 @@ public void write(org.apache.thrift.protocol.TProtocol prot, getManagerTimeNanos @Override public void read(org.apache.thrift.protocol.TProtocol prot, getManagerTimeNanos_result struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; - java.util.BitSet incoming = iprot.readBitSet(3); - if (incoming.get(0)) { - struct.success = iprot.readI64(); - struct.setSuccessIsSet(true); - } - if (incoming.get(1)) { - struct.sec = new org.apache.accumulo.core.clientImpl.thrift.ThriftSecurityException(); - struct.sec.read(iprot); - struct.setSecIsSet(true); - } - if (incoming.get(2)) { - struct.tnase = new org.apache.accumulo.core.clientImpl.thrift.ThriftNotActiveServiceException(); - struct.tnase.read(iprot); - struct.setTnaseIsSet(true); + prot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(3); + if (incoming.get(0)) { + struct.success = iprot.readI64(); + struct.setSuccessIsSet(true); + } + if (incoming.get(1)) { + struct.sec = new org.apache.accumulo.core.clientImpl.thrift.ThriftSecurityException(); + struct.sec.read(iprot); + struct.setSecIsSet(true); + } + if (incoming.get(2)) { + struct.tnase = new org.apache.accumulo.core.clientImpl.thrift.ThriftNotActiveServiceException(); + struct.tnase.read(iprot); + struct.setTnaseIsSet(true); + } + } finally { + prot.decrementRecursionDepth(); } } } @@ -41632,61 +42472,66 @@ private static class processEvents_argsStandardScheme extends org.apache.thrift. @Override public void read(org.apache.thrift.protocol.TProtocol iprot, processEvents_args struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TField schemeField; - iprot.readStructBegin(); - while (true) - { - schemeField = iprot.readFieldBegin(); - if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { - break; - } - switch (schemeField.id) { - case 1: // TINFO - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.tinfo = new org.apache.accumulo.core.clientImpl.thrift.TInfo(); - struct.tinfo.read(iprot); - struct.setTinfoIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 2: // CREDENTIALS - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); - struct.credentials.read(iprot); - struct.setCredentialsIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } + iprot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; - case 3: // EVENTS - if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { - { - org.apache.thrift.protocol.TList _list130 = iprot.readListBegin(); - struct.events = new java.util.ArrayList(_list130.size); - @org.apache.thrift.annotation.Nullable TEvent _elem131; - for (int _i132 = 0; _i132 < _list130.size; ++_i132) + } + switch (schemeField.id) { + case 1: // TINFO + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.tinfo = new org.apache.accumulo.core.clientImpl.thrift.TInfo(); + struct.tinfo.read(iprot); + struct.setTinfoIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 2: // CREDENTIALS + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); + struct.credentials.read(iprot); + struct.setCredentialsIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 3: // EVENTS + if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - _elem131 = new TEvent(); - _elem131.read(iprot); - struct.events.add(_elem131); + org.apache.thrift.protocol.TList _list130 = iprot.readListBegin(); + struct.events = new java.util.ArrayList(_list130.size); + @org.apache.thrift.annotation.Nullable TEvent _elem131; + for (int _i132 = 0; _i132 < _list130.size; ++_i132) + { + _elem131 = new TEvent(); + _elem131.read(iprot); + struct.events.add(_elem131); + } + iprot.readListEnd(); } - iprot.readListEnd(); + struct.setEventsIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } - struct.setEventsIsSet(true); - } else { + break; + default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - default: - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); } - iprot.readFieldEnd(); - } - iprot.readStructEnd(); + iprot.readStructEnd(); - // check for required fields of primitive type, which can't be checked in the validate method - struct.validate(); + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } finally { + iprot.decrementRecursionDepth(); + } } @Override @@ -41764,31 +42609,36 @@ public void write(org.apache.thrift.protocol.TProtocol prot, processEvents_args @Override public void read(org.apache.thrift.protocol.TProtocol prot, processEvents_args struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; - java.util.BitSet incoming = iprot.readBitSet(3); - if (incoming.get(0)) { - struct.tinfo = new org.apache.accumulo.core.clientImpl.thrift.TInfo(); - struct.tinfo.read(iprot); - struct.setTinfoIsSet(true); - } - if (incoming.get(1)) { - struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); - struct.credentials.read(iprot); - struct.setCredentialsIsSet(true); - } - if (incoming.get(2)) { - { - org.apache.thrift.protocol.TList _list135 = iprot.readListBegin(org.apache.thrift.protocol.TType.STRUCT); - struct.events = new java.util.ArrayList(_list135.size); - @org.apache.thrift.annotation.Nullable TEvent _elem136; - for (int _i137 = 0; _i137 < _list135.size; ++_i137) + prot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(3); + if (incoming.get(0)) { + struct.tinfo = new org.apache.accumulo.core.clientImpl.thrift.TInfo(); + struct.tinfo.read(iprot); + struct.setTinfoIsSet(true); + } + if (incoming.get(1)) { + struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); + struct.credentials.read(iprot); + struct.setCredentialsIsSet(true); + } + if (incoming.get(2)) { { - _elem136 = new TEvent(); - _elem136.read(iprot); - struct.events.add(_elem136); + org.apache.thrift.protocol.TList _list135 = iprot.readListBegin(org.apache.thrift.protocol.TType.STRUCT); + struct.events = new java.util.ArrayList(_list135.size); + @org.apache.thrift.annotation.Nullable TEvent _elem136; + for (int _i137 = 0; _i137 < _list135.size; ++_i137) + { + _elem136 = new TEvent(); + _elem136.read(iprot); + struct.events.add(_elem136); + } } + struct.setEventsIsSet(true); } - struct.setEventsIsSet(true); + } finally { + prot.decrementRecursionDepth(); } } } @@ -42176,42 +43026,47 @@ private static class processEvents_resultStandardScheme extends org.apache.thrif @Override public void read(org.apache.thrift.protocol.TProtocol iprot, processEvents_result struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TField schemeField; - iprot.readStructBegin(); - while (true) - { - schemeField = iprot.readFieldBegin(); - if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { - break; - } - switch (schemeField.id) { - case 1: // SEC - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.sec = new org.apache.accumulo.core.clientImpl.thrift.ThriftSecurityException(); - struct.sec.read(iprot); - struct.setSecIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } + iprot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; - case 2: // TNASE - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.tnase = new org.apache.accumulo.core.clientImpl.thrift.ThriftNotActiveServiceException(); - struct.tnase.read(iprot); - struct.setTnaseIsSet(true); - } else { + } + switch (schemeField.id) { + case 1: // SEC + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.sec = new org.apache.accumulo.core.clientImpl.thrift.ThriftSecurityException(); + struct.sec.read(iprot); + struct.setSecIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 2: // TNASE + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.tnase = new org.apache.accumulo.core.clientImpl.thrift.ThriftNotActiveServiceException(); + struct.tnase.read(iprot); + struct.setTnaseIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - default: - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); } - iprot.readFieldEnd(); - } - iprot.readStructEnd(); + iprot.readStructEnd(); - // check for required fields of primitive type, which can't be checked in the validate method - struct.validate(); + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } finally { + iprot.decrementRecursionDepth(); + } } @Override @@ -42265,17 +43120,22 @@ public void write(org.apache.thrift.protocol.TProtocol prot, processEvents_resul @Override public void read(org.apache.thrift.protocol.TProtocol prot, processEvents_result struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; - java.util.BitSet incoming = iprot.readBitSet(2); - if (incoming.get(0)) { - struct.sec = new org.apache.accumulo.core.clientImpl.thrift.ThriftSecurityException(); - struct.sec.read(iprot); - struct.setSecIsSet(true); - } - if (incoming.get(1)) { - struct.tnase = new org.apache.accumulo.core.clientImpl.thrift.ThriftNotActiveServiceException(); - struct.tnase.read(iprot); - struct.setTnaseIsSet(true); + prot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(2); + if (incoming.get(0)) { + struct.sec = new org.apache.accumulo.core.clientImpl.thrift.ThriftSecurityException(); + struct.sec.read(iprot); + struct.setSecIsSet(true); + } + if (incoming.get(1)) { + struct.tnase = new org.apache.accumulo.core.clientImpl.thrift.ThriftNotActiveServiceException(); + struct.tnase.read(iprot); + struct.setTnaseIsSet(true); + } + } finally { + prot.decrementRecursionDepth(); } } } diff --git a/core/src/main/thrift-gen-java/org/apache/accumulo/core/manager/thrift/ManagerGoalState.java b/core/src/main/thrift-gen-java/org/apache/accumulo/core/manager/thrift/ManagerGoalState.java index 8d155ceee7e..d55fd943e7e 100644 --- a/core/src/main/thrift-gen-java/org/apache/accumulo/core/manager/thrift/ManagerGoalState.java +++ b/core/src/main/thrift-gen-java/org/apache/accumulo/core/manager/thrift/ManagerGoalState.java @@ -17,7 +17,7 @@ * under the License. */ /* - * Autogenerated by Thrift Compiler (0.17.0) + * Autogenerated by Thrift Compiler (0.23.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated diff --git a/core/src/main/thrift-gen-java/org/apache/accumulo/core/manager/thrift/ManagerMonitorInfo.java b/core/src/main/thrift-gen-java/org/apache/accumulo/core/manager/thrift/ManagerMonitorInfo.java index 9c91aaf58ec..27139890927 100644 --- a/core/src/main/thrift-gen-java/org/apache/accumulo/core/manager/thrift/ManagerMonitorInfo.java +++ b/core/src/main/thrift-gen-java/org/apache/accumulo/core/manager/thrift/ManagerMonitorInfo.java @@ -17,7 +17,7 @@ * under the License. */ /* - * Autogenerated by Thrift Compiler (0.17.0) + * Autogenerated by Thrift Compiler (0.23.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -1023,145 +1023,150 @@ private static class ManagerMonitorInfoStandardScheme extends org.apache.thrift. @Override public void read(org.apache.thrift.protocol.TProtocol iprot, ManagerMonitorInfo struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TField schemeField; - iprot.readStructBegin(); - while (true) - { - schemeField = iprot.readFieldBegin(); - if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { - break; - } - switch (schemeField.id) { - case 1: // TABLE_MAP - if (schemeField.type == org.apache.thrift.protocol.TType.MAP) { - { - org.apache.thrift.protocol.TMap _map26 = iprot.readMapBegin(); - struct.tableMap = new java.util.HashMap(2*_map26.size); - @org.apache.thrift.annotation.Nullable java.lang.String _key27; - @org.apache.thrift.annotation.Nullable TableInfo _val28; - for (int _i29 = 0; _i29 < _map26.size; ++_i29) + iprot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { + break; + } + switch (schemeField.id) { + case 1: // TABLE_MAP + if (schemeField.type == org.apache.thrift.protocol.TType.MAP) { { - _key27 = iprot.readString(); - _val28 = new TableInfo(); - _val28.read(iprot); - struct.tableMap.put(_key27, _val28); + org.apache.thrift.protocol.TMap _map26 = iprot.readMapBegin(); + struct.tableMap = new java.util.HashMap(2*_map26.size); + @org.apache.thrift.annotation.Nullable java.lang.String _key27; + @org.apache.thrift.annotation.Nullable TableInfo _val28; + for (int _i29 = 0; _i29 < _map26.size; ++_i29) + { + _key27 = iprot.readString(); + _val28 = new TableInfo(); + _val28.read(iprot); + struct.tableMap.put(_key27, _val28); + } + iprot.readMapEnd(); } - iprot.readMapEnd(); + struct.setTableMapIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } - struct.setTableMapIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 2: // T_SERVER_INFO - if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { - { - org.apache.thrift.protocol.TList _list30 = iprot.readListBegin(); - struct.tServerInfo = new java.util.ArrayList(_list30.size); - @org.apache.thrift.annotation.Nullable TabletServerStatus _elem31; - for (int _i32 = 0; _i32 < _list30.size; ++_i32) + break; + case 2: // T_SERVER_INFO + if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - _elem31 = new TabletServerStatus(); - _elem31.read(iprot); - struct.tServerInfo.add(_elem31); + org.apache.thrift.protocol.TList _list30 = iprot.readListBegin(); + struct.tServerInfo = new java.util.ArrayList(_list30.size); + @org.apache.thrift.annotation.Nullable TabletServerStatus _elem31; + for (int _i32 = 0; _i32 < _list30.size; ++_i32) + { + _elem31 = new TabletServerStatus(); + _elem31.read(iprot); + struct.tServerInfo.add(_elem31); + } + iprot.readListEnd(); } - iprot.readListEnd(); + struct.setTServerInfoIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } - struct.setTServerInfoIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 3: // BAD_TSERVERS - if (schemeField.type == org.apache.thrift.protocol.TType.MAP) { - { - org.apache.thrift.protocol.TMap _map33 = iprot.readMapBegin(); - struct.badTServers = new java.util.HashMap(2*_map33.size); - @org.apache.thrift.annotation.Nullable java.lang.String _key34; - byte _val35; - for (int _i36 = 0; _i36 < _map33.size; ++_i36) + break; + case 3: // BAD_TSERVERS + if (schemeField.type == org.apache.thrift.protocol.TType.MAP) { { - _key34 = iprot.readString(); - _val35 = iprot.readByte(); - struct.badTServers.put(_key34, _val35); + org.apache.thrift.protocol.TMap _map33 = iprot.readMapBegin(); + struct.badTServers = new java.util.HashMap(2*_map33.size); + @org.apache.thrift.annotation.Nullable java.lang.String _key34; + byte _val35; + for (int _i36 = 0; _i36 < _map33.size; ++_i36) + { + _key34 = iprot.readString(); + _val35 = iprot.readByte(); + struct.badTServers.put(_key34, _val35); + } + iprot.readMapEnd(); } - iprot.readMapEnd(); + struct.setBadTServersIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } - struct.setBadTServersIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 4: // STATE - if (schemeField.type == org.apache.thrift.protocol.TType.I32) { - struct.state = org.apache.accumulo.core.manager.thrift.ManagerState.findByValue(iprot.readI32()); - struct.setStateIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 5: // GOAL_STATE - if (schemeField.type == org.apache.thrift.protocol.TType.I32) { - struct.goalState = org.apache.accumulo.core.manager.thrift.ManagerGoalState.findByValue(iprot.readI32()); - struct.setGoalStateIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 6: // UNASSIGNED_TABLETS - if (schemeField.type == org.apache.thrift.protocol.TType.I32) { - struct.unassignedTablets = iprot.readI32(); - struct.setUnassignedTabletsIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 7: // SERVERS_SHUTTING_DOWN - if (schemeField.type == org.apache.thrift.protocol.TType.SET) { - { - org.apache.thrift.protocol.TSet _set37 = iprot.readSetBegin(); - struct.serversShuttingDown = new java.util.HashSet(2*_set37.size); - @org.apache.thrift.annotation.Nullable java.lang.String _elem38; - for (int _i39 = 0; _i39 < _set37.size; ++_i39) + break; + case 4: // STATE + if (schemeField.type == org.apache.thrift.protocol.TType.I32) { + struct.state = org.apache.accumulo.core.manager.thrift.ManagerState.findByValue(iprot.readI32()); + struct.setStateIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 5: // GOAL_STATE + if (schemeField.type == org.apache.thrift.protocol.TType.I32) { + struct.goalState = org.apache.accumulo.core.manager.thrift.ManagerGoalState.findByValue(iprot.readI32()); + struct.setGoalStateIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 6: // UNASSIGNED_TABLETS + if (schemeField.type == org.apache.thrift.protocol.TType.I32) { + struct.unassignedTablets = iprot.readI32(); + struct.setUnassignedTabletsIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 7: // SERVERS_SHUTTING_DOWN + if (schemeField.type == org.apache.thrift.protocol.TType.SET) { { - _elem38 = iprot.readString(); - struct.serversShuttingDown.add(_elem38); + org.apache.thrift.protocol.TSet _set37 = iprot.readSetBegin(); + struct.serversShuttingDown = new java.util.HashSet(2*_set37.size); + @org.apache.thrift.annotation.Nullable java.lang.String _elem38; + for (int _i39 = 0; _i39 < _set37.size; ++_i39) + { + _elem38 = iprot.readString(); + struct.serversShuttingDown.add(_elem38); + } + iprot.readSetEnd(); } - iprot.readSetEnd(); + struct.setServersShuttingDownIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } - struct.setServersShuttingDownIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 8: // DEAD_TABLET_SERVERS - if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { - { - org.apache.thrift.protocol.TList _list40 = iprot.readListBegin(); - struct.deadTabletServers = new java.util.ArrayList(_list40.size); - @org.apache.thrift.annotation.Nullable DeadServer _elem41; - for (int _i42 = 0; _i42 < _list40.size; ++_i42) + break; + case 8: // DEAD_TABLET_SERVERS + if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - _elem41 = new DeadServer(); - _elem41.read(iprot); - struct.deadTabletServers.add(_elem41); + org.apache.thrift.protocol.TList _list40 = iprot.readListBegin(); + struct.deadTabletServers = new java.util.ArrayList(_list40.size); + @org.apache.thrift.annotation.Nullable DeadServer _elem41; + for (int _i42 = 0; _i42 < _list40.size; ++_i42) + { + _elem41 = new DeadServer(); + _elem41.read(iprot); + struct.deadTabletServers.add(_elem41); + } + iprot.readListEnd(); } - iprot.readListEnd(); + struct.setDeadTabletServersIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } - struct.setDeadTabletServersIsSet(true); - } else { + break; + default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - default: - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); } - iprot.readFieldEnd(); - } - iprot.readStructEnd(); + iprot.readStructEnd(); - // check for required fields of primitive type, which can't be checked in the validate method - struct.validate(); + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } finally { + iprot.decrementRecursionDepth(); + } } @Override @@ -1348,91 +1353,96 @@ public void write(org.apache.thrift.protocol.TProtocol prot, ManagerMonitorInfo @Override public void read(org.apache.thrift.protocol.TProtocol prot, ManagerMonitorInfo struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; - java.util.BitSet incoming = iprot.readBitSet(8); - if (incoming.get(0)) { - { - org.apache.thrift.protocol.TMap _map53 = iprot.readMapBegin(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRUCT); - struct.tableMap = new java.util.HashMap(2*_map53.size); - @org.apache.thrift.annotation.Nullable java.lang.String _key54; - @org.apache.thrift.annotation.Nullable TableInfo _val55; - for (int _i56 = 0; _i56 < _map53.size; ++_i56) + prot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(8); + if (incoming.get(0)) { { - _key54 = iprot.readString(); - _val55 = new TableInfo(); - _val55.read(iprot); - struct.tableMap.put(_key54, _val55); + org.apache.thrift.protocol.TMap _map53 = iprot.readMapBegin(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRUCT); + struct.tableMap = new java.util.HashMap(2*_map53.size); + @org.apache.thrift.annotation.Nullable java.lang.String _key54; + @org.apache.thrift.annotation.Nullable TableInfo _val55; + for (int _i56 = 0; _i56 < _map53.size; ++_i56) + { + _key54 = iprot.readString(); + _val55 = new TableInfo(); + _val55.read(iprot); + struct.tableMap.put(_key54, _val55); + } } + struct.setTableMapIsSet(true); } - struct.setTableMapIsSet(true); - } - if (incoming.get(1)) { - { - org.apache.thrift.protocol.TList _list57 = iprot.readListBegin(org.apache.thrift.protocol.TType.STRUCT); - struct.tServerInfo = new java.util.ArrayList(_list57.size); - @org.apache.thrift.annotation.Nullable TabletServerStatus _elem58; - for (int _i59 = 0; _i59 < _list57.size; ++_i59) + if (incoming.get(1)) { { - _elem58 = new TabletServerStatus(); - _elem58.read(iprot); - struct.tServerInfo.add(_elem58); + org.apache.thrift.protocol.TList _list57 = iprot.readListBegin(org.apache.thrift.protocol.TType.STRUCT); + struct.tServerInfo = new java.util.ArrayList(_list57.size); + @org.apache.thrift.annotation.Nullable TabletServerStatus _elem58; + for (int _i59 = 0; _i59 < _list57.size; ++_i59) + { + _elem58 = new TabletServerStatus(); + _elem58.read(iprot); + struct.tServerInfo.add(_elem58); + } } + struct.setTServerInfoIsSet(true); } - struct.setTServerInfoIsSet(true); - } - if (incoming.get(2)) { - { - org.apache.thrift.protocol.TMap _map60 = iprot.readMapBegin(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.BYTE); - struct.badTServers = new java.util.HashMap(2*_map60.size); - @org.apache.thrift.annotation.Nullable java.lang.String _key61; - byte _val62; - for (int _i63 = 0; _i63 < _map60.size; ++_i63) + if (incoming.get(2)) { { - _key61 = iprot.readString(); - _val62 = iprot.readByte(); - struct.badTServers.put(_key61, _val62); + org.apache.thrift.protocol.TMap _map60 = iprot.readMapBegin(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.BYTE); + struct.badTServers = new java.util.HashMap(2*_map60.size); + @org.apache.thrift.annotation.Nullable java.lang.String _key61; + byte _val62; + for (int _i63 = 0; _i63 < _map60.size; ++_i63) + { + _key61 = iprot.readString(); + _val62 = iprot.readByte(); + struct.badTServers.put(_key61, _val62); + } } + struct.setBadTServersIsSet(true); } - struct.setBadTServersIsSet(true); - } - if (incoming.get(3)) { - struct.state = org.apache.accumulo.core.manager.thrift.ManagerState.findByValue(iprot.readI32()); - struct.setStateIsSet(true); - } - if (incoming.get(4)) { - struct.goalState = org.apache.accumulo.core.manager.thrift.ManagerGoalState.findByValue(iprot.readI32()); - struct.setGoalStateIsSet(true); - } - if (incoming.get(5)) { - struct.unassignedTablets = iprot.readI32(); - struct.setUnassignedTabletsIsSet(true); - } - if (incoming.get(6)) { - { - org.apache.thrift.protocol.TSet _set64 = iprot.readSetBegin(org.apache.thrift.protocol.TType.STRING); - struct.serversShuttingDown = new java.util.HashSet(2*_set64.size); - @org.apache.thrift.annotation.Nullable java.lang.String _elem65; - for (int _i66 = 0; _i66 < _set64.size; ++_i66) + if (incoming.get(3)) { + struct.state = org.apache.accumulo.core.manager.thrift.ManagerState.findByValue(iprot.readI32()); + struct.setStateIsSet(true); + } + if (incoming.get(4)) { + struct.goalState = org.apache.accumulo.core.manager.thrift.ManagerGoalState.findByValue(iprot.readI32()); + struct.setGoalStateIsSet(true); + } + if (incoming.get(5)) { + struct.unassignedTablets = iprot.readI32(); + struct.setUnassignedTabletsIsSet(true); + } + if (incoming.get(6)) { { - _elem65 = iprot.readString(); - struct.serversShuttingDown.add(_elem65); + org.apache.thrift.protocol.TSet _set64 = iprot.readSetBegin(org.apache.thrift.protocol.TType.STRING); + struct.serversShuttingDown = new java.util.HashSet(2*_set64.size); + @org.apache.thrift.annotation.Nullable java.lang.String _elem65; + for (int _i66 = 0; _i66 < _set64.size; ++_i66) + { + _elem65 = iprot.readString(); + struct.serversShuttingDown.add(_elem65); + } } + struct.setServersShuttingDownIsSet(true); } - struct.setServersShuttingDownIsSet(true); - } - if (incoming.get(7)) { - { - org.apache.thrift.protocol.TList _list67 = iprot.readListBegin(org.apache.thrift.protocol.TType.STRUCT); - struct.deadTabletServers = new java.util.ArrayList(_list67.size); - @org.apache.thrift.annotation.Nullable DeadServer _elem68; - for (int _i69 = 0; _i69 < _list67.size; ++_i69) + if (incoming.get(7)) { { - _elem68 = new DeadServer(); - _elem68.read(iprot); - struct.deadTabletServers.add(_elem68); + org.apache.thrift.protocol.TList _list67 = iprot.readListBegin(org.apache.thrift.protocol.TType.STRUCT); + struct.deadTabletServers = new java.util.ArrayList(_list67.size); + @org.apache.thrift.annotation.Nullable DeadServer _elem68; + for (int _i69 = 0; _i69 < _list67.size; ++_i69) + { + _elem68 = new DeadServer(); + _elem68.read(iprot); + struct.deadTabletServers.add(_elem68); + } } + struct.setDeadTabletServersIsSet(true); } - struct.setDeadTabletServersIsSet(true); + } finally { + prot.decrementRecursionDepth(); } } } diff --git a/core/src/main/thrift-gen-java/org/apache/accumulo/core/manager/thrift/ManagerState.java b/core/src/main/thrift-gen-java/org/apache/accumulo/core/manager/thrift/ManagerState.java index 7a808a39382..c2d69cdf05a 100644 --- a/core/src/main/thrift-gen-java/org/apache/accumulo/core/manager/thrift/ManagerState.java +++ b/core/src/main/thrift-gen-java/org/apache/accumulo/core/manager/thrift/ManagerState.java @@ -17,7 +17,7 @@ * under the License. */ /* - * Autogenerated by Thrift Compiler (0.17.0) + * Autogenerated by Thrift Compiler (0.23.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated diff --git a/core/src/main/thrift-gen-java/org/apache/accumulo/core/manager/thrift/RecoveryStatus.java b/core/src/main/thrift-gen-java/org/apache/accumulo/core/manager/thrift/RecoveryStatus.java index 2862bd6f20f..2d189870745 100644 --- a/core/src/main/thrift-gen-java/org/apache/accumulo/core/manager/thrift/RecoveryStatus.java +++ b/core/src/main/thrift-gen-java/org/apache/accumulo/core/manager/thrift/RecoveryStatus.java @@ -17,7 +17,7 @@ * under the License. */ /* - * Autogenerated by Thrift Compiler (0.17.0) + * Autogenerated by Thrift Compiler (0.23.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -475,48 +475,53 @@ private static class RecoveryStatusStandardScheme extends org.apache.thrift.sche @Override public void read(org.apache.thrift.protocol.TProtocol iprot, RecoveryStatus struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TField schemeField; - iprot.readStructBegin(); - while (true) - { - schemeField = iprot.readFieldBegin(); - if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { - break; - } - switch (schemeField.id) { - case 2: // NAME - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.name = iprot.readString(); - struct.setNameIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 5: // RUNTIME - if (schemeField.type == org.apache.thrift.protocol.TType.I32) { - struct.runtime = iprot.readI32(); - struct.setRuntimeIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } + iprot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; - case 6: // PROGRESS - if (schemeField.type == org.apache.thrift.protocol.TType.DOUBLE) { - struct.progress = iprot.readDouble(); - struct.setProgressIsSet(true); - } else { + } + switch (schemeField.id) { + case 2: // NAME + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.name = iprot.readString(); + struct.setNameIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 5: // RUNTIME + if (schemeField.type == org.apache.thrift.protocol.TType.I32) { + struct.runtime = iprot.readI32(); + struct.setRuntimeIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 6: // PROGRESS + if (schemeField.type == org.apache.thrift.protocol.TType.DOUBLE) { + struct.progress = iprot.readDouble(); + struct.setProgressIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - default: - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); } - iprot.readFieldEnd(); - } - iprot.readStructEnd(); + iprot.readStructEnd(); - // check for required fields of primitive type, which can't be checked in the validate method - struct.validate(); + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } finally { + iprot.decrementRecursionDepth(); + } } @Override @@ -577,19 +582,24 @@ public void write(org.apache.thrift.protocol.TProtocol prot, RecoveryStatus stru @Override public void read(org.apache.thrift.protocol.TProtocol prot, RecoveryStatus struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; - java.util.BitSet incoming = iprot.readBitSet(3); - if (incoming.get(0)) { - struct.name = iprot.readString(); - struct.setNameIsSet(true); - } - if (incoming.get(1)) { - struct.runtime = iprot.readI32(); - struct.setRuntimeIsSet(true); - } - if (incoming.get(2)) { - struct.progress = iprot.readDouble(); - struct.setProgressIsSet(true); + prot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(3); + if (incoming.get(0)) { + struct.name = iprot.readString(); + struct.setNameIsSet(true); + } + if (incoming.get(1)) { + struct.runtime = iprot.readI32(); + struct.setRuntimeIsSet(true); + } + if (incoming.get(2)) { + struct.progress = iprot.readDouble(); + struct.setProgressIsSet(true); + } + } finally { + prot.decrementRecursionDepth(); } } } diff --git a/core/src/main/thrift-gen-java/org/apache/accumulo/core/manager/thrift/TEvent.java b/core/src/main/thrift-gen-java/org/apache/accumulo/core/manager/thrift/TEvent.java index a4ff9d6281e..0dfe7a6596c 100644 --- a/core/src/main/thrift-gen-java/org/apache/accumulo/core/manager/thrift/TEvent.java +++ b/core/src/main/thrift-gen-java/org/apache/accumulo/core/manager/thrift/TEvent.java @@ -17,7 +17,7 @@ * under the License. */ /* - * Autogenerated by Thrift Compiler (0.17.0) + * Autogenerated by Thrift Compiler (0.23.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -406,41 +406,46 @@ private static class TEventStandardScheme extends org.apache.thrift.scheme.Stand @Override public void read(org.apache.thrift.protocol.TProtocol iprot, TEvent struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TField schemeField; - iprot.readStructBegin(); - while (true) - { - schemeField = iprot.readFieldBegin(); - if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { - break; - } - switch (schemeField.id) { - case 1: // LEVEL - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.level = iprot.readString(); - struct.setLevelIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } + iprot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; - case 2: // EXTENT - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.extent = new org.apache.accumulo.core.dataImpl.thrift.TKeyExtent(); - struct.extent.read(iprot); - struct.setExtentIsSet(true); - } else { + } + switch (schemeField.id) { + case 1: // LEVEL + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.level = iprot.readString(); + struct.setLevelIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 2: // EXTENT + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.extent = new org.apache.accumulo.core.dataImpl.thrift.TKeyExtent(); + struct.extent.read(iprot); + struct.setExtentIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - default: - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); } - iprot.readFieldEnd(); - } - iprot.readStructEnd(); + iprot.readStructEnd(); - // check for required fields of primitive type, which can't be checked in the validate method - struct.validate(); + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } finally { + iprot.decrementRecursionDepth(); + } } @Override @@ -494,16 +499,21 @@ public void write(org.apache.thrift.protocol.TProtocol prot, TEvent struct) thro @Override public void read(org.apache.thrift.protocol.TProtocol prot, TEvent struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; - java.util.BitSet incoming = iprot.readBitSet(2); - if (incoming.get(0)) { - struct.level = iprot.readString(); - struct.setLevelIsSet(true); - } - if (incoming.get(1)) { - struct.extent = new org.apache.accumulo.core.dataImpl.thrift.TKeyExtent(); - struct.extent.read(iprot); - struct.setExtentIsSet(true); + prot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(2); + if (incoming.get(0)) { + struct.level = iprot.readString(); + struct.setLevelIsSet(true); + } + if (incoming.get(1)) { + struct.extent = new org.apache.accumulo.core.dataImpl.thrift.TKeyExtent(); + struct.extent.read(iprot); + struct.setExtentIsSet(true); + } + } finally { + prot.decrementRecursionDepth(); } } } diff --git a/core/src/main/thrift-gen-java/org/apache/accumulo/core/manager/thrift/TFateId.java b/core/src/main/thrift-gen-java/org/apache/accumulo/core/manager/thrift/TFateId.java index b5a71ba8650..da38c4b6c37 100644 --- a/core/src/main/thrift-gen-java/org/apache/accumulo/core/manager/thrift/TFateId.java +++ b/core/src/main/thrift-gen-java/org/apache/accumulo/core/manager/thrift/TFateId.java @@ -17,7 +17,7 @@ * under the License. */ /* - * Autogenerated by Thrift Compiler (0.17.0) + * Autogenerated by Thrift Compiler (0.23.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -419,40 +419,45 @@ private static class TFateIdStandardScheme extends org.apache.thrift.scheme.Stan @Override public void read(org.apache.thrift.protocol.TProtocol iprot, TFateId struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TField schemeField; - iprot.readStructBegin(); - while (true) - { - schemeField = iprot.readFieldBegin(); - if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { - break; - } - switch (schemeField.id) { - case 1: // TYPE - if (schemeField.type == org.apache.thrift.protocol.TType.I32) { - struct.type = org.apache.accumulo.core.manager.thrift.TFateInstanceType.findByValue(iprot.readI32()); - struct.setTypeIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } + iprot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; - case 2: // TX_UUIDSTR - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.txUUIDStr = iprot.readString(); - struct.setTxUUIDStrIsSet(true); - } else { + } + switch (schemeField.id) { + case 1: // TYPE + if (schemeField.type == org.apache.thrift.protocol.TType.I32) { + struct.type = org.apache.accumulo.core.manager.thrift.TFateInstanceType.findByValue(iprot.readI32()); + struct.setTypeIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 2: // TX_UUIDSTR + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.txUUIDStr = iprot.readString(); + struct.setTxUUIDStrIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - default: - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); } - iprot.readFieldEnd(); - } - iprot.readStructEnd(); + iprot.readStructEnd(); - // check for required fields of primitive type, which can't be checked in the validate method - struct.validate(); + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } finally { + iprot.decrementRecursionDepth(); + } } @Override @@ -506,15 +511,20 @@ public void write(org.apache.thrift.protocol.TProtocol prot, TFateId struct) thr @Override public void read(org.apache.thrift.protocol.TProtocol prot, TFateId struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; - java.util.BitSet incoming = iprot.readBitSet(2); - if (incoming.get(0)) { - struct.type = org.apache.accumulo.core.manager.thrift.TFateInstanceType.findByValue(iprot.readI32()); - struct.setTypeIsSet(true); - } - if (incoming.get(1)) { - struct.txUUIDStr = iprot.readString(); - struct.setTxUUIDStrIsSet(true); + prot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(2); + if (incoming.get(0)) { + struct.type = org.apache.accumulo.core.manager.thrift.TFateInstanceType.findByValue(iprot.readI32()); + struct.setTypeIsSet(true); + } + if (incoming.get(1)) { + struct.txUUIDStr = iprot.readString(); + struct.setTxUUIDStrIsSet(true); + } + } finally { + prot.decrementRecursionDepth(); } } } diff --git a/core/src/main/thrift-gen-java/org/apache/accumulo/core/manager/thrift/TFateInstanceType.java b/core/src/main/thrift-gen-java/org/apache/accumulo/core/manager/thrift/TFateInstanceType.java index e0365b67850..19ca5ba6299 100644 --- a/core/src/main/thrift-gen-java/org/apache/accumulo/core/manager/thrift/TFateInstanceType.java +++ b/core/src/main/thrift-gen-java/org/apache/accumulo/core/manager/thrift/TFateInstanceType.java @@ -17,7 +17,7 @@ * under the License. */ /* - * Autogenerated by Thrift Compiler (0.17.0) + * Autogenerated by Thrift Compiler (0.23.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated diff --git a/core/src/main/thrift-gen-java/org/apache/accumulo/core/manager/thrift/TFateOperation.java b/core/src/main/thrift-gen-java/org/apache/accumulo/core/manager/thrift/TFateOperation.java index 6a865fba221..4c8ece5db5c 100644 --- a/core/src/main/thrift-gen-java/org/apache/accumulo/core/manager/thrift/TFateOperation.java +++ b/core/src/main/thrift-gen-java/org/apache/accumulo/core/manager/thrift/TFateOperation.java @@ -17,7 +17,7 @@ * under the License. */ /* - * Autogenerated by Thrift Compiler (0.17.0) + * Autogenerated by Thrift Compiler (0.23.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated diff --git a/core/src/main/thrift-gen-java/org/apache/accumulo/core/manager/thrift/TFatePartition.java b/core/src/main/thrift-gen-java/org/apache/accumulo/core/manager/thrift/TFatePartition.java index 349d67a1982..8fb83c15f72 100644 --- a/core/src/main/thrift-gen-java/org/apache/accumulo/core/manager/thrift/TFatePartition.java +++ b/core/src/main/thrift-gen-java/org/apache/accumulo/core/manager/thrift/TFatePartition.java @@ -17,7 +17,7 @@ * under the License. */ /* - * Autogenerated by Thrift Compiler (0.17.0) + * Autogenerated by Thrift Compiler (0.23.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -403,40 +403,45 @@ private static class TFatePartitionStandardScheme extends org.apache.thrift.sche @Override public void read(org.apache.thrift.protocol.TProtocol iprot, TFatePartition struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TField schemeField; - iprot.readStructBegin(); - while (true) - { - schemeField = iprot.readFieldBegin(); - if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { - break; - } - switch (schemeField.id) { - case 1: // START - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.start = iprot.readString(); - struct.setStartIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } + iprot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; - case 2: // STOP - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.stop = iprot.readString(); - struct.setStopIsSet(true); - } else { + } + switch (schemeField.id) { + case 1: // START + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.start = iprot.readString(); + struct.setStartIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 2: // STOP + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.stop = iprot.readString(); + struct.setStopIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - default: - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); } - iprot.readFieldEnd(); - } - iprot.readStructEnd(); + iprot.readStructEnd(); - // check for required fields of primitive type, which can't be checked in the validate method - struct.validate(); + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } finally { + iprot.decrementRecursionDepth(); + } } @Override @@ -490,15 +495,20 @@ public void write(org.apache.thrift.protocol.TProtocol prot, TFatePartition stru @Override public void read(org.apache.thrift.protocol.TProtocol prot, TFatePartition struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; - java.util.BitSet incoming = iprot.readBitSet(2); - if (incoming.get(0)) { - struct.start = iprot.readString(); - struct.setStartIsSet(true); - } - if (incoming.get(1)) { - struct.stop = iprot.readString(); - struct.setStopIsSet(true); + prot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(2); + if (incoming.get(0)) { + struct.start = iprot.readString(); + struct.setStartIsSet(true); + } + if (incoming.get(1)) { + struct.stop = iprot.readString(); + struct.setStopIsSet(true); + } + } finally { + prot.decrementRecursionDepth(); } } } diff --git a/core/src/main/thrift-gen-java/org/apache/accumulo/core/manager/thrift/TFatePartitions.java b/core/src/main/thrift-gen-java/org/apache/accumulo/core/manager/thrift/TFatePartitions.java index 477b52ad855..7e33e24060e 100644 --- a/core/src/main/thrift-gen-java/org/apache/accumulo/core/manager/thrift/TFatePartitions.java +++ b/core/src/main/thrift-gen-java/org/apache/accumulo/core/manager/thrift/TFatePartitions.java @@ -17,7 +17,7 @@ * under the License. */ /* - * Autogenerated by Thrift Compiler (0.17.0) + * Autogenerated by Thrift Compiler (0.23.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -421,51 +421,56 @@ private static class TFatePartitionsStandardScheme extends org.apache.thrift.sch @Override public void read(org.apache.thrift.protocol.TProtocol iprot, TFatePartitions struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TField schemeField; - iprot.readStructBegin(); - while (true) - { - schemeField = iprot.readFieldBegin(); - if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { - break; - } - switch (schemeField.id) { - case 1: // UPDATE_ID - if (schemeField.type == org.apache.thrift.protocol.TType.I64) { - struct.updateId = iprot.readI64(); - struct.setUpdateIdIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } + iprot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; - case 2: // PARTITIONS - if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { - { - org.apache.thrift.protocol.TList _list70 = iprot.readListBegin(); - struct.partitions = new java.util.ArrayList(_list70.size); - @org.apache.thrift.annotation.Nullable TFatePartition _elem71; - for (int _i72 = 0; _i72 < _list70.size; ++_i72) + } + switch (schemeField.id) { + case 1: // UPDATE_ID + if (schemeField.type == org.apache.thrift.protocol.TType.I64) { + struct.updateId = iprot.readI64(); + struct.setUpdateIdIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 2: // PARTITIONS + if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - _elem71 = new TFatePartition(); - _elem71.read(iprot); - struct.partitions.add(_elem71); + org.apache.thrift.protocol.TList _list70 = iprot.readListBegin(); + struct.partitions = new java.util.ArrayList(_list70.size); + @org.apache.thrift.annotation.Nullable TFatePartition _elem71; + for (int _i72 = 0; _i72 < _list70.size; ++_i72) + { + _elem71 = new TFatePartition(); + _elem71.read(iprot); + struct.partitions.add(_elem71); + } + iprot.readListEnd(); } - iprot.readListEnd(); + struct.setPartitionsIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } - struct.setPartitionsIsSet(true); - } else { + break; + default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - default: - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); } - iprot.readFieldEnd(); - } - iprot.readStructEnd(); + iprot.readStructEnd(); - // check for required fields of primitive type, which can't be checked in the validate method - struct.validate(); + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } finally { + iprot.decrementRecursionDepth(); + } } @Override @@ -530,25 +535,30 @@ public void write(org.apache.thrift.protocol.TProtocol prot, TFatePartitions str @Override public void read(org.apache.thrift.protocol.TProtocol prot, TFatePartitions struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; - java.util.BitSet incoming = iprot.readBitSet(2); - if (incoming.get(0)) { - struct.updateId = iprot.readI64(); - struct.setUpdateIdIsSet(true); - } - if (incoming.get(1)) { - { - org.apache.thrift.protocol.TList _list75 = iprot.readListBegin(org.apache.thrift.protocol.TType.STRUCT); - struct.partitions = new java.util.ArrayList(_list75.size); - @org.apache.thrift.annotation.Nullable TFatePartition _elem76; - for (int _i77 = 0; _i77 < _list75.size; ++_i77) + prot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(2); + if (incoming.get(0)) { + struct.updateId = iprot.readI64(); + struct.setUpdateIdIsSet(true); + } + if (incoming.get(1)) { { - _elem76 = new TFatePartition(); - _elem76.read(iprot); - struct.partitions.add(_elem76); + org.apache.thrift.protocol.TList _list75 = iprot.readListBegin(org.apache.thrift.protocol.TType.STRUCT); + struct.partitions = new java.util.ArrayList(_list75.size); + @org.apache.thrift.annotation.Nullable TFatePartition _elem76; + for (int _i77 = 0; _i77 < _list75.size; ++_i77) + { + _elem76 = new TFatePartition(); + _elem76.read(iprot); + struct.partitions.add(_elem76); + } } + struct.setPartitionsIsSet(true); } - struct.setPartitionsIsSet(true); + } finally { + prot.decrementRecursionDepth(); } } } diff --git a/core/src/main/thrift-gen-java/org/apache/accumulo/core/manager/thrift/TTabletMergeability.java b/core/src/main/thrift-gen-java/org/apache/accumulo/core/manager/thrift/TTabletMergeability.java index 3bc1dd0d6e0..9a94d8d0ac6 100644 --- a/core/src/main/thrift-gen-java/org/apache/accumulo/core/manager/thrift/TTabletMergeability.java +++ b/core/src/main/thrift-gen-java/org/apache/accumulo/core/manager/thrift/TTabletMergeability.java @@ -17,7 +17,7 @@ * under the License. */ /* - * Autogenerated by Thrift Compiler (0.17.0) + * Autogenerated by Thrift Compiler (0.23.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -393,40 +393,45 @@ private static class TTabletMergeabilityStandardScheme extends org.apache.thrift @Override public void read(org.apache.thrift.protocol.TProtocol iprot, TTabletMergeability struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TField schemeField; - iprot.readStructBegin(); - while (true) - { - schemeField = iprot.readFieldBegin(); - if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { - break; - } - switch (schemeField.id) { - case 1: // NEVER - if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) { - struct.never = iprot.readBool(); - struct.setNeverIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } + iprot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; - case 2: // DELAY - if (schemeField.type == org.apache.thrift.protocol.TType.I64) { - struct.delay = iprot.readI64(); - struct.setDelayIsSet(true); - } else { + } + switch (schemeField.id) { + case 1: // NEVER + if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) { + struct.never = iprot.readBool(); + struct.setNeverIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 2: // DELAY + if (schemeField.type == org.apache.thrift.protocol.TType.I64) { + struct.delay = iprot.readI64(); + struct.setDelayIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - default: - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); } - iprot.readFieldEnd(); - } - iprot.readStructEnd(); + iprot.readStructEnd(); - // check for required fields of primitive type, which can't be checked in the validate method - struct.validate(); + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } finally { + iprot.decrementRecursionDepth(); + } } @Override @@ -476,15 +481,20 @@ public void write(org.apache.thrift.protocol.TProtocol prot, TTabletMergeability @Override public void read(org.apache.thrift.protocol.TProtocol prot, TTabletMergeability struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; - java.util.BitSet incoming = iprot.readBitSet(2); - if (incoming.get(0)) { - struct.never = iprot.readBool(); - struct.setNeverIsSet(true); - } - if (incoming.get(1)) { - struct.delay = iprot.readI64(); - struct.setDelayIsSet(true); + prot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(2); + if (incoming.get(0)) { + struct.never = iprot.readBool(); + struct.setNeverIsSet(true); + } + if (incoming.get(1)) { + struct.delay = iprot.readI64(); + struct.setDelayIsSet(true); + } + } finally { + prot.decrementRecursionDepth(); } } } diff --git a/core/src/main/thrift-gen-java/org/apache/accumulo/core/manager/thrift/TableInfo.java b/core/src/main/thrift-gen-java/org/apache/accumulo/core/manager/thrift/TableInfo.java index 8a230bc450f..f1d2013c1bc 100644 --- a/core/src/main/thrift-gen-java/org/apache/accumulo/core/manager/thrift/TableInfo.java +++ b/core/src/main/thrift-gen-java/org/apache/accumulo/core/manager/thrift/TableInfo.java @@ -17,7 +17,7 @@ * under the License. */ /* - * Autogenerated by Thrift Compiler (0.17.0) + * Autogenerated by Thrift Compiler (0.23.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -1088,114 +1088,119 @@ private static class TableInfoStandardScheme extends org.apache.thrift.scheme.St @Override public void read(org.apache.thrift.protocol.TProtocol iprot, TableInfo struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TField schemeField; - iprot.readStructBegin(); - while (true) - { - schemeField = iprot.readFieldBegin(); - if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { - break; - } - switch (schemeField.id) { - case 1: // RECS - if (schemeField.type == org.apache.thrift.protocol.TType.I64) { - struct.recs = iprot.readI64(); - struct.setRecsIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 2: // RECS_IN_MEMORY - if (schemeField.type == org.apache.thrift.protocol.TType.I64) { - struct.recsInMemory = iprot.readI64(); - struct.setRecsInMemoryIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 3: // TABLETS - if (schemeField.type == org.apache.thrift.protocol.TType.I32) { - struct.tablets = iprot.readI32(); - struct.setTabletsIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 4: // ONLINE_TABLETS - if (schemeField.type == org.apache.thrift.protocol.TType.I32) { - struct.onlineTablets = iprot.readI32(); - struct.setOnlineTabletsIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 5: // INGEST_RATE - if (schemeField.type == org.apache.thrift.protocol.TType.DOUBLE) { - struct.ingestRate = iprot.readDouble(); - struct.setIngestRateIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 6: // INGEST_BYTE_RATE - if (schemeField.type == org.apache.thrift.protocol.TType.DOUBLE) { - struct.ingestByteRate = iprot.readDouble(); - struct.setIngestByteRateIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } + iprot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; - case 7: // QUERY_RATE - if (schemeField.type == org.apache.thrift.protocol.TType.DOUBLE) { - struct.queryRate = iprot.readDouble(); - struct.setQueryRateIsSet(true); - } else { + } + switch (schemeField.id) { + case 1: // RECS + if (schemeField.type == org.apache.thrift.protocol.TType.I64) { + struct.recs = iprot.readI64(); + struct.setRecsIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 2: // RECS_IN_MEMORY + if (schemeField.type == org.apache.thrift.protocol.TType.I64) { + struct.recsInMemory = iprot.readI64(); + struct.setRecsInMemoryIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 3: // TABLETS + if (schemeField.type == org.apache.thrift.protocol.TType.I32) { + struct.tablets = iprot.readI32(); + struct.setTabletsIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 4: // ONLINE_TABLETS + if (schemeField.type == org.apache.thrift.protocol.TType.I32) { + struct.onlineTablets = iprot.readI32(); + struct.setOnlineTabletsIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 5: // INGEST_RATE + if (schemeField.type == org.apache.thrift.protocol.TType.DOUBLE) { + struct.ingestRate = iprot.readDouble(); + struct.setIngestRateIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 6: // INGEST_BYTE_RATE + if (schemeField.type == org.apache.thrift.protocol.TType.DOUBLE) { + struct.ingestByteRate = iprot.readDouble(); + struct.setIngestByteRateIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 7: // QUERY_RATE + if (schemeField.type == org.apache.thrift.protocol.TType.DOUBLE) { + struct.queryRate = iprot.readDouble(); + struct.setQueryRateIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 8: // QUERY_BYTE_RATE + if (schemeField.type == org.apache.thrift.protocol.TType.DOUBLE) { + struct.queryByteRate = iprot.readDouble(); + struct.setQueryByteRateIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 9: // MINORS + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.minors = new Compacting(); + struct.minors.read(iprot); + struct.setMinorsIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 11: // SCANS + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.scans = new Compacting(); + struct.scans.read(iprot); + struct.setScansIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 12: // SCAN_RATE + if (schemeField.type == org.apache.thrift.protocol.TType.DOUBLE) { + struct.scanRate = iprot.readDouble(); + struct.setScanRateIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 8: // QUERY_BYTE_RATE - if (schemeField.type == org.apache.thrift.protocol.TType.DOUBLE) { - struct.queryByteRate = iprot.readDouble(); - struct.setQueryByteRateIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 9: // MINORS - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.minors = new Compacting(); - struct.minors.read(iprot); - struct.setMinorsIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 11: // SCANS - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.scans = new Compacting(); - struct.scans.read(iprot); - struct.setScansIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 12: // SCAN_RATE - if (schemeField.type == org.apache.thrift.protocol.TType.DOUBLE) { - struct.scanRate = iprot.readDouble(); - struct.setScanRateIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - default: - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); } - iprot.readFieldEnd(); - } - iprot.readStructEnd(); + iprot.readStructEnd(); - // check for required fields of primitive type, which can't be checked in the validate method - struct.validate(); + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } finally { + iprot.decrementRecursionDepth(); + } } @Override @@ -1330,53 +1335,58 @@ public void write(org.apache.thrift.protocol.TProtocol prot, TableInfo struct) t @Override public void read(org.apache.thrift.protocol.TProtocol prot, TableInfo struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; - java.util.BitSet incoming = iprot.readBitSet(11); - if (incoming.get(0)) { - struct.recs = iprot.readI64(); - struct.setRecsIsSet(true); - } - if (incoming.get(1)) { - struct.recsInMemory = iprot.readI64(); - struct.setRecsInMemoryIsSet(true); - } - if (incoming.get(2)) { - struct.tablets = iprot.readI32(); - struct.setTabletsIsSet(true); - } - if (incoming.get(3)) { - struct.onlineTablets = iprot.readI32(); - struct.setOnlineTabletsIsSet(true); - } - if (incoming.get(4)) { - struct.ingestRate = iprot.readDouble(); - struct.setIngestRateIsSet(true); - } - if (incoming.get(5)) { - struct.ingestByteRate = iprot.readDouble(); - struct.setIngestByteRateIsSet(true); - } - if (incoming.get(6)) { - struct.queryRate = iprot.readDouble(); - struct.setQueryRateIsSet(true); - } - if (incoming.get(7)) { - struct.queryByteRate = iprot.readDouble(); - struct.setQueryByteRateIsSet(true); - } - if (incoming.get(8)) { - struct.minors = new Compacting(); - struct.minors.read(iprot); - struct.setMinorsIsSet(true); - } - if (incoming.get(9)) { - struct.scans = new Compacting(); - struct.scans.read(iprot); - struct.setScansIsSet(true); - } - if (incoming.get(10)) { - struct.scanRate = iprot.readDouble(); - struct.setScanRateIsSet(true); + prot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(11); + if (incoming.get(0)) { + struct.recs = iprot.readI64(); + struct.setRecsIsSet(true); + } + if (incoming.get(1)) { + struct.recsInMemory = iprot.readI64(); + struct.setRecsInMemoryIsSet(true); + } + if (incoming.get(2)) { + struct.tablets = iprot.readI32(); + struct.setTabletsIsSet(true); + } + if (incoming.get(3)) { + struct.onlineTablets = iprot.readI32(); + struct.setOnlineTabletsIsSet(true); + } + if (incoming.get(4)) { + struct.ingestRate = iprot.readDouble(); + struct.setIngestRateIsSet(true); + } + if (incoming.get(5)) { + struct.ingestByteRate = iprot.readDouble(); + struct.setIngestByteRateIsSet(true); + } + if (incoming.get(6)) { + struct.queryRate = iprot.readDouble(); + struct.setQueryRateIsSet(true); + } + if (incoming.get(7)) { + struct.queryByteRate = iprot.readDouble(); + struct.setQueryByteRateIsSet(true); + } + if (incoming.get(8)) { + struct.minors = new Compacting(); + struct.minors.read(iprot); + struct.setMinorsIsSet(true); + } + if (incoming.get(9)) { + struct.scans = new Compacting(); + struct.scans.read(iprot); + struct.setScansIsSet(true); + } + if (incoming.get(10)) { + struct.scanRate = iprot.readDouble(); + struct.setScanRateIsSet(true); + } + } finally { + prot.decrementRecursionDepth(); } } } diff --git a/core/src/main/thrift-gen-java/org/apache/accumulo/core/manager/thrift/TabletLoadState.java b/core/src/main/thrift-gen-java/org/apache/accumulo/core/manager/thrift/TabletLoadState.java index 9ed7abaa8c4..4fbd52df689 100644 --- a/core/src/main/thrift-gen-java/org/apache/accumulo/core/manager/thrift/TabletLoadState.java +++ b/core/src/main/thrift-gen-java/org/apache/accumulo/core/manager/thrift/TabletLoadState.java @@ -17,7 +17,7 @@ * under the License. */ /* - * Autogenerated by Thrift Compiler (0.17.0) + * Autogenerated by Thrift Compiler (0.23.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated diff --git a/core/src/main/thrift-gen-java/org/apache/accumulo/core/manager/thrift/TabletServerStatus.java b/core/src/main/thrift-gen-java/org/apache/accumulo/core/manager/thrift/TabletServerStatus.java index 61c769c3292..84ff3ff805c 100644 --- a/core/src/main/thrift-gen-java/org/apache/accumulo/core/manager/thrift/TabletServerStatus.java +++ b/core/src/main/thrift-gen-java/org/apache/accumulo/core/manager/thrift/TabletServerStatus.java @@ -17,7 +17,7 @@ * under the License. */ /* - * Autogenerated by Thrift Compiler (0.17.0) + * Autogenerated by Thrift Compiler (0.23.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -1442,168 +1442,173 @@ private static class TabletServerStatusStandardScheme extends org.apache.thrift. @Override public void read(org.apache.thrift.protocol.TProtocol iprot, TabletServerStatus struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TField schemeField; - iprot.readStructBegin(); - while (true) - { - schemeField = iprot.readFieldBegin(); - if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { - break; - } - switch (schemeField.id) { - case 1: // TABLE_MAP - if (schemeField.type == org.apache.thrift.protocol.TType.MAP) { - { - org.apache.thrift.protocol.TMap _map8 = iprot.readMapBegin(); - struct.tableMap = new java.util.HashMap(2*_map8.size); - @org.apache.thrift.annotation.Nullable java.lang.String _key9; - @org.apache.thrift.annotation.Nullable TableInfo _val10; - for (int _i11 = 0; _i11 < _map8.size; ++_i11) + iprot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { + break; + } + switch (schemeField.id) { + case 1: // TABLE_MAP + if (schemeField.type == org.apache.thrift.protocol.TType.MAP) { { - _key9 = iprot.readString(); - _val10 = new TableInfo(); - _val10.read(iprot); - struct.tableMap.put(_key9, _val10); + org.apache.thrift.protocol.TMap _map8 = iprot.readMapBegin(); + struct.tableMap = new java.util.HashMap(2*_map8.size); + @org.apache.thrift.annotation.Nullable java.lang.String _key9; + @org.apache.thrift.annotation.Nullable TableInfo _val10; + for (int _i11 = 0; _i11 < _map8.size; ++_i11) + { + _key9 = iprot.readString(); + _val10 = new TableInfo(); + _val10.read(iprot); + struct.tableMap.put(_key9, _val10); + } + iprot.readMapEnd(); } - iprot.readMapEnd(); + struct.setTableMapIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } - struct.setTableMapIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 2: // LAST_CONTACT - if (schemeField.type == org.apache.thrift.protocol.TType.I64) { - struct.lastContact = iprot.readI64(); - struct.setLastContactIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 3: // NAME - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.name = iprot.readString(); - struct.setNameIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 5: // OS_LOAD - if (schemeField.type == org.apache.thrift.protocol.TType.DOUBLE) { - struct.osLoad = iprot.readDouble(); - struct.setOsLoadIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 7: // HOLD_TIME - if (schemeField.type == org.apache.thrift.protocol.TType.I64) { - struct.holdTime = iprot.readI64(); - struct.setHoldTimeIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 8: // LOOKUPS - if (schemeField.type == org.apache.thrift.protocol.TType.I64) { - struct.lookups = iprot.readI64(); - struct.setLookupsIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 10: // INDEX_CACHE_HITS - if (schemeField.type == org.apache.thrift.protocol.TType.I64) { - struct.indexCacheHits = iprot.readI64(); - struct.setIndexCacheHitsIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 11: // INDEX_CACHE_REQUEST - if (schemeField.type == org.apache.thrift.protocol.TType.I64) { - struct.indexCacheRequest = iprot.readI64(); - struct.setIndexCacheRequestIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 12: // DATA_CACHE_HITS - if (schemeField.type == org.apache.thrift.protocol.TType.I64) { - struct.dataCacheHits = iprot.readI64(); - struct.setDataCacheHitsIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 13: // DATA_CACHE_REQUEST - if (schemeField.type == org.apache.thrift.protocol.TType.I64) { - struct.dataCacheRequest = iprot.readI64(); - struct.setDataCacheRequestIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 14: // LOG_SORTS - if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { - { - org.apache.thrift.protocol.TList _list12 = iprot.readListBegin(); - struct.logSorts = new java.util.ArrayList(_list12.size); - @org.apache.thrift.annotation.Nullable RecoveryStatus _elem13; - for (int _i14 = 0; _i14 < _list12.size; ++_i14) + break; + case 2: // LAST_CONTACT + if (schemeField.type == org.apache.thrift.protocol.TType.I64) { + struct.lastContact = iprot.readI64(); + struct.setLastContactIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 3: // NAME + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.name = iprot.readString(); + struct.setNameIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 5: // OS_LOAD + if (schemeField.type == org.apache.thrift.protocol.TType.DOUBLE) { + struct.osLoad = iprot.readDouble(); + struct.setOsLoadIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 7: // HOLD_TIME + if (schemeField.type == org.apache.thrift.protocol.TType.I64) { + struct.holdTime = iprot.readI64(); + struct.setHoldTimeIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 8: // LOOKUPS + if (schemeField.type == org.apache.thrift.protocol.TType.I64) { + struct.lookups = iprot.readI64(); + struct.setLookupsIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 10: // INDEX_CACHE_HITS + if (schemeField.type == org.apache.thrift.protocol.TType.I64) { + struct.indexCacheHits = iprot.readI64(); + struct.setIndexCacheHitsIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 11: // INDEX_CACHE_REQUEST + if (schemeField.type == org.apache.thrift.protocol.TType.I64) { + struct.indexCacheRequest = iprot.readI64(); + struct.setIndexCacheRequestIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 12: // DATA_CACHE_HITS + if (schemeField.type == org.apache.thrift.protocol.TType.I64) { + struct.dataCacheHits = iprot.readI64(); + struct.setDataCacheHitsIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 13: // DATA_CACHE_REQUEST + if (schemeField.type == org.apache.thrift.protocol.TType.I64) { + struct.dataCacheRequest = iprot.readI64(); + struct.setDataCacheRequestIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 14: // LOG_SORTS + if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - _elem13 = new RecoveryStatus(); - _elem13.read(iprot); - struct.logSorts.add(_elem13); + org.apache.thrift.protocol.TList _list12 = iprot.readListBegin(); + struct.logSorts = new java.util.ArrayList(_list12.size); + @org.apache.thrift.annotation.Nullable RecoveryStatus _elem13; + for (int _i14 = 0; _i14 < _list12.size; ++_i14) + { + _elem13 = new RecoveryStatus(); + _elem13.read(iprot); + struct.logSorts.add(_elem13); + } + iprot.readListEnd(); } - iprot.readListEnd(); + struct.setLogSortsIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } - struct.setLogSortsIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 15: // FLUSHS - if (schemeField.type == org.apache.thrift.protocol.TType.I64) { - struct.flushs = iprot.readI64(); - struct.setFlushsIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 16: // SYNCS - if (schemeField.type == org.apache.thrift.protocol.TType.I64) { - struct.syncs = iprot.readI64(); - struct.setSyncsIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 19: // VERSION - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.version = iprot.readString(); - struct.setVersionIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 18: // RESPONSE_TIME - if (schemeField.type == org.apache.thrift.protocol.TType.I64) { - struct.responseTime = iprot.readI64(); - struct.setResponseTimeIsSet(true); - } else { + break; + case 15: // FLUSHS + if (schemeField.type == org.apache.thrift.protocol.TType.I64) { + struct.flushs = iprot.readI64(); + struct.setFlushsIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 16: // SYNCS + if (schemeField.type == org.apache.thrift.protocol.TType.I64) { + struct.syncs = iprot.readI64(); + struct.setSyncsIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 19: // VERSION + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.version = iprot.readString(); + struct.setVersionIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 18: // RESPONSE_TIME + if (schemeField.type == org.apache.thrift.protocol.TType.I64) { + struct.responseTime = iprot.readI64(); + struct.setResponseTimeIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - default: - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); } - iprot.readFieldEnd(); - } - iprot.readStructEnd(); + iprot.readStructEnd(); - // check for required fields of primitive type, which can't be checked in the validate method - struct.validate(); + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } finally { + iprot.decrementRecursionDepth(); + } } @Override @@ -1806,89 +1811,94 @@ public void write(org.apache.thrift.protocol.TProtocol prot, TabletServerStatus @Override public void read(org.apache.thrift.protocol.TProtocol prot, TabletServerStatus struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; - java.util.BitSet incoming = iprot.readBitSet(15); - if (incoming.get(0)) { - { - org.apache.thrift.protocol.TMap _map19 = iprot.readMapBegin(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRUCT); - struct.tableMap = new java.util.HashMap(2*_map19.size); - @org.apache.thrift.annotation.Nullable java.lang.String _key20; - @org.apache.thrift.annotation.Nullable TableInfo _val21; - for (int _i22 = 0; _i22 < _map19.size; ++_i22) + prot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(15); + if (incoming.get(0)) { { - _key20 = iprot.readString(); - _val21 = new TableInfo(); - _val21.read(iprot); - struct.tableMap.put(_key20, _val21); + org.apache.thrift.protocol.TMap _map19 = iprot.readMapBegin(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRUCT); + struct.tableMap = new java.util.HashMap(2*_map19.size); + @org.apache.thrift.annotation.Nullable java.lang.String _key20; + @org.apache.thrift.annotation.Nullable TableInfo _val21; + for (int _i22 = 0; _i22 < _map19.size; ++_i22) + { + _key20 = iprot.readString(); + _val21 = new TableInfo(); + _val21.read(iprot); + struct.tableMap.put(_key20, _val21); + } } + struct.setTableMapIsSet(true); } - struct.setTableMapIsSet(true); - } - if (incoming.get(1)) { - struct.lastContact = iprot.readI64(); - struct.setLastContactIsSet(true); - } - if (incoming.get(2)) { - struct.name = iprot.readString(); - struct.setNameIsSet(true); - } - if (incoming.get(3)) { - struct.osLoad = iprot.readDouble(); - struct.setOsLoadIsSet(true); - } - if (incoming.get(4)) { - struct.holdTime = iprot.readI64(); - struct.setHoldTimeIsSet(true); - } - if (incoming.get(5)) { - struct.lookups = iprot.readI64(); - struct.setLookupsIsSet(true); - } - if (incoming.get(6)) { - struct.indexCacheHits = iprot.readI64(); - struct.setIndexCacheHitsIsSet(true); - } - if (incoming.get(7)) { - struct.indexCacheRequest = iprot.readI64(); - struct.setIndexCacheRequestIsSet(true); - } - if (incoming.get(8)) { - struct.dataCacheHits = iprot.readI64(); - struct.setDataCacheHitsIsSet(true); - } - if (incoming.get(9)) { - struct.dataCacheRequest = iprot.readI64(); - struct.setDataCacheRequestIsSet(true); - } - if (incoming.get(10)) { - { - org.apache.thrift.protocol.TList _list23 = iprot.readListBegin(org.apache.thrift.protocol.TType.STRUCT); - struct.logSorts = new java.util.ArrayList(_list23.size); - @org.apache.thrift.annotation.Nullable RecoveryStatus _elem24; - for (int _i25 = 0; _i25 < _list23.size; ++_i25) + if (incoming.get(1)) { + struct.lastContact = iprot.readI64(); + struct.setLastContactIsSet(true); + } + if (incoming.get(2)) { + struct.name = iprot.readString(); + struct.setNameIsSet(true); + } + if (incoming.get(3)) { + struct.osLoad = iprot.readDouble(); + struct.setOsLoadIsSet(true); + } + if (incoming.get(4)) { + struct.holdTime = iprot.readI64(); + struct.setHoldTimeIsSet(true); + } + if (incoming.get(5)) { + struct.lookups = iprot.readI64(); + struct.setLookupsIsSet(true); + } + if (incoming.get(6)) { + struct.indexCacheHits = iprot.readI64(); + struct.setIndexCacheHitsIsSet(true); + } + if (incoming.get(7)) { + struct.indexCacheRequest = iprot.readI64(); + struct.setIndexCacheRequestIsSet(true); + } + if (incoming.get(8)) { + struct.dataCacheHits = iprot.readI64(); + struct.setDataCacheHitsIsSet(true); + } + if (incoming.get(9)) { + struct.dataCacheRequest = iprot.readI64(); + struct.setDataCacheRequestIsSet(true); + } + if (incoming.get(10)) { { - _elem24 = new RecoveryStatus(); - _elem24.read(iprot); - struct.logSorts.add(_elem24); + org.apache.thrift.protocol.TList _list23 = iprot.readListBegin(org.apache.thrift.protocol.TType.STRUCT); + struct.logSorts = new java.util.ArrayList(_list23.size); + @org.apache.thrift.annotation.Nullable RecoveryStatus _elem24; + for (int _i25 = 0; _i25 < _list23.size; ++_i25) + { + _elem24 = new RecoveryStatus(); + _elem24.read(iprot); + struct.logSorts.add(_elem24); + } } + struct.setLogSortsIsSet(true); } - struct.setLogSortsIsSet(true); - } - if (incoming.get(11)) { - struct.flushs = iprot.readI64(); - struct.setFlushsIsSet(true); - } - if (incoming.get(12)) { - struct.syncs = iprot.readI64(); - struct.setSyncsIsSet(true); - } - if (incoming.get(13)) { - struct.version = iprot.readString(); - struct.setVersionIsSet(true); - } - if (incoming.get(14)) { - struct.responseTime = iprot.readI64(); - struct.setResponseTimeIsSet(true); + if (incoming.get(11)) { + struct.flushs = iprot.readI64(); + struct.setFlushsIsSet(true); + } + if (incoming.get(12)) { + struct.syncs = iprot.readI64(); + struct.setSyncsIsSet(true); + } + if (incoming.get(13)) { + struct.version = iprot.readString(); + struct.setVersionIsSet(true); + } + if (incoming.get(14)) { + struct.responseTime = iprot.readI64(); + struct.setResponseTimeIsSet(true); + } + } finally { + prot.decrementRecursionDepth(); } } } diff --git a/core/src/main/thrift-gen-java/org/apache/accumulo/core/manager/thrift/TabletSplit.java b/core/src/main/thrift-gen-java/org/apache/accumulo/core/manager/thrift/TabletSplit.java index f01ebef75f6..b908efcfc23 100644 --- a/core/src/main/thrift-gen-java/org/apache/accumulo/core/manager/thrift/TabletSplit.java +++ b/core/src/main/thrift-gen-java/org/apache/accumulo/core/manager/thrift/TabletSplit.java @@ -17,7 +17,7 @@ * under the License. */ /* - * Autogenerated by Thrift Compiler (0.17.0) + * Autogenerated by Thrift Compiler (0.23.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -427,52 +427,57 @@ private static class TabletSplitStandardScheme extends org.apache.thrift.scheme. @Override public void read(org.apache.thrift.protocol.TProtocol iprot, TabletSplit struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TField schemeField; - iprot.readStructBegin(); - while (true) - { - schemeField = iprot.readFieldBegin(); - if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { - break; - } - switch (schemeField.id) { - case 1: // OLD_TABLET - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.oldTablet = new org.apache.accumulo.core.dataImpl.thrift.TKeyExtent(); - struct.oldTablet.read(iprot); - struct.setOldTabletIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } + iprot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; - case 2: // NEW_TABLETS - if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { - { - org.apache.thrift.protocol.TList _list0 = iprot.readListBegin(); - struct.newTablets = new java.util.ArrayList(_list0.size); - @org.apache.thrift.annotation.Nullable org.apache.accumulo.core.dataImpl.thrift.TKeyExtent _elem1; - for (int _i2 = 0; _i2 < _list0.size; ++_i2) + } + switch (schemeField.id) { + case 1: // OLD_TABLET + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.oldTablet = new org.apache.accumulo.core.dataImpl.thrift.TKeyExtent(); + struct.oldTablet.read(iprot); + struct.setOldTabletIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 2: // NEW_TABLETS + if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - _elem1 = new org.apache.accumulo.core.dataImpl.thrift.TKeyExtent(); - _elem1.read(iprot); - struct.newTablets.add(_elem1); + org.apache.thrift.protocol.TList _list0 = iprot.readListBegin(); + struct.newTablets = new java.util.ArrayList(_list0.size); + @org.apache.thrift.annotation.Nullable org.apache.accumulo.core.dataImpl.thrift.TKeyExtent _elem1; + for (int _i2 = 0; _i2 < _list0.size; ++_i2) + { + _elem1 = new org.apache.accumulo.core.dataImpl.thrift.TKeyExtent(); + _elem1.read(iprot); + struct.newTablets.add(_elem1); + } + iprot.readListEnd(); } - iprot.readListEnd(); + struct.setNewTabletsIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } - struct.setNewTabletsIsSet(true); - } else { + break; + default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - default: - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); } - iprot.readFieldEnd(); - } - iprot.readStructEnd(); + iprot.readStructEnd(); - // check for required fields of primitive type, which can't be checked in the validate method - struct.validate(); + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } finally { + iprot.decrementRecursionDepth(); + } } @Override @@ -539,26 +544,31 @@ public void write(org.apache.thrift.protocol.TProtocol prot, TabletSplit struct) @Override public void read(org.apache.thrift.protocol.TProtocol prot, TabletSplit struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; - java.util.BitSet incoming = iprot.readBitSet(2); - if (incoming.get(0)) { - struct.oldTablet = new org.apache.accumulo.core.dataImpl.thrift.TKeyExtent(); - struct.oldTablet.read(iprot); - struct.setOldTabletIsSet(true); - } - if (incoming.get(1)) { - { - org.apache.thrift.protocol.TList _list5 = iprot.readListBegin(org.apache.thrift.protocol.TType.STRUCT); - struct.newTablets = new java.util.ArrayList(_list5.size); - @org.apache.thrift.annotation.Nullable org.apache.accumulo.core.dataImpl.thrift.TKeyExtent _elem6; - for (int _i7 = 0; _i7 < _list5.size; ++_i7) + prot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(2); + if (incoming.get(0)) { + struct.oldTablet = new org.apache.accumulo.core.dataImpl.thrift.TKeyExtent(); + struct.oldTablet.read(iprot); + struct.setOldTabletIsSet(true); + } + if (incoming.get(1)) { { - _elem6 = new org.apache.accumulo.core.dataImpl.thrift.TKeyExtent(); - _elem6.read(iprot); - struct.newTablets.add(_elem6); + org.apache.thrift.protocol.TList _list5 = iprot.readListBegin(org.apache.thrift.protocol.TType.STRUCT); + struct.newTablets = new java.util.ArrayList(_list5.size); + @org.apache.thrift.annotation.Nullable org.apache.accumulo.core.dataImpl.thrift.TKeyExtent _elem6; + for (int _i7 = 0; _i7 < _list5.size; ++_i7) + { + _elem6 = new org.apache.accumulo.core.dataImpl.thrift.TKeyExtent(); + _elem6.read(iprot); + struct.newTablets.add(_elem6); + } } + struct.setNewTabletsIsSet(true); } - struct.setNewTabletsIsSet(true); + } finally { + prot.decrementRecursionDepth(); } } } diff --git a/core/src/main/thrift-gen-java/org/apache/accumulo/core/manager/thrift/ThriftPropertyException.java b/core/src/main/thrift-gen-java/org/apache/accumulo/core/manager/thrift/ThriftPropertyException.java index d5764c0eb09..f3c71ad8729 100644 --- a/core/src/main/thrift-gen-java/org/apache/accumulo/core/manager/thrift/ThriftPropertyException.java +++ b/core/src/main/thrift-gen-java/org/apache/accumulo/core/manager/thrift/ThriftPropertyException.java @@ -17,7 +17,7 @@ * under the License. */ /* - * Autogenerated by Thrift Compiler (0.17.0) + * Autogenerated by Thrift Compiler (0.23.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -485,48 +485,53 @@ private static class ThriftPropertyExceptionStandardScheme extends org.apache.th @Override public void read(org.apache.thrift.protocol.TProtocol iprot, ThriftPropertyException struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TField schemeField; - iprot.readStructBegin(); - while (true) - { - schemeField = iprot.readFieldBegin(); - if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { - break; - } - switch (schemeField.id) { - case 1: // PROPERTY - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.property = iprot.readString(); - struct.setPropertyIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 2: // VALUE - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.value = iprot.readString(); - struct.setValueIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } + iprot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; - case 3: // DESCRIPTION - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.description = iprot.readString(); - struct.setDescriptionIsSet(true); - } else { + } + switch (schemeField.id) { + case 1: // PROPERTY + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.property = iprot.readString(); + struct.setPropertyIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 2: // VALUE + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.value = iprot.readString(); + struct.setValueIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 3: // DESCRIPTION + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.description = iprot.readString(); + struct.setDescriptionIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - default: - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); } - iprot.readFieldEnd(); - } - iprot.readStructEnd(); + iprot.readStructEnd(); - // check for required fields of primitive type, which can't be checked in the validate method - struct.validate(); + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } finally { + iprot.decrementRecursionDepth(); + } } @Override @@ -591,19 +596,24 @@ public void write(org.apache.thrift.protocol.TProtocol prot, ThriftPropertyExcep @Override public void read(org.apache.thrift.protocol.TProtocol prot, ThriftPropertyException struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; - java.util.BitSet incoming = iprot.readBitSet(3); - if (incoming.get(0)) { - struct.property = iprot.readString(); - struct.setPropertyIsSet(true); - } - if (incoming.get(1)) { - struct.value = iprot.readString(); - struct.setValueIsSet(true); - } - if (incoming.get(2)) { - struct.description = iprot.readString(); - struct.setDescriptionIsSet(true); + prot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(3); + if (incoming.get(0)) { + struct.property = iprot.readString(); + struct.setPropertyIsSet(true); + } + if (incoming.get(1)) { + struct.value = iprot.readString(); + struct.setValueIsSet(true); + } + if (incoming.get(2)) { + struct.description = iprot.readString(); + struct.setDescriptionIsSet(true); + } + } finally { + prot.decrementRecursionDepth(); } } } diff --git a/core/src/main/thrift-gen-java/org/apache/accumulo/core/process/thrift/MetricResponse.java b/core/src/main/thrift-gen-java/org/apache/accumulo/core/process/thrift/MetricResponse.java index 1434bd1d073..14da2bc8cd6 100644 --- a/core/src/main/thrift-gen-java/org/apache/accumulo/core/process/thrift/MetricResponse.java +++ b/core/src/main/thrift-gen-java/org/apache/accumulo/core/process/thrift/MetricResponse.java @@ -17,7 +17,7 @@ * under the License. */ /* - * Autogenerated by Thrift Compiler (0.17.0) + * Autogenerated by Thrift Compiler (0.23.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -680,74 +680,79 @@ private static class MetricResponseStandardScheme extends org.apache.thrift.sche @Override public void read(org.apache.thrift.protocol.TProtocol iprot, MetricResponse struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TField schemeField; - iprot.readStructBegin(); - while (true) - { - schemeField = iprot.readFieldBegin(); - if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { - break; - } - switch (schemeField.id) { - case 1: // SERVER_TYPE - if (schemeField.type == org.apache.thrift.protocol.TType.I32) { - struct.serverType = org.apache.accumulo.core.process.thrift.MetricSource.findByValue(iprot.readI32()); - struct.setServerTypeIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 2: // SERVER - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.server = iprot.readString(); - struct.setServerIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 3: // RESOURCE_GROUP - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.resourceGroup = iprot.readString(); - struct.setResourceGroupIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 4: // TIMESTAMP - if (schemeField.type == org.apache.thrift.protocol.TType.I64) { - struct.timestamp = iprot.readI64(); - struct.setTimestampIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } + iprot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; - case 5: // METRICS - if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { - { - org.apache.thrift.protocol.TList _list0 = iprot.readListBegin(); - struct.metrics = new java.util.ArrayList(_list0.size); - @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer _elem1; - for (int _i2 = 0; _i2 < _list0.size; ++_i2) + } + switch (schemeField.id) { + case 1: // SERVER_TYPE + if (schemeField.type == org.apache.thrift.protocol.TType.I32) { + struct.serverType = org.apache.accumulo.core.process.thrift.MetricSource.findByValue(iprot.readI32()); + struct.setServerTypeIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 2: // SERVER + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.server = iprot.readString(); + struct.setServerIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 3: // RESOURCE_GROUP + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.resourceGroup = iprot.readString(); + struct.setResourceGroupIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 4: // TIMESTAMP + if (schemeField.type == org.apache.thrift.protocol.TType.I64) { + struct.timestamp = iprot.readI64(); + struct.setTimestampIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 5: // METRICS + if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - _elem1 = iprot.readBinary(); - struct.metrics.add(_elem1); + org.apache.thrift.protocol.TList _list0 = iprot.readListBegin(); + struct.metrics = new java.util.ArrayList(_list0.size); + @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer _elem1; + for (int _i2 = 0; _i2 < _list0.size; ++_i2) + { + _elem1 = iprot.readBinary(); + struct.metrics.add(_elem1); + } + iprot.readListEnd(); } - iprot.readListEnd(); + struct.setMetricsIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } - struct.setMetricsIsSet(true); - } else { + break; + default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - default: - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); } - iprot.readFieldEnd(); - } - iprot.readStructEnd(); + iprot.readStructEnd(); - // check for required fields of primitive type, which can't be checked in the validate method - struct.validate(); + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } finally { + iprot.decrementRecursionDepth(); + } } @Override @@ -845,36 +850,41 @@ public void write(org.apache.thrift.protocol.TProtocol prot, MetricResponse stru @Override public void read(org.apache.thrift.protocol.TProtocol prot, MetricResponse struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; - java.util.BitSet incoming = iprot.readBitSet(5); - if (incoming.get(0)) { - struct.serverType = org.apache.accumulo.core.process.thrift.MetricSource.findByValue(iprot.readI32()); - struct.setServerTypeIsSet(true); - } - if (incoming.get(1)) { - struct.server = iprot.readString(); - struct.setServerIsSet(true); - } - if (incoming.get(2)) { - struct.resourceGroup = iprot.readString(); - struct.setResourceGroupIsSet(true); - } - if (incoming.get(3)) { - struct.timestamp = iprot.readI64(); - struct.setTimestampIsSet(true); - } - if (incoming.get(4)) { - { - org.apache.thrift.protocol.TList _list5 = iprot.readListBegin(org.apache.thrift.protocol.TType.STRING); - struct.metrics = new java.util.ArrayList(_list5.size); - @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer _elem6; - for (int _i7 = 0; _i7 < _list5.size; ++_i7) + prot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(5); + if (incoming.get(0)) { + struct.serverType = org.apache.accumulo.core.process.thrift.MetricSource.findByValue(iprot.readI32()); + struct.setServerTypeIsSet(true); + } + if (incoming.get(1)) { + struct.server = iprot.readString(); + struct.setServerIsSet(true); + } + if (incoming.get(2)) { + struct.resourceGroup = iprot.readString(); + struct.setResourceGroupIsSet(true); + } + if (incoming.get(3)) { + struct.timestamp = iprot.readI64(); + struct.setTimestampIsSet(true); + } + if (incoming.get(4)) { { - _elem6 = iprot.readBinary(); - struct.metrics.add(_elem6); + org.apache.thrift.protocol.TList _list5 = iprot.readListBegin(org.apache.thrift.protocol.TType.STRING); + struct.metrics = new java.util.ArrayList(_list5.size); + @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer _elem6; + for (int _i7 = 0; _i7 < _list5.size; ++_i7) + { + _elem6 = iprot.readBinary(); + struct.metrics.add(_elem6); + } } + struct.setMetricsIsSet(true); } - struct.setMetricsIsSet(true); + } finally { + prot.decrementRecursionDepth(); } } } diff --git a/core/src/main/thrift-gen-java/org/apache/accumulo/core/process/thrift/MetricSource.java b/core/src/main/thrift-gen-java/org/apache/accumulo/core/process/thrift/MetricSource.java index 652e5290ca8..80e48abf46a 100644 --- a/core/src/main/thrift-gen-java/org/apache/accumulo/core/process/thrift/MetricSource.java +++ b/core/src/main/thrift-gen-java/org/apache/accumulo/core/process/thrift/MetricSource.java @@ -17,7 +17,7 @@ * under the License. */ /* - * Autogenerated by Thrift Compiler (0.17.0) + * Autogenerated by Thrift Compiler (0.23.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated diff --git a/core/src/main/thrift-gen-java/org/apache/accumulo/core/process/thrift/ServerProcessService.java b/core/src/main/thrift-gen-java/org/apache/accumulo/core/process/thrift/ServerProcessService.java index 7f2bfb0f6ab..22c23d7d9ef 100644 --- a/core/src/main/thrift-gen-java/org/apache/accumulo/core/process/thrift/ServerProcessService.java +++ b/core/src/main/thrift-gen-java/org/apache/accumulo/core/process/thrift/ServerProcessService.java @@ -17,7 +17,7 @@ * under the License. */ /* - * Autogenerated by Thrift Compiler (0.17.0) + * Autogenerated by Thrift Compiler (0.23.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -203,20 +203,20 @@ public Void getResult() throws org.apache.thrift.TException { public static class Processor extends org.apache.thrift.TBaseProcessor implements org.apache.thrift.TProcessor { private static final org.slf4j.Logger _LOGGER = org.slf4j.LoggerFactory.getLogger(Processor.class.getName()); public Processor(I iface) { - super(iface, getProcessMap(new java.util.HashMap>())); + super(iface, getProcessMap(new java.util.HashMap>())); } - protected Processor(I iface, java.util.Map> processMap) { + protected Processor(I iface, java.util.Map> processMap) { super(iface, getProcessMap(processMap)); } - private static java.util.Map> getProcessMap(java.util.Map> processMap) { + private static java.util.Map> getProcessMap(java.util.Map> processMap) { processMap.put("getMetrics", new getMetrics()); processMap.put("gracefulShutdown", new gracefulShutdown()); return processMap; } - public static class getMetrics extends org.apache.thrift.ProcessFunction { + public static class getMetrics extends org.apache.thrift.ProcessFunction { public getMetrics() { super("getMetrics"); } @@ -227,7 +227,7 @@ public getMetrics_args getEmptyArgsInstance() { } @Override - protected boolean isOneway() { + public boolean isOneway() { return false; } @@ -236,9 +236,14 @@ protected boolean rethrowUnhandledExceptions() { return false; } + @Override + public getMetrics_result getEmptyResultInstance() { + return new getMetrics_result(); + } + @Override public getMetrics_result getResult(I iface, getMetrics_args args) throws org.apache.thrift.TException { - getMetrics_result result = new getMetrics_result(); + getMetrics_result result = getEmptyResultInstance(); try { result.success = iface.getMetrics(args.tinfo, args.credentials); } catch (org.apache.accumulo.core.clientImpl.thrift.ThriftSecurityException sec) { @@ -248,7 +253,7 @@ public getMetrics_result getResult(I iface, getMetrics_args args) throws org.apa } } - public static class gracefulShutdown extends org.apache.thrift.ProcessFunction { + public static class gracefulShutdown extends org.apache.thrift.ProcessFunction { public gracefulShutdown() { super("gracefulShutdown"); } @@ -259,7 +264,7 @@ public gracefulShutdown_args getEmptyArgsInstance() { } @Override - protected boolean isOneway() { + public boolean isOneway() { return true; } @@ -268,6 +273,11 @@ protected boolean rethrowUnhandledExceptions() { return false; } + @Override + public org.apache.thrift.TBase getEmptyResultInstance() { + return null; + } + @Override public org.apache.thrift.TBase getResult(I iface, gracefulShutdown_args args) throws org.apache.thrift.TException { iface.gracefulShutdown(args.credentials); @@ -280,24 +290,29 @@ public org.apache.thrift.TBase getResult(I iface, gracefulShutdown_args args) th public static class AsyncProcessor extends org.apache.thrift.TBaseAsyncProcessor { private static final org.slf4j.Logger _LOGGER = org.slf4j.LoggerFactory.getLogger(AsyncProcessor.class.getName()); public AsyncProcessor(I iface) { - super(iface, getProcessMap(new java.util.HashMap>())); + super(iface, getProcessMap(new java.util.HashMap>())); } - protected AsyncProcessor(I iface, java.util.Map> processMap) { + protected AsyncProcessor(I iface, java.util.Map> processMap) { super(iface, getProcessMap(processMap)); } - private static java.util.Map> getProcessMap(java.util.Map> processMap) { + private static java.util.Map> getProcessMap(java.util.Map> processMap) { processMap.put("getMetrics", new getMetrics()); processMap.put("gracefulShutdown", new gracefulShutdown()); return processMap; } - public static class getMetrics extends org.apache.thrift.AsyncProcessFunction { + public static class getMetrics extends org.apache.thrift.AsyncProcessFunction { public getMetrics() { super("getMetrics"); } + @Override + public getMetrics_result getEmptyResultInstance() { + return new getMetrics_result(); + } + @Override public getMetrics_args getEmptyArgsInstance() { return new getMetrics_args(); @@ -354,7 +369,7 @@ public void onError(java.lang.Exception e) { } @Override - protected boolean isOneway() { + public boolean isOneway() { return false; } @@ -364,11 +379,16 @@ public void start(I iface, getMetrics_args args, org.apache.thrift.async.AsyncMe } } - public static class gracefulShutdown extends org.apache.thrift.AsyncProcessFunction { + public static class gracefulShutdown extends org.apache.thrift.AsyncProcessFunction { public gracefulShutdown() { super("gracefulShutdown"); } + @Override + public org.apache.thrift.TBase getEmptyResultInstance() { + return null; + } + @Override public gracefulShutdown_args getEmptyArgsInstance() { return new gracefulShutdown_args(); @@ -394,7 +414,7 @@ public void onError(java.lang.Exception e) { } @Override - protected boolean isOneway() { + public boolean isOneway() { return true; } @@ -791,42 +811,47 @@ private static class getMetrics_argsStandardScheme extends org.apache.thrift.sch @Override public void read(org.apache.thrift.protocol.TProtocol iprot, getMetrics_args struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TField schemeField; - iprot.readStructBegin(); - while (true) - { - schemeField = iprot.readFieldBegin(); - if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { - break; - } - switch (schemeField.id) { - case 1: // TINFO - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.tinfo = new org.apache.accumulo.core.clientImpl.thrift.TInfo(); - struct.tinfo.read(iprot); - struct.setTinfoIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } + iprot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; - case 2: // CREDENTIALS - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); - struct.credentials.read(iprot); - struct.setCredentialsIsSet(true); - } else { + } + switch (schemeField.id) { + case 1: // TINFO + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.tinfo = new org.apache.accumulo.core.clientImpl.thrift.TInfo(); + struct.tinfo.read(iprot); + struct.setTinfoIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 2: // CREDENTIALS + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); + struct.credentials.read(iprot); + struct.setCredentialsIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - default: - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); } - iprot.readFieldEnd(); - } - iprot.readStructEnd(); + iprot.readStructEnd(); - // check for required fields of primitive type, which can't be checked in the validate method - struct.validate(); + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } finally { + iprot.decrementRecursionDepth(); + } } @Override @@ -880,17 +905,22 @@ public void write(org.apache.thrift.protocol.TProtocol prot, getMetrics_args str @Override public void read(org.apache.thrift.protocol.TProtocol prot, getMetrics_args struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; - java.util.BitSet incoming = iprot.readBitSet(2); - if (incoming.get(0)) { - struct.tinfo = new org.apache.accumulo.core.clientImpl.thrift.TInfo(); - struct.tinfo.read(iprot); - struct.setTinfoIsSet(true); - } - if (incoming.get(1)) { - struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); - struct.credentials.read(iprot); - struct.setCredentialsIsSet(true); + prot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(2); + if (incoming.get(0)) { + struct.tinfo = new org.apache.accumulo.core.clientImpl.thrift.TInfo(); + struct.tinfo.read(iprot); + struct.setTinfoIsSet(true); + } + if (incoming.get(1)) { + struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); + struct.credentials.read(iprot); + struct.setCredentialsIsSet(true); + } + } finally { + prot.decrementRecursionDepth(); } } } @@ -1281,42 +1311,47 @@ private static class getMetrics_resultStandardScheme extends org.apache.thrift.s @Override public void read(org.apache.thrift.protocol.TProtocol iprot, getMetrics_result struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TField schemeField; - iprot.readStructBegin(); - while (true) - { - schemeField = iprot.readFieldBegin(); - if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { - break; - } - switch (schemeField.id) { - case 0: // SUCCESS - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.success = new MetricResponse(); - struct.success.read(iprot); - struct.setSuccessIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } + iprot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; - case 1: // SEC - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.sec = new org.apache.accumulo.core.clientImpl.thrift.ThriftSecurityException(); - struct.sec.read(iprot); - struct.setSecIsSet(true); - } else { + } + switch (schemeField.id) { + case 0: // SUCCESS + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.success = new MetricResponse(); + struct.success.read(iprot); + struct.setSuccessIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 1: // SEC + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.sec = new org.apache.accumulo.core.clientImpl.thrift.ThriftSecurityException(); + struct.sec.read(iprot); + struct.setSecIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - default: - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); } - iprot.readFieldEnd(); - } - iprot.readStructEnd(); + iprot.readStructEnd(); - // check for required fields of primitive type, which can't be checked in the validate method - struct.validate(); + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } finally { + iprot.decrementRecursionDepth(); + } } @Override @@ -1370,17 +1405,22 @@ public void write(org.apache.thrift.protocol.TProtocol prot, getMetrics_result s @Override public void read(org.apache.thrift.protocol.TProtocol prot, getMetrics_result struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; - java.util.BitSet incoming = iprot.readBitSet(2); - if (incoming.get(0)) { - struct.success = new MetricResponse(); - struct.success.read(iprot); - struct.setSuccessIsSet(true); - } - if (incoming.get(1)) { - struct.sec = new org.apache.accumulo.core.clientImpl.thrift.ThriftSecurityException(); - struct.sec.read(iprot); - struct.setSecIsSet(true); + prot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(2); + if (incoming.get(0)) { + struct.success = new MetricResponse(); + struct.success.read(iprot); + struct.setSuccessIsSet(true); + } + if (incoming.get(1)) { + struct.sec = new org.apache.accumulo.core.clientImpl.thrift.ThriftSecurityException(); + struct.sec.read(iprot); + struct.setSecIsSet(true); + } + } finally { + prot.decrementRecursionDepth(); } } } @@ -1690,33 +1730,38 @@ private static class gracefulShutdown_argsStandardScheme extends org.apache.thri @Override public void read(org.apache.thrift.protocol.TProtocol iprot, gracefulShutdown_args struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TField schemeField; - iprot.readStructBegin(); - while (true) - { - schemeField = iprot.readFieldBegin(); - if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { - break; - } - switch (schemeField.id) { - case 1: // CREDENTIALS - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); - struct.credentials.read(iprot); - struct.setCredentialsIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } + iprot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; - default: - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + switch (schemeField.id) { + case 1: // CREDENTIALS + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); + struct.credentials.read(iprot); + struct.setCredentialsIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + default: + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); } - iprot.readFieldEnd(); - } - iprot.readStructEnd(); + iprot.readStructEnd(); - // check for required fields of primitive type, which can't be checked in the validate method - struct.validate(); + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } finally { + iprot.decrementRecursionDepth(); + } } @Override @@ -1759,12 +1804,17 @@ public void write(org.apache.thrift.protocol.TProtocol prot, gracefulShutdown_ar @Override public void read(org.apache.thrift.protocol.TProtocol prot, gracefulShutdown_args struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; - java.util.BitSet incoming = iprot.readBitSet(1); - if (incoming.get(0)) { - struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); - struct.credentials.read(iprot); - struct.setCredentialsIsSet(true); + prot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(1); + if (incoming.get(0)) { + struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); + struct.credentials.read(iprot); + struct.setCredentialsIsSet(true); + } + } finally { + prot.decrementRecursionDepth(); } } } diff --git a/core/src/main/thrift-gen-java/org/apache/accumulo/core/securityImpl/thrift/TAuthenticationKey.java b/core/src/main/thrift-gen-java/org/apache/accumulo/core/securityImpl/thrift/TAuthenticationKey.java index 47afc0b40c4..e4b8a0f828f 100644 --- a/core/src/main/thrift-gen-java/org/apache/accumulo/core/securityImpl/thrift/TAuthenticationKey.java +++ b/core/src/main/thrift-gen-java/org/apache/accumulo/core/securityImpl/thrift/TAuthenticationKey.java @@ -17,7 +17,7 @@ * under the License. */ /* - * Autogenerated by Thrift Compiler (0.17.0) + * Autogenerated by Thrift Compiler (0.23.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -117,7 +117,7 @@ public java.lang.String getFieldName() { private static final int __EXPIRATIONDATE_ISSET_ID = 1; private static final int __CREATIONDATE_ISSET_ID = 2; private byte __isset_bitfield = 0; - private static final _Fields optionals[] = {_Fields.KEY_ID,_Fields.EXPIRATION_DATE,_Fields.CREATION_DATE}; + private static final _Fields[] optionals = {_Fields.KEY_ID,_Fields.EXPIRATION_DATE,_Fields.CREATION_DATE}; public static final java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); @@ -567,56 +567,61 @@ private static class TAuthenticationKeyStandardScheme extends org.apache.thrift. @Override public void read(org.apache.thrift.protocol.TProtocol iprot, TAuthenticationKey struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TField schemeField; - iprot.readStructBegin(); - while (true) - { - schemeField = iprot.readFieldBegin(); - if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { - break; - } - switch (schemeField.id) { - case 1: // SECRET - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.secret = iprot.readBinary(); - struct.setSecretIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } + iprot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; - case 2: // KEY_ID - if (schemeField.type == org.apache.thrift.protocol.TType.I32) { - struct.keyId = iprot.readI32(); - struct.setKeyIdIsSet(true); - } else { + } + switch (schemeField.id) { + case 1: // SECRET + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.secret = iprot.readBinary(); + struct.setSecretIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 2: // KEY_ID + if (schemeField.type == org.apache.thrift.protocol.TType.I32) { + struct.keyId = iprot.readI32(); + struct.setKeyIdIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 3: // EXPIRATION_DATE + if (schemeField.type == org.apache.thrift.protocol.TType.I64) { + struct.expirationDate = iprot.readI64(); + struct.setExpirationDateIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 4: // CREATION_DATE + if (schemeField.type == org.apache.thrift.protocol.TType.I64) { + struct.creationDate = iprot.readI64(); + struct.setCreationDateIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 3: // EXPIRATION_DATE - if (schemeField.type == org.apache.thrift.protocol.TType.I64) { - struct.expirationDate = iprot.readI64(); - struct.setExpirationDateIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 4: // CREATION_DATE - if (schemeField.type == org.apache.thrift.protocol.TType.I64) { - struct.creationDate = iprot.readI64(); - struct.setCreationDateIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - default: - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); } - iprot.readFieldEnd(); - } - iprot.readStructEnd(); + iprot.readStructEnd(); - // check for required fields of primitive type, which can't be checked in the validate method - struct.validate(); + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } finally { + iprot.decrementRecursionDepth(); + } } @Override @@ -692,23 +697,28 @@ public void write(org.apache.thrift.protocol.TProtocol prot, TAuthenticationKey @Override public void read(org.apache.thrift.protocol.TProtocol prot, TAuthenticationKey struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; - java.util.BitSet incoming = iprot.readBitSet(4); - if (incoming.get(0)) { - struct.secret = iprot.readBinary(); - struct.setSecretIsSet(true); - } - if (incoming.get(1)) { - struct.keyId = iprot.readI32(); - struct.setKeyIdIsSet(true); - } - if (incoming.get(2)) { - struct.expirationDate = iprot.readI64(); - struct.setExpirationDateIsSet(true); - } - if (incoming.get(3)) { - struct.creationDate = iprot.readI64(); - struct.setCreationDateIsSet(true); + prot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(4); + if (incoming.get(0)) { + struct.secret = iprot.readBinary(); + struct.setSecretIsSet(true); + } + if (incoming.get(1)) { + struct.keyId = iprot.readI32(); + struct.setKeyIdIsSet(true); + } + if (incoming.get(2)) { + struct.expirationDate = iprot.readI64(); + struct.setExpirationDateIsSet(true); + } + if (incoming.get(3)) { + struct.creationDate = iprot.readI64(); + struct.setCreationDateIsSet(true); + } + } finally { + prot.decrementRecursionDepth(); } } } diff --git a/core/src/main/thrift-gen-java/org/apache/accumulo/core/securityImpl/thrift/TAuthenticationTokenIdentifier.java b/core/src/main/thrift-gen-java/org/apache/accumulo/core/securityImpl/thrift/TAuthenticationTokenIdentifier.java index ec3c3533abc..46009f3c7f5 100644 --- a/core/src/main/thrift-gen-java/org/apache/accumulo/core/securityImpl/thrift/TAuthenticationTokenIdentifier.java +++ b/core/src/main/thrift-gen-java/org/apache/accumulo/core/securityImpl/thrift/TAuthenticationTokenIdentifier.java @@ -17,7 +17,7 @@ * under the License. */ /* - * Autogenerated by Thrift Compiler (0.17.0) + * Autogenerated by Thrift Compiler (0.23.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -122,7 +122,7 @@ public java.lang.String getFieldName() { private static final int __ISSUEDATE_ISSET_ID = 1; private static final int __EXPIRATIONDATE_ISSET_ID = 2; private byte __isset_bitfield = 0; - private static final _Fields optionals[] = {_Fields.KEY_ID,_Fields.ISSUE_DATE,_Fields.EXPIRATION_DATE,_Fields.INSTANCE_ID}; + private static final _Fields[] optionals = {_Fields.KEY_ID,_Fields.ISSUE_DATE,_Fields.EXPIRATION_DATE,_Fields.INSTANCE_ID}; public static final java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); @@ -636,64 +636,69 @@ private static class TAuthenticationTokenIdentifierStandardScheme extends org.ap @Override public void read(org.apache.thrift.protocol.TProtocol iprot, TAuthenticationTokenIdentifier struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TField schemeField; - iprot.readStructBegin(); - while (true) - { - schemeField = iprot.readFieldBegin(); - if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { - break; - } - switch (schemeField.id) { - case 1: // PRINCIPAL - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.principal = iprot.readString(); - struct.setPrincipalIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 2: // KEY_ID - if (schemeField.type == org.apache.thrift.protocol.TType.I32) { - struct.keyId = iprot.readI32(); - struct.setKeyIdIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 3: // ISSUE_DATE - if (schemeField.type == org.apache.thrift.protocol.TType.I64) { - struct.issueDate = iprot.readI64(); - struct.setIssueDateIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } + iprot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; - case 4: // EXPIRATION_DATE - if (schemeField.type == org.apache.thrift.protocol.TType.I64) { - struct.expirationDate = iprot.readI64(); - struct.setExpirationDateIsSet(true); - } else { + } + switch (schemeField.id) { + case 1: // PRINCIPAL + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.principal = iprot.readString(); + struct.setPrincipalIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 2: // KEY_ID + if (schemeField.type == org.apache.thrift.protocol.TType.I32) { + struct.keyId = iprot.readI32(); + struct.setKeyIdIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 3: // ISSUE_DATE + if (schemeField.type == org.apache.thrift.protocol.TType.I64) { + struct.issueDate = iprot.readI64(); + struct.setIssueDateIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 4: // EXPIRATION_DATE + if (schemeField.type == org.apache.thrift.protocol.TType.I64) { + struct.expirationDate = iprot.readI64(); + struct.setExpirationDateIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 5: // INSTANCE_ID + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.instanceId = iprot.readString(); + struct.setInstanceIdIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 5: // INSTANCE_ID - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.instanceId = iprot.readString(); - struct.setInstanceIdIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - default: - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); } - iprot.readFieldEnd(); - } - iprot.readStructEnd(); + iprot.readStructEnd(); - // check for required fields of primitive type, which can't be checked in the validate method - struct.validate(); + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } finally { + iprot.decrementRecursionDepth(); + } } @Override @@ -782,27 +787,32 @@ public void write(org.apache.thrift.protocol.TProtocol prot, TAuthenticationToke @Override public void read(org.apache.thrift.protocol.TProtocol prot, TAuthenticationTokenIdentifier struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; - java.util.BitSet incoming = iprot.readBitSet(5); - if (incoming.get(0)) { - struct.principal = iprot.readString(); - struct.setPrincipalIsSet(true); - } - if (incoming.get(1)) { - struct.keyId = iprot.readI32(); - struct.setKeyIdIsSet(true); - } - if (incoming.get(2)) { - struct.issueDate = iprot.readI64(); - struct.setIssueDateIsSet(true); - } - if (incoming.get(3)) { - struct.expirationDate = iprot.readI64(); - struct.setExpirationDateIsSet(true); - } - if (incoming.get(4)) { - struct.instanceId = iprot.readString(); - struct.setInstanceIdIsSet(true); + prot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(5); + if (incoming.get(0)) { + struct.principal = iprot.readString(); + struct.setPrincipalIsSet(true); + } + if (incoming.get(1)) { + struct.keyId = iprot.readI32(); + struct.setKeyIdIsSet(true); + } + if (incoming.get(2)) { + struct.issueDate = iprot.readI64(); + struct.setIssueDateIsSet(true); + } + if (incoming.get(3)) { + struct.expirationDate = iprot.readI64(); + struct.setExpirationDateIsSet(true); + } + if (incoming.get(4)) { + struct.instanceId = iprot.readString(); + struct.setInstanceIdIsSet(true); + } + } finally { + prot.decrementRecursionDepth(); } } } diff --git a/core/src/main/thrift-gen-java/org/apache/accumulo/core/securityImpl/thrift/TCredentials.java b/core/src/main/thrift-gen-java/org/apache/accumulo/core/securityImpl/thrift/TCredentials.java index 8557c348e94..9a00f0b0f80 100644 --- a/core/src/main/thrift-gen-java/org/apache/accumulo/core/securityImpl/thrift/TCredentials.java +++ b/core/src/main/thrift-gen-java/org/apache/accumulo/core/securityImpl/thrift/TCredentials.java @@ -17,7 +17,7 @@ * under the License. */ /* - * Autogenerated by Thrift Compiler (0.17.0) + * Autogenerated by Thrift Compiler (0.23.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -580,56 +580,61 @@ private static class TCredentialsStandardScheme extends org.apache.thrift.scheme @Override public void read(org.apache.thrift.protocol.TProtocol iprot, TCredentials struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TField schemeField; - iprot.readStructBegin(); - while (true) - { - schemeField = iprot.readFieldBegin(); - if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { - break; - } - switch (schemeField.id) { - case 1: // PRINCIPAL - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.principal = iprot.readString(); - struct.setPrincipalIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } + iprot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; - case 2: // TOKEN_CLASS_NAME - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.tokenClassName = iprot.readString(); - struct.setTokenClassNameIsSet(true); - } else { + } + switch (schemeField.id) { + case 1: // PRINCIPAL + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.principal = iprot.readString(); + struct.setPrincipalIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 2: // TOKEN_CLASS_NAME + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.tokenClassName = iprot.readString(); + struct.setTokenClassNameIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 3: // TOKEN + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.token = iprot.readBinary(); + struct.setTokenIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 4: // INSTANCE_ID + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.instanceId = iprot.readString(); + struct.setInstanceIdIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 3: // TOKEN - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.token = iprot.readBinary(); - struct.setTokenIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 4: // INSTANCE_ID - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.instanceId = iprot.readString(); - struct.setInstanceIdIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - default: - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); } - iprot.readFieldEnd(); - } - iprot.readStructEnd(); + iprot.readStructEnd(); - // check for required fields of primitive type, which can't be checked in the validate method - struct.validate(); + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } finally { + iprot.decrementRecursionDepth(); + } } @Override @@ -705,23 +710,28 @@ public void write(org.apache.thrift.protocol.TProtocol prot, TCredentials struct @Override public void read(org.apache.thrift.protocol.TProtocol prot, TCredentials struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; - java.util.BitSet incoming = iprot.readBitSet(4); - if (incoming.get(0)) { - struct.principal = iprot.readString(); - struct.setPrincipalIsSet(true); - } - if (incoming.get(1)) { - struct.tokenClassName = iprot.readString(); - struct.setTokenClassNameIsSet(true); - } - if (incoming.get(2)) { - struct.token = iprot.readBinary(); - struct.setTokenIsSet(true); - } - if (incoming.get(3)) { - struct.instanceId = iprot.readString(); - struct.setInstanceIdIsSet(true); + prot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(4); + if (incoming.get(0)) { + struct.principal = iprot.readString(); + struct.setPrincipalIsSet(true); + } + if (incoming.get(1)) { + struct.tokenClassName = iprot.readString(); + struct.setTokenClassNameIsSet(true); + } + if (incoming.get(2)) { + struct.token = iprot.readBinary(); + struct.setTokenIsSet(true); + } + if (incoming.get(3)) { + struct.instanceId = iprot.readString(); + struct.setInstanceIdIsSet(true); + } + } finally { + prot.decrementRecursionDepth(); } } } diff --git a/core/src/main/thrift-gen-java/org/apache/accumulo/core/securityImpl/thrift/TDelegationToken.java b/core/src/main/thrift-gen-java/org/apache/accumulo/core/securityImpl/thrift/TDelegationToken.java index 76f362ac57d..cb3814421b8 100644 --- a/core/src/main/thrift-gen-java/org/apache/accumulo/core/securityImpl/thrift/TDelegationToken.java +++ b/core/src/main/thrift-gen-java/org/apache/accumulo/core/securityImpl/thrift/TDelegationToken.java @@ -17,7 +17,7 @@ * under the License. */ /* - * Autogenerated by Thrift Compiler (0.17.0) + * Autogenerated by Thrift Compiler (0.23.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -419,41 +419,46 @@ private static class TDelegationTokenStandardScheme extends org.apache.thrift.sc @Override public void read(org.apache.thrift.protocol.TProtocol iprot, TDelegationToken struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TField schemeField; - iprot.readStructBegin(); - while (true) - { - schemeField = iprot.readFieldBegin(); - if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { - break; - } - switch (schemeField.id) { - case 1: // PASSWORD - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.password = iprot.readBinary(); - struct.setPasswordIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } + iprot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; - case 2: // IDENTIFIER - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.identifier = new TAuthenticationTokenIdentifier(); - struct.identifier.read(iprot); - struct.setIdentifierIsSet(true); - } else { + } + switch (schemeField.id) { + case 1: // PASSWORD + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.password = iprot.readBinary(); + struct.setPasswordIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 2: // IDENTIFIER + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.identifier = new TAuthenticationTokenIdentifier(); + struct.identifier.read(iprot); + struct.setIdentifierIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - default: - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); } - iprot.readFieldEnd(); - } - iprot.readStructEnd(); + iprot.readStructEnd(); - // check for required fields of primitive type, which can't be checked in the validate method - struct.validate(); + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } finally { + iprot.decrementRecursionDepth(); + } } @Override @@ -507,16 +512,21 @@ public void write(org.apache.thrift.protocol.TProtocol prot, TDelegationToken st @Override public void read(org.apache.thrift.protocol.TProtocol prot, TDelegationToken struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; - java.util.BitSet incoming = iprot.readBitSet(2); - if (incoming.get(0)) { - struct.password = iprot.readBinary(); - struct.setPasswordIsSet(true); - } - if (incoming.get(1)) { - struct.identifier = new TAuthenticationTokenIdentifier(); - struct.identifier.read(iprot); - struct.setIdentifierIsSet(true); + prot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(2); + if (incoming.get(0)) { + struct.password = iprot.readBinary(); + struct.setPasswordIsSet(true); + } + if (incoming.get(1)) { + struct.identifier = new TAuthenticationTokenIdentifier(); + struct.identifier.read(iprot); + struct.setIdentifierIsSet(true); + } + } finally { + prot.decrementRecursionDepth(); } } } diff --git a/core/src/main/thrift-gen-java/org/apache/accumulo/core/securityImpl/thrift/TDelegationTokenConfig.java b/core/src/main/thrift-gen-java/org/apache/accumulo/core/securityImpl/thrift/TDelegationTokenConfig.java index 6dec8348a78..8066762c674 100644 --- a/core/src/main/thrift-gen-java/org/apache/accumulo/core/securityImpl/thrift/TDelegationTokenConfig.java +++ b/core/src/main/thrift-gen-java/org/apache/accumulo/core/securityImpl/thrift/TDelegationTokenConfig.java @@ -17,7 +17,7 @@ * under the License. */ /* - * Autogenerated by Thrift Compiler (0.17.0) + * Autogenerated by Thrift Compiler (0.23.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -100,7 +100,7 @@ public java.lang.String getFieldName() { // isset id assignments private static final int __LIFETIME_ISSET_ID = 0; private byte __isset_bitfield = 0; - private static final _Fields optionals[] = {_Fields.LIFETIME}; + private static final _Fields[] optionals = {_Fields.LIFETIME}; public static final java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); @@ -315,32 +315,37 @@ private static class TDelegationTokenConfigStandardScheme extends org.apache.thr @Override public void read(org.apache.thrift.protocol.TProtocol iprot, TDelegationTokenConfig struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TField schemeField; - iprot.readStructBegin(); - while (true) - { - schemeField = iprot.readFieldBegin(); - if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { - break; - } - switch (schemeField.id) { - case 1: // LIFETIME - if (schemeField.type == org.apache.thrift.protocol.TType.I64) { - struct.lifetime = iprot.readI64(); - struct.setLifetimeIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } + iprot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; - default: - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + switch (schemeField.id) { + case 1: // LIFETIME + if (schemeField.type == org.apache.thrift.protocol.TType.I64) { + struct.lifetime = iprot.readI64(); + struct.setLifetimeIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + default: + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); } - iprot.readFieldEnd(); - } - iprot.readStructEnd(); + iprot.readStructEnd(); - // check for required fields of primitive type, which can't be checked in the validate method - struct.validate(); + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } finally { + iprot.decrementRecursionDepth(); + } } @Override @@ -383,11 +388,16 @@ public void write(org.apache.thrift.protocol.TProtocol prot, TDelegationTokenCon @Override public void read(org.apache.thrift.protocol.TProtocol prot, TDelegationTokenConfig struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; - java.util.BitSet incoming = iprot.readBitSet(1); - if (incoming.get(0)) { - struct.lifetime = iprot.readI64(); - struct.setLifetimeIsSet(true); + prot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(1); + if (incoming.get(0)) { + struct.lifetime = iprot.readI64(); + struct.setLifetimeIsSet(true); + } + } finally { + prot.decrementRecursionDepth(); } } } diff --git a/core/src/main/thrift-gen-java/org/apache/accumulo/core/tablet/thrift/TUnloadTabletGoal.java b/core/src/main/thrift-gen-java/org/apache/accumulo/core/tablet/thrift/TUnloadTabletGoal.java index 71676fccefa..d3ef2bbd57d 100644 --- a/core/src/main/thrift-gen-java/org/apache/accumulo/core/tablet/thrift/TUnloadTabletGoal.java +++ b/core/src/main/thrift-gen-java/org/apache/accumulo/core/tablet/thrift/TUnloadTabletGoal.java @@ -17,7 +17,7 @@ * under the License. */ /* - * Autogenerated by Thrift Compiler (0.17.0) + * Autogenerated by Thrift Compiler (0.23.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated diff --git a/core/src/main/thrift-gen-java/org/apache/accumulo/core/tablet/thrift/TabletManagementClientService.java b/core/src/main/thrift-gen-java/org/apache/accumulo/core/tablet/thrift/TabletManagementClientService.java index 61ed41fad48..9e10013cb6a 100644 --- a/core/src/main/thrift-gen-java/org/apache/accumulo/core/tablet/thrift/TabletManagementClientService.java +++ b/core/src/main/thrift-gen-java/org/apache/accumulo/core/tablet/thrift/TabletManagementClientService.java @@ -17,7 +17,7 @@ * under the License. */ /* - * Autogenerated by Thrift Compiler (0.17.0) + * Autogenerated by Thrift Compiler (0.23.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -281,21 +281,21 @@ public Void getResult() throws org.apache.thrift.TException { public static class Processor extends org.apache.thrift.TBaseProcessor implements org.apache.thrift.TProcessor { private static final org.slf4j.Logger _LOGGER = org.slf4j.LoggerFactory.getLogger(Processor.class.getName()); public Processor(I iface) { - super(iface, getProcessMap(new java.util.HashMap>())); + super(iface, getProcessMap(new java.util.HashMap>())); } - protected Processor(I iface, java.util.Map> processMap) { + protected Processor(I iface, java.util.Map> processMap) { super(iface, getProcessMap(processMap)); } - private static java.util.Map> getProcessMap(java.util.Map> processMap) { + private static java.util.Map> getProcessMap(java.util.Map> processMap) { processMap.put("loadTablet", new loadTablet()); processMap.put("unloadTablet", new unloadTablet()); processMap.put("flushTablet", new flushTablet()); return processMap; } - public static class loadTablet extends org.apache.thrift.ProcessFunction { + public static class loadTablet extends org.apache.thrift.ProcessFunction { public loadTablet() { super("loadTablet"); } @@ -306,7 +306,7 @@ public loadTablet_args getEmptyArgsInstance() { } @Override - protected boolean isOneway() { + public boolean isOneway() { return true; } @@ -315,6 +315,11 @@ protected boolean rethrowUnhandledExceptions() { return false; } + @Override + public org.apache.thrift.TBase getEmptyResultInstance() { + return null; + } + @Override public org.apache.thrift.TBase getResult(I iface, loadTablet_args args) throws org.apache.thrift.TException { iface.loadTablet(args.tinfo, args.credentials, args.lock, args.extent); @@ -322,7 +327,7 @@ public org.apache.thrift.TBase getResult(I iface, loadTablet_args args) throws o } } - public static class unloadTablet extends org.apache.thrift.ProcessFunction { + public static class unloadTablet extends org.apache.thrift.ProcessFunction { public unloadTablet() { super("unloadTablet"); } @@ -333,7 +338,7 @@ public unloadTablet_args getEmptyArgsInstance() { } @Override - protected boolean isOneway() { + public boolean isOneway() { return true; } @@ -342,6 +347,11 @@ protected boolean rethrowUnhandledExceptions() { return false; } + @Override + public org.apache.thrift.TBase getEmptyResultInstance() { + return null; + } + @Override public org.apache.thrift.TBase getResult(I iface, unloadTablet_args args) throws org.apache.thrift.TException { iface.unloadTablet(args.tinfo, args.credentials, args.lock, args.extent, args.goal, args.requestTime); @@ -349,7 +359,7 @@ public org.apache.thrift.TBase getResult(I iface, unloadTablet_args args) throws } } - public static class flushTablet extends org.apache.thrift.ProcessFunction { + public static class flushTablet extends org.apache.thrift.ProcessFunction { public flushTablet() { super("flushTablet"); } @@ -360,7 +370,7 @@ public flushTablet_args getEmptyArgsInstance() { } @Override - protected boolean isOneway() { + public boolean isOneway() { return true; } @@ -369,6 +379,11 @@ protected boolean rethrowUnhandledExceptions() { return false; } + @Override + public org.apache.thrift.TBase getEmptyResultInstance() { + return null; + } + @Override public org.apache.thrift.TBase getResult(I iface, flushTablet_args args) throws org.apache.thrift.TException { iface.flushTablet(args.tinfo, args.credentials, args.lock, args.extent); @@ -381,25 +396,30 @@ public org.apache.thrift.TBase getResult(I iface, flushTablet_args args) throws public static class AsyncProcessor extends org.apache.thrift.TBaseAsyncProcessor { private static final org.slf4j.Logger _LOGGER = org.slf4j.LoggerFactory.getLogger(AsyncProcessor.class.getName()); public AsyncProcessor(I iface) { - super(iface, getProcessMap(new java.util.HashMap>())); + super(iface, getProcessMap(new java.util.HashMap>())); } - protected AsyncProcessor(I iface, java.util.Map> processMap) { + protected AsyncProcessor(I iface, java.util.Map> processMap) { super(iface, getProcessMap(processMap)); } - private static java.util.Map> getProcessMap(java.util.Map> processMap) { + private static java.util.Map> getProcessMap(java.util.Map> processMap) { processMap.put("loadTablet", new loadTablet()); processMap.put("unloadTablet", new unloadTablet()); processMap.put("flushTablet", new flushTablet()); return processMap; } - public static class loadTablet extends org.apache.thrift.AsyncProcessFunction { + public static class loadTablet extends org.apache.thrift.AsyncProcessFunction { public loadTablet() { super("loadTablet"); } + @Override + public org.apache.thrift.TBase getEmptyResultInstance() { + return null; + } + @Override public loadTablet_args getEmptyArgsInstance() { return new loadTablet_args(); @@ -425,7 +445,7 @@ public void onError(java.lang.Exception e) { } @Override - protected boolean isOneway() { + public boolean isOneway() { return true; } @@ -435,11 +455,16 @@ public void start(I iface, loadTablet_args args, org.apache.thrift.async.AsyncMe } } - public static class unloadTablet extends org.apache.thrift.AsyncProcessFunction { + public static class unloadTablet extends org.apache.thrift.AsyncProcessFunction { public unloadTablet() { super("unloadTablet"); } + @Override + public org.apache.thrift.TBase getEmptyResultInstance() { + return null; + } + @Override public unloadTablet_args getEmptyArgsInstance() { return new unloadTablet_args(); @@ -465,7 +490,7 @@ public void onError(java.lang.Exception e) { } @Override - protected boolean isOneway() { + public boolean isOneway() { return true; } @@ -475,11 +500,16 @@ public void start(I iface, unloadTablet_args args, org.apache.thrift.async.Async } } - public static class flushTablet extends org.apache.thrift.AsyncProcessFunction { + public static class flushTablet extends org.apache.thrift.AsyncProcessFunction { public flushTablet() { super("flushTablet"); } + @Override + public org.apache.thrift.TBase getEmptyResultInstance() { + return null; + } + @Override public flushTablet_args getEmptyArgsInstance() { return new flushTablet_args(); @@ -505,7 +535,7 @@ public void onError(java.lang.Exception e) { } @Override - protected boolean isOneway() { + public boolean isOneway() { return true; } @@ -1069,59 +1099,64 @@ private static class loadTablet_argsStandardScheme extends org.apache.thrift.sch @Override public void read(org.apache.thrift.protocol.TProtocol iprot, loadTablet_args struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TField schemeField; - iprot.readStructBegin(); - while (true) - { - schemeField = iprot.readFieldBegin(); - if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { - break; - } - switch (schemeField.id) { - case 5: // TINFO - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.tinfo = new org.apache.accumulo.core.clientImpl.thrift.TInfo(); - struct.tinfo.read(iprot); - struct.setTinfoIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 1: // CREDENTIALS - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); - struct.credentials.read(iprot); - struct.setCredentialsIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } + iprot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; - case 4: // LOCK - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.lock = iprot.readString(); - struct.setLockIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 2: // EXTENT - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.extent = new org.apache.accumulo.core.dataImpl.thrift.TKeyExtent(); - struct.extent.read(iprot); - struct.setExtentIsSet(true); - } else { + } + switch (schemeField.id) { + case 5: // TINFO + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.tinfo = new org.apache.accumulo.core.clientImpl.thrift.TInfo(); + struct.tinfo.read(iprot); + struct.setTinfoIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 1: // CREDENTIALS + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); + struct.credentials.read(iprot); + struct.setCredentialsIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 4: // LOCK + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.lock = iprot.readString(); + struct.setLockIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 2: // EXTENT + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.extent = new org.apache.accumulo.core.dataImpl.thrift.TKeyExtent(); + struct.extent.read(iprot); + struct.setExtentIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - default: - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); } - iprot.readFieldEnd(); - } - iprot.readStructEnd(); + iprot.readStructEnd(); - // check for required fields of primitive type, which can't be checked in the validate method - struct.validate(); + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } finally { + iprot.decrementRecursionDepth(); + } } @Override @@ -1197,26 +1232,31 @@ public void write(org.apache.thrift.protocol.TProtocol prot, loadTablet_args str @Override public void read(org.apache.thrift.protocol.TProtocol prot, loadTablet_args struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; - java.util.BitSet incoming = iprot.readBitSet(4); - if (incoming.get(0)) { - struct.tinfo = new org.apache.accumulo.core.clientImpl.thrift.TInfo(); - struct.tinfo.read(iprot); - struct.setTinfoIsSet(true); - } - if (incoming.get(1)) { - struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); - struct.credentials.read(iprot); - struct.setCredentialsIsSet(true); - } - if (incoming.get(2)) { - struct.lock = iprot.readString(); - struct.setLockIsSet(true); - } - if (incoming.get(3)) { - struct.extent = new org.apache.accumulo.core.dataImpl.thrift.TKeyExtent(); - struct.extent.read(iprot); - struct.setExtentIsSet(true); + prot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(4); + if (incoming.get(0)) { + struct.tinfo = new org.apache.accumulo.core.clientImpl.thrift.TInfo(); + struct.tinfo.read(iprot); + struct.setTinfoIsSet(true); + } + if (incoming.get(1)) { + struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); + struct.credentials.read(iprot); + struct.setCredentialsIsSet(true); + } + if (incoming.get(2)) { + struct.lock = iprot.readString(); + struct.setLockIsSet(true); + } + if (incoming.get(3)) { + struct.extent = new org.apache.accumulo.core.dataImpl.thrift.TKeyExtent(); + struct.extent.read(iprot); + struct.setExtentIsSet(true); + } + } finally { + prot.decrementRecursionDepth(); } } } @@ -1955,75 +1995,80 @@ private static class unloadTablet_argsStandardScheme extends org.apache.thrift.s @Override public void read(org.apache.thrift.protocol.TProtocol iprot, unloadTablet_args struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TField schemeField; - iprot.readStructBegin(); - while (true) - { - schemeField = iprot.readFieldBegin(); - if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { - break; - } - switch (schemeField.id) { - case 5: // TINFO - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.tinfo = new org.apache.accumulo.core.clientImpl.thrift.TInfo(); - struct.tinfo.read(iprot); - struct.setTinfoIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 1: // CREDENTIALS - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); - struct.credentials.read(iprot); - struct.setCredentialsIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 4: // LOCK - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.lock = iprot.readString(); - struct.setLockIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } + iprot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; - case 2: // EXTENT - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.extent = new org.apache.accumulo.core.dataImpl.thrift.TKeyExtent(); - struct.extent.read(iprot); - struct.setExtentIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 6: // GOAL - if (schemeField.type == org.apache.thrift.protocol.TType.I32) { - struct.goal = org.apache.accumulo.core.tablet.thrift.TUnloadTabletGoal.findByValue(iprot.readI32()); - struct.setGoalIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 7: // REQUEST_TIME - if (schemeField.type == org.apache.thrift.protocol.TType.I64) { - struct.requestTime = iprot.readI64(); - struct.setRequestTimeIsSet(true); - } else { + } + switch (schemeField.id) { + case 5: // TINFO + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.tinfo = new org.apache.accumulo.core.clientImpl.thrift.TInfo(); + struct.tinfo.read(iprot); + struct.setTinfoIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 1: // CREDENTIALS + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); + struct.credentials.read(iprot); + struct.setCredentialsIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 4: // LOCK + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.lock = iprot.readString(); + struct.setLockIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 2: // EXTENT + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.extent = new org.apache.accumulo.core.dataImpl.thrift.TKeyExtent(); + struct.extent.read(iprot); + struct.setExtentIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 6: // GOAL + if (schemeField.type == org.apache.thrift.protocol.TType.I32) { + struct.goal = org.apache.accumulo.core.tablet.thrift.TUnloadTabletGoal.findByValue(iprot.readI32()); + struct.setGoalIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 7: // REQUEST_TIME + if (schemeField.type == org.apache.thrift.protocol.TType.I64) { + struct.requestTime = iprot.readI64(); + struct.setRequestTimeIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - default: - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); } - iprot.readFieldEnd(); - } - iprot.readStructEnd(); + iprot.readStructEnd(); - // check for required fields of primitive type, which can't be checked in the validate method - struct.validate(); + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } finally { + iprot.decrementRecursionDepth(); + } } @Override @@ -2119,34 +2164,39 @@ public void write(org.apache.thrift.protocol.TProtocol prot, unloadTablet_args s @Override public void read(org.apache.thrift.protocol.TProtocol prot, unloadTablet_args struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; - java.util.BitSet incoming = iprot.readBitSet(6); - if (incoming.get(0)) { - struct.tinfo = new org.apache.accumulo.core.clientImpl.thrift.TInfo(); - struct.tinfo.read(iprot); - struct.setTinfoIsSet(true); - } - if (incoming.get(1)) { - struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); - struct.credentials.read(iprot); - struct.setCredentialsIsSet(true); - } - if (incoming.get(2)) { - struct.lock = iprot.readString(); - struct.setLockIsSet(true); - } - if (incoming.get(3)) { - struct.extent = new org.apache.accumulo.core.dataImpl.thrift.TKeyExtent(); - struct.extent.read(iprot); - struct.setExtentIsSet(true); - } - if (incoming.get(4)) { - struct.goal = org.apache.accumulo.core.tablet.thrift.TUnloadTabletGoal.findByValue(iprot.readI32()); - struct.setGoalIsSet(true); - } - if (incoming.get(5)) { - struct.requestTime = iprot.readI64(); - struct.setRequestTimeIsSet(true); + prot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(6); + if (incoming.get(0)) { + struct.tinfo = new org.apache.accumulo.core.clientImpl.thrift.TInfo(); + struct.tinfo.read(iprot); + struct.setTinfoIsSet(true); + } + if (incoming.get(1)) { + struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); + struct.credentials.read(iprot); + struct.setCredentialsIsSet(true); + } + if (incoming.get(2)) { + struct.lock = iprot.readString(); + struct.setLockIsSet(true); + } + if (incoming.get(3)) { + struct.extent = new org.apache.accumulo.core.dataImpl.thrift.TKeyExtent(); + struct.extent.read(iprot); + struct.setExtentIsSet(true); + } + if (incoming.get(4)) { + struct.goal = org.apache.accumulo.core.tablet.thrift.TUnloadTabletGoal.findByValue(iprot.readI32()); + struct.setGoalIsSet(true); + } + if (incoming.get(5)) { + struct.requestTime = iprot.readI64(); + struct.setRequestTimeIsSet(true); + } + } finally { + prot.decrementRecursionDepth(); } } } @@ -2708,59 +2758,64 @@ private static class flushTablet_argsStandardScheme extends org.apache.thrift.sc @Override public void read(org.apache.thrift.protocol.TProtocol iprot, flushTablet_args struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TField schemeField; - iprot.readStructBegin(); - while (true) - { - schemeField = iprot.readFieldBegin(); - if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { - break; - } - switch (schemeField.id) { - case 1: // TINFO - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.tinfo = new org.apache.accumulo.core.clientImpl.thrift.TInfo(); - struct.tinfo.read(iprot); - struct.setTinfoIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 2: // CREDENTIALS - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); - struct.credentials.read(iprot); - struct.setCredentialsIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 3: // LOCK - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.lock = iprot.readString(); - struct.setLockIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } + iprot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; - case 4: // EXTENT - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.extent = new org.apache.accumulo.core.dataImpl.thrift.TKeyExtent(); - struct.extent.read(iprot); - struct.setExtentIsSet(true); - } else { + } + switch (schemeField.id) { + case 1: // TINFO + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.tinfo = new org.apache.accumulo.core.clientImpl.thrift.TInfo(); + struct.tinfo.read(iprot); + struct.setTinfoIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 2: // CREDENTIALS + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); + struct.credentials.read(iprot); + struct.setCredentialsIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 3: // LOCK + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.lock = iprot.readString(); + struct.setLockIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 4: // EXTENT + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.extent = new org.apache.accumulo.core.dataImpl.thrift.TKeyExtent(); + struct.extent.read(iprot); + struct.setExtentIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - default: - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); } - iprot.readFieldEnd(); - } - iprot.readStructEnd(); + iprot.readStructEnd(); - // check for required fields of primitive type, which can't be checked in the validate method - struct.validate(); + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } finally { + iprot.decrementRecursionDepth(); + } } @Override @@ -2836,26 +2891,31 @@ public void write(org.apache.thrift.protocol.TProtocol prot, flushTablet_args st @Override public void read(org.apache.thrift.protocol.TProtocol prot, flushTablet_args struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; - java.util.BitSet incoming = iprot.readBitSet(4); - if (incoming.get(0)) { - struct.tinfo = new org.apache.accumulo.core.clientImpl.thrift.TInfo(); - struct.tinfo.read(iprot); - struct.setTinfoIsSet(true); - } - if (incoming.get(1)) { - struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); - struct.credentials.read(iprot); - struct.setCredentialsIsSet(true); - } - if (incoming.get(2)) { - struct.lock = iprot.readString(); - struct.setLockIsSet(true); - } - if (incoming.get(3)) { - struct.extent = new org.apache.accumulo.core.dataImpl.thrift.TKeyExtent(); - struct.extent.read(iprot); - struct.setExtentIsSet(true); + prot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(4); + if (incoming.get(0)) { + struct.tinfo = new org.apache.accumulo.core.clientImpl.thrift.TInfo(); + struct.tinfo.read(iprot); + struct.setTinfoIsSet(true); + } + if (incoming.get(1)) { + struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); + struct.credentials.read(iprot); + struct.setCredentialsIsSet(true); + } + if (incoming.get(2)) { + struct.lock = iprot.readString(); + struct.setLockIsSet(true); + } + if (incoming.get(3)) { + struct.extent = new org.apache.accumulo.core.dataImpl.thrift.TKeyExtent(); + struct.extent.read(iprot); + struct.setExtentIsSet(true); + } + } finally { + prot.decrementRecursionDepth(); } } } diff --git a/core/src/main/thrift-gen-java/org/apache/accumulo/core/tabletingest/thrift/ConstraintViolationException.java b/core/src/main/thrift-gen-java/org/apache/accumulo/core/tabletingest/thrift/ConstraintViolationException.java index 33dff589f22..030104c7602 100644 --- a/core/src/main/thrift-gen-java/org/apache/accumulo/core/tabletingest/thrift/ConstraintViolationException.java +++ b/core/src/main/thrift-gen-java/org/apache/accumulo/core/tabletingest/thrift/ConstraintViolationException.java @@ -17,7 +17,7 @@ * under the License. */ /* - * Autogenerated by Thrift Compiler (0.17.0) + * Autogenerated by Thrift Compiler (0.23.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -342,43 +342,48 @@ private static class ConstraintViolationExceptionStandardScheme extends org.apac @Override public void read(org.apache.thrift.protocol.TProtocol iprot, ConstraintViolationException struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TField schemeField; - iprot.readStructBegin(); - while (true) - { - schemeField = iprot.readFieldBegin(); - if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { - break; - } - switch (schemeField.id) { - case 1: // VIOLATION_SUMMARIES - if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { - { - org.apache.thrift.protocol.TList _list0 = iprot.readListBegin(); - struct.violationSummaries = new java.util.ArrayList(_list0.size); - @org.apache.thrift.annotation.Nullable org.apache.accumulo.core.dataImpl.thrift.TConstraintViolationSummary _elem1; - for (int _i2 = 0; _i2 < _list0.size; ++_i2) + iprot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { + break; + } + switch (schemeField.id) { + case 1: // VIOLATION_SUMMARIES + if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - _elem1 = new org.apache.accumulo.core.dataImpl.thrift.TConstraintViolationSummary(); - _elem1.read(iprot); - struct.violationSummaries.add(_elem1); + org.apache.thrift.protocol.TList _list0 = iprot.readListBegin(); + struct.violationSummaries = new java.util.ArrayList(_list0.size); + @org.apache.thrift.annotation.Nullable org.apache.accumulo.core.dataImpl.thrift.TConstraintViolationSummary _elem1; + for (int _i2 = 0; _i2 < _list0.size; ++_i2) + { + _elem1 = new org.apache.accumulo.core.dataImpl.thrift.TConstraintViolationSummary(); + _elem1.read(iprot); + struct.violationSummaries.add(_elem1); + } + iprot.readListEnd(); } - iprot.readListEnd(); + struct.setViolationSummariesIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } - struct.setViolationSummariesIsSet(true); - } else { + break; + default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - default: - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); } - iprot.readFieldEnd(); - } - iprot.readStructEnd(); + iprot.readStructEnd(); - // check for required fields of primitive type, which can't be checked in the validate method - struct.validate(); + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } finally { + iprot.decrementRecursionDepth(); + } } @Override @@ -434,21 +439,26 @@ public void write(org.apache.thrift.protocol.TProtocol prot, ConstraintViolation @Override public void read(org.apache.thrift.protocol.TProtocol prot, ConstraintViolationException struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; - java.util.BitSet incoming = iprot.readBitSet(1); - if (incoming.get(0)) { - { - org.apache.thrift.protocol.TList _list5 = iprot.readListBegin(org.apache.thrift.protocol.TType.STRUCT); - struct.violationSummaries = new java.util.ArrayList(_list5.size); - @org.apache.thrift.annotation.Nullable org.apache.accumulo.core.dataImpl.thrift.TConstraintViolationSummary _elem6; - for (int _i7 = 0; _i7 < _list5.size; ++_i7) + prot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(1); + if (incoming.get(0)) { { - _elem6 = new org.apache.accumulo.core.dataImpl.thrift.TConstraintViolationSummary(); - _elem6.read(iprot); - struct.violationSummaries.add(_elem6); + org.apache.thrift.protocol.TList _list5 = iprot.readListBegin(org.apache.thrift.protocol.TType.STRUCT); + struct.violationSummaries = new java.util.ArrayList(_list5.size); + @org.apache.thrift.annotation.Nullable org.apache.accumulo.core.dataImpl.thrift.TConstraintViolationSummary _elem6; + for (int _i7 = 0; _i7 < _list5.size; ++_i7) + { + _elem6 = new org.apache.accumulo.core.dataImpl.thrift.TConstraintViolationSummary(); + _elem6.read(iprot); + struct.violationSummaries.add(_elem6); + } } + struct.setViolationSummariesIsSet(true); } - struct.setViolationSummariesIsSet(true); + } finally { + prot.decrementRecursionDepth(); } } } diff --git a/core/src/main/thrift-gen-java/org/apache/accumulo/core/tabletingest/thrift/DataFileInfo.java b/core/src/main/thrift-gen-java/org/apache/accumulo/core/tabletingest/thrift/DataFileInfo.java index 90752e3b966..9a66979e7d4 100644 --- a/core/src/main/thrift-gen-java/org/apache/accumulo/core/tabletingest/thrift/DataFileInfo.java +++ b/core/src/main/thrift-gen-java/org/apache/accumulo/core/tabletingest/thrift/DataFileInfo.java @@ -17,7 +17,7 @@ * under the License. */ /* - * Autogenerated by Thrift Compiler (0.17.0) + * Autogenerated by Thrift Compiler (0.23.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -318,32 +318,37 @@ private static class DataFileInfoStandardScheme extends org.apache.thrift.scheme @Override public void read(org.apache.thrift.protocol.TProtocol iprot, DataFileInfo struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TField schemeField; - iprot.readStructBegin(); - while (true) - { - schemeField = iprot.readFieldBegin(); - if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { - break; - } - switch (schemeField.id) { - case 1: // ESTIMATED_SIZE - if (schemeField.type == org.apache.thrift.protocol.TType.I64) { - struct.estimatedSize = iprot.readI64(); - struct.setEstimatedSizeIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } + iprot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; - default: - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + switch (schemeField.id) { + case 1: // ESTIMATED_SIZE + if (schemeField.type == org.apache.thrift.protocol.TType.I64) { + struct.estimatedSize = iprot.readI64(); + struct.setEstimatedSizeIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + default: + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); } - iprot.readFieldEnd(); - } - iprot.readStructEnd(); + iprot.readStructEnd(); - // check for required fields of primitive type, which can't be checked in the validate method - struct.validate(); + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } finally { + iprot.decrementRecursionDepth(); + } } @Override @@ -384,11 +389,16 @@ public void write(org.apache.thrift.protocol.TProtocol prot, DataFileInfo struct @Override public void read(org.apache.thrift.protocol.TProtocol prot, DataFileInfo struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; - java.util.BitSet incoming = iprot.readBitSet(1); - if (incoming.get(0)) { - struct.estimatedSize = iprot.readI64(); - struct.setEstimatedSizeIsSet(true); + prot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(1); + if (incoming.get(0)) { + struct.estimatedSize = iprot.readI64(); + struct.setEstimatedSizeIsSet(true); + } + } finally { + prot.decrementRecursionDepth(); } } } diff --git a/core/src/main/thrift-gen-java/org/apache/accumulo/core/tabletingest/thrift/TDurability.java b/core/src/main/thrift-gen-java/org/apache/accumulo/core/tabletingest/thrift/TDurability.java index b5ad7f73ea7..1863b908b2b 100644 --- a/core/src/main/thrift-gen-java/org/apache/accumulo/core/tabletingest/thrift/TDurability.java +++ b/core/src/main/thrift-gen-java/org/apache/accumulo/core/tabletingest/thrift/TDurability.java @@ -17,7 +17,7 @@ * under the License. */ /* - * Autogenerated by Thrift Compiler (0.17.0) + * Autogenerated by Thrift Compiler (0.23.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated diff --git a/core/src/main/thrift-gen-java/org/apache/accumulo/core/tabletingest/thrift/TabletIngestClientService.java b/core/src/main/thrift-gen-java/org/apache/accumulo/core/tabletingest/thrift/TabletIngestClientService.java index 432d7c73312..ab56145288e 100644 --- a/core/src/main/thrift-gen-java/org/apache/accumulo/core/tabletingest/thrift/TabletIngestClientService.java +++ b/core/src/main/thrift-gen-java/org/apache/accumulo/core/tabletingest/thrift/TabletIngestClientService.java @@ -17,7 +17,7 @@ * under the License. */ /* - * Autogenerated by Thrift Compiler (0.17.0) + * Autogenerated by Thrift Compiler (0.23.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -641,14 +641,14 @@ public Void getResult() throws org.apache.thrift.TException { public static class Processor extends org.apache.thrift.TBaseProcessor implements org.apache.thrift.TProcessor { private static final org.slf4j.Logger _LOGGER = org.slf4j.LoggerFactory.getLogger(Processor.class.getName()); public Processor(I iface) { - super(iface, getProcessMap(new java.util.HashMap>())); + super(iface, getProcessMap(new java.util.HashMap>())); } - protected Processor(I iface, java.util.Map> processMap) { + protected Processor(I iface, java.util.Map> processMap) { super(iface, getProcessMap(processMap)); } - private static java.util.Map> getProcessMap(java.util.Map> processMap) { + private static java.util.Map> getProcessMap(java.util.Map> processMap) { processMap.put("startUpdate", new startUpdate()); processMap.put("applyUpdates", new applyUpdates()); processMap.put("closeUpdate", new closeUpdate()); @@ -660,7 +660,7 @@ protected Processor(I iface, java.util.Map extends org.apache.thrift.ProcessFunction { + public static class startUpdate extends org.apache.thrift.ProcessFunction { public startUpdate() { super("startUpdate"); } @@ -671,7 +671,7 @@ public startUpdate_args getEmptyArgsInstance() { } @Override - protected boolean isOneway() { + public boolean isOneway() { return false; } @@ -680,9 +680,14 @@ protected boolean rethrowUnhandledExceptions() { return false; } + @Override + public startUpdate_result getEmptyResultInstance() { + return new startUpdate_result(); + } + @Override public startUpdate_result getResult(I iface, startUpdate_args args) throws org.apache.thrift.TException { - startUpdate_result result = new startUpdate_result(); + startUpdate_result result = getEmptyResultInstance(); try { result.success = iface.startUpdate(args.tinfo, args.credentials, args.durability); result.setSuccessIsSet(true); @@ -693,7 +698,7 @@ public startUpdate_result getResult(I iface, startUpdate_args args) throws org.a } } - public static class applyUpdates extends org.apache.thrift.ProcessFunction { + public static class applyUpdates extends org.apache.thrift.ProcessFunction { public applyUpdates() { super("applyUpdates"); } @@ -704,7 +709,7 @@ public applyUpdates_args getEmptyArgsInstance() { } @Override - protected boolean isOneway() { + public boolean isOneway() { return true; } @@ -713,6 +718,11 @@ protected boolean rethrowUnhandledExceptions() { return false; } + @Override + public org.apache.thrift.TBase getEmptyResultInstance() { + return null; + } + @Override public org.apache.thrift.TBase getResult(I iface, applyUpdates_args args) throws org.apache.thrift.TException { iface.applyUpdates(args.tinfo, args.updateID, args.keyExtent, args.mutations); @@ -720,7 +730,7 @@ public org.apache.thrift.TBase getResult(I iface, applyUpdates_args args) throws } } - public static class closeUpdate extends org.apache.thrift.ProcessFunction { + public static class closeUpdate extends org.apache.thrift.ProcessFunction { public closeUpdate() { super("closeUpdate"); } @@ -731,7 +741,7 @@ public closeUpdate_args getEmptyArgsInstance() { } @Override - protected boolean isOneway() { + public boolean isOneway() { return false; } @@ -740,9 +750,14 @@ protected boolean rethrowUnhandledExceptions() { return false; } + @Override + public closeUpdate_result getEmptyResultInstance() { + return new closeUpdate_result(); + } + @Override public closeUpdate_result getResult(I iface, closeUpdate_args args) throws org.apache.thrift.TException { - closeUpdate_result result = new closeUpdate_result(); + closeUpdate_result result = getEmptyResultInstance(); try { result.success = iface.closeUpdate(args.tinfo, args.updateID); } catch (org.apache.accumulo.core.tabletserver.thrift.NoSuchScanIDException nssi) { @@ -752,7 +767,7 @@ public closeUpdate_result getResult(I iface, closeUpdate_args args) throws org.a } } - public static class cancelUpdate extends org.apache.thrift.ProcessFunction { + public static class cancelUpdate extends org.apache.thrift.ProcessFunction { public cancelUpdate() { super("cancelUpdate"); } @@ -763,7 +778,7 @@ public cancelUpdate_args getEmptyArgsInstance() { } @Override - protected boolean isOneway() { + public boolean isOneway() { return false; } @@ -772,16 +787,21 @@ protected boolean rethrowUnhandledExceptions() { return false; } + @Override + public cancelUpdate_result getEmptyResultInstance() { + return new cancelUpdate_result(); + } + @Override public cancelUpdate_result getResult(I iface, cancelUpdate_args args) throws org.apache.thrift.TException { - cancelUpdate_result result = new cancelUpdate_result(); + cancelUpdate_result result = getEmptyResultInstance(); result.success = iface.cancelUpdate(args.tinfo, args.updateID); result.setSuccessIsSet(true); return result; } } - public static class startConditionalUpdate extends org.apache.thrift.ProcessFunction { + public static class startConditionalUpdate extends org.apache.thrift.ProcessFunction { public startConditionalUpdate() { super("startConditionalUpdate"); } @@ -792,7 +812,7 @@ public startConditionalUpdate_args getEmptyArgsInstance() { } @Override - protected boolean isOneway() { + public boolean isOneway() { return false; } @@ -801,9 +821,14 @@ protected boolean rethrowUnhandledExceptions() { return false; } + @Override + public startConditionalUpdate_result getEmptyResultInstance() { + return new startConditionalUpdate_result(); + } + @Override public startConditionalUpdate_result getResult(I iface, startConditionalUpdate_args args) throws org.apache.thrift.TException { - startConditionalUpdate_result result = new startConditionalUpdate_result(); + startConditionalUpdate_result result = getEmptyResultInstance(); try { result.success = iface.startConditionalUpdate(args.tinfo, args.credentials, args.authorizations, args.tableID, args.durability, args.classLoaderContext); } catch (org.apache.accumulo.core.clientImpl.thrift.ThriftSecurityException sec) { @@ -813,7 +838,7 @@ public startConditionalUpdate_result getResult(I iface, startConditionalUpdate_a } } - public static class conditionalUpdate extends org.apache.thrift.ProcessFunction { + public static class conditionalUpdate extends org.apache.thrift.ProcessFunction { public conditionalUpdate() { super("conditionalUpdate"); } @@ -824,7 +849,7 @@ public conditionalUpdate_args getEmptyArgsInstance() { } @Override - protected boolean isOneway() { + public boolean isOneway() { return false; } @@ -833,9 +858,14 @@ protected boolean rethrowUnhandledExceptions() { return false; } + @Override + public conditionalUpdate_result getEmptyResultInstance() { + return new conditionalUpdate_result(); + } + @Override public conditionalUpdate_result getResult(I iface, conditionalUpdate_args args) throws org.apache.thrift.TException { - conditionalUpdate_result result = new conditionalUpdate_result(); + conditionalUpdate_result result = getEmptyResultInstance(); try { result.success = iface.conditionalUpdate(args.tinfo, args.sessID, args.mutations, args.symbols); } catch (org.apache.accumulo.core.tabletserver.thrift.NoSuchScanIDException nssi) { @@ -845,7 +875,7 @@ public conditionalUpdate_result getResult(I iface, conditionalUpdate_args args) } } - public static class invalidateConditionalUpdate extends org.apache.thrift.ProcessFunction { + public static class invalidateConditionalUpdate extends org.apache.thrift.ProcessFunction { public invalidateConditionalUpdate() { super("invalidateConditionalUpdate"); } @@ -856,7 +886,7 @@ public invalidateConditionalUpdate_args getEmptyArgsInstance() { } @Override - protected boolean isOneway() { + public boolean isOneway() { return false; } @@ -865,15 +895,20 @@ protected boolean rethrowUnhandledExceptions() { return false; } + @Override + public invalidateConditionalUpdate_result getEmptyResultInstance() { + return new invalidateConditionalUpdate_result(); + } + @Override public invalidateConditionalUpdate_result getResult(I iface, invalidateConditionalUpdate_args args) throws org.apache.thrift.TException { - invalidateConditionalUpdate_result result = new invalidateConditionalUpdate_result(); + invalidateConditionalUpdate_result result = getEmptyResultInstance(); iface.invalidateConditionalUpdate(args.tinfo, args.sessID); return result; } } - public static class closeConditionalUpdate extends org.apache.thrift.ProcessFunction { + public static class closeConditionalUpdate extends org.apache.thrift.ProcessFunction { public closeConditionalUpdate() { super("closeConditionalUpdate"); } @@ -884,7 +919,7 @@ public closeConditionalUpdate_args getEmptyArgsInstance() { } @Override - protected boolean isOneway() { + public boolean isOneway() { return true; } @@ -893,6 +928,11 @@ protected boolean rethrowUnhandledExceptions() { return false; } + @Override + public org.apache.thrift.TBase getEmptyResultInstance() { + return null; + } + @Override public org.apache.thrift.TBase getResult(I iface, closeConditionalUpdate_args args) throws org.apache.thrift.TException { iface.closeConditionalUpdate(args.tinfo, args.sessID); @@ -905,14 +945,14 @@ public org.apache.thrift.TBase getResult(I iface, closeConditionalUpdate_args ar public static class AsyncProcessor extends org.apache.thrift.TBaseAsyncProcessor { private static final org.slf4j.Logger _LOGGER = org.slf4j.LoggerFactory.getLogger(AsyncProcessor.class.getName()); public AsyncProcessor(I iface) { - super(iface, getProcessMap(new java.util.HashMap>())); + super(iface, getProcessMap(new java.util.HashMap>())); } - protected AsyncProcessor(I iface, java.util.Map> processMap) { + protected AsyncProcessor(I iface, java.util.Map> processMap) { super(iface, getProcessMap(processMap)); } - private static java.util.Map> getProcessMap(java.util.Map> processMap) { + private static java.util.Map> getProcessMap(java.util.Map> processMap) { processMap.put("startUpdate", new startUpdate()); processMap.put("applyUpdates", new applyUpdates()); processMap.put("closeUpdate", new closeUpdate()); @@ -924,11 +964,16 @@ protected AsyncProcessor(I iface, java.util.Map extends org.apache.thrift.AsyncProcessFunction { + public static class startUpdate extends org.apache.thrift.AsyncProcessFunction { public startUpdate() { super("startUpdate"); } + @Override + public startUpdate_result getEmptyResultInstance() { + return new startUpdate_result(); + } + @Override public startUpdate_args getEmptyArgsInstance() { return new startUpdate_args(); @@ -986,7 +1031,7 @@ public void onError(java.lang.Exception e) { } @Override - protected boolean isOneway() { + public boolean isOneway() { return false; } @@ -996,11 +1041,16 @@ public void start(I iface, startUpdate_args args, org.apache.thrift.async.AsyncM } } - public static class applyUpdates extends org.apache.thrift.AsyncProcessFunction { + public static class applyUpdates extends org.apache.thrift.AsyncProcessFunction { public applyUpdates() { super("applyUpdates"); } + @Override + public org.apache.thrift.TBase getEmptyResultInstance() { + return null; + } + @Override public applyUpdates_args getEmptyArgsInstance() { return new applyUpdates_args(); @@ -1026,7 +1076,7 @@ public void onError(java.lang.Exception e) { } @Override - protected boolean isOneway() { + public boolean isOneway() { return true; } @@ -1036,11 +1086,16 @@ public void start(I iface, applyUpdates_args args, org.apache.thrift.async.Async } } - public static class closeUpdate extends org.apache.thrift.AsyncProcessFunction { + public static class closeUpdate extends org.apache.thrift.AsyncProcessFunction { public closeUpdate() { super("closeUpdate"); } + @Override + public closeUpdate_result getEmptyResultInstance() { + return new closeUpdate_result(); + } + @Override public closeUpdate_args getEmptyArgsInstance() { return new closeUpdate_args(); @@ -1097,7 +1152,7 @@ public void onError(java.lang.Exception e) { } @Override - protected boolean isOneway() { + public boolean isOneway() { return false; } @@ -1107,11 +1162,16 @@ public void start(I iface, closeUpdate_args args, org.apache.thrift.async.AsyncM } } - public static class cancelUpdate extends org.apache.thrift.AsyncProcessFunction { + public static class cancelUpdate extends org.apache.thrift.AsyncProcessFunction { public cancelUpdate() { super("cancelUpdate"); } + @Override + public cancelUpdate_result getEmptyResultInstance() { + return new cancelUpdate_result(); + } + @Override public cancelUpdate_args getEmptyArgsInstance() { return new cancelUpdate_args(); @@ -1165,7 +1225,7 @@ public void onError(java.lang.Exception e) { } @Override - protected boolean isOneway() { + public boolean isOneway() { return false; } @@ -1175,11 +1235,16 @@ public void start(I iface, cancelUpdate_args args, org.apache.thrift.async.Async } } - public static class startConditionalUpdate extends org.apache.thrift.AsyncProcessFunction { + public static class startConditionalUpdate extends org.apache.thrift.AsyncProcessFunction { public startConditionalUpdate() { super("startConditionalUpdate"); } + @Override + public startConditionalUpdate_result getEmptyResultInstance() { + return new startConditionalUpdate_result(); + } + @Override public startConditionalUpdate_args getEmptyArgsInstance() { return new startConditionalUpdate_args(); @@ -1236,7 +1301,7 @@ public void onError(java.lang.Exception e) { } @Override - protected boolean isOneway() { + public boolean isOneway() { return false; } @@ -1246,11 +1311,16 @@ public void start(I iface, startConditionalUpdate_args args, org.apache.thrift.a } } - public static class conditionalUpdate extends org.apache.thrift.AsyncProcessFunction> { + public static class conditionalUpdate extends org.apache.thrift.AsyncProcessFunction, conditionalUpdate_result> { public conditionalUpdate() { super("conditionalUpdate"); } + @Override + public conditionalUpdate_result getEmptyResultInstance() { + return new conditionalUpdate_result(); + } + @Override public conditionalUpdate_args getEmptyArgsInstance() { return new conditionalUpdate_args(); @@ -1307,7 +1377,7 @@ public void onError(java.lang.Exception e) { } @Override - protected boolean isOneway() { + public boolean isOneway() { return false; } @@ -1317,11 +1387,16 @@ public void start(I iface, conditionalUpdate_args args, org.apache.thrift.async. } } - public static class invalidateConditionalUpdate extends org.apache.thrift.AsyncProcessFunction { + public static class invalidateConditionalUpdate extends org.apache.thrift.AsyncProcessFunction { public invalidateConditionalUpdate() { super("invalidateConditionalUpdate"); } + @Override + public invalidateConditionalUpdate_result getEmptyResultInstance() { + return new invalidateConditionalUpdate_result(); + } + @Override public invalidateConditionalUpdate_args getEmptyArgsInstance() { return new invalidateConditionalUpdate_args(); @@ -1373,7 +1448,7 @@ public void onError(java.lang.Exception e) { } @Override - protected boolean isOneway() { + public boolean isOneway() { return false; } @@ -1383,11 +1458,16 @@ public void start(I iface, invalidateConditionalUpdate_args args, org.apache.thr } } - public static class closeConditionalUpdate extends org.apache.thrift.AsyncProcessFunction { + public static class closeConditionalUpdate extends org.apache.thrift.AsyncProcessFunction { public closeConditionalUpdate() { super("closeConditionalUpdate"); } + @Override + public org.apache.thrift.TBase getEmptyResultInstance() { + return null; + } + @Override public closeConditionalUpdate_args getEmptyArgsInstance() { return new closeConditionalUpdate_args(); @@ -1413,7 +1493,7 @@ public void onError(java.lang.Exception e) { } @Override - protected boolean isOneway() { + public boolean isOneway() { return true; } @@ -1908,50 +1988,55 @@ private static class startUpdate_argsStandardScheme extends org.apache.thrift.sc @Override public void read(org.apache.thrift.protocol.TProtocol iprot, startUpdate_args struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TField schemeField; - iprot.readStructBegin(); - while (true) - { - schemeField = iprot.readFieldBegin(); - if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { - break; - } - switch (schemeField.id) { - case 2: // TINFO - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.tinfo = new org.apache.accumulo.core.clientImpl.thrift.TInfo(); - struct.tinfo.read(iprot); - struct.setTinfoIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 1: // CREDENTIALS - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); - struct.credentials.read(iprot); - struct.setCredentialsIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } + iprot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; - case 3: // DURABILITY - if (schemeField.type == org.apache.thrift.protocol.TType.I32) { - struct.durability = org.apache.accumulo.core.tabletingest.thrift.TDurability.findByValue(iprot.readI32()); - struct.setDurabilityIsSet(true); - } else { + } + switch (schemeField.id) { + case 2: // TINFO + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.tinfo = new org.apache.accumulo.core.clientImpl.thrift.TInfo(); + struct.tinfo.read(iprot); + struct.setTinfoIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 1: // CREDENTIALS + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); + struct.credentials.read(iprot); + struct.setCredentialsIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 3: // DURABILITY + if (schemeField.type == org.apache.thrift.protocol.TType.I32) { + struct.durability = org.apache.accumulo.core.tabletingest.thrift.TDurability.findByValue(iprot.readI32()); + struct.setDurabilityIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - default: - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); } - iprot.readFieldEnd(); - } - iprot.readStructEnd(); + iprot.readStructEnd(); - // check for required fields of primitive type, which can't be checked in the validate method - struct.validate(); + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } finally { + iprot.decrementRecursionDepth(); + } } @Override @@ -2016,21 +2101,26 @@ public void write(org.apache.thrift.protocol.TProtocol prot, startUpdate_args st @Override public void read(org.apache.thrift.protocol.TProtocol prot, startUpdate_args struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; - java.util.BitSet incoming = iprot.readBitSet(3); - if (incoming.get(0)) { - struct.tinfo = new org.apache.accumulo.core.clientImpl.thrift.TInfo(); - struct.tinfo.read(iprot); - struct.setTinfoIsSet(true); - } - if (incoming.get(1)) { - struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); - struct.credentials.read(iprot); - struct.setCredentialsIsSet(true); - } - if (incoming.get(2)) { - struct.durability = org.apache.accumulo.core.tabletingest.thrift.TDurability.findByValue(iprot.readI32()); - struct.setDurabilityIsSet(true); + prot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(3); + if (incoming.get(0)) { + struct.tinfo = new org.apache.accumulo.core.clientImpl.thrift.TInfo(); + struct.tinfo.read(iprot); + struct.setTinfoIsSet(true); + } + if (incoming.get(1)) { + struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); + struct.credentials.read(iprot); + struct.setCredentialsIsSet(true); + } + if (incoming.get(2)) { + struct.durability = org.apache.accumulo.core.tabletingest.thrift.TDurability.findByValue(iprot.readI32()); + struct.setDurabilityIsSet(true); + } + } finally { + prot.decrementRecursionDepth(); } } } @@ -2415,41 +2505,46 @@ private static class startUpdate_resultStandardScheme extends org.apache.thrift. @Override public void read(org.apache.thrift.protocol.TProtocol iprot, startUpdate_result struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TField schemeField; - iprot.readStructBegin(); - while (true) - { - schemeField = iprot.readFieldBegin(); - if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { - break; - } - switch (schemeField.id) { - case 0: // SUCCESS - if (schemeField.type == org.apache.thrift.protocol.TType.I64) { - struct.success = iprot.readI64(); - struct.setSuccessIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } + iprot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; - case 1: // SEC - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.sec = new org.apache.accumulo.core.clientImpl.thrift.ThriftSecurityException(); - struct.sec.read(iprot); - struct.setSecIsSet(true); - } else { + } + switch (schemeField.id) { + case 0: // SUCCESS + if (schemeField.type == org.apache.thrift.protocol.TType.I64) { + struct.success = iprot.readI64(); + struct.setSuccessIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 1: // SEC + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.sec = new org.apache.accumulo.core.clientImpl.thrift.ThriftSecurityException(); + struct.sec.read(iprot); + struct.setSecIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - default: - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); } - iprot.readFieldEnd(); - } - iprot.readStructEnd(); + iprot.readStructEnd(); - // check for required fields of primitive type, which can't be checked in the validate method - struct.validate(); + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } finally { + iprot.decrementRecursionDepth(); + } } @Override @@ -2503,16 +2598,21 @@ public void write(org.apache.thrift.protocol.TProtocol prot, startUpdate_result @Override public void read(org.apache.thrift.protocol.TProtocol prot, startUpdate_result struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; - java.util.BitSet incoming = iprot.readBitSet(2); - if (incoming.get(0)) { - struct.success = iprot.readI64(); - struct.setSuccessIsSet(true); - } - if (incoming.get(1)) { - struct.sec = new org.apache.accumulo.core.clientImpl.thrift.ThriftSecurityException(); - struct.sec.read(iprot); - struct.setSecIsSet(true); + prot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(2); + if (incoming.get(0)) { + struct.success = iprot.readI64(); + struct.setSuccessIsSet(true); + } + if (incoming.get(1)) { + struct.sec = new org.apache.accumulo.core.clientImpl.thrift.ThriftSecurityException(); + struct.sec.read(iprot); + struct.setSecIsSet(true); + } + } finally { + prot.decrementRecursionDepth(); } } } @@ -3089,69 +3189,74 @@ private static class applyUpdates_argsStandardScheme extends org.apache.thrift.s @Override public void read(org.apache.thrift.protocol.TProtocol iprot, applyUpdates_args struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TField schemeField; - iprot.readStructBegin(); - while (true) - { - schemeField = iprot.readFieldBegin(); - if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { - break; - } - switch (schemeField.id) { - case 1: // TINFO - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.tinfo = new org.apache.accumulo.core.clientImpl.thrift.TInfo(); - struct.tinfo.read(iprot); - struct.setTinfoIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 2: // UPDATE_ID - if (schemeField.type == org.apache.thrift.protocol.TType.I64) { - struct.updateID = iprot.readI64(); - struct.setUpdateIDIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 3: // KEY_EXTENT - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.keyExtent = new org.apache.accumulo.core.dataImpl.thrift.TKeyExtent(); - struct.keyExtent.read(iprot); - struct.setKeyExtentIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } + iprot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; - case 4: // MUTATIONS - if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { - { - org.apache.thrift.protocol.TList _list8 = iprot.readListBegin(); - struct.mutations = new java.util.ArrayList(_list8.size); - @org.apache.thrift.annotation.Nullable org.apache.accumulo.core.dataImpl.thrift.TMutation _elem9; - for (int _i10 = 0; _i10 < _list8.size; ++_i10) + } + switch (schemeField.id) { + case 1: // TINFO + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.tinfo = new org.apache.accumulo.core.clientImpl.thrift.TInfo(); + struct.tinfo.read(iprot); + struct.setTinfoIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 2: // UPDATE_ID + if (schemeField.type == org.apache.thrift.protocol.TType.I64) { + struct.updateID = iprot.readI64(); + struct.setUpdateIDIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 3: // KEY_EXTENT + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.keyExtent = new org.apache.accumulo.core.dataImpl.thrift.TKeyExtent(); + struct.keyExtent.read(iprot); + struct.setKeyExtentIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 4: // MUTATIONS + if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - _elem9 = new org.apache.accumulo.core.dataImpl.thrift.TMutation(); - _elem9.read(iprot); - struct.mutations.add(_elem9); + org.apache.thrift.protocol.TList _list8 = iprot.readListBegin(); + struct.mutations = new java.util.ArrayList(_list8.size); + @org.apache.thrift.annotation.Nullable org.apache.accumulo.core.dataImpl.thrift.TMutation _elem9; + for (int _i10 = 0; _i10 < _list8.size; ++_i10) + { + _elem9 = new org.apache.accumulo.core.dataImpl.thrift.TMutation(); + _elem9.read(iprot); + struct.mutations.add(_elem9); + } + iprot.readListEnd(); } - iprot.readListEnd(); + struct.setMutationsIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } - struct.setMutationsIsSet(true); - } else { + break; + default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - default: - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); } - iprot.readFieldEnd(); - } - iprot.readStructEnd(); + iprot.readStructEnd(); - // check for required fields of primitive type, which can't be checked in the validate method - struct.validate(); + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } finally { + iprot.decrementRecursionDepth(); + } } @Override @@ -3238,35 +3343,40 @@ public void write(org.apache.thrift.protocol.TProtocol prot, applyUpdates_args s @Override public void read(org.apache.thrift.protocol.TProtocol prot, applyUpdates_args struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; - java.util.BitSet incoming = iprot.readBitSet(4); - if (incoming.get(0)) { - struct.tinfo = new org.apache.accumulo.core.clientImpl.thrift.TInfo(); - struct.tinfo.read(iprot); - struct.setTinfoIsSet(true); - } - if (incoming.get(1)) { - struct.updateID = iprot.readI64(); - struct.setUpdateIDIsSet(true); - } - if (incoming.get(2)) { - struct.keyExtent = new org.apache.accumulo.core.dataImpl.thrift.TKeyExtent(); - struct.keyExtent.read(iprot); - struct.setKeyExtentIsSet(true); - } - if (incoming.get(3)) { - { - org.apache.thrift.protocol.TList _list13 = iprot.readListBegin(org.apache.thrift.protocol.TType.STRUCT); - struct.mutations = new java.util.ArrayList(_list13.size); - @org.apache.thrift.annotation.Nullable org.apache.accumulo.core.dataImpl.thrift.TMutation _elem14; - for (int _i15 = 0; _i15 < _list13.size; ++_i15) + prot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(4); + if (incoming.get(0)) { + struct.tinfo = new org.apache.accumulo.core.clientImpl.thrift.TInfo(); + struct.tinfo.read(iprot); + struct.setTinfoIsSet(true); + } + if (incoming.get(1)) { + struct.updateID = iprot.readI64(); + struct.setUpdateIDIsSet(true); + } + if (incoming.get(2)) { + struct.keyExtent = new org.apache.accumulo.core.dataImpl.thrift.TKeyExtent(); + struct.keyExtent.read(iprot); + struct.setKeyExtentIsSet(true); + } + if (incoming.get(3)) { { - _elem14 = new org.apache.accumulo.core.dataImpl.thrift.TMutation(); - _elem14.read(iprot); - struct.mutations.add(_elem14); + org.apache.thrift.protocol.TList _list13 = iprot.readListBegin(org.apache.thrift.protocol.TType.STRUCT); + struct.mutations = new java.util.ArrayList(_list13.size); + @org.apache.thrift.annotation.Nullable org.apache.accumulo.core.dataImpl.thrift.TMutation _elem14; + for (int _i15 = 0; _i15 < _list13.size; ++_i15) + { + _elem14 = new org.apache.accumulo.core.dataImpl.thrift.TMutation(); + _elem14.read(iprot); + struct.mutations.add(_elem14); + } } + struct.setMutationsIsSet(true); } - struct.setMutationsIsSet(true); + } finally { + prot.decrementRecursionDepth(); } } } @@ -3655,41 +3765,46 @@ private static class closeUpdate_argsStandardScheme extends org.apache.thrift.sc @Override public void read(org.apache.thrift.protocol.TProtocol iprot, closeUpdate_args struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TField schemeField; - iprot.readStructBegin(); - while (true) - { - schemeField = iprot.readFieldBegin(); - if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { - break; - } - switch (schemeField.id) { - case 2: // TINFO - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.tinfo = new org.apache.accumulo.core.clientImpl.thrift.TInfo(); - struct.tinfo.read(iprot); - struct.setTinfoIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } + iprot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; - case 1: // UPDATE_ID - if (schemeField.type == org.apache.thrift.protocol.TType.I64) { - struct.updateID = iprot.readI64(); - struct.setUpdateIDIsSet(true); - } else { + } + switch (schemeField.id) { + case 2: // TINFO + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.tinfo = new org.apache.accumulo.core.clientImpl.thrift.TInfo(); + struct.tinfo.read(iprot); + struct.setTinfoIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 1: // UPDATE_ID + if (schemeField.type == org.apache.thrift.protocol.TType.I64) { + struct.updateID = iprot.readI64(); + struct.setUpdateIDIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - default: - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); } - iprot.readFieldEnd(); - } - iprot.readStructEnd(); + iprot.readStructEnd(); - // check for required fields of primitive type, which can't be checked in the validate method - struct.validate(); + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } finally { + iprot.decrementRecursionDepth(); + } } @Override @@ -3741,16 +3856,21 @@ public void write(org.apache.thrift.protocol.TProtocol prot, closeUpdate_args st @Override public void read(org.apache.thrift.protocol.TProtocol prot, closeUpdate_args struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; - java.util.BitSet incoming = iprot.readBitSet(2); - if (incoming.get(0)) { - struct.tinfo = new org.apache.accumulo.core.clientImpl.thrift.TInfo(); - struct.tinfo.read(iprot); - struct.setTinfoIsSet(true); - } - if (incoming.get(1)) { - struct.updateID = iprot.readI64(); - struct.setUpdateIDIsSet(true); + prot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(2); + if (incoming.get(0)) { + struct.tinfo = new org.apache.accumulo.core.clientImpl.thrift.TInfo(); + struct.tinfo.read(iprot); + struct.setTinfoIsSet(true); + } + if (incoming.get(1)) { + struct.updateID = iprot.readI64(); + struct.setUpdateIDIsSet(true); + } + } finally { + prot.decrementRecursionDepth(); } } } @@ -4141,42 +4261,47 @@ private static class closeUpdate_resultStandardScheme extends org.apache.thrift. @Override public void read(org.apache.thrift.protocol.TProtocol iprot, closeUpdate_result struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TField schemeField; - iprot.readStructBegin(); - while (true) - { - schemeField = iprot.readFieldBegin(); - if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { - break; - } - switch (schemeField.id) { - case 0: // SUCCESS - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.success = new org.apache.accumulo.core.dataImpl.thrift.UpdateErrors(); - struct.success.read(iprot); - struct.setSuccessIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } + iprot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; - case 1: // NSSI - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.nssi = new org.apache.accumulo.core.tabletserver.thrift.NoSuchScanIDException(); - struct.nssi.read(iprot); - struct.setNssiIsSet(true); - } else { + } + switch (schemeField.id) { + case 0: // SUCCESS + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.success = new org.apache.accumulo.core.dataImpl.thrift.UpdateErrors(); + struct.success.read(iprot); + struct.setSuccessIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 1: // NSSI + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.nssi = new org.apache.accumulo.core.tabletserver.thrift.NoSuchScanIDException(); + struct.nssi.read(iprot); + struct.setNssiIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - default: - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); } - iprot.readFieldEnd(); - } - iprot.readStructEnd(); + iprot.readStructEnd(); - // check for required fields of primitive type, which can't be checked in the validate method - struct.validate(); + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } finally { + iprot.decrementRecursionDepth(); + } } @Override @@ -4230,17 +4355,22 @@ public void write(org.apache.thrift.protocol.TProtocol prot, closeUpdate_result @Override public void read(org.apache.thrift.protocol.TProtocol prot, closeUpdate_result struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; - java.util.BitSet incoming = iprot.readBitSet(2); - if (incoming.get(0)) { - struct.success = new org.apache.accumulo.core.dataImpl.thrift.UpdateErrors(); - struct.success.read(iprot); - struct.setSuccessIsSet(true); - } - if (incoming.get(1)) { - struct.nssi = new org.apache.accumulo.core.tabletserver.thrift.NoSuchScanIDException(); - struct.nssi.read(iprot); - struct.setNssiIsSet(true); + prot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(2); + if (incoming.get(0)) { + struct.success = new org.apache.accumulo.core.dataImpl.thrift.UpdateErrors(); + struct.success.read(iprot); + struct.setSuccessIsSet(true); + } + if (incoming.get(1)) { + struct.nssi = new org.apache.accumulo.core.tabletserver.thrift.NoSuchScanIDException(); + struct.nssi.read(iprot); + struct.setNssiIsSet(true); + } + } finally { + prot.decrementRecursionDepth(); } } } @@ -4629,41 +4759,46 @@ private static class cancelUpdate_argsStandardScheme extends org.apache.thrift.s @Override public void read(org.apache.thrift.protocol.TProtocol iprot, cancelUpdate_args struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TField schemeField; - iprot.readStructBegin(); - while (true) - { - schemeField = iprot.readFieldBegin(); - if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { - break; - } - switch (schemeField.id) { - case 1: // TINFO - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.tinfo = new org.apache.accumulo.core.clientImpl.thrift.TInfo(); - struct.tinfo.read(iprot); - struct.setTinfoIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } + iprot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; - case 2: // UPDATE_ID - if (schemeField.type == org.apache.thrift.protocol.TType.I64) { - struct.updateID = iprot.readI64(); - struct.setUpdateIDIsSet(true); - } else { + } + switch (schemeField.id) { + case 1: // TINFO + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.tinfo = new org.apache.accumulo.core.clientImpl.thrift.TInfo(); + struct.tinfo.read(iprot); + struct.setTinfoIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 2: // UPDATE_ID + if (schemeField.type == org.apache.thrift.protocol.TType.I64) { + struct.updateID = iprot.readI64(); + struct.setUpdateIDIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - default: - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); } - iprot.readFieldEnd(); - } - iprot.readStructEnd(); + iprot.readStructEnd(); - // check for required fields of primitive type, which can't be checked in the validate method - struct.validate(); + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } finally { + iprot.decrementRecursionDepth(); + } } @Override @@ -4715,16 +4850,21 @@ public void write(org.apache.thrift.protocol.TProtocol prot, cancelUpdate_args s @Override public void read(org.apache.thrift.protocol.TProtocol prot, cancelUpdate_args struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; - java.util.BitSet incoming = iprot.readBitSet(2); - if (incoming.get(0)) { - struct.tinfo = new org.apache.accumulo.core.clientImpl.thrift.TInfo(); - struct.tinfo.read(iprot); - struct.setTinfoIsSet(true); - } - if (incoming.get(1)) { - struct.updateID = iprot.readI64(); - struct.setUpdateIDIsSet(true); + prot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(2); + if (incoming.get(0)) { + struct.tinfo = new org.apache.accumulo.core.clientImpl.thrift.TInfo(); + struct.tinfo.read(iprot); + struct.setTinfoIsSet(true); + } + if (incoming.get(1)) { + struct.updateID = iprot.readI64(); + struct.setUpdateIDIsSet(true); + } + } finally { + prot.decrementRecursionDepth(); } } } @@ -5027,32 +5167,37 @@ private static class cancelUpdate_resultStandardScheme extends org.apache.thrift @Override public void read(org.apache.thrift.protocol.TProtocol iprot, cancelUpdate_result struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TField schemeField; - iprot.readStructBegin(); - while (true) - { - schemeField = iprot.readFieldBegin(); - if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { - break; - } - switch (schemeField.id) { - case 0: // SUCCESS - if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) { - struct.success = iprot.readBool(); - struct.setSuccessIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } + iprot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; - default: - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + switch (schemeField.id) { + case 0: // SUCCESS + if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) { + struct.success = iprot.readBool(); + struct.setSuccessIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + default: + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); } - iprot.readFieldEnd(); - } - iprot.readStructEnd(); + iprot.readStructEnd(); - // check for required fields of primitive type, which can't be checked in the validate method - struct.validate(); + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } finally { + iprot.decrementRecursionDepth(); + } } @Override @@ -5095,11 +5240,16 @@ public void write(org.apache.thrift.protocol.TProtocol prot, cancelUpdate_result @Override public void read(org.apache.thrift.protocol.TProtocol prot, cancelUpdate_result struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; - java.util.BitSet incoming = iprot.readBitSet(1); - if (incoming.get(0)) { - struct.success = iprot.readBool(); - struct.setSuccessIsSet(true); + prot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(1); + if (incoming.get(0)) { + struct.success = iprot.readBool(); + struct.setSuccessIsSet(true); + } + } finally { + prot.decrementRecursionDepth(); } } } @@ -5856,84 +6006,89 @@ private static class startConditionalUpdate_argsStandardScheme extends org.apach @Override public void read(org.apache.thrift.protocol.TProtocol iprot, startConditionalUpdate_args struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TField schemeField; - iprot.readStructBegin(); - while (true) - { - schemeField = iprot.readFieldBegin(); - if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { - break; - } - switch (schemeField.id) { - case 1: // TINFO - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.tinfo = new org.apache.accumulo.core.clientImpl.thrift.TInfo(); - struct.tinfo.read(iprot); - struct.setTinfoIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 2: // CREDENTIALS - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); - struct.credentials.read(iprot); - struct.setCredentialsIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } + iprot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; - case 3: // AUTHORIZATIONS - if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { - { - org.apache.thrift.protocol.TList _list16 = iprot.readListBegin(); - struct.authorizations = new java.util.ArrayList(_list16.size); - @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer _elem17; - for (int _i18 = 0; _i18 < _list16.size; ++_i18) + } + switch (schemeField.id) { + case 1: // TINFO + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.tinfo = new org.apache.accumulo.core.clientImpl.thrift.TInfo(); + struct.tinfo.read(iprot); + struct.setTinfoIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 2: // CREDENTIALS + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); + struct.credentials.read(iprot); + struct.setCredentialsIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 3: // AUTHORIZATIONS + if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - _elem17 = iprot.readBinary(); - struct.authorizations.add(_elem17); + org.apache.thrift.protocol.TList _list16 = iprot.readListBegin(); + struct.authorizations = new java.util.ArrayList(_list16.size); + @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer _elem17; + for (int _i18 = 0; _i18 < _list16.size; ++_i18) + { + _elem17 = iprot.readBinary(); + struct.authorizations.add(_elem17); + } + iprot.readListEnd(); } - iprot.readListEnd(); + struct.setAuthorizationsIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } - struct.setAuthorizationsIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 4: // TABLE_ID - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.tableID = iprot.readString(); - struct.setTableIDIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 5: // DURABILITY - if (schemeField.type == org.apache.thrift.protocol.TType.I32) { - struct.durability = org.apache.accumulo.core.tabletingest.thrift.TDurability.findByValue(iprot.readI32()); - struct.setDurabilityIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 6: // CLASS_LOADER_CONTEXT - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.classLoaderContext = iprot.readString(); - struct.setClassLoaderContextIsSet(true); - } else { + break; + case 4: // TABLE_ID + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.tableID = iprot.readString(); + struct.setTableIDIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 5: // DURABILITY + if (schemeField.type == org.apache.thrift.protocol.TType.I32) { + struct.durability = org.apache.accumulo.core.tabletingest.thrift.TDurability.findByValue(iprot.readI32()); + struct.setDurabilityIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 6: // CLASS_LOADER_CONTEXT + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.classLoaderContext = iprot.readString(); + struct.setClassLoaderContextIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - default: - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); } - iprot.readFieldEnd(); - } - iprot.readStructEnd(); + iprot.readStructEnd(); - // check for required fields of primitive type, which can't be checked in the validate method - struct.validate(); + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } finally { + iprot.decrementRecursionDepth(); + } } @Override @@ -6044,42 +6199,47 @@ public void write(org.apache.thrift.protocol.TProtocol prot, startConditionalUpd @Override public void read(org.apache.thrift.protocol.TProtocol prot, startConditionalUpdate_args struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; - java.util.BitSet incoming = iprot.readBitSet(6); - if (incoming.get(0)) { - struct.tinfo = new org.apache.accumulo.core.clientImpl.thrift.TInfo(); - struct.tinfo.read(iprot); - struct.setTinfoIsSet(true); - } - if (incoming.get(1)) { - struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); - struct.credentials.read(iprot); - struct.setCredentialsIsSet(true); - } - if (incoming.get(2)) { - { - org.apache.thrift.protocol.TList _list21 = iprot.readListBegin(org.apache.thrift.protocol.TType.STRING); - struct.authorizations = new java.util.ArrayList(_list21.size); - @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer _elem22; - for (int _i23 = 0; _i23 < _list21.size; ++_i23) + prot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(6); + if (incoming.get(0)) { + struct.tinfo = new org.apache.accumulo.core.clientImpl.thrift.TInfo(); + struct.tinfo.read(iprot); + struct.setTinfoIsSet(true); + } + if (incoming.get(1)) { + struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); + struct.credentials.read(iprot); + struct.setCredentialsIsSet(true); + } + if (incoming.get(2)) { { - _elem22 = iprot.readBinary(); - struct.authorizations.add(_elem22); + org.apache.thrift.protocol.TList _list21 = iprot.readListBegin(org.apache.thrift.protocol.TType.STRING); + struct.authorizations = new java.util.ArrayList(_list21.size); + @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer _elem22; + for (int _i23 = 0; _i23 < _list21.size; ++_i23) + { + _elem22 = iprot.readBinary(); + struct.authorizations.add(_elem22); + } } + struct.setAuthorizationsIsSet(true); } - struct.setAuthorizationsIsSet(true); - } - if (incoming.get(3)) { - struct.tableID = iprot.readString(); - struct.setTableIDIsSet(true); - } - if (incoming.get(4)) { - struct.durability = org.apache.accumulo.core.tabletingest.thrift.TDurability.findByValue(iprot.readI32()); - struct.setDurabilityIsSet(true); - } - if (incoming.get(5)) { - struct.classLoaderContext = iprot.readString(); - struct.setClassLoaderContextIsSet(true); + if (incoming.get(3)) { + struct.tableID = iprot.readString(); + struct.setTableIDIsSet(true); + } + if (incoming.get(4)) { + struct.durability = org.apache.accumulo.core.tabletingest.thrift.TDurability.findByValue(iprot.readI32()); + struct.setDurabilityIsSet(true); + } + if (incoming.get(5)) { + struct.classLoaderContext = iprot.readString(); + struct.setClassLoaderContextIsSet(true); + } + } finally { + prot.decrementRecursionDepth(); } } } @@ -6470,42 +6630,47 @@ private static class startConditionalUpdate_resultStandardScheme extends org.apa @Override public void read(org.apache.thrift.protocol.TProtocol iprot, startConditionalUpdate_result struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TField schemeField; - iprot.readStructBegin(); - while (true) - { - schemeField = iprot.readFieldBegin(); - if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { - break; - } - switch (schemeField.id) { - case 0: // SUCCESS - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.success = new org.apache.accumulo.core.dataImpl.thrift.TConditionalSession(); - struct.success.read(iprot); - struct.setSuccessIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } + iprot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; - case 1: // SEC - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.sec = new org.apache.accumulo.core.clientImpl.thrift.ThriftSecurityException(); - struct.sec.read(iprot); - struct.setSecIsSet(true); - } else { + } + switch (schemeField.id) { + case 0: // SUCCESS + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.success = new org.apache.accumulo.core.dataImpl.thrift.TConditionalSession(); + struct.success.read(iprot); + struct.setSuccessIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 1: // SEC + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.sec = new org.apache.accumulo.core.clientImpl.thrift.ThriftSecurityException(); + struct.sec.read(iprot); + struct.setSecIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - default: - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); } - iprot.readFieldEnd(); - } - iprot.readStructEnd(); + iprot.readStructEnd(); - // check for required fields of primitive type, which can't be checked in the validate method - struct.validate(); + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } finally { + iprot.decrementRecursionDepth(); + } } @Override @@ -6559,17 +6724,22 @@ public void write(org.apache.thrift.protocol.TProtocol prot, startConditionalUpd @Override public void read(org.apache.thrift.protocol.TProtocol prot, startConditionalUpdate_result struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; - java.util.BitSet incoming = iprot.readBitSet(2); - if (incoming.get(0)) { - struct.success = new org.apache.accumulo.core.dataImpl.thrift.TConditionalSession(); - struct.success.read(iprot); - struct.setSuccessIsSet(true); - } - if (incoming.get(1)) { - struct.sec = new org.apache.accumulo.core.clientImpl.thrift.ThriftSecurityException(); - struct.sec.read(iprot); - struct.setSecIsSet(true); + prot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(2); + if (incoming.get(0)) { + struct.success = new org.apache.accumulo.core.dataImpl.thrift.TConditionalSession(); + struct.success.read(iprot); + struct.setSuccessIsSet(true); + } + if (incoming.get(1)) { + struct.sec = new org.apache.accumulo.core.clientImpl.thrift.ThriftSecurityException(); + struct.sec.read(iprot); + struct.setSecIsSet(true); + } + } finally { + prot.decrementRecursionDepth(); } } } @@ -6678,7 +6848,10 @@ public java.lang.String getFieldName() { tmpMap.put(_Fields.SESS_ID, new org.apache.thrift.meta_data.FieldMetaData("sessID", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64 , "UpdateID"))); tmpMap.put(_Fields.MUTATIONS, new org.apache.thrift.meta_data.FieldMetaData("mutations", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.MAP , "CMBatch"))); + new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, org.apache.accumulo.core.dataImpl.thrift.TKeyExtent.class), + new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, org.apache.accumulo.core.dataImpl.thrift.TConditionalMutation.class))))); tmpMap.put(_Fields.SYMBOLS, new org.apache.thrift.meta_data.FieldMetaData("symbols", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)))); @@ -7166,91 +7339,96 @@ private static class conditionalUpdate_argsStandardScheme extends org.apache.thr @Override public void read(org.apache.thrift.protocol.TProtocol iprot, conditionalUpdate_args struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TField schemeField; - iprot.readStructBegin(); - while (true) - { - schemeField = iprot.readFieldBegin(); - if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { - break; - } - switch (schemeField.id) { - case 1: // TINFO - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.tinfo = new org.apache.accumulo.core.clientImpl.thrift.TInfo(); - struct.tinfo.read(iprot); - struct.setTinfoIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 2: // SESS_ID - if (schemeField.type == org.apache.thrift.protocol.TType.I64) { - struct.sessID = iprot.readI64(); - struct.setSessIDIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } + iprot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; - case 3: // MUTATIONS - if (schemeField.type == org.apache.thrift.protocol.TType.MAP) { - { - org.apache.thrift.protocol.TMap _map24 = iprot.readMapBegin(); - struct.mutations = new java.util.HashMap>(2*_map24.size); - @org.apache.thrift.annotation.Nullable org.apache.accumulo.core.dataImpl.thrift.TKeyExtent _key25; - @org.apache.thrift.annotation.Nullable java.util.List _val26; - for (int _i27 = 0; _i27 < _map24.size; ++_i27) + } + switch (schemeField.id) { + case 1: // TINFO + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.tinfo = new org.apache.accumulo.core.clientImpl.thrift.TInfo(); + struct.tinfo.read(iprot); + struct.setTinfoIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 2: // SESS_ID + if (schemeField.type == org.apache.thrift.protocol.TType.I64) { + struct.sessID = iprot.readI64(); + struct.setSessIDIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 3: // MUTATIONS + if (schemeField.type == org.apache.thrift.protocol.TType.MAP) { { - _key25 = new org.apache.accumulo.core.dataImpl.thrift.TKeyExtent(); - _key25.read(iprot); + org.apache.thrift.protocol.TMap _map24 = iprot.readMapBegin(); + struct.mutations = new java.util.HashMap>(2*_map24.size); + @org.apache.thrift.annotation.Nullable org.apache.accumulo.core.dataImpl.thrift.TKeyExtent _key25; + @org.apache.thrift.annotation.Nullable java.util.List _val26; + for (int _i27 = 0; _i27 < _map24.size; ++_i27) { - org.apache.thrift.protocol.TList _list28 = iprot.readListBegin(); - _val26 = new java.util.ArrayList(_list28.size); - @org.apache.thrift.annotation.Nullable org.apache.accumulo.core.dataImpl.thrift.TConditionalMutation _elem29; - for (int _i30 = 0; _i30 < _list28.size; ++_i30) + _key25 = new org.apache.accumulo.core.dataImpl.thrift.TKeyExtent(); + _key25.read(iprot); { - _elem29 = new org.apache.accumulo.core.dataImpl.thrift.TConditionalMutation(); - _elem29.read(iprot); - _val26.add(_elem29); + org.apache.thrift.protocol.TList _list28 = iprot.readListBegin(); + _val26 = new java.util.ArrayList(_list28.size); + @org.apache.thrift.annotation.Nullable org.apache.accumulo.core.dataImpl.thrift.TConditionalMutation _elem29; + for (int _i30 = 0; _i30 < _list28.size; ++_i30) + { + _elem29 = new org.apache.accumulo.core.dataImpl.thrift.TConditionalMutation(); + _elem29.read(iprot); + _val26.add(_elem29); + } + iprot.readListEnd(); } - iprot.readListEnd(); + struct.mutations.put(_key25, _val26); } - struct.mutations.put(_key25, _val26); + iprot.readMapEnd(); } - iprot.readMapEnd(); + struct.setMutationsIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } - struct.setMutationsIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 4: // SYMBOLS - if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { - { - org.apache.thrift.protocol.TList _list31 = iprot.readListBegin(); - struct.symbols = new java.util.ArrayList(_list31.size); - @org.apache.thrift.annotation.Nullable java.lang.String _elem32; - for (int _i33 = 0; _i33 < _list31.size; ++_i33) + break; + case 4: // SYMBOLS + if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - _elem32 = iprot.readString(); - struct.symbols.add(_elem32); + org.apache.thrift.protocol.TList _list31 = iprot.readListBegin(); + struct.symbols = new java.util.ArrayList(_list31.size); + @org.apache.thrift.annotation.Nullable java.lang.String _elem32; + for (int _i33 = 0; _i33 < _list31.size; ++_i33) + { + _elem32 = iprot.readString(); + struct.symbols.add(_elem32); + } + iprot.readListEnd(); } - iprot.readListEnd(); + struct.setSymbolsIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } - struct.setSymbolsIsSet(true); - } else { + break; + default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - default: - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); } - iprot.readFieldEnd(); - } - iprot.readStructEnd(); + iprot.readStructEnd(); - // check for required fields of primitive type, which can't be checked in the validate method - struct.validate(); + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } finally { + iprot.decrementRecursionDepth(); + } } @Override @@ -7365,55 +7543,60 @@ public void write(org.apache.thrift.protocol.TProtocol prot, conditionalUpdate_a @Override public void read(org.apache.thrift.protocol.TProtocol prot, conditionalUpdate_args struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; - java.util.BitSet incoming = iprot.readBitSet(4); - if (incoming.get(0)) { - struct.tinfo = new org.apache.accumulo.core.clientImpl.thrift.TInfo(); - struct.tinfo.read(iprot); - struct.setTinfoIsSet(true); - } - if (incoming.get(1)) { - struct.sessID = iprot.readI64(); - struct.setSessIDIsSet(true); - } - if (incoming.get(2)) { - { - org.apache.thrift.protocol.TMap _map40 = iprot.readMapBegin(org.apache.thrift.protocol.TType.STRUCT, org.apache.thrift.protocol.TType.LIST); - struct.mutations = new java.util.HashMap>(2*_map40.size); - @org.apache.thrift.annotation.Nullable org.apache.accumulo.core.dataImpl.thrift.TKeyExtent _key41; - @org.apache.thrift.annotation.Nullable java.util.List _val42; - for (int _i43 = 0; _i43 < _map40.size; ++_i43) + prot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(4); + if (incoming.get(0)) { + struct.tinfo = new org.apache.accumulo.core.clientImpl.thrift.TInfo(); + struct.tinfo.read(iprot); + struct.setTinfoIsSet(true); + } + if (incoming.get(1)) { + struct.sessID = iprot.readI64(); + struct.setSessIDIsSet(true); + } + if (incoming.get(2)) { { - _key41 = new org.apache.accumulo.core.dataImpl.thrift.TKeyExtent(); - _key41.read(iprot); + org.apache.thrift.protocol.TMap _map40 = iprot.readMapBegin(org.apache.thrift.protocol.TType.STRUCT, org.apache.thrift.protocol.TType.LIST); + struct.mutations = new java.util.HashMap>(2*_map40.size); + @org.apache.thrift.annotation.Nullable org.apache.accumulo.core.dataImpl.thrift.TKeyExtent _key41; + @org.apache.thrift.annotation.Nullable java.util.List _val42; + for (int _i43 = 0; _i43 < _map40.size; ++_i43) { - org.apache.thrift.protocol.TList _list44 = iprot.readListBegin(org.apache.thrift.protocol.TType.STRUCT); - _val42 = new java.util.ArrayList(_list44.size); - @org.apache.thrift.annotation.Nullable org.apache.accumulo.core.dataImpl.thrift.TConditionalMutation _elem45; - for (int _i46 = 0; _i46 < _list44.size; ++_i46) + _key41 = new org.apache.accumulo.core.dataImpl.thrift.TKeyExtent(); + _key41.read(iprot); { - _elem45 = new org.apache.accumulo.core.dataImpl.thrift.TConditionalMutation(); - _elem45.read(iprot); - _val42.add(_elem45); + org.apache.thrift.protocol.TList _list44 = iprot.readListBegin(org.apache.thrift.protocol.TType.STRUCT); + _val42 = new java.util.ArrayList(_list44.size); + @org.apache.thrift.annotation.Nullable org.apache.accumulo.core.dataImpl.thrift.TConditionalMutation _elem45; + for (int _i46 = 0; _i46 < _list44.size; ++_i46) + { + _elem45 = new org.apache.accumulo.core.dataImpl.thrift.TConditionalMutation(); + _elem45.read(iprot); + _val42.add(_elem45); + } } + struct.mutations.put(_key41, _val42); } - struct.mutations.put(_key41, _val42); } + struct.setMutationsIsSet(true); } - struct.setMutationsIsSet(true); - } - if (incoming.get(3)) { - { - org.apache.thrift.protocol.TList _list47 = iprot.readListBegin(org.apache.thrift.protocol.TType.STRING); - struct.symbols = new java.util.ArrayList(_list47.size); - @org.apache.thrift.annotation.Nullable java.lang.String _elem48; - for (int _i49 = 0; _i49 < _list47.size; ++_i49) + if (incoming.get(3)) { { - _elem48 = iprot.readString(); - struct.symbols.add(_elem48); + org.apache.thrift.protocol.TList _list47 = iprot.readListBegin(org.apache.thrift.protocol.TType.STRING); + struct.symbols = new java.util.ArrayList(_list47.size); + @org.apache.thrift.annotation.Nullable java.lang.String _elem48; + for (int _i49 = 0; _i49 < _list47.size; ++_i49) + { + _elem48 = iprot.readString(); + struct.symbols.add(_elem48); + } } + struct.setSymbolsIsSet(true); } - struct.setSymbolsIsSet(true); + } finally { + prot.decrementRecursionDepth(); } } } @@ -7822,52 +8005,57 @@ private static class conditionalUpdate_resultStandardScheme extends org.apache.t @Override public void read(org.apache.thrift.protocol.TProtocol iprot, conditionalUpdate_result struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TField schemeField; - iprot.readStructBegin(); - while (true) - { - schemeField = iprot.readFieldBegin(); - if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { - break; - } - switch (schemeField.id) { - case 0: // SUCCESS - if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { - { - org.apache.thrift.protocol.TList _list50 = iprot.readListBegin(); - struct.success = new java.util.ArrayList(_list50.size); - @org.apache.thrift.annotation.Nullable org.apache.accumulo.core.dataImpl.thrift.TCMResult _elem51; - for (int _i52 = 0; _i52 < _list50.size; ++_i52) + iprot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { + break; + } + switch (schemeField.id) { + case 0: // SUCCESS + if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - _elem51 = new org.apache.accumulo.core.dataImpl.thrift.TCMResult(); - _elem51.read(iprot); - struct.success.add(_elem51); + org.apache.thrift.protocol.TList _list50 = iprot.readListBegin(); + struct.success = new java.util.ArrayList(_list50.size); + @org.apache.thrift.annotation.Nullable org.apache.accumulo.core.dataImpl.thrift.TCMResult _elem51; + for (int _i52 = 0; _i52 < _list50.size; ++_i52) + { + _elem51 = new org.apache.accumulo.core.dataImpl.thrift.TCMResult(); + _elem51.read(iprot); + struct.success.add(_elem51); + } + iprot.readListEnd(); } - iprot.readListEnd(); + struct.setSuccessIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } - struct.setSuccessIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 1: // NSSI - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.nssi = new org.apache.accumulo.core.tabletserver.thrift.NoSuchScanIDException(); - struct.nssi.read(iprot); - struct.setNssiIsSet(true); - } else { + break; + case 1: // NSSI + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.nssi = new org.apache.accumulo.core.tabletserver.thrift.NoSuchScanIDException(); + struct.nssi.read(iprot); + struct.setNssiIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - default: - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); } - iprot.readFieldEnd(); - } - iprot.readStructEnd(); + iprot.readStructEnd(); - // check for required fields of primitive type, which can't be checked in the validate method - struct.validate(); + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } finally { + iprot.decrementRecursionDepth(); + } } @Override @@ -7934,26 +8122,31 @@ public void write(org.apache.thrift.protocol.TProtocol prot, conditionalUpdate_r @Override public void read(org.apache.thrift.protocol.TProtocol prot, conditionalUpdate_result struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; - java.util.BitSet incoming = iprot.readBitSet(2); - if (incoming.get(0)) { - { - org.apache.thrift.protocol.TList _list55 = iprot.readListBegin(org.apache.thrift.protocol.TType.STRUCT); - struct.success = new java.util.ArrayList(_list55.size); - @org.apache.thrift.annotation.Nullable org.apache.accumulo.core.dataImpl.thrift.TCMResult _elem56; - for (int _i57 = 0; _i57 < _list55.size; ++_i57) + prot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(2); + if (incoming.get(0)) { { - _elem56 = new org.apache.accumulo.core.dataImpl.thrift.TCMResult(); - _elem56.read(iprot); - struct.success.add(_elem56); + org.apache.thrift.protocol.TList _list55 = iprot.readListBegin(org.apache.thrift.protocol.TType.STRUCT); + struct.success = new java.util.ArrayList(_list55.size); + @org.apache.thrift.annotation.Nullable org.apache.accumulo.core.dataImpl.thrift.TCMResult _elem56; + for (int _i57 = 0; _i57 < _list55.size; ++_i57) + { + _elem56 = new org.apache.accumulo.core.dataImpl.thrift.TCMResult(); + _elem56.read(iprot); + struct.success.add(_elem56); + } } + struct.setSuccessIsSet(true); } - struct.setSuccessIsSet(true); - } - if (incoming.get(1)) { - struct.nssi = new org.apache.accumulo.core.tabletserver.thrift.NoSuchScanIDException(); - struct.nssi.read(iprot); - struct.setNssiIsSet(true); + if (incoming.get(1)) { + struct.nssi = new org.apache.accumulo.core.tabletserver.thrift.NoSuchScanIDException(); + struct.nssi.read(iprot); + struct.setNssiIsSet(true); + } + } finally { + prot.decrementRecursionDepth(); } } } @@ -8342,41 +8535,46 @@ private static class invalidateConditionalUpdate_argsStandardScheme extends org. @Override public void read(org.apache.thrift.protocol.TProtocol iprot, invalidateConditionalUpdate_args struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TField schemeField; - iprot.readStructBegin(); - while (true) - { - schemeField = iprot.readFieldBegin(); - if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { - break; - } - switch (schemeField.id) { - case 1: // TINFO - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.tinfo = new org.apache.accumulo.core.clientImpl.thrift.TInfo(); - struct.tinfo.read(iprot); - struct.setTinfoIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } + iprot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; - case 2: // SESS_ID - if (schemeField.type == org.apache.thrift.protocol.TType.I64) { - struct.sessID = iprot.readI64(); - struct.setSessIDIsSet(true); - } else { + } + switch (schemeField.id) { + case 1: // TINFO + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.tinfo = new org.apache.accumulo.core.clientImpl.thrift.TInfo(); + struct.tinfo.read(iprot); + struct.setTinfoIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 2: // SESS_ID + if (schemeField.type == org.apache.thrift.protocol.TType.I64) { + struct.sessID = iprot.readI64(); + struct.setSessIDIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - default: - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); } - iprot.readFieldEnd(); - } - iprot.readStructEnd(); + iprot.readStructEnd(); - // check for required fields of primitive type, which can't be checked in the validate method - struct.validate(); + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } finally { + iprot.decrementRecursionDepth(); + } } @Override @@ -8428,16 +8626,21 @@ public void write(org.apache.thrift.protocol.TProtocol prot, invalidateCondition @Override public void read(org.apache.thrift.protocol.TProtocol prot, invalidateConditionalUpdate_args struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; - java.util.BitSet incoming = iprot.readBitSet(2); - if (incoming.get(0)) { - struct.tinfo = new org.apache.accumulo.core.clientImpl.thrift.TInfo(); - struct.tinfo.read(iprot); - struct.setTinfoIsSet(true); - } - if (incoming.get(1)) { - struct.sessID = iprot.readI64(); - struct.setSessIDIsSet(true); + prot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(2); + if (incoming.get(0)) { + struct.tinfo = new org.apache.accumulo.core.clientImpl.thrift.TInfo(); + struct.tinfo.read(iprot); + struct.setTinfoIsSet(true); + } + if (incoming.get(1)) { + struct.sessID = iprot.readI64(); + struct.setSessIDIsSet(true); + } + } finally { + prot.decrementRecursionDepth(); } } } @@ -8656,24 +8859,29 @@ private static class invalidateConditionalUpdate_resultStandardScheme extends or @Override public void read(org.apache.thrift.protocol.TProtocol iprot, invalidateConditionalUpdate_result struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TField schemeField; - iprot.readStructBegin(); - while (true) - { - schemeField = iprot.readFieldBegin(); - if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { - break; - } - switch (schemeField.id) { - default: - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + iprot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { + break; + } + switch (schemeField.id) { + default: + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); } - iprot.readFieldEnd(); - } - iprot.readStructEnd(); + iprot.readStructEnd(); - // check for required fields of primitive type, which can't be checked in the validate method - struct.validate(); + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } finally { + iprot.decrementRecursionDepth(); + } } @Override @@ -8703,7 +8911,12 @@ public void write(org.apache.thrift.protocol.TProtocol prot, invalidateCondition @Override public void read(org.apache.thrift.protocol.TProtocol prot, invalidateConditionalUpdate_result struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + prot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + } finally { + prot.decrementRecursionDepth(); + } } } @@ -9091,41 +9304,46 @@ private static class closeConditionalUpdate_argsStandardScheme extends org.apach @Override public void read(org.apache.thrift.protocol.TProtocol iprot, closeConditionalUpdate_args struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TField schemeField; - iprot.readStructBegin(); - while (true) - { - schemeField = iprot.readFieldBegin(); - if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { - break; - } - switch (schemeField.id) { - case 1: // TINFO - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.tinfo = new org.apache.accumulo.core.clientImpl.thrift.TInfo(); - struct.tinfo.read(iprot); - struct.setTinfoIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } + iprot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; - case 2: // SESS_ID - if (schemeField.type == org.apache.thrift.protocol.TType.I64) { - struct.sessID = iprot.readI64(); - struct.setSessIDIsSet(true); - } else { + } + switch (schemeField.id) { + case 1: // TINFO + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.tinfo = new org.apache.accumulo.core.clientImpl.thrift.TInfo(); + struct.tinfo.read(iprot); + struct.setTinfoIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 2: // SESS_ID + if (schemeField.type == org.apache.thrift.protocol.TType.I64) { + struct.sessID = iprot.readI64(); + struct.setSessIDIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - default: - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); } - iprot.readFieldEnd(); - } - iprot.readStructEnd(); + iprot.readStructEnd(); - // check for required fields of primitive type, which can't be checked in the validate method - struct.validate(); + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } finally { + iprot.decrementRecursionDepth(); + } } @Override @@ -9177,16 +9395,21 @@ public void write(org.apache.thrift.protocol.TProtocol prot, closeConditionalUpd @Override public void read(org.apache.thrift.protocol.TProtocol prot, closeConditionalUpdate_args struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; - java.util.BitSet incoming = iprot.readBitSet(2); - if (incoming.get(0)) { - struct.tinfo = new org.apache.accumulo.core.clientImpl.thrift.TInfo(); - struct.tinfo.read(iprot); - struct.setTinfoIsSet(true); - } - if (incoming.get(1)) { - struct.sessID = iprot.readI64(); - struct.setSessIDIsSet(true); + prot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(2); + if (incoming.get(0)) { + struct.tinfo = new org.apache.accumulo.core.clientImpl.thrift.TInfo(); + struct.tinfo.read(iprot); + struct.setTinfoIsSet(true); + } + if (incoming.get(1)) { + struct.sessID = iprot.readI64(); + struct.setSessIDIsSet(true); + } + } finally { + prot.decrementRecursionDepth(); } } } diff --git a/core/src/main/thrift-gen-java/org/apache/accumulo/core/tabletscan/thrift/ActiveScan.java b/core/src/main/thrift-gen-java/org/apache/accumulo/core/tabletscan/thrift/ActiveScan.java index 1158c783fd5..b792a869efd 100644 --- a/core/src/main/thrift-gen-java/org/apache/accumulo/core/tabletscan/thrift/ActiveScan.java +++ b/core/src/main/thrift-gen-java/org/apache/accumulo/core/tabletscan/thrift/ActiveScan.java @@ -17,7 +17,7 @@ * under the License. */ /* - * Autogenerated by Thrift Compiler (0.17.0) + * Autogenerated by Thrift Compiler (0.23.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -183,7 +183,7 @@ public java.lang.String getFieldName() { private static final int __IDLETIME_ISSET_ID = 1; private static final int __SCANID_ISSET_ID = 2; private byte __isset_bitfield = 0; - private static final _Fields optionals[] = {_Fields.SCAN_ID}; + private static final _Fields[] optionals = {_Fields.SCAN_ID}; public static final java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); @@ -1494,193 +1494,198 @@ private static class ActiveScanStandardScheme extends org.apache.thrift.scheme.S @Override public void read(org.apache.thrift.protocol.TProtocol iprot, ActiveScan struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TField schemeField; - iprot.readStructBegin(); - while (true) - { - schemeField = iprot.readFieldBegin(); - if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { - break; - } - switch (schemeField.id) { - case 2: // CLIENT - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.client = iprot.readString(); - struct.setClientIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 3: // USER - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.user = iprot.readString(); - struct.setUserIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 4: // TABLE_ID - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.tableId = iprot.readString(); - struct.setTableIdIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 5: // AGE - if (schemeField.type == org.apache.thrift.protocol.TType.I64) { - struct.age = iprot.readI64(); - struct.setAgeIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 6: // IDLE_TIME - if (schemeField.type == org.apache.thrift.protocol.TType.I64) { - struct.idleTime = iprot.readI64(); - struct.setIdleTimeIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 7: // TYPE - if (schemeField.type == org.apache.thrift.protocol.TType.I32) { - struct.type = org.apache.accumulo.core.tabletscan.thrift.ScanType.findByValue(iprot.readI32()); - struct.setTypeIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 8: // STATE - if (schemeField.type == org.apache.thrift.protocol.TType.I32) { - struct.state = org.apache.accumulo.core.tabletscan.thrift.ScanState.findByValue(iprot.readI32()); - struct.setStateIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 9: // EXTENT - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.extent = new org.apache.accumulo.core.dataImpl.thrift.TKeyExtent(); - struct.extent.read(iprot); - struct.setExtentIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } + iprot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; - case 10: // COLUMNS - if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { - { - org.apache.thrift.protocol.TList _list10 = iprot.readListBegin(); - struct.columns = new java.util.ArrayList(_list10.size); - @org.apache.thrift.annotation.Nullable org.apache.accumulo.core.dataImpl.thrift.TColumn _elem11; - for (int _i12 = 0; _i12 < _list10.size; ++_i12) + } + switch (schemeField.id) { + case 2: // CLIENT + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.client = iprot.readString(); + struct.setClientIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 3: // USER + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.user = iprot.readString(); + struct.setUserIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 4: // TABLE_ID + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.tableId = iprot.readString(); + struct.setTableIdIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 5: // AGE + if (schemeField.type == org.apache.thrift.protocol.TType.I64) { + struct.age = iprot.readI64(); + struct.setAgeIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 6: // IDLE_TIME + if (schemeField.type == org.apache.thrift.protocol.TType.I64) { + struct.idleTime = iprot.readI64(); + struct.setIdleTimeIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 7: // TYPE + if (schemeField.type == org.apache.thrift.protocol.TType.I32) { + struct.type = org.apache.accumulo.core.tabletscan.thrift.ScanType.findByValue(iprot.readI32()); + struct.setTypeIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 8: // STATE + if (schemeField.type == org.apache.thrift.protocol.TType.I32) { + struct.state = org.apache.accumulo.core.tabletscan.thrift.ScanState.findByValue(iprot.readI32()); + struct.setStateIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 9: // EXTENT + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.extent = new org.apache.accumulo.core.dataImpl.thrift.TKeyExtent(); + struct.extent.read(iprot); + struct.setExtentIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 10: // COLUMNS + if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - _elem11 = new org.apache.accumulo.core.dataImpl.thrift.TColumn(); - _elem11.read(iprot); - struct.columns.add(_elem11); + org.apache.thrift.protocol.TList _list10 = iprot.readListBegin(); + struct.columns = new java.util.ArrayList(_list10.size); + @org.apache.thrift.annotation.Nullable org.apache.accumulo.core.dataImpl.thrift.TColumn _elem11; + for (int _i12 = 0; _i12 < _list10.size; ++_i12) + { + _elem11 = new org.apache.accumulo.core.dataImpl.thrift.TColumn(); + _elem11.read(iprot); + struct.columns.add(_elem11); + } + iprot.readListEnd(); } - iprot.readListEnd(); + struct.setColumnsIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } - struct.setColumnsIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 11: // SSI_LIST - if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { - { - org.apache.thrift.protocol.TList _list13 = iprot.readListBegin(); - struct.ssiList = new java.util.ArrayList(_list13.size); - @org.apache.thrift.annotation.Nullable org.apache.accumulo.core.dataImpl.thrift.IterInfo _elem14; - for (int _i15 = 0; _i15 < _list13.size; ++_i15) + break; + case 11: // SSI_LIST + if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - _elem14 = new org.apache.accumulo.core.dataImpl.thrift.IterInfo(); - _elem14.read(iprot); - struct.ssiList.add(_elem14); + org.apache.thrift.protocol.TList _list13 = iprot.readListBegin(); + struct.ssiList = new java.util.ArrayList(_list13.size); + @org.apache.thrift.annotation.Nullable org.apache.accumulo.core.dataImpl.thrift.IterInfo _elem14; + for (int _i15 = 0; _i15 < _list13.size; ++_i15) + { + _elem14 = new org.apache.accumulo.core.dataImpl.thrift.IterInfo(); + _elem14.read(iprot); + struct.ssiList.add(_elem14); + } + iprot.readListEnd(); } - iprot.readListEnd(); + struct.setSsiListIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } - struct.setSsiListIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 12: // SSIO - if (schemeField.type == org.apache.thrift.protocol.TType.MAP) { - { - org.apache.thrift.protocol.TMap _map16 = iprot.readMapBegin(); - struct.ssio = new java.util.HashMap>(2*_map16.size); - @org.apache.thrift.annotation.Nullable java.lang.String _key17; - @org.apache.thrift.annotation.Nullable java.util.Map _val18; - for (int _i19 = 0; _i19 < _map16.size; ++_i19) + break; + case 12: // SSIO + if (schemeField.type == org.apache.thrift.protocol.TType.MAP) { { - _key17 = iprot.readString(); + org.apache.thrift.protocol.TMap _map16 = iprot.readMapBegin(); + struct.ssio = new java.util.HashMap>(2*_map16.size); + @org.apache.thrift.annotation.Nullable java.lang.String _key17; + @org.apache.thrift.annotation.Nullable java.util.Map _val18; + for (int _i19 = 0; _i19 < _map16.size; ++_i19) { - org.apache.thrift.protocol.TMap _map20 = iprot.readMapBegin(); - _val18 = new java.util.HashMap(2*_map20.size); - @org.apache.thrift.annotation.Nullable java.lang.String _key21; - @org.apache.thrift.annotation.Nullable java.lang.String _val22; - for (int _i23 = 0; _i23 < _map20.size; ++_i23) + _key17 = iprot.readString(); { - _key21 = iprot.readString(); - _val22 = iprot.readString(); - _val18.put(_key21, _val22); + org.apache.thrift.protocol.TMap _map20 = iprot.readMapBegin(); + _val18 = new java.util.HashMap(2*_map20.size); + @org.apache.thrift.annotation.Nullable java.lang.String _key21; + @org.apache.thrift.annotation.Nullable java.lang.String _val22; + for (int _i23 = 0; _i23 < _map20.size; ++_i23) + { + _key21 = iprot.readString(); + _val22 = iprot.readString(); + _val18.put(_key21, _val22); + } + iprot.readMapEnd(); } - iprot.readMapEnd(); + struct.ssio.put(_key17, _val18); } - struct.ssio.put(_key17, _val18); + iprot.readMapEnd(); } - iprot.readMapEnd(); + struct.setSsioIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } - struct.setSsioIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 13: // AUTHORIZATIONS - if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { - { - org.apache.thrift.protocol.TList _list24 = iprot.readListBegin(); - struct.authorizations = new java.util.ArrayList(_list24.size); - @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer _elem25; - for (int _i26 = 0; _i26 < _list24.size; ++_i26) + break; + case 13: // AUTHORIZATIONS + if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - _elem25 = iprot.readBinary(); - struct.authorizations.add(_elem25); + org.apache.thrift.protocol.TList _list24 = iprot.readListBegin(); + struct.authorizations = new java.util.ArrayList(_list24.size); + @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer _elem25; + for (int _i26 = 0; _i26 < _list24.size; ++_i26) + { + _elem25 = iprot.readBinary(); + struct.authorizations.add(_elem25); + } + iprot.readListEnd(); } - iprot.readListEnd(); + struct.setAuthorizationsIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } - struct.setAuthorizationsIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 14: // SCAN_ID - if (schemeField.type == org.apache.thrift.protocol.TType.I64) { - struct.scanId = iprot.readI64(); - struct.setScanIdIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 15: // CLASS_LOADER_CONTEXT - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.classLoaderContext = iprot.readString(); - struct.setClassLoaderContextIsSet(true); - } else { + break; + case 14: // SCAN_ID + if (schemeField.type == org.apache.thrift.protocol.TType.I64) { + struct.scanId = iprot.readI64(); + struct.setScanIdIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 15: // CLASS_LOADER_CONTEXT + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.classLoaderContext = iprot.readString(); + struct.setClassLoaderContextIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - default: - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); } - iprot.readFieldEnd(); - } - iprot.readStructEnd(); + iprot.readStructEnd(); - // check for required fields of primitive type, which can't be checked in the validate method - struct.validate(); + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } finally { + iprot.decrementRecursionDepth(); + } } @Override @@ -1931,115 +1936,120 @@ public void write(org.apache.thrift.protocol.TProtocol prot, ActiveScan struct) @Override public void read(org.apache.thrift.protocol.TProtocol prot, ActiveScan struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; - java.util.BitSet incoming = iprot.readBitSet(14); - if (incoming.get(0)) { - struct.client = iprot.readString(); - struct.setClientIsSet(true); - } - if (incoming.get(1)) { - struct.user = iprot.readString(); - struct.setUserIsSet(true); - } - if (incoming.get(2)) { - struct.tableId = iprot.readString(); - struct.setTableIdIsSet(true); - } - if (incoming.get(3)) { - struct.age = iprot.readI64(); - struct.setAgeIsSet(true); - } - if (incoming.get(4)) { - struct.idleTime = iprot.readI64(); - struct.setIdleTimeIsSet(true); - } - if (incoming.get(5)) { - struct.type = org.apache.accumulo.core.tabletscan.thrift.ScanType.findByValue(iprot.readI32()); - struct.setTypeIsSet(true); - } - if (incoming.get(6)) { - struct.state = org.apache.accumulo.core.tabletscan.thrift.ScanState.findByValue(iprot.readI32()); - struct.setStateIsSet(true); - } - if (incoming.get(7)) { - struct.extent = new org.apache.accumulo.core.dataImpl.thrift.TKeyExtent(); - struct.extent.read(iprot); - struct.setExtentIsSet(true); - } - if (incoming.get(8)) { - { - org.apache.thrift.protocol.TList _list37 = iprot.readListBegin(org.apache.thrift.protocol.TType.STRUCT); - struct.columns = new java.util.ArrayList(_list37.size); - @org.apache.thrift.annotation.Nullable org.apache.accumulo.core.dataImpl.thrift.TColumn _elem38; - for (int _i39 = 0; _i39 < _list37.size; ++_i39) + prot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(14); + if (incoming.get(0)) { + struct.client = iprot.readString(); + struct.setClientIsSet(true); + } + if (incoming.get(1)) { + struct.user = iprot.readString(); + struct.setUserIsSet(true); + } + if (incoming.get(2)) { + struct.tableId = iprot.readString(); + struct.setTableIdIsSet(true); + } + if (incoming.get(3)) { + struct.age = iprot.readI64(); + struct.setAgeIsSet(true); + } + if (incoming.get(4)) { + struct.idleTime = iprot.readI64(); + struct.setIdleTimeIsSet(true); + } + if (incoming.get(5)) { + struct.type = org.apache.accumulo.core.tabletscan.thrift.ScanType.findByValue(iprot.readI32()); + struct.setTypeIsSet(true); + } + if (incoming.get(6)) { + struct.state = org.apache.accumulo.core.tabletscan.thrift.ScanState.findByValue(iprot.readI32()); + struct.setStateIsSet(true); + } + if (incoming.get(7)) { + struct.extent = new org.apache.accumulo.core.dataImpl.thrift.TKeyExtent(); + struct.extent.read(iprot); + struct.setExtentIsSet(true); + } + if (incoming.get(8)) { { - _elem38 = new org.apache.accumulo.core.dataImpl.thrift.TColumn(); - _elem38.read(iprot); - struct.columns.add(_elem38); + org.apache.thrift.protocol.TList _list37 = iprot.readListBegin(org.apache.thrift.protocol.TType.STRUCT); + struct.columns = new java.util.ArrayList(_list37.size); + @org.apache.thrift.annotation.Nullable org.apache.accumulo.core.dataImpl.thrift.TColumn _elem38; + for (int _i39 = 0; _i39 < _list37.size; ++_i39) + { + _elem38 = new org.apache.accumulo.core.dataImpl.thrift.TColumn(); + _elem38.read(iprot); + struct.columns.add(_elem38); + } } + struct.setColumnsIsSet(true); } - struct.setColumnsIsSet(true); - } - if (incoming.get(9)) { - { - org.apache.thrift.protocol.TList _list40 = iprot.readListBegin(org.apache.thrift.protocol.TType.STRUCT); - struct.ssiList = new java.util.ArrayList(_list40.size); - @org.apache.thrift.annotation.Nullable org.apache.accumulo.core.dataImpl.thrift.IterInfo _elem41; - for (int _i42 = 0; _i42 < _list40.size; ++_i42) + if (incoming.get(9)) { { - _elem41 = new org.apache.accumulo.core.dataImpl.thrift.IterInfo(); - _elem41.read(iprot); - struct.ssiList.add(_elem41); + org.apache.thrift.protocol.TList _list40 = iprot.readListBegin(org.apache.thrift.protocol.TType.STRUCT); + struct.ssiList = new java.util.ArrayList(_list40.size); + @org.apache.thrift.annotation.Nullable org.apache.accumulo.core.dataImpl.thrift.IterInfo _elem41; + for (int _i42 = 0; _i42 < _list40.size; ++_i42) + { + _elem41 = new org.apache.accumulo.core.dataImpl.thrift.IterInfo(); + _elem41.read(iprot); + struct.ssiList.add(_elem41); + } } + struct.setSsiListIsSet(true); } - struct.setSsiListIsSet(true); - } - if (incoming.get(10)) { - { - org.apache.thrift.protocol.TMap _map43 = iprot.readMapBegin(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.MAP); - struct.ssio = new java.util.HashMap>(2*_map43.size); - @org.apache.thrift.annotation.Nullable java.lang.String _key44; - @org.apache.thrift.annotation.Nullable java.util.Map _val45; - for (int _i46 = 0; _i46 < _map43.size; ++_i46) + if (incoming.get(10)) { { - _key44 = iprot.readString(); + org.apache.thrift.protocol.TMap _map43 = iprot.readMapBegin(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.MAP); + struct.ssio = new java.util.HashMap>(2*_map43.size); + @org.apache.thrift.annotation.Nullable java.lang.String _key44; + @org.apache.thrift.annotation.Nullable java.util.Map _val45; + for (int _i46 = 0; _i46 < _map43.size; ++_i46) { - org.apache.thrift.protocol.TMap _map47 = iprot.readMapBegin(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING); - _val45 = new java.util.HashMap(2*_map47.size); - @org.apache.thrift.annotation.Nullable java.lang.String _key48; - @org.apache.thrift.annotation.Nullable java.lang.String _val49; - for (int _i50 = 0; _i50 < _map47.size; ++_i50) + _key44 = iprot.readString(); { - _key48 = iprot.readString(); - _val49 = iprot.readString(); - _val45.put(_key48, _val49); + org.apache.thrift.protocol.TMap _map47 = iprot.readMapBegin(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING); + _val45 = new java.util.HashMap(2*_map47.size); + @org.apache.thrift.annotation.Nullable java.lang.String _key48; + @org.apache.thrift.annotation.Nullable java.lang.String _val49; + for (int _i50 = 0; _i50 < _map47.size; ++_i50) + { + _key48 = iprot.readString(); + _val49 = iprot.readString(); + _val45.put(_key48, _val49); + } } + struct.ssio.put(_key44, _val45); } - struct.ssio.put(_key44, _val45); } + struct.setSsioIsSet(true); } - struct.setSsioIsSet(true); - } - if (incoming.get(11)) { - { - org.apache.thrift.protocol.TList _list51 = iprot.readListBegin(org.apache.thrift.protocol.TType.STRING); - struct.authorizations = new java.util.ArrayList(_list51.size); - @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer _elem52; - for (int _i53 = 0; _i53 < _list51.size; ++_i53) + if (incoming.get(11)) { { - _elem52 = iprot.readBinary(); - struct.authorizations.add(_elem52); + org.apache.thrift.protocol.TList _list51 = iprot.readListBegin(org.apache.thrift.protocol.TType.STRING); + struct.authorizations = new java.util.ArrayList(_list51.size); + @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer _elem52; + for (int _i53 = 0; _i53 < _list51.size; ++_i53) + { + _elem52 = iprot.readBinary(); + struct.authorizations.add(_elem52); + } } + struct.setAuthorizationsIsSet(true); } - struct.setAuthorizationsIsSet(true); - } - if (incoming.get(12)) { - struct.scanId = iprot.readI64(); - struct.setScanIdIsSet(true); - } - if (incoming.get(13)) { - struct.classLoaderContext = iprot.readString(); - struct.setClassLoaderContextIsSet(true); + if (incoming.get(12)) { + struct.scanId = iprot.readI64(); + struct.setScanIdIsSet(true); + } + if (incoming.get(13)) { + struct.classLoaderContext = iprot.readString(); + struct.setClassLoaderContextIsSet(true); + } + } finally { + prot.decrementRecursionDepth(); } } } diff --git a/core/src/main/thrift-gen-java/org/apache/accumulo/core/tabletscan/thrift/ScanServerBusyException.java b/core/src/main/thrift-gen-java/org/apache/accumulo/core/tabletscan/thrift/ScanServerBusyException.java index a0ac4b5cf49..48dfbb9f612 100644 --- a/core/src/main/thrift-gen-java/org/apache/accumulo/core/tabletscan/thrift/ScanServerBusyException.java +++ b/core/src/main/thrift-gen-java/org/apache/accumulo/core/tabletscan/thrift/ScanServerBusyException.java @@ -17,7 +17,7 @@ * under the License. */ /* - * Autogenerated by Thrift Compiler (0.17.0) + * Autogenerated by Thrift Compiler (0.23.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -234,24 +234,29 @@ private static class ScanServerBusyExceptionStandardScheme extends org.apache.th @Override public void read(org.apache.thrift.protocol.TProtocol iprot, ScanServerBusyException struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TField schemeField; - iprot.readStructBegin(); - while (true) - { - schemeField = iprot.readFieldBegin(); - if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { - break; + iprot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { + break; + } + switch (schemeField.id) { + default: + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); } - switch (schemeField.id) { - default: - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - iprot.readFieldEnd(); - } - iprot.readStructEnd(); + iprot.readStructEnd(); - // check for required fields of primitive type, which can't be checked in the validate method - struct.validate(); + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } finally { + iprot.decrementRecursionDepth(); + } } @Override @@ -281,7 +286,12 @@ public void write(org.apache.thrift.protocol.TProtocol prot, ScanServerBusyExcep @Override public void read(org.apache.thrift.protocol.TProtocol prot, ScanServerBusyException struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + prot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + } finally { + prot.decrementRecursionDepth(); + } } } diff --git a/core/src/main/thrift-gen-java/org/apache/accumulo/core/tabletscan/thrift/ScanState.java b/core/src/main/thrift-gen-java/org/apache/accumulo/core/tabletscan/thrift/ScanState.java index 612d21d0581..19eec601d3f 100644 --- a/core/src/main/thrift-gen-java/org/apache/accumulo/core/tabletscan/thrift/ScanState.java +++ b/core/src/main/thrift-gen-java/org/apache/accumulo/core/tabletscan/thrift/ScanState.java @@ -17,7 +17,7 @@ * under the License. */ /* - * Autogenerated by Thrift Compiler (0.17.0) + * Autogenerated by Thrift Compiler (0.23.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated diff --git a/core/src/main/thrift-gen-java/org/apache/accumulo/core/tabletscan/thrift/ScanType.java b/core/src/main/thrift-gen-java/org/apache/accumulo/core/tabletscan/thrift/ScanType.java index 3600eb32c92..9c599965ad6 100644 --- a/core/src/main/thrift-gen-java/org/apache/accumulo/core/tabletscan/thrift/ScanType.java +++ b/core/src/main/thrift-gen-java/org/apache/accumulo/core/tabletscan/thrift/ScanType.java @@ -17,7 +17,7 @@ * under the License. */ /* - * Autogenerated by Thrift Compiler (0.17.0) + * Autogenerated by Thrift Compiler (0.23.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated diff --git a/core/src/main/thrift-gen-java/org/apache/accumulo/core/tabletscan/thrift/TSampleNotPresentException.java b/core/src/main/thrift-gen-java/org/apache/accumulo/core/tabletscan/thrift/TSampleNotPresentException.java index 92a5920fa49..fdc2a9a4560 100644 --- a/core/src/main/thrift-gen-java/org/apache/accumulo/core/tabletscan/thrift/TSampleNotPresentException.java +++ b/core/src/main/thrift-gen-java/org/apache/accumulo/core/tabletscan/thrift/TSampleNotPresentException.java @@ -17,7 +17,7 @@ * under the License. */ /* - * Autogenerated by Thrift Compiler (0.17.0) + * Autogenerated by Thrift Compiler (0.23.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -324,33 +324,38 @@ private static class TSampleNotPresentExceptionStandardScheme extends org.apache @Override public void read(org.apache.thrift.protocol.TProtocol iprot, TSampleNotPresentException struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TField schemeField; - iprot.readStructBegin(); - while (true) - { - schemeField = iprot.readFieldBegin(); - if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { - break; - } - switch (schemeField.id) { - case 1: // EXTENT - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.extent = new org.apache.accumulo.core.dataImpl.thrift.TKeyExtent(); - struct.extent.read(iprot); - struct.setExtentIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } + iprot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; - default: - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + switch (schemeField.id) { + case 1: // EXTENT + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.extent = new org.apache.accumulo.core.dataImpl.thrift.TKeyExtent(); + struct.extent.read(iprot); + struct.setExtentIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + default: + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); } - iprot.readFieldEnd(); - } - iprot.readStructEnd(); + iprot.readStructEnd(); - // check for required fields of primitive type, which can't be checked in the validate method - struct.validate(); + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } finally { + iprot.decrementRecursionDepth(); + } } @Override @@ -393,12 +398,17 @@ public void write(org.apache.thrift.protocol.TProtocol prot, TSampleNotPresentEx @Override public void read(org.apache.thrift.protocol.TProtocol prot, TSampleNotPresentException struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; - java.util.BitSet incoming = iprot.readBitSet(1); - if (incoming.get(0)) { - struct.extent = new org.apache.accumulo.core.dataImpl.thrift.TKeyExtent(); - struct.extent.read(iprot); - struct.setExtentIsSet(true); + prot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(1); + if (incoming.get(0)) { + struct.extent = new org.apache.accumulo.core.dataImpl.thrift.TKeyExtent(); + struct.extent.read(iprot); + struct.setExtentIsSet(true); + } + } finally { + prot.decrementRecursionDepth(); } } } diff --git a/core/src/main/thrift-gen-java/org/apache/accumulo/core/tabletscan/thrift/TSamplerConfiguration.java b/core/src/main/thrift-gen-java/org/apache/accumulo/core/tabletscan/thrift/TSamplerConfiguration.java index cd74c50cc28..086ec06b020 100644 --- a/core/src/main/thrift-gen-java/org/apache/accumulo/core/tabletscan/thrift/TSamplerConfiguration.java +++ b/core/src/main/thrift-gen-java/org/apache/accumulo/core/tabletscan/thrift/TSamplerConfiguration.java @@ -17,7 +17,7 @@ * under the License. */ /* - * Autogenerated by Thrift Compiler (0.17.0) + * Autogenerated by Thrift Compiler (0.23.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -417,52 +417,57 @@ private static class TSamplerConfigurationStandardScheme extends org.apache.thri @Override public void read(org.apache.thrift.protocol.TProtocol iprot, TSamplerConfiguration struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TField schemeField; - iprot.readStructBegin(); - while (true) - { - schemeField = iprot.readFieldBegin(); - if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { - break; - } - switch (schemeField.id) { - case 1: // CLASS_NAME - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.className = iprot.readString(); - struct.setClassNameIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } + iprot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; - case 2: // OPTIONS - if (schemeField.type == org.apache.thrift.protocol.TType.MAP) { - { - org.apache.thrift.protocol.TMap _map0 = iprot.readMapBegin(); - struct.options = new java.util.HashMap(2*_map0.size); - @org.apache.thrift.annotation.Nullable java.lang.String _key1; - @org.apache.thrift.annotation.Nullable java.lang.String _val2; - for (int _i3 = 0; _i3 < _map0.size; ++_i3) + } + switch (schemeField.id) { + case 1: // CLASS_NAME + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.className = iprot.readString(); + struct.setClassNameIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 2: // OPTIONS + if (schemeField.type == org.apache.thrift.protocol.TType.MAP) { { - _key1 = iprot.readString(); - _val2 = iprot.readString(); - struct.options.put(_key1, _val2); + org.apache.thrift.protocol.TMap _map0 = iprot.readMapBegin(); + struct.options = new java.util.HashMap(2*_map0.size); + @org.apache.thrift.annotation.Nullable java.lang.String _key1; + @org.apache.thrift.annotation.Nullable java.lang.String _val2; + for (int _i3 = 0; _i3 < _map0.size; ++_i3) + { + _key1 = iprot.readString(); + _val2 = iprot.readString(); + struct.options.put(_key1, _val2); + } + iprot.readMapEnd(); } - iprot.readMapEnd(); + struct.setOptionsIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } - struct.setOptionsIsSet(true); - } else { + break; + default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - default: - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); } - iprot.readFieldEnd(); - } - iprot.readStructEnd(); + iprot.readStructEnd(); - // check for required fields of primitive type, which can't be checked in the validate method - struct.validate(); + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } finally { + iprot.decrementRecursionDepth(); + } } @Override @@ -531,26 +536,31 @@ public void write(org.apache.thrift.protocol.TProtocol prot, TSamplerConfigurati @Override public void read(org.apache.thrift.protocol.TProtocol prot, TSamplerConfiguration struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; - java.util.BitSet incoming = iprot.readBitSet(2); - if (incoming.get(0)) { - struct.className = iprot.readString(); - struct.setClassNameIsSet(true); - } - if (incoming.get(1)) { - { - org.apache.thrift.protocol.TMap _map6 = iprot.readMapBegin(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING); - struct.options = new java.util.HashMap(2*_map6.size); - @org.apache.thrift.annotation.Nullable java.lang.String _key7; - @org.apache.thrift.annotation.Nullable java.lang.String _val8; - for (int _i9 = 0; _i9 < _map6.size; ++_i9) + prot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(2); + if (incoming.get(0)) { + struct.className = iprot.readString(); + struct.setClassNameIsSet(true); + } + if (incoming.get(1)) { { - _key7 = iprot.readString(); - _val8 = iprot.readString(); - struct.options.put(_key7, _val8); + org.apache.thrift.protocol.TMap _map6 = iprot.readMapBegin(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING); + struct.options = new java.util.HashMap(2*_map6.size); + @org.apache.thrift.annotation.Nullable java.lang.String _key7; + @org.apache.thrift.annotation.Nullable java.lang.String _val8; + for (int _i9 = 0; _i9 < _map6.size; ++_i9) + { + _key7 = iprot.readString(); + _val8 = iprot.readString(); + struct.options.put(_key7, _val8); + } } + struct.setOptionsIsSet(true); } - struct.setOptionsIsSet(true); + } finally { + prot.decrementRecursionDepth(); } } } diff --git a/core/src/main/thrift-gen-java/org/apache/accumulo/core/tabletscan/thrift/TabletScanClientService.java b/core/src/main/thrift-gen-java/org/apache/accumulo/core/tabletscan/thrift/TabletScanClientService.java index ae2f0645249..6e148b26756 100644 --- a/core/src/main/thrift-gen-java/org/apache/accumulo/core/tabletscan/thrift/TabletScanClientService.java +++ b/core/src/main/thrift-gen-java/org/apache/accumulo/core/tabletscan/thrift/TabletScanClientService.java @@ -17,7 +17,7 @@ * under the License. */ /* - * Autogenerated by Thrift Compiler (0.17.0) + * Autogenerated by Thrift Compiler (0.23.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -703,14 +703,14 @@ public java.util.List getResult() throws org.apache.accumulo.core.cl public static class Processor extends org.apache.thrift.TBaseProcessor implements org.apache.thrift.TProcessor { private static final org.slf4j.Logger _LOGGER = org.slf4j.LoggerFactory.getLogger(Processor.class.getName()); public Processor(I iface) { - super(iface, getProcessMap(new java.util.HashMap>())); + super(iface, getProcessMap(new java.util.HashMap>())); } - protected Processor(I iface, java.util.Map> processMap) { + protected Processor(I iface, java.util.Map> processMap) { super(iface, getProcessMap(processMap)); } - private static java.util.Map> getProcessMap(java.util.Map> processMap) { + private static java.util.Map> getProcessMap(java.util.Map> processMap) { processMap.put("startScan", new startScan()); processMap.put("continueScan", new continueScan()); processMap.put("closeScan", new closeScan()); @@ -721,7 +721,7 @@ protected Processor(I iface, java.util.Map extends org.apache.thrift.ProcessFunction { + public static class startScan extends org.apache.thrift.ProcessFunction { public startScan() { super("startScan"); } @@ -732,7 +732,7 @@ public startScan_args getEmptyArgsInstance() { } @Override - protected boolean isOneway() { + public boolean isOneway() { return false; } @@ -741,9 +741,14 @@ protected boolean rethrowUnhandledExceptions() { return false; } + @Override + public startScan_result getEmptyResultInstance() { + return new startScan_result(); + } + @Override public startScan_result getResult(I iface, startScan_args args) throws org.apache.thrift.TException { - startScan_result result = new startScan_result(); + startScan_result result = getEmptyResultInstance(); try { result.success = iface.startScan(args.tinfo, args.credentials, args.extent, args.range, args.columns, args.batchSize, args.ssiList, args.ssio, args.authorizations, args.waitForWrites, args.isolated, args.readaheadThreshold, args.samplerConfig, args.batchTimeOut, args.classLoaderContext, args.executionHints, args.busyTimeout); } catch (org.apache.accumulo.core.clientImpl.thrift.ThriftSecurityException sec) { @@ -761,7 +766,7 @@ public startScan_result getResult(I iface, startScan_args args) throws org.apach } } - public static class continueScan extends org.apache.thrift.ProcessFunction { + public static class continueScan extends org.apache.thrift.ProcessFunction { public continueScan() { super("continueScan"); } @@ -772,7 +777,7 @@ public continueScan_args getEmptyArgsInstance() { } @Override - protected boolean isOneway() { + public boolean isOneway() { return false; } @@ -781,9 +786,14 @@ protected boolean rethrowUnhandledExceptions() { return false; } + @Override + public continueScan_result getEmptyResultInstance() { + return new continueScan_result(); + } + @Override public continueScan_result getResult(I iface, continueScan_args args) throws org.apache.thrift.TException { - continueScan_result result = new continueScan_result(); + continueScan_result result = getEmptyResultInstance(); try { result.success = iface.continueScan(args.tinfo, args.scanID, args.busyTimeout); } catch (org.apache.accumulo.core.tabletserver.thrift.NoSuchScanIDException nssi) { @@ -801,7 +811,7 @@ public continueScan_result getResult(I iface, continueScan_args args) throws org } } - public static class closeScan extends org.apache.thrift.ProcessFunction { + public static class closeScan extends org.apache.thrift.ProcessFunction { public closeScan() { super("closeScan"); } @@ -812,7 +822,7 @@ public closeScan_args getEmptyArgsInstance() { } @Override - protected boolean isOneway() { + public boolean isOneway() { return true; } @@ -821,6 +831,11 @@ protected boolean rethrowUnhandledExceptions() { return false; } + @Override + public org.apache.thrift.TBase getEmptyResultInstance() { + return null; + } + @Override public org.apache.thrift.TBase getResult(I iface, closeScan_args args) throws org.apache.thrift.TException { iface.closeScan(args.tinfo, args.scanID); @@ -828,7 +843,7 @@ public org.apache.thrift.TBase getResult(I iface, closeScan_args args) throws or } } - public static class startMultiScan extends org.apache.thrift.ProcessFunction { + public static class startMultiScan extends org.apache.thrift.ProcessFunction { public startMultiScan() { super("startMultiScan"); } @@ -839,7 +854,7 @@ public startMultiScan_args getEmptyArgsInstance() { } @Override - protected boolean isOneway() { + public boolean isOneway() { return false; } @@ -848,9 +863,14 @@ protected boolean rethrowUnhandledExceptions() { return false; } + @Override + public startMultiScan_result getEmptyResultInstance() { + return new startMultiScan_result(); + } + @Override public startMultiScan_result getResult(I iface, startMultiScan_args args) throws org.apache.thrift.TException { - startMultiScan_result result = new startMultiScan_result(); + startMultiScan_result result = getEmptyResultInstance(); try { result.success = iface.startMultiScan(args.tinfo, args.credentials, args.batch, args.columns, args.ssiList, args.ssio, args.authorizations, args.waitForWrites, args.samplerConfig, args.batchTimeOut, args.classLoaderContext, args.executionHints, args.busyTimeout); } catch (org.apache.accumulo.core.clientImpl.thrift.ThriftSecurityException sec) { @@ -864,7 +884,7 @@ public startMultiScan_result getResult(I iface, startMultiScan_args args) throws } } - public static class continueMultiScan extends org.apache.thrift.ProcessFunction { + public static class continueMultiScan extends org.apache.thrift.ProcessFunction { public continueMultiScan() { super("continueMultiScan"); } @@ -875,7 +895,7 @@ public continueMultiScan_args getEmptyArgsInstance() { } @Override - protected boolean isOneway() { + public boolean isOneway() { return false; } @@ -884,9 +904,14 @@ protected boolean rethrowUnhandledExceptions() { return false; } + @Override + public continueMultiScan_result getEmptyResultInstance() { + return new continueMultiScan_result(); + } + @Override public continueMultiScan_result getResult(I iface, continueMultiScan_args args) throws org.apache.thrift.TException { - continueMultiScan_result result = new continueMultiScan_result(); + continueMultiScan_result result = getEmptyResultInstance(); try { result.success = iface.continueMultiScan(args.tinfo, args.scanID, args.busyTimeout); } catch (org.apache.accumulo.core.tabletserver.thrift.NoSuchScanIDException nssi) { @@ -900,7 +925,7 @@ public continueMultiScan_result getResult(I iface, continueMultiScan_args args) } } - public static class closeMultiScan extends org.apache.thrift.ProcessFunction { + public static class closeMultiScan extends org.apache.thrift.ProcessFunction { public closeMultiScan() { super("closeMultiScan"); } @@ -911,7 +936,7 @@ public closeMultiScan_args getEmptyArgsInstance() { } @Override - protected boolean isOneway() { + public boolean isOneway() { return false; } @@ -920,9 +945,14 @@ protected boolean rethrowUnhandledExceptions() { return false; } + @Override + public closeMultiScan_result getEmptyResultInstance() { + return new closeMultiScan_result(); + } + @Override public closeMultiScan_result getResult(I iface, closeMultiScan_args args) throws org.apache.thrift.TException { - closeMultiScan_result result = new closeMultiScan_result(); + closeMultiScan_result result = getEmptyResultInstance(); try { iface.closeMultiScan(args.tinfo, args.scanID); } catch (org.apache.accumulo.core.tabletserver.thrift.NoSuchScanIDException nssi) { @@ -932,7 +962,7 @@ public closeMultiScan_result getResult(I iface, closeMultiScan_args args) throws } } - public static class getActiveScans extends org.apache.thrift.ProcessFunction { + public static class getActiveScans extends org.apache.thrift.ProcessFunction { public getActiveScans() { super("getActiveScans"); } @@ -943,7 +973,7 @@ public getActiveScans_args getEmptyArgsInstance() { } @Override - protected boolean isOneway() { + public boolean isOneway() { return false; } @@ -952,9 +982,14 @@ protected boolean rethrowUnhandledExceptions() { return false; } + @Override + public getActiveScans_result getEmptyResultInstance() { + return new getActiveScans_result(); + } + @Override public getActiveScans_result getResult(I iface, getActiveScans_args args) throws org.apache.thrift.TException { - getActiveScans_result result = new getActiveScans_result(); + getActiveScans_result result = getEmptyResultInstance(); try { result.success = iface.getActiveScans(args.tinfo, args.credentials); } catch (org.apache.accumulo.core.clientImpl.thrift.ThriftSecurityException sec) { @@ -969,14 +1004,14 @@ public getActiveScans_result getResult(I iface, getActiveScans_args args) throws public static class AsyncProcessor extends org.apache.thrift.TBaseAsyncProcessor { private static final org.slf4j.Logger _LOGGER = org.slf4j.LoggerFactory.getLogger(AsyncProcessor.class.getName()); public AsyncProcessor(I iface) { - super(iface, getProcessMap(new java.util.HashMap>())); + super(iface, getProcessMap(new java.util.HashMap>())); } - protected AsyncProcessor(I iface, java.util.Map> processMap) { + protected AsyncProcessor(I iface, java.util.Map> processMap) { super(iface, getProcessMap(processMap)); } - private static java.util.Map> getProcessMap(java.util.Map> processMap) { + private static java.util.Map> getProcessMap(java.util.Map> processMap) { processMap.put("startScan", new startScan()); processMap.put("continueScan", new continueScan()); processMap.put("closeScan", new closeScan()); @@ -987,11 +1022,16 @@ protected AsyncProcessor(I iface, java.util.Map extends org.apache.thrift.AsyncProcessFunction { + public static class startScan extends org.apache.thrift.AsyncProcessFunction { public startScan() { super("startScan"); } + @Override + public startScan_result getEmptyResultInstance() { + return new startScan_result(); + } + @Override public startScan_args getEmptyArgsInstance() { return new startScan_args(); @@ -1064,7 +1104,7 @@ public void onError(java.lang.Exception e) { } @Override - protected boolean isOneway() { + public boolean isOneway() { return false; } @@ -1074,11 +1114,16 @@ public void start(I iface, startScan_args args, org.apache.thrift.async.AsyncMet } } - public static class continueScan extends org.apache.thrift.AsyncProcessFunction { + public static class continueScan extends org.apache.thrift.AsyncProcessFunction { public continueScan() { super("continueScan"); } + @Override + public continueScan_result getEmptyResultInstance() { + return new continueScan_result(); + } + @Override public continueScan_args getEmptyArgsInstance() { return new continueScan_args(); @@ -1151,7 +1196,7 @@ public void onError(java.lang.Exception e) { } @Override - protected boolean isOneway() { + public boolean isOneway() { return false; } @@ -1161,11 +1206,16 @@ public void start(I iface, continueScan_args args, org.apache.thrift.async.Async } } - public static class closeScan extends org.apache.thrift.AsyncProcessFunction { + public static class closeScan extends org.apache.thrift.AsyncProcessFunction { public closeScan() { super("closeScan"); } + @Override + public org.apache.thrift.TBase getEmptyResultInstance() { + return null; + } + @Override public closeScan_args getEmptyArgsInstance() { return new closeScan_args(); @@ -1191,7 +1241,7 @@ public void onError(java.lang.Exception e) { } @Override - protected boolean isOneway() { + public boolean isOneway() { return true; } @@ -1201,11 +1251,16 @@ public void start(I iface, closeScan_args args, org.apache.thrift.async.AsyncMet } } - public static class startMultiScan extends org.apache.thrift.AsyncProcessFunction { + public static class startMultiScan extends org.apache.thrift.AsyncProcessFunction { public startMultiScan() { super("startMultiScan"); } + @Override + public startMultiScan_result getEmptyResultInstance() { + return new startMultiScan_result(); + } + @Override public startMultiScan_args getEmptyArgsInstance() { return new startMultiScan_args(); @@ -1270,7 +1325,7 @@ public void onError(java.lang.Exception e) { } @Override - protected boolean isOneway() { + public boolean isOneway() { return false; } @@ -1280,11 +1335,16 @@ public void start(I iface, startMultiScan_args args, org.apache.thrift.async.Asy } } - public static class continueMultiScan extends org.apache.thrift.AsyncProcessFunction { + public static class continueMultiScan extends org.apache.thrift.AsyncProcessFunction { public continueMultiScan() { super("continueMultiScan"); } + @Override + public continueMultiScan_result getEmptyResultInstance() { + return new continueMultiScan_result(); + } + @Override public continueMultiScan_args getEmptyArgsInstance() { return new continueMultiScan_args(); @@ -1349,7 +1409,7 @@ public void onError(java.lang.Exception e) { } @Override - protected boolean isOneway() { + public boolean isOneway() { return false; } @@ -1359,11 +1419,16 @@ public void start(I iface, continueMultiScan_args args, org.apache.thrift.async. } } - public static class closeMultiScan extends org.apache.thrift.AsyncProcessFunction { + public static class closeMultiScan extends org.apache.thrift.AsyncProcessFunction { public closeMultiScan() { super("closeMultiScan"); } + @Override + public closeMultiScan_result getEmptyResultInstance() { + return new closeMultiScan_result(); + } + @Override public closeMultiScan_args getEmptyArgsInstance() { return new closeMultiScan_args(); @@ -1419,7 +1484,7 @@ public void onError(java.lang.Exception e) { } @Override - protected boolean isOneway() { + public boolean isOneway() { return false; } @@ -1429,11 +1494,16 @@ public void start(I iface, closeMultiScan_args args, org.apache.thrift.async.Asy } } - public static class getActiveScans extends org.apache.thrift.AsyncProcessFunction> { + public static class getActiveScans extends org.apache.thrift.AsyncProcessFunction, getActiveScans_result> { public getActiveScans() { super("getActiveScans"); } + @Override + public getActiveScans_result getEmptyResultInstance() { + return new getActiveScans_result(); + } + @Override public getActiveScans_args getEmptyArgsInstance() { return new getActiveScans_args(); @@ -1490,7 +1560,7 @@ public void onError(java.lang.Exception e) { } @Override - protected boolean isOneway() { + public boolean isOneway() { return false; } @@ -3189,233 +3259,238 @@ private static class startScan_argsStandardScheme extends org.apache.thrift.sche @Override public void read(org.apache.thrift.protocol.TProtocol iprot, startScan_args struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TField schemeField; - iprot.readStructBegin(); - while (true) - { - schemeField = iprot.readFieldBegin(); - if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { - break; - } - switch (schemeField.id) { - case 11: // TINFO - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.tinfo = new org.apache.accumulo.core.clientImpl.thrift.TInfo(); - struct.tinfo.read(iprot); - struct.setTinfoIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 1: // CREDENTIALS - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); - struct.credentials.read(iprot); - struct.setCredentialsIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 2: // EXTENT - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.extent = new org.apache.accumulo.core.dataImpl.thrift.TKeyExtent(); - struct.extent.read(iprot); - struct.setExtentIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 3: // RANGE - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.range = new org.apache.accumulo.core.dataImpl.thrift.TRange(); - struct.range.read(iprot); - struct.setRangeIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } + iprot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; - case 4: // COLUMNS - if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { - { - org.apache.thrift.protocol.TList _list54 = iprot.readListBegin(); - struct.columns = new java.util.ArrayList(_list54.size); - @org.apache.thrift.annotation.Nullable org.apache.accumulo.core.dataImpl.thrift.TColumn _elem55; - for (int _i56 = 0; _i56 < _list54.size; ++_i56) + } + switch (schemeField.id) { + case 11: // TINFO + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.tinfo = new org.apache.accumulo.core.clientImpl.thrift.TInfo(); + struct.tinfo.read(iprot); + struct.setTinfoIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 1: // CREDENTIALS + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); + struct.credentials.read(iprot); + struct.setCredentialsIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 2: // EXTENT + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.extent = new org.apache.accumulo.core.dataImpl.thrift.TKeyExtent(); + struct.extent.read(iprot); + struct.setExtentIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 3: // RANGE + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.range = new org.apache.accumulo.core.dataImpl.thrift.TRange(); + struct.range.read(iprot); + struct.setRangeIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 4: // COLUMNS + if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - _elem55 = new org.apache.accumulo.core.dataImpl.thrift.TColumn(); - _elem55.read(iprot); - struct.columns.add(_elem55); + org.apache.thrift.protocol.TList _list54 = iprot.readListBegin(); + struct.columns = new java.util.ArrayList(_list54.size); + @org.apache.thrift.annotation.Nullable org.apache.accumulo.core.dataImpl.thrift.TColumn _elem55; + for (int _i56 = 0; _i56 < _list54.size; ++_i56) + { + _elem55 = new org.apache.accumulo.core.dataImpl.thrift.TColumn(); + _elem55.read(iprot); + struct.columns.add(_elem55); + } + iprot.readListEnd(); } - iprot.readListEnd(); + struct.setColumnsIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } - struct.setColumnsIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 5: // BATCH_SIZE - if (schemeField.type == org.apache.thrift.protocol.TType.I32) { - struct.batchSize = iprot.readI32(); - struct.setBatchSizeIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 6: // SSI_LIST - if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { - { - org.apache.thrift.protocol.TList _list57 = iprot.readListBegin(); - struct.ssiList = new java.util.ArrayList(_list57.size); - @org.apache.thrift.annotation.Nullable org.apache.accumulo.core.dataImpl.thrift.IterInfo _elem58; - for (int _i59 = 0; _i59 < _list57.size; ++_i59) + break; + case 5: // BATCH_SIZE + if (schemeField.type == org.apache.thrift.protocol.TType.I32) { + struct.batchSize = iprot.readI32(); + struct.setBatchSizeIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 6: // SSI_LIST + if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - _elem58 = new org.apache.accumulo.core.dataImpl.thrift.IterInfo(); - _elem58.read(iprot); - struct.ssiList.add(_elem58); + org.apache.thrift.protocol.TList _list57 = iprot.readListBegin(); + struct.ssiList = new java.util.ArrayList(_list57.size); + @org.apache.thrift.annotation.Nullable org.apache.accumulo.core.dataImpl.thrift.IterInfo _elem58; + for (int _i59 = 0; _i59 < _list57.size; ++_i59) + { + _elem58 = new org.apache.accumulo.core.dataImpl.thrift.IterInfo(); + _elem58.read(iprot); + struct.ssiList.add(_elem58); + } + iprot.readListEnd(); } - iprot.readListEnd(); + struct.setSsiListIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } - struct.setSsiListIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 7: // SSIO - if (schemeField.type == org.apache.thrift.protocol.TType.MAP) { - { - org.apache.thrift.protocol.TMap _map60 = iprot.readMapBegin(); - struct.ssio = new java.util.HashMap>(2*_map60.size); - @org.apache.thrift.annotation.Nullable java.lang.String _key61; - @org.apache.thrift.annotation.Nullable java.util.Map _val62; - for (int _i63 = 0; _i63 < _map60.size; ++_i63) + break; + case 7: // SSIO + if (schemeField.type == org.apache.thrift.protocol.TType.MAP) { { - _key61 = iprot.readString(); + org.apache.thrift.protocol.TMap _map60 = iprot.readMapBegin(); + struct.ssio = new java.util.HashMap>(2*_map60.size); + @org.apache.thrift.annotation.Nullable java.lang.String _key61; + @org.apache.thrift.annotation.Nullable java.util.Map _val62; + for (int _i63 = 0; _i63 < _map60.size; ++_i63) { - org.apache.thrift.protocol.TMap _map64 = iprot.readMapBegin(); - _val62 = new java.util.HashMap(2*_map64.size); - @org.apache.thrift.annotation.Nullable java.lang.String _key65; - @org.apache.thrift.annotation.Nullable java.lang.String _val66; - for (int _i67 = 0; _i67 < _map64.size; ++_i67) + _key61 = iprot.readString(); { - _key65 = iprot.readString(); - _val66 = iprot.readString(); - _val62.put(_key65, _val66); + org.apache.thrift.protocol.TMap _map64 = iprot.readMapBegin(); + _val62 = new java.util.HashMap(2*_map64.size); + @org.apache.thrift.annotation.Nullable java.lang.String _key65; + @org.apache.thrift.annotation.Nullable java.lang.String _val66; + for (int _i67 = 0; _i67 < _map64.size; ++_i67) + { + _key65 = iprot.readString(); + _val66 = iprot.readString(); + _val62.put(_key65, _val66); + } + iprot.readMapEnd(); } - iprot.readMapEnd(); + struct.ssio.put(_key61, _val62); } - struct.ssio.put(_key61, _val62); + iprot.readMapEnd(); } - iprot.readMapEnd(); + struct.setSsioIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } - struct.setSsioIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 8: // AUTHORIZATIONS - if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { - { - org.apache.thrift.protocol.TList _list68 = iprot.readListBegin(); - struct.authorizations = new java.util.ArrayList(_list68.size); - @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer _elem69; - for (int _i70 = 0; _i70 < _list68.size; ++_i70) + break; + case 8: // AUTHORIZATIONS + if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - _elem69 = iprot.readBinary(); - struct.authorizations.add(_elem69); + org.apache.thrift.protocol.TList _list68 = iprot.readListBegin(); + struct.authorizations = new java.util.ArrayList(_list68.size); + @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer _elem69; + for (int _i70 = 0; _i70 < _list68.size; ++_i70) + { + _elem69 = iprot.readBinary(); + struct.authorizations.add(_elem69); + } + iprot.readListEnd(); } - iprot.readListEnd(); + struct.setAuthorizationsIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } - struct.setAuthorizationsIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 9: // WAIT_FOR_WRITES - if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) { - struct.waitForWrites = iprot.readBool(); - struct.setWaitForWritesIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 10: // ISOLATED - if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) { - struct.isolated = iprot.readBool(); - struct.setIsolatedIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 12: // READAHEAD_THRESHOLD - if (schemeField.type == org.apache.thrift.protocol.TType.I64) { - struct.readaheadThreshold = iprot.readI64(); - struct.setReadaheadThresholdIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 13: // SAMPLER_CONFIG - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.samplerConfig = new TSamplerConfiguration(); - struct.samplerConfig.read(iprot); - struct.setSamplerConfigIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 14: // BATCH_TIME_OUT - if (schemeField.type == org.apache.thrift.protocol.TType.I64) { - struct.batchTimeOut = iprot.readI64(); - struct.setBatchTimeOutIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 15: // CLASS_LOADER_CONTEXT - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.classLoaderContext = iprot.readString(); - struct.setClassLoaderContextIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 16: // EXECUTION_HINTS - if (schemeField.type == org.apache.thrift.protocol.TType.MAP) { - { - org.apache.thrift.protocol.TMap _map71 = iprot.readMapBegin(); - struct.executionHints = new java.util.HashMap(2*_map71.size); - @org.apache.thrift.annotation.Nullable java.lang.String _key72; - @org.apache.thrift.annotation.Nullable java.lang.String _val73; - for (int _i74 = 0; _i74 < _map71.size; ++_i74) + break; + case 9: // WAIT_FOR_WRITES + if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) { + struct.waitForWrites = iprot.readBool(); + struct.setWaitForWritesIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 10: // ISOLATED + if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) { + struct.isolated = iprot.readBool(); + struct.setIsolatedIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 12: // READAHEAD_THRESHOLD + if (schemeField.type == org.apache.thrift.protocol.TType.I64) { + struct.readaheadThreshold = iprot.readI64(); + struct.setReadaheadThresholdIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 13: // SAMPLER_CONFIG + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.samplerConfig = new TSamplerConfiguration(); + struct.samplerConfig.read(iprot); + struct.setSamplerConfigIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 14: // BATCH_TIME_OUT + if (schemeField.type == org.apache.thrift.protocol.TType.I64) { + struct.batchTimeOut = iprot.readI64(); + struct.setBatchTimeOutIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 15: // CLASS_LOADER_CONTEXT + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.classLoaderContext = iprot.readString(); + struct.setClassLoaderContextIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 16: // EXECUTION_HINTS + if (schemeField.type == org.apache.thrift.protocol.TType.MAP) { { - _key72 = iprot.readString(); - _val73 = iprot.readString(); - struct.executionHints.put(_key72, _val73); + org.apache.thrift.protocol.TMap _map71 = iprot.readMapBegin(); + struct.executionHints = new java.util.HashMap(2*_map71.size); + @org.apache.thrift.annotation.Nullable java.lang.String _key72; + @org.apache.thrift.annotation.Nullable java.lang.String _val73; + for (int _i74 = 0; _i74 < _map71.size; ++_i74) + { + _key72 = iprot.readString(); + _val73 = iprot.readString(); + struct.executionHints.put(_key72, _val73); + } + iprot.readMapEnd(); } - iprot.readMapEnd(); + struct.setExecutionHintsIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } - struct.setExecutionHintsIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 17: // BUSY_TIMEOUT - if (schemeField.type == org.apache.thrift.protocol.TType.I64) { - struct.busyTimeout = iprot.readI64(); - struct.setBusyTimeoutIsSet(true); - } else { + break; + case 17: // BUSY_TIMEOUT + if (schemeField.type == org.apache.thrift.protocol.TType.I64) { + struct.busyTimeout = iprot.readI64(); + struct.setBusyTimeoutIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - default: - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); } - iprot.readFieldEnd(); - } - iprot.readStructEnd(); + iprot.readStructEnd(); - // check for required fields of primitive type, which can't be checked in the validate method - struct.validate(); + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } finally { + iprot.decrementRecursionDepth(); + } } @Override @@ -3706,142 +3781,147 @@ public void write(org.apache.thrift.protocol.TProtocol prot, startScan_args stru @Override public void read(org.apache.thrift.protocol.TProtocol prot, startScan_args struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; - java.util.BitSet incoming = iprot.readBitSet(17); - if (incoming.get(0)) { - struct.tinfo = new org.apache.accumulo.core.clientImpl.thrift.TInfo(); - struct.tinfo.read(iprot); - struct.setTinfoIsSet(true); - } - if (incoming.get(1)) { - struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); - struct.credentials.read(iprot); - struct.setCredentialsIsSet(true); - } - if (incoming.get(2)) { - struct.extent = new org.apache.accumulo.core.dataImpl.thrift.TKeyExtent(); - struct.extent.read(iprot); - struct.setExtentIsSet(true); - } - if (incoming.get(3)) { - struct.range = new org.apache.accumulo.core.dataImpl.thrift.TRange(); - struct.range.read(iprot); - struct.setRangeIsSet(true); - } - if (incoming.get(4)) { - { - org.apache.thrift.protocol.TList _list87 = iprot.readListBegin(org.apache.thrift.protocol.TType.STRUCT); - struct.columns = new java.util.ArrayList(_list87.size); - @org.apache.thrift.annotation.Nullable org.apache.accumulo.core.dataImpl.thrift.TColumn _elem88; - for (int _i89 = 0; _i89 < _list87.size; ++_i89) + prot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(17); + if (incoming.get(0)) { + struct.tinfo = new org.apache.accumulo.core.clientImpl.thrift.TInfo(); + struct.tinfo.read(iprot); + struct.setTinfoIsSet(true); + } + if (incoming.get(1)) { + struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); + struct.credentials.read(iprot); + struct.setCredentialsIsSet(true); + } + if (incoming.get(2)) { + struct.extent = new org.apache.accumulo.core.dataImpl.thrift.TKeyExtent(); + struct.extent.read(iprot); + struct.setExtentIsSet(true); + } + if (incoming.get(3)) { + struct.range = new org.apache.accumulo.core.dataImpl.thrift.TRange(); + struct.range.read(iprot); + struct.setRangeIsSet(true); + } + if (incoming.get(4)) { { - _elem88 = new org.apache.accumulo.core.dataImpl.thrift.TColumn(); - _elem88.read(iprot); - struct.columns.add(_elem88); + org.apache.thrift.protocol.TList _list87 = iprot.readListBegin(org.apache.thrift.protocol.TType.STRUCT); + struct.columns = new java.util.ArrayList(_list87.size); + @org.apache.thrift.annotation.Nullable org.apache.accumulo.core.dataImpl.thrift.TColumn _elem88; + for (int _i89 = 0; _i89 < _list87.size; ++_i89) + { + _elem88 = new org.apache.accumulo.core.dataImpl.thrift.TColumn(); + _elem88.read(iprot); + struct.columns.add(_elem88); + } } + struct.setColumnsIsSet(true); } - struct.setColumnsIsSet(true); - } - if (incoming.get(5)) { - struct.batchSize = iprot.readI32(); - struct.setBatchSizeIsSet(true); - } - if (incoming.get(6)) { - { - org.apache.thrift.protocol.TList _list90 = iprot.readListBegin(org.apache.thrift.protocol.TType.STRUCT); - struct.ssiList = new java.util.ArrayList(_list90.size); - @org.apache.thrift.annotation.Nullable org.apache.accumulo.core.dataImpl.thrift.IterInfo _elem91; - for (int _i92 = 0; _i92 < _list90.size; ++_i92) + if (incoming.get(5)) { + struct.batchSize = iprot.readI32(); + struct.setBatchSizeIsSet(true); + } + if (incoming.get(6)) { { - _elem91 = new org.apache.accumulo.core.dataImpl.thrift.IterInfo(); - _elem91.read(iprot); - struct.ssiList.add(_elem91); + org.apache.thrift.protocol.TList _list90 = iprot.readListBegin(org.apache.thrift.protocol.TType.STRUCT); + struct.ssiList = new java.util.ArrayList(_list90.size); + @org.apache.thrift.annotation.Nullable org.apache.accumulo.core.dataImpl.thrift.IterInfo _elem91; + for (int _i92 = 0; _i92 < _list90.size; ++_i92) + { + _elem91 = new org.apache.accumulo.core.dataImpl.thrift.IterInfo(); + _elem91.read(iprot); + struct.ssiList.add(_elem91); + } } + struct.setSsiListIsSet(true); } - struct.setSsiListIsSet(true); - } - if (incoming.get(7)) { - { - org.apache.thrift.protocol.TMap _map93 = iprot.readMapBegin(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.MAP); - struct.ssio = new java.util.HashMap>(2*_map93.size); - @org.apache.thrift.annotation.Nullable java.lang.String _key94; - @org.apache.thrift.annotation.Nullable java.util.Map _val95; - for (int _i96 = 0; _i96 < _map93.size; ++_i96) + if (incoming.get(7)) { { - _key94 = iprot.readString(); + org.apache.thrift.protocol.TMap _map93 = iprot.readMapBegin(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.MAP); + struct.ssio = new java.util.HashMap>(2*_map93.size); + @org.apache.thrift.annotation.Nullable java.lang.String _key94; + @org.apache.thrift.annotation.Nullable java.util.Map _val95; + for (int _i96 = 0; _i96 < _map93.size; ++_i96) { - org.apache.thrift.protocol.TMap _map97 = iprot.readMapBegin(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING); - _val95 = new java.util.HashMap(2*_map97.size); - @org.apache.thrift.annotation.Nullable java.lang.String _key98; - @org.apache.thrift.annotation.Nullable java.lang.String _val99; - for (int _i100 = 0; _i100 < _map97.size; ++_i100) + _key94 = iprot.readString(); { - _key98 = iprot.readString(); - _val99 = iprot.readString(); - _val95.put(_key98, _val99); + org.apache.thrift.protocol.TMap _map97 = iprot.readMapBegin(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING); + _val95 = new java.util.HashMap(2*_map97.size); + @org.apache.thrift.annotation.Nullable java.lang.String _key98; + @org.apache.thrift.annotation.Nullable java.lang.String _val99; + for (int _i100 = 0; _i100 < _map97.size; ++_i100) + { + _key98 = iprot.readString(); + _val99 = iprot.readString(); + _val95.put(_key98, _val99); + } } + struct.ssio.put(_key94, _val95); } - struct.ssio.put(_key94, _val95); } + struct.setSsioIsSet(true); } - struct.setSsioIsSet(true); - } - if (incoming.get(8)) { - { - org.apache.thrift.protocol.TList _list101 = iprot.readListBegin(org.apache.thrift.protocol.TType.STRING); - struct.authorizations = new java.util.ArrayList(_list101.size); - @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer _elem102; - for (int _i103 = 0; _i103 < _list101.size; ++_i103) + if (incoming.get(8)) { { - _elem102 = iprot.readBinary(); - struct.authorizations.add(_elem102); + org.apache.thrift.protocol.TList _list101 = iprot.readListBegin(org.apache.thrift.protocol.TType.STRING); + struct.authorizations = new java.util.ArrayList(_list101.size); + @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer _elem102; + for (int _i103 = 0; _i103 < _list101.size; ++_i103) + { + _elem102 = iprot.readBinary(); + struct.authorizations.add(_elem102); + } } + struct.setAuthorizationsIsSet(true); } - struct.setAuthorizationsIsSet(true); - } - if (incoming.get(9)) { - struct.waitForWrites = iprot.readBool(); - struct.setWaitForWritesIsSet(true); - } - if (incoming.get(10)) { - struct.isolated = iprot.readBool(); - struct.setIsolatedIsSet(true); - } - if (incoming.get(11)) { - struct.readaheadThreshold = iprot.readI64(); - struct.setReadaheadThresholdIsSet(true); - } - if (incoming.get(12)) { - struct.samplerConfig = new TSamplerConfiguration(); - struct.samplerConfig.read(iprot); - struct.setSamplerConfigIsSet(true); - } - if (incoming.get(13)) { - struct.batchTimeOut = iprot.readI64(); - struct.setBatchTimeOutIsSet(true); - } - if (incoming.get(14)) { - struct.classLoaderContext = iprot.readString(); - struct.setClassLoaderContextIsSet(true); - } - if (incoming.get(15)) { - { - org.apache.thrift.protocol.TMap _map104 = iprot.readMapBegin(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING); - struct.executionHints = new java.util.HashMap(2*_map104.size); - @org.apache.thrift.annotation.Nullable java.lang.String _key105; - @org.apache.thrift.annotation.Nullable java.lang.String _val106; - for (int _i107 = 0; _i107 < _map104.size; ++_i107) + if (incoming.get(9)) { + struct.waitForWrites = iprot.readBool(); + struct.setWaitForWritesIsSet(true); + } + if (incoming.get(10)) { + struct.isolated = iprot.readBool(); + struct.setIsolatedIsSet(true); + } + if (incoming.get(11)) { + struct.readaheadThreshold = iprot.readI64(); + struct.setReadaheadThresholdIsSet(true); + } + if (incoming.get(12)) { + struct.samplerConfig = new TSamplerConfiguration(); + struct.samplerConfig.read(iprot); + struct.setSamplerConfigIsSet(true); + } + if (incoming.get(13)) { + struct.batchTimeOut = iprot.readI64(); + struct.setBatchTimeOutIsSet(true); + } + if (incoming.get(14)) { + struct.classLoaderContext = iprot.readString(); + struct.setClassLoaderContextIsSet(true); + } + if (incoming.get(15)) { { - _key105 = iprot.readString(); - _val106 = iprot.readString(); - struct.executionHints.put(_key105, _val106); + org.apache.thrift.protocol.TMap _map104 = iprot.readMapBegin(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING); + struct.executionHints = new java.util.HashMap(2*_map104.size); + @org.apache.thrift.annotation.Nullable java.lang.String _key105; + @org.apache.thrift.annotation.Nullable java.lang.String _val106; + for (int _i107 = 0; _i107 < _map104.size; ++_i107) + { + _key105 = iprot.readString(); + _val106 = iprot.readString(); + struct.executionHints.put(_key105, _val106); + } } + struct.setExecutionHintsIsSet(true); } - struct.setExecutionHintsIsSet(true); - } - if (incoming.get(16)) { - struct.busyTimeout = iprot.readI64(); - struct.setBusyTimeoutIsSet(true); + if (incoming.get(16)) { + struct.busyTimeout = iprot.readI64(); + struct.setBusyTimeoutIsSet(true); + } + } finally { + prot.decrementRecursionDepth(); } } } @@ -4560,78 +4640,83 @@ private static class startScan_resultStandardScheme extends org.apache.thrift.sc @Override public void read(org.apache.thrift.protocol.TProtocol iprot, startScan_result struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TField schemeField; - iprot.readStructBegin(); - while (true) - { - schemeField = iprot.readFieldBegin(); - if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { - break; - } - switch (schemeField.id) { - case 0: // SUCCESS - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.success = new org.apache.accumulo.core.dataImpl.thrift.InitialScan(); - struct.success.read(iprot); - struct.setSuccessIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 1: // SEC - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.sec = new org.apache.accumulo.core.clientImpl.thrift.ThriftSecurityException(); - struct.sec.read(iprot); - struct.setSecIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 2: // NSTE - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.nste = new org.apache.accumulo.core.tabletserver.thrift.NotServingTabletException(); - struct.nste.read(iprot); - struct.setNsteIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 3: // TMFE - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.tmfe = new TooManyFilesException(); - struct.tmfe.read(iprot); - struct.setTmfeIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 4: // TSNPE - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.tsnpe = new TSampleNotPresentException(); - struct.tsnpe.read(iprot); - struct.setTsnpeIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } + iprot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; - case 5: // SSBE - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.ssbe = new ScanServerBusyException(); - struct.ssbe.read(iprot); - struct.setSsbeIsSet(true); - } else { + } + switch (schemeField.id) { + case 0: // SUCCESS + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.success = new org.apache.accumulo.core.dataImpl.thrift.InitialScan(); + struct.success.read(iprot); + struct.setSuccessIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 1: // SEC + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.sec = new org.apache.accumulo.core.clientImpl.thrift.ThriftSecurityException(); + struct.sec.read(iprot); + struct.setSecIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 2: // NSTE + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.nste = new org.apache.accumulo.core.tabletserver.thrift.NotServingTabletException(); + struct.nste.read(iprot); + struct.setNsteIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 3: // TMFE + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.tmfe = new TooManyFilesException(); + struct.tmfe.read(iprot); + struct.setTmfeIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 4: // TSNPE + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.tsnpe = new TSampleNotPresentException(); + struct.tsnpe.read(iprot); + struct.setTsnpeIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 5: // SSBE + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.ssbe = new ScanServerBusyException(); + struct.ssbe.read(iprot); + struct.setSsbeIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - default: - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); } - iprot.readFieldEnd(); - } - iprot.readStructEnd(); + iprot.readStructEnd(); - // check for required fields of primitive type, which can't be checked in the validate method - struct.validate(); + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } finally { + iprot.decrementRecursionDepth(); + } } @Override @@ -4729,37 +4814,42 @@ public void write(org.apache.thrift.protocol.TProtocol prot, startScan_result st @Override public void read(org.apache.thrift.protocol.TProtocol prot, startScan_result struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; - java.util.BitSet incoming = iprot.readBitSet(6); - if (incoming.get(0)) { - struct.success = new org.apache.accumulo.core.dataImpl.thrift.InitialScan(); - struct.success.read(iprot); - struct.setSuccessIsSet(true); - } - if (incoming.get(1)) { - struct.sec = new org.apache.accumulo.core.clientImpl.thrift.ThriftSecurityException(); - struct.sec.read(iprot); - struct.setSecIsSet(true); - } - if (incoming.get(2)) { - struct.nste = new org.apache.accumulo.core.tabletserver.thrift.NotServingTabletException(); - struct.nste.read(iprot); - struct.setNsteIsSet(true); - } - if (incoming.get(3)) { - struct.tmfe = new TooManyFilesException(); - struct.tmfe.read(iprot); - struct.setTmfeIsSet(true); - } - if (incoming.get(4)) { - struct.tsnpe = new TSampleNotPresentException(); - struct.tsnpe.read(iprot); - struct.setTsnpeIsSet(true); - } - if (incoming.get(5)) { - struct.ssbe = new ScanServerBusyException(); - struct.ssbe.read(iprot); - struct.setSsbeIsSet(true); + prot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(6); + if (incoming.get(0)) { + struct.success = new org.apache.accumulo.core.dataImpl.thrift.InitialScan(); + struct.success.read(iprot); + struct.setSuccessIsSet(true); + } + if (incoming.get(1)) { + struct.sec = new org.apache.accumulo.core.clientImpl.thrift.ThriftSecurityException(); + struct.sec.read(iprot); + struct.setSecIsSet(true); + } + if (incoming.get(2)) { + struct.nste = new org.apache.accumulo.core.tabletserver.thrift.NotServingTabletException(); + struct.nste.read(iprot); + struct.setNsteIsSet(true); + } + if (incoming.get(3)) { + struct.tmfe = new TooManyFilesException(); + struct.tmfe.read(iprot); + struct.setTmfeIsSet(true); + } + if (incoming.get(4)) { + struct.tsnpe = new TSampleNotPresentException(); + struct.tsnpe.read(iprot); + struct.setTsnpeIsSet(true); + } + if (incoming.get(5)) { + struct.ssbe = new ScanServerBusyException(); + struct.ssbe.read(iprot); + struct.setSsbeIsSet(true); + } + } finally { + prot.decrementRecursionDepth(); } } } @@ -5223,49 +5313,54 @@ private static class continueScan_argsStandardScheme extends org.apache.thrift.s @Override public void read(org.apache.thrift.protocol.TProtocol iprot, continueScan_args struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TField schemeField; - iprot.readStructBegin(); - while (true) - { - schemeField = iprot.readFieldBegin(); - if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { - break; - } - switch (schemeField.id) { - case 2: // TINFO - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.tinfo = new org.apache.accumulo.core.clientImpl.thrift.TInfo(); - struct.tinfo.read(iprot); - struct.setTinfoIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 1: // SCAN_ID - if (schemeField.type == org.apache.thrift.protocol.TType.I64) { - struct.scanID = iprot.readI64(); - struct.setScanIDIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } + iprot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; - case 3: // BUSY_TIMEOUT - if (schemeField.type == org.apache.thrift.protocol.TType.I64) { - struct.busyTimeout = iprot.readI64(); - struct.setBusyTimeoutIsSet(true); - } else { + } + switch (schemeField.id) { + case 2: // TINFO + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.tinfo = new org.apache.accumulo.core.clientImpl.thrift.TInfo(); + struct.tinfo.read(iprot); + struct.setTinfoIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 1: // SCAN_ID + if (schemeField.type == org.apache.thrift.protocol.TType.I64) { + struct.scanID = iprot.readI64(); + struct.setScanIDIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 3: // BUSY_TIMEOUT + if (schemeField.type == org.apache.thrift.protocol.TType.I64) { + struct.busyTimeout = iprot.readI64(); + struct.setBusyTimeoutIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - default: - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); } - iprot.readFieldEnd(); - } - iprot.readStructEnd(); + iprot.readStructEnd(); - // check for required fields of primitive type, which can't be checked in the validate method - struct.validate(); + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } finally { + iprot.decrementRecursionDepth(); + } } @Override @@ -5326,20 +5421,25 @@ public void write(org.apache.thrift.protocol.TProtocol prot, continueScan_args s @Override public void read(org.apache.thrift.protocol.TProtocol prot, continueScan_args struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; - java.util.BitSet incoming = iprot.readBitSet(3); - if (incoming.get(0)) { - struct.tinfo = new org.apache.accumulo.core.clientImpl.thrift.TInfo(); - struct.tinfo.read(iprot); - struct.setTinfoIsSet(true); - } - if (incoming.get(1)) { - struct.scanID = iprot.readI64(); - struct.setScanIDIsSet(true); - } - if (incoming.get(2)) { - struct.busyTimeout = iprot.readI64(); - struct.setBusyTimeoutIsSet(true); + prot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(3); + if (incoming.get(0)) { + struct.tinfo = new org.apache.accumulo.core.clientImpl.thrift.TInfo(); + struct.tinfo.read(iprot); + struct.setTinfoIsSet(true); + } + if (incoming.get(1)) { + struct.scanID = iprot.readI64(); + struct.setScanIDIsSet(true); + } + if (incoming.get(2)) { + struct.busyTimeout = iprot.readI64(); + struct.setBusyTimeoutIsSet(true); + } + } finally { + prot.decrementRecursionDepth(); } } } @@ -6058,78 +6158,83 @@ private static class continueScan_resultStandardScheme extends org.apache.thrift @Override public void read(org.apache.thrift.protocol.TProtocol iprot, continueScan_result struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TField schemeField; - iprot.readStructBegin(); - while (true) - { - schemeField = iprot.readFieldBegin(); - if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { - break; - } - switch (schemeField.id) { - case 0: // SUCCESS - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.success = new org.apache.accumulo.core.dataImpl.thrift.ScanResult(); - struct.success.read(iprot); - struct.setSuccessIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 1: // NSSI - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.nssi = new org.apache.accumulo.core.tabletserver.thrift.NoSuchScanIDException(); - struct.nssi.read(iprot); - struct.setNssiIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 2: // NSTE - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.nste = new org.apache.accumulo.core.tabletserver.thrift.NotServingTabletException(); - struct.nste.read(iprot); - struct.setNsteIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 3: // TMFE - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.tmfe = new TooManyFilesException(); - struct.tmfe.read(iprot); - struct.setTmfeIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 4: // TSNPE - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.tsnpe = new TSampleNotPresentException(); - struct.tsnpe.read(iprot); - struct.setTsnpeIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } + iprot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; - case 5: // SSBE - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.ssbe = new ScanServerBusyException(); - struct.ssbe.read(iprot); - struct.setSsbeIsSet(true); - } else { + } + switch (schemeField.id) { + case 0: // SUCCESS + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.success = new org.apache.accumulo.core.dataImpl.thrift.ScanResult(); + struct.success.read(iprot); + struct.setSuccessIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 1: // NSSI + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.nssi = new org.apache.accumulo.core.tabletserver.thrift.NoSuchScanIDException(); + struct.nssi.read(iprot); + struct.setNssiIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 2: // NSTE + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.nste = new org.apache.accumulo.core.tabletserver.thrift.NotServingTabletException(); + struct.nste.read(iprot); + struct.setNsteIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 3: // TMFE + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.tmfe = new TooManyFilesException(); + struct.tmfe.read(iprot); + struct.setTmfeIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 4: // TSNPE + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.tsnpe = new TSampleNotPresentException(); + struct.tsnpe.read(iprot); + struct.setTsnpeIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 5: // SSBE + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.ssbe = new ScanServerBusyException(); + struct.ssbe.read(iprot); + struct.setSsbeIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - default: - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); } - iprot.readFieldEnd(); - } - iprot.readStructEnd(); + iprot.readStructEnd(); - // check for required fields of primitive type, which can't be checked in the validate method - struct.validate(); + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } finally { + iprot.decrementRecursionDepth(); + } } @Override @@ -6227,37 +6332,42 @@ public void write(org.apache.thrift.protocol.TProtocol prot, continueScan_result @Override public void read(org.apache.thrift.protocol.TProtocol prot, continueScan_result struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; - java.util.BitSet incoming = iprot.readBitSet(6); - if (incoming.get(0)) { - struct.success = new org.apache.accumulo.core.dataImpl.thrift.ScanResult(); - struct.success.read(iprot); - struct.setSuccessIsSet(true); - } - if (incoming.get(1)) { - struct.nssi = new org.apache.accumulo.core.tabletserver.thrift.NoSuchScanIDException(); - struct.nssi.read(iprot); - struct.setNssiIsSet(true); - } - if (incoming.get(2)) { - struct.nste = new org.apache.accumulo.core.tabletserver.thrift.NotServingTabletException(); - struct.nste.read(iprot); - struct.setNsteIsSet(true); - } - if (incoming.get(3)) { - struct.tmfe = new TooManyFilesException(); - struct.tmfe.read(iprot); - struct.setTmfeIsSet(true); - } - if (incoming.get(4)) { - struct.tsnpe = new TSampleNotPresentException(); - struct.tsnpe.read(iprot); - struct.setTsnpeIsSet(true); - } - if (incoming.get(5)) { - struct.ssbe = new ScanServerBusyException(); - struct.ssbe.read(iprot); - struct.setSsbeIsSet(true); + prot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(6); + if (incoming.get(0)) { + struct.success = new org.apache.accumulo.core.dataImpl.thrift.ScanResult(); + struct.success.read(iprot); + struct.setSuccessIsSet(true); + } + if (incoming.get(1)) { + struct.nssi = new org.apache.accumulo.core.tabletserver.thrift.NoSuchScanIDException(); + struct.nssi.read(iprot); + struct.setNssiIsSet(true); + } + if (incoming.get(2)) { + struct.nste = new org.apache.accumulo.core.tabletserver.thrift.NotServingTabletException(); + struct.nste.read(iprot); + struct.setNsteIsSet(true); + } + if (incoming.get(3)) { + struct.tmfe = new TooManyFilesException(); + struct.tmfe.read(iprot); + struct.setTmfeIsSet(true); + } + if (incoming.get(4)) { + struct.tsnpe = new TSampleNotPresentException(); + struct.tsnpe.read(iprot); + struct.setTsnpeIsSet(true); + } + if (incoming.get(5)) { + struct.ssbe = new ScanServerBusyException(); + struct.ssbe.read(iprot); + struct.setSsbeIsSet(true); + } + } finally { + prot.decrementRecursionDepth(); } } } @@ -6646,41 +6756,46 @@ private static class closeScan_argsStandardScheme extends org.apache.thrift.sche @Override public void read(org.apache.thrift.protocol.TProtocol iprot, closeScan_args struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TField schemeField; - iprot.readStructBegin(); - while (true) - { - schemeField = iprot.readFieldBegin(); - if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { - break; - } - switch (schemeField.id) { - case 2: // TINFO - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.tinfo = new org.apache.accumulo.core.clientImpl.thrift.TInfo(); - struct.tinfo.read(iprot); - struct.setTinfoIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } + iprot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; - case 1: // SCAN_ID - if (schemeField.type == org.apache.thrift.protocol.TType.I64) { - struct.scanID = iprot.readI64(); - struct.setScanIDIsSet(true); - } else { + } + switch (schemeField.id) { + case 2: // TINFO + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.tinfo = new org.apache.accumulo.core.clientImpl.thrift.TInfo(); + struct.tinfo.read(iprot); + struct.setTinfoIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 1: // SCAN_ID + if (schemeField.type == org.apache.thrift.protocol.TType.I64) { + struct.scanID = iprot.readI64(); + struct.setScanIDIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - default: - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); } - iprot.readFieldEnd(); - } - iprot.readStructEnd(); + iprot.readStructEnd(); - // check for required fields of primitive type, which can't be checked in the validate method - struct.validate(); + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } finally { + iprot.decrementRecursionDepth(); + } } @Override @@ -6732,16 +6847,21 @@ public void write(org.apache.thrift.protocol.TProtocol prot, closeScan_args stru @Override public void read(org.apache.thrift.protocol.TProtocol prot, closeScan_args struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; - java.util.BitSet incoming = iprot.readBitSet(2); - if (incoming.get(0)) { - struct.tinfo = new org.apache.accumulo.core.clientImpl.thrift.TInfo(); - struct.tinfo.read(iprot); - struct.setTinfoIsSet(true); - } - if (incoming.get(1)) { - struct.scanID = iprot.readI64(); - struct.setScanIDIsSet(true); + prot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(2); + if (incoming.get(0)) { + struct.tinfo = new org.apache.accumulo.core.clientImpl.thrift.TInfo(); + struct.tinfo.read(iprot); + struct.setTinfoIsSet(true); + } + if (incoming.get(1)) { + struct.scanID = iprot.readI64(); + struct.setScanIDIsSet(true); + } + } finally { + prot.decrementRecursionDepth(); } } } @@ -6897,7 +7017,10 @@ public java.lang.String getFieldName() { tmpMap.put(_Fields.CREDENTIALS, new org.apache.thrift.meta_data.FieldMetaData("credentials", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, org.apache.accumulo.core.securityImpl.thrift.TCredentials.class))); tmpMap.put(_Fields.BATCH, new org.apache.thrift.meta_data.FieldMetaData("batch", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.MAP , "ScanBatch"))); + new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, org.apache.accumulo.core.dataImpl.thrift.TKeyExtent.class), + new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, org.apache.accumulo.core.dataImpl.thrift.TRange.class))))); tmpMap.put(_Fields.COLUMNS, new org.apache.thrift.meta_data.FieldMetaData("columns", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, org.apache.accumulo.core.dataImpl.thrift.TColumn.class)))); @@ -8151,223 +8274,228 @@ private static class startMultiScan_argsStandardScheme extends org.apache.thrift @Override public void read(org.apache.thrift.protocol.TProtocol iprot, startMultiScan_args struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TField schemeField; - iprot.readStructBegin(); - while (true) - { - schemeField = iprot.readFieldBegin(); - if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { - break; - } - switch (schemeField.id) { - case 8: // TINFO - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.tinfo = new org.apache.accumulo.core.clientImpl.thrift.TInfo(); - struct.tinfo.read(iprot); - struct.setTinfoIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 1: // CREDENTIALS - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); - struct.credentials.read(iprot); - struct.setCredentialsIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } + iprot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; - case 2: // BATCH - if (schemeField.type == org.apache.thrift.protocol.TType.MAP) { - { - org.apache.thrift.protocol.TMap _map108 = iprot.readMapBegin(); - struct.batch = new java.util.HashMap>(2*_map108.size); - @org.apache.thrift.annotation.Nullable org.apache.accumulo.core.dataImpl.thrift.TKeyExtent _key109; - @org.apache.thrift.annotation.Nullable java.util.List _val110; - for (int _i111 = 0; _i111 < _map108.size; ++_i111) + } + switch (schemeField.id) { + case 8: // TINFO + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.tinfo = new org.apache.accumulo.core.clientImpl.thrift.TInfo(); + struct.tinfo.read(iprot); + struct.setTinfoIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 1: // CREDENTIALS + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); + struct.credentials.read(iprot); + struct.setCredentialsIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 2: // BATCH + if (schemeField.type == org.apache.thrift.protocol.TType.MAP) { { - _key109 = new org.apache.accumulo.core.dataImpl.thrift.TKeyExtent(); - _key109.read(iprot); + org.apache.thrift.protocol.TMap _map108 = iprot.readMapBegin(); + struct.batch = new java.util.HashMap>(2*_map108.size); + @org.apache.thrift.annotation.Nullable org.apache.accumulo.core.dataImpl.thrift.TKeyExtent _key109; + @org.apache.thrift.annotation.Nullable java.util.List _val110; + for (int _i111 = 0; _i111 < _map108.size; ++_i111) { - org.apache.thrift.protocol.TList _list112 = iprot.readListBegin(); - _val110 = new java.util.ArrayList(_list112.size); - @org.apache.thrift.annotation.Nullable org.apache.accumulo.core.dataImpl.thrift.TRange _elem113; - for (int _i114 = 0; _i114 < _list112.size; ++_i114) + _key109 = new org.apache.accumulo.core.dataImpl.thrift.TKeyExtent(); + _key109.read(iprot); { - _elem113 = new org.apache.accumulo.core.dataImpl.thrift.TRange(); - _elem113.read(iprot); - _val110.add(_elem113); + org.apache.thrift.protocol.TList _list112 = iprot.readListBegin(); + _val110 = new java.util.ArrayList(_list112.size); + @org.apache.thrift.annotation.Nullable org.apache.accumulo.core.dataImpl.thrift.TRange _elem113; + for (int _i114 = 0; _i114 < _list112.size; ++_i114) + { + _elem113 = new org.apache.accumulo.core.dataImpl.thrift.TRange(); + _elem113.read(iprot); + _val110.add(_elem113); + } + iprot.readListEnd(); } - iprot.readListEnd(); + struct.batch.put(_key109, _val110); } - struct.batch.put(_key109, _val110); + iprot.readMapEnd(); } - iprot.readMapEnd(); + struct.setBatchIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } - struct.setBatchIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 3: // COLUMNS - if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { - { - org.apache.thrift.protocol.TList _list115 = iprot.readListBegin(); - struct.columns = new java.util.ArrayList(_list115.size); - @org.apache.thrift.annotation.Nullable org.apache.accumulo.core.dataImpl.thrift.TColumn _elem116; - for (int _i117 = 0; _i117 < _list115.size; ++_i117) + break; + case 3: // COLUMNS + if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - _elem116 = new org.apache.accumulo.core.dataImpl.thrift.TColumn(); - _elem116.read(iprot); - struct.columns.add(_elem116); + org.apache.thrift.protocol.TList _list115 = iprot.readListBegin(); + struct.columns = new java.util.ArrayList(_list115.size); + @org.apache.thrift.annotation.Nullable org.apache.accumulo.core.dataImpl.thrift.TColumn _elem116; + for (int _i117 = 0; _i117 < _list115.size; ++_i117) + { + _elem116 = new org.apache.accumulo.core.dataImpl.thrift.TColumn(); + _elem116.read(iprot); + struct.columns.add(_elem116); + } + iprot.readListEnd(); } - iprot.readListEnd(); + struct.setColumnsIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } - struct.setColumnsIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 4: // SSI_LIST - if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { - { - org.apache.thrift.protocol.TList _list118 = iprot.readListBegin(); - struct.ssiList = new java.util.ArrayList(_list118.size); - @org.apache.thrift.annotation.Nullable org.apache.accumulo.core.dataImpl.thrift.IterInfo _elem119; - for (int _i120 = 0; _i120 < _list118.size; ++_i120) + break; + case 4: // SSI_LIST + if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - _elem119 = new org.apache.accumulo.core.dataImpl.thrift.IterInfo(); - _elem119.read(iprot); - struct.ssiList.add(_elem119); + org.apache.thrift.protocol.TList _list118 = iprot.readListBegin(); + struct.ssiList = new java.util.ArrayList(_list118.size); + @org.apache.thrift.annotation.Nullable org.apache.accumulo.core.dataImpl.thrift.IterInfo _elem119; + for (int _i120 = 0; _i120 < _list118.size; ++_i120) + { + _elem119 = new org.apache.accumulo.core.dataImpl.thrift.IterInfo(); + _elem119.read(iprot); + struct.ssiList.add(_elem119); + } + iprot.readListEnd(); } - iprot.readListEnd(); + struct.setSsiListIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } - struct.setSsiListIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 5: // SSIO - if (schemeField.type == org.apache.thrift.protocol.TType.MAP) { - { - org.apache.thrift.protocol.TMap _map121 = iprot.readMapBegin(); - struct.ssio = new java.util.HashMap>(2*_map121.size); - @org.apache.thrift.annotation.Nullable java.lang.String _key122; - @org.apache.thrift.annotation.Nullable java.util.Map _val123; - for (int _i124 = 0; _i124 < _map121.size; ++_i124) + break; + case 5: // SSIO + if (schemeField.type == org.apache.thrift.protocol.TType.MAP) { { - _key122 = iprot.readString(); + org.apache.thrift.protocol.TMap _map121 = iprot.readMapBegin(); + struct.ssio = new java.util.HashMap>(2*_map121.size); + @org.apache.thrift.annotation.Nullable java.lang.String _key122; + @org.apache.thrift.annotation.Nullable java.util.Map _val123; + for (int _i124 = 0; _i124 < _map121.size; ++_i124) { - org.apache.thrift.protocol.TMap _map125 = iprot.readMapBegin(); - _val123 = new java.util.HashMap(2*_map125.size); - @org.apache.thrift.annotation.Nullable java.lang.String _key126; - @org.apache.thrift.annotation.Nullable java.lang.String _val127; - for (int _i128 = 0; _i128 < _map125.size; ++_i128) + _key122 = iprot.readString(); { - _key126 = iprot.readString(); - _val127 = iprot.readString(); - _val123.put(_key126, _val127); + org.apache.thrift.protocol.TMap _map125 = iprot.readMapBegin(); + _val123 = new java.util.HashMap(2*_map125.size); + @org.apache.thrift.annotation.Nullable java.lang.String _key126; + @org.apache.thrift.annotation.Nullable java.lang.String _val127; + for (int _i128 = 0; _i128 < _map125.size; ++_i128) + { + _key126 = iprot.readString(); + _val127 = iprot.readString(); + _val123.put(_key126, _val127); + } + iprot.readMapEnd(); } - iprot.readMapEnd(); + struct.ssio.put(_key122, _val123); } - struct.ssio.put(_key122, _val123); + iprot.readMapEnd(); } - iprot.readMapEnd(); + struct.setSsioIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } - struct.setSsioIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 6: // AUTHORIZATIONS - if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { - { - org.apache.thrift.protocol.TList _list129 = iprot.readListBegin(); - struct.authorizations = new java.util.ArrayList(_list129.size); - @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer _elem130; - for (int _i131 = 0; _i131 < _list129.size; ++_i131) + break; + case 6: // AUTHORIZATIONS + if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - _elem130 = iprot.readBinary(); - struct.authorizations.add(_elem130); + org.apache.thrift.protocol.TList _list129 = iprot.readListBegin(); + struct.authorizations = new java.util.ArrayList(_list129.size); + @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer _elem130; + for (int _i131 = 0; _i131 < _list129.size; ++_i131) + { + _elem130 = iprot.readBinary(); + struct.authorizations.add(_elem130); + } + iprot.readListEnd(); } - iprot.readListEnd(); + struct.setAuthorizationsIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } - struct.setAuthorizationsIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 7: // WAIT_FOR_WRITES - if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) { - struct.waitForWrites = iprot.readBool(); - struct.setWaitForWritesIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 9: // SAMPLER_CONFIG - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.samplerConfig = new TSamplerConfiguration(); - struct.samplerConfig.read(iprot); - struct.setSamplerConfigIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 10: // BATCH_TIME_OUT - if (schemeField.type == org.apache.thrift.protocol.TType.I64) { - struct.batchTimeOut = iprot.readI64(); - struct.setBatchTimeOutIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 11: // CLASS_LOADER_CONTEXT - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.classLoaderContext = iprot.readString(); - struct.setClassLoaderContextIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 12: // EXECUTION_HINTS - if (schemeField.type == org.apache.thrift.protocol.TType.MAP) { - { - org.apache.thrift.protocol.TMap _map132 = iprot.readMapBegin(); - struct.executionHints = new java.util.HashMap(2*_map132.size); - @org.apache.thrift.annotation.Nullable java.lang.String _key133; - @org.apache.thrift.annotation.Nullable java.lang.String _val134; - for (int _i135 = 0; _i135 < _map132.size; ++_i135) + break; + case 7: // WAIT_FOR_WRITES + if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) { + struct.waitForWrites = iprot.readBool(); + struct.setWaitForWritesIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 9: // SAMPLER_CONFIG + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.samplerConfig = new TSamplerConfiguration(); + struct.samplerConfig.read(iprot); + struct.setSamplerConfigIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 10: // BATCH_TIME_OUT + if (schemeField.type == org.apache.thrift.protocol.TType.I64) { + struct.batchTimeOut = iprot.readI64(); + struct.setBatchTimeOutIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 11: // CLASS_LOADER_CONTEXT + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.classLoaderContext = iprot.readString(); + struct.setClassLoaderContextIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 12: // EXECUTION_HINTS + if (schemeField.type == org.apache.thrift.protocol.TType.MAP) { { - _key133 = iprot.readString(); - _val134 = iprot.readString(); - struct.executionHints.put(_key133, _val134); + org.apache.thrift.protocol.TMap _map132 = iprot.readMapBegin(); + struct.executionHints = new java.util.HashMap(2*_map132.size); + @org.apache.thrift.annotation.Nullable java.lang.String _key133; + @org.apache.thrift.annotation.Nullable java.lang.String _val134; + for (int _i135 = 0; _i135 < _map132.size; ++_i135) + { + _key133 = iprot.readString(); + _val134 = iprot.readString(); + struct.executionHints.put(_key133, _val134); + } + iprot.readMapEnd(); } - iprot.readMapEnd(); + struct.setExecutionHintsIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } - struct.setExecutionHintsIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 13: // BUSY_TIMEOUT - if (schemeField.type == org.apache.thrift.protocol.TType.I64) { - struct.busyTimeout = iprot.readI64(); - struct.setBusyTimeoutIsSet(true); - } else { + break; + case 13: // BUSY_TIMEOUT + if (schemeField.type == org.apache.thrift.protocol.TType.I64) { + struct.busyTimeout = iprot.readI64(); + struct.setBusyTimeoutIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - default: - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); } - iprot.readFieldEnd(); - } - iprot.readStructEnd(); + iprot.readStructEnd(); - // check for required fields of primitive type, which can't be checked in the validate method - struct.validate(); + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } finally { + iprot.decrementRecursionDepth(); + } } @Override @@ -8648,146 +8776,151 @@ public void write(org.apache.thrift.protocol.TProtocol prot, startMultiScan_args @Override public void read(org.apache.thrift.protocol.TProtocol prot, startMultiScan_args struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; - java.util.BitSet incoming = iprot.readBitSet(13); - if (incoming.get(0)) { - struct.tinfo = new org.apache.accumulo.core.clientImpl.thrift.TInfo(); - struct.tinfo.read(iprot); - struct.setTinfoIsSet(true); - } - if (incoming.get(1)) { - struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); - struct.credentials.read(iprot); - struct.setCredentialsIsSet(true); - } - if (incoming.get(2)) { - { - org.apache.thrift.protocol.TMap _map152 = iprot.readMapBegin(org.apache.thrift.protocol.TType.STRUCT, org.apache.thrift.protocol.TType.LIST); - struct.batch = new java.util.HashMap>(2*_map152.size); - @org.apache.thrift.annotation.Nullable org.apache.accumulo.core.dataImpl.thrift.TKeyExtent _key153; - @org.apache.thrift.annotation.Nullable java.util.List _val154; - for (int _i155 = 0; _i155 < _map152.size; ++_i155) + prot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(13); + if (incoming.get(0)) { + struct.tinfo = new org.apache.accumulo.core.clientImpl.thrift.TInfo(); + struct.tinfo.read(iprot); + struct.setTinfoIsSet(true); + } + if (incoming.get(1)) { + struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); + struct.credentials.read(iprot); + struct.setCredentialsIsSet(true); + } + if (incoming.get(2)) { { - _key153 = new org.apache.accumulo.core.dataImpl.thrift.TKeyExtent(); - _key153.read(iprot); + org.apache.thrift.protocol.TMap _map152 = iprot.readMapBegin(org.apache.thrift.protocol.TType.STRUCT, org.apache.thrift.protocol.TType.LIST); + struct.batch = new java.util.HashMap>(2*_map152.size); + @org.apache.thrift.annotation.Nullable org.apache.accumulo.core.dataImpl.thrift.TKeyExtent _key153; + @org.apache.thrift.annotation.Nullable java.util.List _val154; + for (int _i155 = 0; _i155 < _map152.size; ++_i155) { - org.apache.thrift.protocol.TList _list156 = iprot.readListBegin(org.apache.thrift.protocol.TType.STRUCT); - _val154 = new java.util.ArrayList(_list156.size); - @org.apache.thrift.annotation.Nullable org.apache.accumulo.core.dataImpl.thrift.TRange _elem157; - for (int _i158 = 0; _i158 < _list156.size; ++_i158) + _key153 = new org.apache.accumulo.core.dataImpl.thrift.TKeyExtent(); + _key153.read(iprot); { - _elem157 = new org.apache.accumulo.core.dataImpl.thrift.TRange(); - _elem157.read(iprot); - _val154.add(_elem157); + org.apache.thrift.protocol.TList _list156 = iprot.readListBegin(org.apache.thrift.protocol.TType.STRUCT); + _val154 = new java.util.ArrayList(_list156.size); + @org.apache.thrift.annotation.Nullable org.apache.accumulo.core.dataImpl.thrift.TRange _elem157; + for (int _i158 = 0; _i158 < _list156.size; ++_i158) + { + _elem157 = new org.apache.accumulo.core.dataImpl.thrift.TRange(); + _elem157.read(iprot); + _val154.add(_elem157); + } } + struct.batch.put(_key153, _val154); } - struct.batch.put(_key153, _val154); } + struct.setBatchIsSet(true); } - struct.setBatchIsSet(true); - } - if (incoming.get(3)) { - { - org.apache.thrift.protocol.TList _list159 = iprot.readListBegin(org.apache.thrift.protocol.TType.STRUCT); - struct.columns = new java.util.ArrayList(_list159.size); - @org.apache.thrift.annotation.Nullable org.apache.accumulo.core.dataImpl.thrift.TColumn _elem160; - for (int _i161 = 0; _i161 < _list159.size; ++_i161) + if (incoming.get(3)) { { - _elem160 = new org.apache.accumulo.core.dataImpl.thrift.TColumn(); - _elem160.read(iprot); - struct.columns.add(_elem160); + org.apache.thrift.protocol.TList _list159 = iprot.readListBegin(org.apache.thrift.protocol.TType.STRUCT); + struct.columns = new java.util.ArrayList(_list159.size); + @org.apache.thrift.annotation.Nullable org.apache.accumulo.core.dataImpl.thrift.TColumn _elem160; + for (int _i161 = 0; _i161 < _list159.size; ++_i161) + { + _elem160 = new org.apache.accumulo.core.dataImpl.thrift.TColumn(); + _elem160.read(iprot); + struct.columns.add(_elem160); + } } + struct.setColumnsIsSet(true); } - struct.setColumnsIsSet(true); - } - if (incoming.get(4)) { - { - org.apache.thrift.protocol.TList _list162 = iprot.readListBegin(org.apache.thrift.protocol.TType.STRUCT); - struct.ssiList = new java.util.ArrayList(_list162.size); - @org.apache.thrift.annotation.Nullable org.apache.accumulo.core.dataImpl.thrift.IterInfo _elem163; - for (int _i164 = 0; _i164 < _list162.size; ++_i164) + if (incoming.get(4)) { { - _elem163 = new org.apache.accumulo.core.dataImpl.thrift.IterInfo(); - _elem163.read(iprot); - struct.ssiList.add(_elem163); + org.apache.thrift.protocol.TList _list162 = iprot.readListBegin(org.apache.thrift.protocol.TType.STRUCT); + struct.ssiList = new java.util.ArrayList(_list162.size); + @org.apache.thrift.annotation.Nullable org.apache.accumulo.core.dataImpl.thrift.IterInfo _elem163; + for (int _i164 = 0; _i164 < _list162.size; ++_i164) + { + _elem163 = new org.apache.accumulo.core.dataImpl.thrift.IterInfo(); + _elem163.read(iprot); + struct.ssiList.add(_elem163); + } } + struct.setSsiListIsSet(true); } - struct.setSsiListIsSet(true); - } - if (incoming.get(5)) { - { - org.apache.thrift.protocol.TMap _map165 = iprot.readMapBegin(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.MAP); - struct.ssio = new java.util.HashMap>(2*_map165.size); - @org.apache.thrift.annotation.Nullable java.lang.String _key166; - @org.apache.thrift.annotation.Nullable java.util.Map _val167; - for (int _i168 = 0; _i168 < _map165.size; ++_i168) + if (incoming.get(5)) { { - _key166 = iprot.readString(); + org.apache.thrift.protocol.TMap _map165 = iprot.readMapBegin(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.MAP); + struct.ssio = new java.util.HashMap>(2*_map165.size); + @org.apache.thrift.annotation.Nullable java.lang.String _key166; + @org.apache.thrift.annotation.Nullable java.util.Map _val167; + for (int _i168 = 0; _i168 < _map165.size; ++_i168) { - org.apache.thrift.protocol.TMap _map169 = iprot.readMapBegin(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING); - _val167 = new java.util.HashMap(2*_map169.size); - @org.apache.thrift.annotation.Nullable java.lang.String _key170; - @org.apache.thrift.annotation.Nullable java.lang.String _val171; - for (int _i172 = 0; _i172 < _map169.size; ++_i172) + _key166 = iprot.readString(); { - _key170 = iprot.readString(); - _val171 = iprot.readString(); - _val167.put(_key170, _val171); + org.apache.thrift.protocol.TMap _map169 = iprot.readMapBegin(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING); + _val167 = new java.util.HashMap(2*_map169.size); + @org.apache.thrift.annotation.Nullable java.lang.String _key170; + @org.apache.thrift.annotation.Nullable java.lang.String _val171; + for (int _i172 = 0; _i172 < _map169.size; ++_i172) + { + _key170 = iprot.readString(); + _val171 = iprot.readString(); + _val167.put(_key170, _val171); + } } + struct.ssio.put(_key166, _val167); } - struct.ssio.put(_key166, _val167); } + struct.setSsioIsSet(true); } - struct.setSsioIsSet(true); - } - if (incoming.get(6)) { - { - org.apache.thrift.protocol.TList _list173 = iprot.readListBegin(org.apache.thrift.protocol.TType.STRING); - struct.authorizations = new java.util.ArrayList(_list173.size); - @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer _elem174; - for (int _i175 = 0; _i175 < _list173.size; ++_i175) + if (incoming.get(6)) { { - _elem174 = iprot.readBinary(); - struct.authorizations.add(_elem174); + org.apache.thrift.protocol.TList _list173 = iprot.readListBegin(org.apache.thrift.protocol.TType.STRING); + struct.authorizations = new java.util.ArrayList(_list173.size); + @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer _elem174; + for (int _i175 = 0; _i175 < _list173.size; ++_i175) + { + _elem174 = iprot.readBinary(); + struct.authorizations.add(_elem174); + } } + struct.setAuthorizationsIsSet(true); } - struct.setAuthorizationsIsSet(true); - } - if (incoming.get(7)) { - struct.waitForWrites = iprot.readBool(); - struct.setWaitForWritesIsSet(true); - } - if (incoming.get(8)) { - struct.samplerConfig = new TSamplerConfiguration(); - struct.samplerConfig.read(iprot); - struct.setSamplerConfigIsSet(true); - } - if (incoming.get(9)) { - struct.batchTimeOut = iprot.readI64(); - struct.setBatchTimeOutIsSet(true); - } - if (incoming.get(10)) { - struct.classLoaderContext = iprot.readString(); - struct.setClassLoaderContextIsSet(true); - } - if (incoming.get(11)) { - { - org.apache.thrift.protocol.TMap _map176 = iprot.readMapBegin(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING); - struct.executionHints = new java.util.HashMap(2*_map176.size); - @org.apache.thrift.annotation.Nullable java.lang.String _key177; - @org.apache.thrift.annotation.Nullable java.lang.String _val178; - for (int _i179 = 0; _i179 < _map176.size; ++_i179) + if (incoming.get(7)) { + struct.waitForWrites = iprot.readBool(); + struct.setWaitForWritesIsSet(true); + } + if (incoming.get(8)) { + struct.samplerConfig = new TSamplerConfiguration(); + struct.samplerConfig.read(iprot); + struct.setSamplerConfigIsSet(true); + } + if (incoming.get(9)) { + struct.batchTimeOut = iprot.readI64(); + struct.setBatchTimeOutIsSet(true); + } + if (incoming.get(10)) { + struct.classLoaderContext = iprot.readString(); + struct.setClassLoaderContextIsSet(true); + } + if (incoming.get(11)) { { - _key177 = iprot.readString(); - _val178 = iprot.readString(); - struct.executionHints.put(_key177, _val178); + org.apache.thrift.protocol.TMap _map176 = iprot.readMapBegin(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING); + struct.executionHints = new java.util.HashMap(2*_map176.size); + @org.apache.thrift.annotation.Nullable java.lang.String _key177; + @org.apache.thrift.annotation.Nullable java.lang.String _val178; + for (int _i179 = 0; _i179 < _map176.size; ++_i179) + { + _key177 = iprot.readString(); + _val178 = iprot.readString(); + struct.executionHints.put(_key177, _val178); + } } + struct.setExecutionHintsIsSet(true); } - struct.setExecutionHintsIsSet(true); - } - if (incoming.get(12)) { - struct.busyTimeout = iprot.readI64(); - struct.setBusyTimeoutIsSet(true); + if (incoming.get(12)) { + struct.busyTimeout = iprot.readI64(); + struct.setBusyTimeoutIsSet(true); + } + } finally { + prot.decrementRecursionDepth(); } } } @@ -9342,60 +9475,65 @@ private static class startMultiScan_resultStandardScheme extends org.apache.thri @Override public void read(org.apache.thrift.protocol.TProtocol iprot, startMultiScan_result struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TField schemeField; - iprot.readStructBegin(); - while (true) - { - schemeField = iprot.readFieldBegin(); - if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { - break; - } - switch (schemeField.id) { - case 0: // SUCCESS - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.success = new org.apache.accumulo.core.dataImpl.thrift.InitialMultiScan(); - struct.success.read(iprot); - struct.setSuccessIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 1: // SEC - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.sec = new org.apache.accumulo.core.clientImpl.thrift.ThriftSecurityException(); - struct.sec.read(iprot); - struct.setSecIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 2: // TSNPE - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.tsnpe = new TSampleNotPresentException(); - struct.tsnpe.read(iprot); - struct.setTsnpeIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } + iprot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; - case 3: // SSBE - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.ssbe = new ScanServerBusyException(); - struct.ssbe.read(iprot); - struct.setSsbeIsSet(true); - } else { + } + switch (schemeField.id) { + case 0: // SUCCESS + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.success = new org.apache.accumulo.core.dataImpl.thrift.InitialMultiScan(); + struct.success.read(iprot); + struct.setSuccessIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 1: // SEC + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.sec = new org.apache.accumulo.core.clientImpl.thrift.ThriftSecurityException(); + struct.sec.read(iprot); + struct.setSecIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 2: // TSNPE + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.tsnpe = new TSampleNotPresentException(); + struct.tsnpe.read(iprot); + struct.setTsnpeIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 3: // SSBE + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.ssbe = new ScanServerBusyException(); + struct.ssbe.read(iprot); + struct.setSsbeIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - default: - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); } - iprot.readFieldEnd(); - } - iprot.readStructEnd(); + iprot.readStructEnd(); - // check for required fields of primitive type, which can't be checked in the validate method - struct.validate(); + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } finally { + iprot.decrementRecursionDepth(); + } } @Override @@ -9471,27 +9609,32 @@ public void write(org.apache.thrift.protocol.TProtocol prot, startMultiScan_resu @Override public void read(org.apache.thrift.protocol.TProtocol prot, startMultiScan_result struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; - java.util.BitSet incoming = iprot.readBitSet(4); - if (incoming.get(0)) { - struct.success = new org.apache.accumulo.core.dataImpl.thrift.InitialMultiScan(); - struct.success.read(iprot); - struct.setSuccessIsSet(true); - } - if (incoming.get(1)) { - struct.sec = new org.apache.accumulo.core.clientImpl.thrift.ThriftSecurityException(); - struct.sec.read(iprot); - struct.setSecIsSet(true); - } - if (incoming.get(2)) { - struct.tsnpe = new TSampleNotPresentException(); - struct.tsnpe.read(iprot); - struct.setTsnpeIsSet(true); - } - if (incoming.get(3)) { - struct.ssbe = new ScanServerBusyException(); - struct.ssbe.read(iprot); - struct.setSsbeIsSet(true); + prot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(4); + if (incoming.get(0)) { + struct.success = new org.apache.accumulo.core.dataImpl.thrift.InitialMultiScan(); + struct.success.read(iprot); + struct.setSuccessIsSet(true); + } + if (incoming.get(1)) { + struct.sec = new org.apache.accumulo.core.clientImpl.thrift.ThriftSecurityException(); + struct.sec.read(iprot); + struct.setSecIsSet(true); + } + if (incoming.get(2)) { + struct.tsnpe = new TSampleNotPresentException(); + struct.tsnpe.read(iprot); + struct.setTsnpeIsSet(true); + } + if (incoming.get(3)) { + struct.ssbe = new ScanServerBusyException(); + struct.ssbe.read(iprot); + struct.setSsbeIsSet(true); + } + } finally { + prot.decrementRecursionDepth(); } } } @@ -9955,49 +10098,54 @@ private static class continueMultiScan_argsStandardScheme extends org.apache.thr @Override public void read(org.apache.thrift.protocol.TProtocol iprot, continueMultiScan_args struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TField schemeField; - iprot.readStructBegin(); - while (true) - { - schemeField = iprot.readFieldBegin(); - if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { - break; - } - switch (schemeField.id) { - case 2: // TINFO - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.tinfo = new org.apache.accumulo.core.clientImpl.thrift.TInfo(); - struct.tinfo.read(iprot); - struct.setTinfoIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 1: // SCAN_ID - if (schemeField.type == org.apache.thrift.protocol.TType.I64) { - struct.scanID = iprot.readI64(); - struct.setScanIDIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } + iprot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; - case 3: // BUSY_TIMEOUT - if (schemeField.type == org.apache.thrift.protocol.TType.I64) { - struct.busyTimeout = iprot.readI64(); - struct.setBusyTimeoutIsSet(true); - } else { + } + switch (schemeField.id) { + case 2: // TINFO + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.tinfo = new org.apache.accumulo.core.clientImpl.thrift.TInfo(); + struct.tinfo.read(iprot); + struct.setTinfoIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 1: // SCAN_ID + if (schemeField.type == org.apache.thrift.protocol.TType.I64) { + struct.scanID = iprot.readI64(); + struct.setScanIDIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 3: // BUSY_TIMEOUT + if (schemeField.type == org.apache.thrift.protocol.TType.I64) { + struct.busyTimeout = iprot.readI64(); + struct.setBusyTimeoutIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - default: - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); } - iprot.readFieldEnd(); - } - iprot.readStructEnd(); + iprot.readStructEnd(); - // check for required fields of primitive type, which can't be checked in the validate method - struct.validate(); + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } finally { + iprot.decrementRecursionDepth(); + } } @Override @@ -10058,20 +10206,25 @@ public void write(org.apache.thrift.protocol.TProtocol prot, continueMultiScan_a @Override public void read(org.apache.thrift.protocol.TProtocol prot, continueMultiScan_args struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; - java.util.BitSet incoming = iprot.readBitSet(3); - if (incoming.get(0)) { - struct.tinfo = new org.apache.accumulo.core.clientImpl.thrift.TInfo(); - struct.tinfo.read(iprot); - struct.setTinfoIsSet(true); - } - if (incoming.get(1)) { - struct.scanID = iprot.readI64(); - struct.setScanIDIsSet(true); - } - if (incoming.get(2)) { - struct.busyTimeout = iprot.readI64(); - struct.setBusyTimeoutIsSet(true); + prot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(3); + if (incoming.get(0)) { + struct.tinfo = new org.apache.accumulo.core.clientImpl.thrift.TInfo(); + struct.tinfo.read(iprot); + struct.setTinfoIsSet(true); + } + if (incoming.get(1)) { + struct.scanID = iprot.readI64(); + struct.setScanIDIsSet(true); + } + if (incoming.get(2)) { + struct.busyTimeout = iprot.readI64(); + struct.setBusyTimeoutIsSet(true); + } + } finally { + prot.decrementRecursionDepth(); } } } @@ -10626,60 +10779,65 @@ private static class continueMultiScan_resultStandardScheme extends org.apache.t @Override public void read(org.apache.thrift.protocol.TProtocol iprot, continueMultiScan_result struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TField schemeField; - iprot.readStructBegin(); - while (true) - { - schemeField = iprot.readFieldBegin(); - if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { - break; - } - switch (schemeField.id) { - case 0: // SUCCESS - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.success = new org.apache.accumulo.core.dataImpl.thrift.MultiScanResult(); - struct.success.read(iprot); - struct.setSuccessIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 1: // NSSI - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.nssi = new org.apache.accumulo.core.tabletserver.thrift.NoSuchScanIDException(); - struct.nssi.read(iprot); - struct.setNssiIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 2: // TSNPE - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.tsnpe = new TSampleNotPresentException(); - struct.tsnpe.read(iprot); - struct.setTsnpeIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } + iprot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; - case 3: // SSBE - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.ssbe = new ScanServerBusyException(); - struct.ssbe.read(iprot); - struct.setSsbeIsSet(true); - } else { + } + switch (schemeField.id) { + case 0: // SUCCESS + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.success = new org.apache.accumulo.core.dataImpl.thrift.MultiScanResult(); + struct.success.read(iprot); + struct.setSuccessIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 1: // NSSI + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.nssi = new org.apache.accumulo.core.tabletserver.thrift.NoSuchScanIDException(); + struct.nssi.read(iprot); + struct.setNssiIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 2: // TSNPE + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.tsnpe = new TSampleNotPresentException(); + struct.tsnpe.read(iprot); + struct.setTsnpeIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 3: // SSBE + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.ssbe = new ScanServerBusyException(); + struct.ssbe.read(iprot); + struct.setSsbeIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - default: - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); } - iprot.readFieldEnd(); - } - iprot.readStructEnd(); + iprot.readStructEnd(); - // check for required fields of primitive type, which can't be checked in the validate method - struct.validate(); + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } finally { + iprot.decrementRecursionDepth(); + } } @Override @@ -10755,27 +10913,32 @@ public void write(org.apache.thrift.protocol.TProtocol prot, continueMultiScan_r @Override public void read(org.apache.thrift.protocol.TProtocol prot, continueMultiScan_result struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; - java.util.BitSet incoming = iprot.readBitSet(4); - if (incoming.get(0)) { - struct.success = new org.apache.accumulo.core.dataImpl.thrift.MultiScanResult(); - struct.success.read(iprot); - struct.setSuccessIsSet(true); - } - if (incoming.get(1)) { - struct.nssi = new org.apache.accumulo.core.tabletserver.thrift.NoSuchScanIDException(); - struct.nssi.read(iprot); - struct.setNssiIsSet(true); - } - if (incoming.get(2)) { - struct.tsnpe = new TSampleNotPresentException(); - struct.tsnpe.read(iprot); - struct.setTsnpeIsSet(true); - } - if (incoming.get(3)) { - struct.ssbe = new ScanServerBusyException(); - struct.ssbe.read(iprot); - struct.setSsbeIsSet(true); + prot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(4); + if (incoming.get(0)) { + struct.success = new org.apache.accumulo.core.dataImpl.thrift.MultiScanResult(); + struct.success.read(iprot); + struct.setSuccessIsSet(true); + } + if (incoming.get(1)) { + struct.nssi = new org.apache.accumulo.core.tabletserver.thrift.NoSuchScanIDException(); + struct.nssi.read(iprot); + struct.setNssiIsSet(true); + } + if (incoming.get(2)) { + struct.tsnpe = new TSampleNotPresentException(); + struct.tsnpe.read(iprot); + struct.setTsnpeIsSet(true); + } + if (incoming.get(3)) { + struct.ssbe = new ScanServerBusyException(); + struct.ssbe.read(iprot); + struct.setSsbeIsSet(true); + } + } finally { + prot.decrementRecursionDepth(); } } } @@ -11164,41 +11327,46 @@ private static class closeMultiScan_argsStandardScheme extends org.apache.thrift @Override public void read(org.apache.thrift.protocol.TProtocol iprot, closeMultiScan_args struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TField schemeField; - iprot.readStructBegin(); - while (true) - { - schemeField = iprot.readFieldBegin(); - if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { - break; - } - switch (schemeField.id) { - case 2: // TINFO - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.tinfo = new org.apache.accumulo.core.clientImpl.thrift.TInfo(); - struct.tinfo.read(iprot); - struct.setTinfoIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } + iprot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; - case 1: // SCAN_ID - if (schemeField.type == org.apache.thrift.protocol.TType.I64) { - struct.scanID = iprot.readI64(); - struct.setScanIDIsSet(true); - } else { + } + switch (schemeField.id) { + case 2: // TINFO + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.tinfo = new org.apache.accumulo.core.clientImpl.thrift.TInfo(); + struct.tinfo.read(iprot); + struct.setTinfoIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 1: // SCAN_ID + if (schemeField.type == org.apache.thrift.protocol.TType.I64) { + struct.scanID = iprot.readI64(); + struct.setScanIDIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - default: - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); } - iprot.readFieldEnd(); - } - iprot.readStructEnd(); + iprot.readStructEnd(); - // check for required fields of primitive type, which can't be checked in the validate method - struct.validate(); + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } finally { + iprot.decrementRecursionDepth(); + } } @Override @@ -11250,16 +11418,21 @@ public void write(org.apache.thrift.protocol.TProtocol prot, closeMultiScan_args @Override public void read(org.apache.thrift.protocol.TProtocol prot, closeMultiScan_args struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; - java.util.BitSet incoming = iprot.readBitSet(2); - if (incoming.get(0)) { - struct.tinfo = new org.apache.accumulo.core.clientImpl.thrift.TInfo(); - struct.tinfo.read(iprot); - struct.setTinfoIsSet(true); - } - if (incoming.get(1)) { - struct.scanID = iprot.readI64(); - struct.setScanIDIsSet(true); + prot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(2); + if (incoming.get(0)) { + struct.tinfo = new org.apache.accumulo.core.clientImpl.thrift.TInfo(); + struct.tinfo.read(iprot); + struct.setTinfoIsSet(true); + } + if (incoming.get(1)) { + struct.scanID = iprot.readI64(); + struct.setScanIDIsSet(true); + } + } finally { + prot.decrementRecursionDepth(); } } } @@ -11565,33 +11738,38 @@ private static class closeMultiScan_resultStandardScheme extends org.apache.thri @Override public void read(org.apache.thrift.protocol.TProtocol iprot, closeMultiScan_result struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TField schemeField; - iprot.readStructBegin(); - while (true) - { - schemeField = iprot.readFieldBegin(); - if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { - break; - } - switch (schemeField.id) { - case 1: // NSSI - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.nssi = new org.apache.accumulo.core.tabletserver.thrift.NoSuchScanIDException(); - struct.nssi.read(iprot); - struct.setNssiIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } + iprot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; - default: - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + switch (schemeField.id) { + case 1: // NSSI + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.nssi = new org.apache.accumulo.core.tabletserver.thrift.NoSuchScanIDException(); + struct.nssi.read(iprot); + struct.setNssiIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + default: + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); } - iprot.readFieldEnd(); - } - iprot.readStructEnd(); + iprot.readStructEnd(); - // check for required fields of primitive type, which can't be checked in the validate method - struct.validate(); + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } finally { + iprot.decrementRecursionDepth(); + } } @Override @@ -11634,12 +11812,17 @@ public void write(org.apache.thrift.protocol.TProtocol prot, closeMultiScan_resu @Override public void read(org.apache.thrift.protocol.TProtocol prot, closeMultiScan_result struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; - java.util.BitSet incoming = iprot.readBitSet(1); - if (incoming.get(0)) { - struct.nssi = new org.apache.accumulo.core.tabletserver.thrift.NoSuchScanIDException(); - struct.nssi.read(iprot); - struct.setNssiIsSet(true); + prot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(1); + if (incoming.get(0)) { + struct.nssi = new org.apache.accumulo.core.tabletserver.thrift.NoSuchScanIDException(); + struct.nssi.read(iprot); + struct.setNssiIsSet(true); + } + } finally { + prot.decrementRecursionDepth(); } } } @@ -12034,42 +12217,47 @@ private static class getActiveScans_argsStandardScheme extends org.apache.thrift @Override public void read(org.apache.thrift.protocol.TProtocol iprot, getActiveScans_args struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TField schemeField; - iprot.readStructBegin(); - while (true) - { - schemeField = iprot.readFieldBegin(); - if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { - break; - } - switch (schemeField.id) { - case 2: // TINFO - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.tinfo = new org.apache.accumulo.core.clientImpl.thrift.TInfo(); - struct.tinfo.read(iprot); - struct.setTinfoIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } + iprot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; - case 1: // CREDENTIALS - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); - struct.credentials.read(iprot); - struct.setCredentialsIsSet(true); - } else { + } + switch (schemeField.id) { + case 2: // TINFO + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.tinfo = new org.apache.accumulo.core.clientImpl.thrift.TInfo(); + struct.tinfo.read(iprot); + struct.setTinfoIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 1: // CREDENTIALS + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); + struct.credentials.read(iprot); + struct.setCredentialsIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - default: - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); } - iprot.readFieldEnd(); - } - iprot.readStructEnd(); + iprot.readStructEnd(); - // check for required fields of primitive type, which can't be checked in the validate method - struct.validate(); + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } finally { + iprot.decrementRecursionDepth(); + } } @Override @@ -12123,17 +12311,22 @@ public void write(org.apache.thrift.protocol.TProtocol prot, getActiveScans_args @Override public void read(org.apache.thrift.protocol.TProtocol prot, getActiveScans_args struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; - java.util.BitSet incoming = iprot.readBitSet(2); - if (incoming.get(0)) { - struct.tinfo = new org.apache.accumulo.core.clientImpl.thrift.TInfo(); - struct.tinfo.read(iprot); - struct.setTinfoIsSet(true); - } - if (incoming.get(1)) { - struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); - struct.credentials.read(iprot); - struct.setCredentialsIsSet(true); + prot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(2); + if (incoming.get(0)) { + struct.tinfo = new org.apache.accumulo.core.clientImpl.thrift.TInfo(); + struct.tinfo.read(iprot); + struct.setTinfoIsSet(true); + } + if (incoming.get(1)) { + struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); + struct.credentials.read(iprot); + struct.setCredentialsIsSet(true); + } + } finally { + prot.decrementRecursionDepth(); } } } @@ -12542,52 +12735,57 @@ private static class getActiveScans_resultStandardScheme extends org.apache.thri @Override public void read(org.apache.thrift.protocol.TProtocol iprot, getActiveScans_result struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TField schemeField; - iprot.readStructBegin(); - while (true) - { - schemeField = iprot.readFieldBegin(); - if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { - break; - } - switch (schemeField.id) { - case 0: // SUCCESS - if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { - { - org.apache.thrift.protocol.TList _list180 = iprot.readListBegin(); - struct.success = new java.util.ArrayList(_list180.size); - @org.apache.thrift.annotation.Nullable ActiveScan _elem181; - for (int _i182 = 0; _i182 < _list180.size; ++_i182) + iprot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { + break; + } + switch (schemeField.id) { + case 0: // SUCCESS + if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - _elem181 = new ActiveScan(); - _elem181.read(iprot); - struct.success.add(_elem181); + org.apache.thrift.protocol.TList _list180 = iprot.readListBegin(); + struct.success = new java.util.ArrayList(_list180.size); + @org.apache.thrift.annotation.Nullable ActiveScan _elem181; + for (int _i182 = 0; _i182 < _list180.size; ++_i182) + { + _elem181 = new ActiveScan(); + _elem181.read(iprot); + struct.success.add(_elem181); + } + iprot.readListEnd(); } - iprot.readListEnd(); + struct.setSuccessIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } - struct.setSuccessIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 1: // SEC - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.sec = new org.apache.accumulo.core.clientImpl.thrift.ThriftSecurityException(); - struct.sec.read(iprot); - struct.setSecIsSet(true); - } else { + break; + case 1: // SEC + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.sec = new org.apache.accumulo.core.clientImpl.thrift.ThriftSecurityException(); + struct.sec.read(iprot); + struct.setSecIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - default: - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); } - iprot.readFieldEnd(); - } - iprot.readStructEnd(); + iprot.readStructEnd(); - // check for required fields of primitive type, which can't be checked in the validate method - struct.validate(); + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } finally { + iprot.decrementRecursionDepth(); + } } @Override @@ -12654,26 +12852,31 @@ public void write(org.apache.thrift.protocol.TProtocol prot, getActiveScans_resu @Override public void read(org.apache.thrift.protocol.TProtocol prot, getActiveScans_result struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; - java.util.BitSet incoming = iprot.readBitSet(2); - if (incoming.get(0)) { - { - org.apache.thrift.protocol.TList _list185 = iprot.readListBegin(org.apache.thrift.protocol.TType.STRUCT); - struct.success = new java.util.ArrayList(_list185.size); - @org.apache.thrift.annotation.Nullable ActiveScan _elem186; - for (int _i187 = 0; _i187 < _list185.size; ++_i187) + prot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(2); + if (incoming.get(0)) { { - _elem186 = new ActiveScan(); - _elem186.read(iprot); - struct.success.add(_elem186); + org.apache.thrift.protocol.TList _list185 = iprot.readListBegin(org.apache.thrift.protocol.TType.STRUCT); + struct.success = new java.util.ArrayList(_list185.size); + @org.apache.thrift.annotation.Nullable ActiveScan _elem186; + for (int _i187 = 0; _i187 < _list185.size; ++_i187) + { + _elem186 = new ActiveScan(); + _elem186.read(iprot); + struct.success.add(_elem186); + } } + struct.setSuccessIsSet(true); } - struct.setSuccessIsSet(true); - } - if (incoming.get(1)) { - struct.sec = new org.apache.accumulo.core.clientImpl.thrift.ThriftSecurityException(); - struct.sec.read(iprot); - struct.setSecIsSet(true); + if (incoming.get(1)) { + struct.sec = new org.apache.accumulo.core.clientImpl.thrift.ThriftSecurityException(); + struct.sec.read(iprot); + struct.setSecIsSet(true); + } + } finally { + prot.decrementRecursionDepth(); } } } diff --git a/core/src/main/thrift-gen-java/org/apache/accumulo/core/tabletscan/thrift/TooManyFilesException.java b/core/src/main/thrift-gen-java/org/apache/accumulo/core/tabletscan/thrift/TooManyFilesException.java index ca39acf710d..90f4df0b29c 100644 --- a/core/src/main/thrift-gen-java/org/apache/accumulo/core/tabletscan/thrift/TooManyFilesException.java +++ b/core/src/main/thrift-gen-java/org/apache/accumulo/core/tabletscan/thrift/TooManyFilesException.java @@ -17,7 +17,7 @@ * under the License. */ /* - * Autogenerated by Thrift Compiler (0.17.0) + * Autogenerated by Thrift Compiler (0.23.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -324,33 +324,38 @@ private static class TooManyFilesExceptionStandardScheme extends org.apache.thri @Override public void read(org.apache.thrift.protocol.TProtocol iprot, TooManyFilesException struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TField schemeField; - iprot.readStructBegin(); - while (true) - { - schemeField = iprot.readFieldBegin(); - if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { - break; - } - switch (schemeField.id) { - case 1: // EXTENT - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.extent = new org.apache.accumulo.core.dataImpl.thrift.TKeyExtent(); - struct.extent.read(iprot); - struct.setExtentIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } + iprot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; - default: - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + switch (schemeField.id) { + case 1: // EXTENT + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.extent = new org.apache.accumulo.core.dataImpl.thrift.TKeyExtent(); + struct.extent.read(iprot); + struct.setExtentIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + default: + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); } - iprot.readFieldEnd(); - } - iprot.readStructEnd(); + iprot.readStructEnd(); - // check for required fields of primitive type, which can't be checked in the validate method - struct.validate(); + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } finally { + iprot.decrementRecursionDepth(); + } } @Override @@ -393,12 +398,17 @@ public void write(org.apache.thrift.protocol.TProtocol prot, TooManyFilesExcepti @Override public void read(org.apache.thrift.protocol.TProtocol prot, TooManyFilesException struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; - java.util.BitSet incoming = iprot.readBitSet(1); - if (incoming.get(0)) { - struct.extent = new org.apache.accumulo.core.dataImpl.thrift.TKeyExtent(); - struct.extent.read(iprot); - struct.setExtentIsSet(true); + prot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(1); + if (incoming.get(0)) { + struct.extent = new org.apache.accumulo.core.dataImpl.thrift.TKeyExtent(); + struct.extent.read(iprot); + struct.setExtentIsSet(true); + } + } finally { + prot.decrementRecursionDepth(); } } } diff --git a/core/src/main/thrift-gen-java/org/apache/accumulo/core/tabletserver/thrift/ActionStats.java b/core/src/main/thrift-gen-java/org/apache/accumulo/core/tabletserver/thrift/ActionStats.java index 27663718384..897426145bd 100644 --- a/core/src/main/thrift-gen-java/org/apache/accumulo/core/tabletserver/thrift/ActionStats.java +++ b/core/src/main/thrift-gen-java/org/apache/accumulo/core/tabletserver/thrift/ActionStats.java @@ -17,7 +17,7 @@ * under the License. */ /* - * Autogenerated by Thrift Compiler (0.17.0) + * Autogenerated by Thrift Compiler (0.23.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -843,88 +843,93 @@ private static class ActionStatsStandardScheme extends org.apache.thrift.scheme. @Override public void read(org.apache.thrift.protocol.TProtocol iprot, ActionStats struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TField schemeField; - iprot.readStructBegin(); - while (true) - { - schemeField = iprot.readFieldBegin(); - if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { - break; - } - switch (schemeField.id) { - case 1: // STATUS - if (schemeField.type == org.apache.thrift.protocol.TType.I32) { - struct.status = iprot.readI32(); - struct.setStatusIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } + iprot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; - case 2: // ELAPSED - if (schemeField.type == org.apache.thrift.protocol.TType.DOUBLE) { - struct.elapsed = iprot.readDouble(); - struct.setElapsedIsSet(true); - } else { + } + switch (schemeField.id) { + case 1: // STATUS + if (schemeField.type == org.apache.thrift.protocol.TType.I32) { + struct.status = iprot.readI32(); + struct.setStatusIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 2: // ELAPSED + if (schemeField.type == org.apache.thrift.protocol.TType.DOUBLE) { + struct.elapsed = iprot.readDouble(); + struct.setElapsedIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 3: // NUM + if (schemeField.type == org.apache.thrift.protocol.TType.I32) { + struct.num = iprot.readI32(); + struct.setNumIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 4: // COUNT + if (schemeField.type == org.apache.thrift.protocol.TType.I64) { + struct.count = iprot.readI64(); + struct.setCountIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 5: // SUM_DEV + if (schemeField.type == org.apache.thrift.protocol.TType.DOUBLE) { + struct.sumDev = iprot.readDouble(); + struct.setSumDevIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 6: // FAIL + if (schemeField.type == org.apache.thrift.protocol.TType.I32) { + struct.fail = iprot.readI32(); + struct.setFailIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 7: // QUEUE_TIME + if (schemeField.type == org.apache.thrift.protocol.TType.DOUBLE) { + struct.queueTime = iprot.readDouble(); + struct.setQueueTimeIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 8: // QUEUE_SUM_DEV + if (schemeField.type == org.apache.thrift.protocol.TType.DOUBLE) { + struct.queueSumDev = iprot.readDouble(); + struct.setQueueSumDevIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 3: // NUM - if (schemeField.type == org.apache.thrift.protocol.TType.I32) { - struct.num = iprot.readI32(); - struct.setNumIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 4: // COUNT - if (schemeField.type == org.apache.thrift.protocol.TType.I64) { - struct.count = iprot.readI64(); - struct.setCountIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 5: // SUM_DEV - if (schemeField.type == org.apache.thrift.protocol.TType.DOUBLE) { - struct.sumDev = iprot.readDouble(); - struct.setSumDevIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 6: // FAIL - if (schemeField.type == org.apache.thrift.protocol.TType.I32) { - struct.fail = iprot.readI32(); - struct.setFailIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 7: // QUEUE_TIME - if (schemeField.type == org.apache.thrift.protocol.TType.DOUBLE) { - struct.queueTime = iprot.readDouble(); - struct.setQueueTimeIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 8: // QUEUE_SUM_DEV - if (schemeField.type == org.apache.thrift.protocol.TType.DOUBLE) { - struct.queueSumDev = iprot.readDouble(); - struct.setQueueSumDevIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - default: - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); } - iprot.readFieldEnd(); - } - iprot.readStructEnd(); + iprot.readStructEnd(); - // check for required fields of primitive type, which can't be checked in the validate method - struct.validate(); + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } finally { + iprot.decrementRecursionDepth(); + } } @Override @@ -1028,39 +1033,44 @@ public void write(org.apache.thrift.protocol.TProtocol prot, ActionStats struct) @Override public void read(org.apache.thrift.protocol.TProtocol prot, ActionStats struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; - java.util.BitSet incoming = iprot.readBitSet(8); - if (incoming.get(0)) { - struct.status = iprot.readI32(); - struct.setStatusIsSet(true); - } - if (incoming.get(1)) { - struct.elapsed = iprot.readDouble(); - struct.setElapsedIsSet(true); - } - if (incoming.get(2)) { - struct.num = iprot.readI32(); - struct.setNumIsSet(true); - } - if (incoming.get(3)) { - struct.count = iprot.readI64(); - struct.setCountIsSet(true); - } - if (incoming.get(4)) { - struct.sumDev = iprot.readDouble(); - struct.setSumDevIsSet(true); - } - if (incoming.get(5)) { - struct.fail = iprot.readI32(); - struct.setFailIsSet(true); - } - if (incoming.get(6)) { - struct.queueTime = iprot.readDouble(); - struct.setQueueTimeIsSet(true); - } - if (incoming.get(7)) { - struct.queueSumDev = iprot.readDouble(); - struct.setQueueSumDevIsSet(true); + prot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(8); + if (incoming.get(0)) { + struct.status = iprot.readI32(); + struct.setStatusIsSet(true); + } + if (incoming.get(1)) { + struct.elapsed = iprot.readDouble(); + struct.setElapsedIsSet(true); + } + if (incoming.get(2)) { + struct.num = iprot.readI32(); + struct.setNumIsSet(true); + } + if (incoming.get(3)) { + struct.count = iprot.readI64(); + struct.setCountIsSet(true); + } + if (incoming.get(4)) { + struct.sumDev = iprot.readDouble(); + struct.setSumDevIsSet(true); + } + if (incoming.get(5)) { + struct.fail = iprot.readI32(); + struct.setFailIsSet(true); + } + if (incoming.get(6)) { + struct.queueTime = iprot.readDouble(); + struct.setQueueTimeIsSet(true); + } + if (incoming.get(7)) { + struct.queueSumDev = iprot.readDouble(); + struct.setQueueSumDevIsSet(true); + } + } finally { + prot.decrementRecursionDepth(); } } } diff --git a/core/src/main/thrift-gen-java/org/apache/accumulo/core/tabletserver/thrift/ActiveCompaction.java b/core/src/main/thrift-gen-java/org/apache/accumulo/core/tabletserver/thrift/ActiveCompaction.java index e2b680c0747..2dff7e52889 100644 --- a/core/src/main/thrift-gen-java/org/apache/accumulo/core/tabletserver/thrift/ActiveCompaction.java +++ b/core/src/main/thrift-gen-java/org/apache/accumulo/core/tabletserver/thrift/ActiveCompaction.java @@ -17,7 +17,7 @@ * under the License. */ /* - * Autogenerated by Thrift Compiler (0.17.0) + * Autogenerated by Thrift Compiler (0.23.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -1300,166 +1300,171 @@ private static class ActiveCompactionStandardScheme extends org.apache.thrift.sc @Override public void read(org.apache.thrift.protocol.TProtocol iprot, ActiveCompaction struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TField schemeField; - iprot.readStructBegin(); - while (true) - { - schemeField = iprot.readFieldBegin(); - if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { - break; - } - switch (schemeField.id) { - case 1: // EXTENT - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.extent = new org.apache.accumulo.core.dataImpl.thrift.TKeyExtent(); - struct.extent.read(iprot); - struct.setExtentIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 2: // AGE - if (schemeField.type == org.apache.thrift.protocol.TType.I64) { - struct.age = iprot.readI64(); - struct.setAgeIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } + iprot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; - case 3: // INPUT_FILES - if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { - { - org.apache.thrift.protocol.TList _list0 = iprot.readListBegin(); - struct.inputFiles = new java.util.ArrayList(_list0.size); - @org.apache.thrift.annotation.Nullable java.lang.String _elem1; - for (int _i2 = 0; _i2 < _list0.size; ++_i2) + } + switch (schemeField.id) { + case 1: // EXTENT + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.extent = new org.apache.accumulo.core.dataImpl.thrift.TKeyExtent(); + struct.extent.read(iprot); + struct.setExtentIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 2: // AGE + if (schemeField.type == org.apache.thrift.protocol.TType.I64) { + struct.age = iprot.readI64(); + struct.setAgeIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 3: // INPUT_FILES + if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - _elem1 = iprot.readString(); - struct.inputFiles.add(_elem1); + org.apache.thrift.protocol.TList _list0 = iprot.readListBegin(); + struct.inputFiles = new java.util.ArrayList(_list0.size); + @org.apache.thrift.annotation.Nullable java.lang.String _elem1; + for (int _i2 = 0; _i2 < _list0.size; ++_i2) + { + _elem1 = iprot.readString(); + struct.inputFiles.add(_elem1); + } + iprot.readListEnd(); } - iprot.readListEnd(); + struct.setInputFilesIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } - struct.setInputFilesIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 4: // OUTPUT_FILE - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.outputFile = iprot.readString(); - struct.setOutputFileIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 5: // TYPE - if (schemeField.type == org.apache.thrift.protocol.TType.I32) { - struct.type = org.apache.accumulo.core.tabletserver.thrift.TCompactionType.findByValue(iprot.readI32()); - struct.setTypeIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 6: // REASON - if (schemeField.type == org.apache.thrift.protocol.TType.I32) { - struct.reason = org.apache.accumulo.core.tabletserver.thrift.TCompactionReason.findByValue(iprot.readI32()); - struct.setReasonIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 7: // LOCALITY_GROUP - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.localityGroup = iprot.readString(); - struct.setLocalityGroupIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 8: // ENTRIES_READ - if (schemeField.type == org.apache.thrift.protocol.TType.I64) { - struct.entriesRead = iprot.readI64(); - struct.setEntriesReadIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 9: // ENTRIES_WRITTEN - if (schemeField.type == org.apache.thrift.protocol.TType.I64) { - struct.entriesWritten = iprot.readI64(); - struct.setEntriesWrittenIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 10: // SSI_LIST - if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { - { - org.apache.thrift.protocol.TList _list3 = iprot.readListBegin(); - struct.ssiList = new java.util.ArrayList(_list3.size); - @org.apache.thrift.annotation.Nullable org.apache.accumulo.core.dataImpl.thrift.IterInfo _elem4; - for (int _i5 = 0; _i5 < _list3.size; ++_i5) + break; + case 4: // OUTPUT_FILE + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.outputFile = iprot.readString(); + struct.setOutputFileIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 5: // TYPE + if (schemeField.type == org.apache.thrift.protocol.TType.I32) { + struct.type = org.apache.accumulo.core.tabletserver.thrift.TCompactionType.findByValue(iprot.readI32()); + struct.setTypeIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 6: // REASON + if (schemeField.type == org.apache.thrift.protocol.TType.I32) { + struct.reason = org.apache.accumulo.core.tabletserver.thrift.TCompactionReason.findByValue(iprot.readI32()); + struct.setReasonIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 7: // LOCALITY_GROUP + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.localityGroup = iprot.readString(); + struct.setLocalityGroupIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 8: // ENTRIES_READ + if (schemeField.type == org.apache.thrift.protocol.TType.I64) { + struct.entriesRead = iprot.readI64(); + struct.setEntriesReadIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 9: // ENTRIES_WRITTEN + if (schemeField.type == org.apache.thrift.protocol.TType.I64) { + struct.entriesWritten = iprot.readI64(); + struct.setEntriesWrittenIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 10: // SSI_LIST + if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - _elem4 = new org.apache.accumulo.core.dataImpl.thrift.IterInfo(); - _elem4.read(iprot); - struct.ssiList.add(_elem4); + org.apache.thrift.protocol.TList _list3 = iprot.readListBegin(); + struct.ssiList = new java.util.ArrayList(_list3.size); + @org.apache.thrift.annotation.Nullable org.apache.accumulo.core.dataImpl.thrift.IterInfo _elem4; + for (int _i5 = 0; _i5 < _list3.size; ++_i5) + { + _elem4 = new org.apache.accumulo.core.dataImpl.thrift.IterInfo(); + _elem4.read(iprot); + struct.ssiList.add(_elem4); + } + iprot.readListEnd(); } - iprot.readListEnd(); + struct.setSsiListIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } - struct.setSsiListIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 11: // SSIO - if (schemeField.type == org.apache.thrift.protocol.TType.MAP) { - { - org.apache.thrift.protocol.TMap _map6 = iprot.readMapBegin(); - struct.ssio = new java.util.HashMap>(2*_map6.size); - @org.apache.thrift.annotation.Nullable java.lang.String _key7; - @org.apache.thrift.annotation.Nullable java.util.Map _val8; - for (int _i9 = 0; _i9 < _map6.size; ++_i9) + break; + case 11: // SSIO + if (schemeField.type == org.apache.thrift.protocol.TType.MAP) { { - _key7 = iprot.readString(); + org.apache.thrift.protocol.TMap _map6 = iprot.readMapBegin(); + struct.ssio = new java.util.HashMap>(2*_map6.size); + @org.apache.thrift.annotation.Nullable java.lang.String _key7; + @org.apache.thrift.annotation.Nullable java.util.Map _val8; + for (int _i9 = 0; _i9 < _map6.size; ++_i9) { - org.apache.thrift.protocol.TMap _map10 = iprot.readMapBegin(); - _val8 = new java.util.HashMap(2*_map10.size); - @org.apache.thrift.annotation.Nullable java.lang.String _key11; - @org.apache.thrift.annotation.Nullable java.lang.String _val12; - for (int _i13 = 0; _i13 < _map10.size; ++_i13) + _key7 = iprot.readString(); { - _key11 = iprot.readString(); - _val12 = iprot.readString(); - _val8.put(_key11, _val12); + org.apache.thrift.protocol.TMap _map10 = iprot.readMapBegin(); + _val8 = new java.util.HashMap(2*_map10.size); + @org.apache.thrift.annotation.Nullable java.lang.String _key11; + @org.apache.thrift.annotation.Nullable java.lang.String _val12; + for (int _i13 = 0; _i13 < _map10.size; ++_i13) + { + _key11 = iprot.readString(); + _val12 = iprot.readString(); + _val8.put(_key11, _val12); + } + iprot.readMapEnd(); } - iprot.readMapEnd(); + struct.ssio.put(_key7, _val8); } - struct.ssio.put(_key7, _val8); + iprot.readMapEnd(); } - iprot.readMapEnd(); + struct.setSsioIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } - struct.setSsioIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 12: // TIMES_PAUSED - if (schemeField.type == org.apache.thrift.protocol.TType.I64) { - struct.timesPaused = iprot.readI64(); - struct.setTimesPausedIsSet(true); - } else { + break; + case 12: // TIMES_PAUSED + if (schemeField.type == org.apache.thrift.protocol.TType.I64) { + struct.timesPaused = iprot.readI64(); + struct.setTimesPausedIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - default: - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); } - iprot.readFieldEnd(); - } - iprot.readStructEnd(); + iprot.readStructEnd(); - // check for required fields of primitive type, which can't be checked in the validate method - struct.validate(); + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } finally { + iprot.decrementRecursionDepth(); + } } @Override @@ -1671,97 +1676,102 @@ public void write(org.apache.thrift.protocol.TProtocol prot, ActiveCompaction st @Override public void read(org.apache.thrift.protocol.TProtocol prot, ActiveCompaction struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; - java.util.BitSet incoming = iprot.readBitSet(12); - if (incoming.get(0)) { - struct.extent = new org.apache.accumulo.core.dataImpl.thrift.TKeyExtent(); - struct.extent.read(iprot); - struct.setExtentIsSet(true); - } - if (incoming.get(1)) { - struct.age = iprot.readI64(); - struct.setAgeIsSet(true); - } - if (incoming.get(2)) { - { - org.apache.thrift.protocol.TList _list22 = iprot.readListBegin(org.apache.thrift.protocol.TType.STRING); - struct.inputFiles = new java.util.ArrayList(_list22.size); - @org.apache.thrift.annotation.Nullable java.lang.String _elem23; - for (int _i24 = 0; _i24 < _list22.size; ++_i24) + prot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(12); + if (incoming.get(0)) { + struct.extent = new org.apache.accumulo.core.dataImpl.thrift.TKeyExtent(); + struct.extent.read(iprot); + struct.setExtentIsSet(true); + } + if (incoming.get(1)) { + struct.age = iprot.readI64(); + struct.setAgeIsSet(true); + } + if (incoming.get(2)) { { - _elem23 = iprot.readString(); - struct.inputFiles.add(_elem23); + org.apache.thrift.protocol.TList _list22 = iprot.readListBegin(org.apache.thrift.protocol.TType.STRING); + struct.inputFiles = new java.util.ArrayList(_list22.size); + @org.apache.thrift.annotation.Nullable java.lang.String _elem23; + for (int _i24 = 0; _i24 < _list22.size; ++_i24) + { + _elem23 = iprot.readString(); + struct.inputFiles.add(_elem23); + } } + struct.setInputFilesIsSet(true); } - struct.setInputFilesIsSet(true); - } - if (incoming.get(3)) { - struct.outputFile = iprot.readString(); - struct.setOutputFileIsSet(true); - } - if (incoming.get(4)) { - struct.type = org.apache.accumulo.core.tabletserver.thrift.TCompactionType.findByValue(iprot.readI32()); - struct.setTypeIsSet(true); - } - if (incoming.get(5)) { - struct.reason = org.apache.accumulo.core.tabletserver.thrift.TCompactionReason.findByValue(iprot.readI32()); - struct.setReasonIsSet(true); - } - if (incoming.get(6)) { - struct.localityGroup = iprot.readString(); - struct.setLocalityGroupIsSet(true); - } - if (incoming.get(7)) { - struct.entriesRead = iprot.readI64(); - struct.setEntriesReadIsSet(true); - } - if (incoming.get(8)) { - struct.entriesWritten = iprot.readI64(); - struct.setEntriesWrittenIsSet(true); - } - if (incoming.get(9)) { - { - org.apache.thrift.protocol.TList _list25 = iprot.readListBegin(org.apache.thrift.protocol.TType.STRUCT); - struct.ssiList = new java.util.ArrayList(_list25.size); - @org.apache.thrift.annotation.Nullable org.apache.accumulo.core.dataImpl.thrift.IterInfo _elem26; - for (int _i27 = 0; _i27 < _list25.size; ++_i27) + if (incoming.get(3)) { + struct.outputFile = iprot.readString(); + struct.setOutputFileIsSet(true); + } + if (incoming.get(4)) { + struct.type = org.apache.accumulo.core.tabletserver.thrift.TCompactionType.findByValue(iprot.readI32()); + struct.setTypeIsSet(true); + } + if (incoming.get(5)) { + struct.reason = org.apache.accumulo.core.tabletserver.thrift.TCompactionReason.findByValue(iprot.readI32()); + struct.setReasonIsSet(true); + } + if (incoming.get(6)) { + struct.localityGroup = iprot.readString(); + struct.setLocalityGroupIsSet(true); + } + if (incoming.get(7)) { + struct.entriesRead = iprot.readI64(); + struct.setEntriesReadIsSet(true); + } + if (incoming.get(8)) { + struct.entriesWritten = iprot.readI64(); + struct.setEntriesWrittenIsSet(true); + } + if (incoming.get(9)) { { - _elem26 = new org.apache.accumulo.core.dataImpl.thrift.IterInfo(); - _elem26.read(iprot); - struct.ssiList.add(_elem26); + org.apache.thrift.protocol.TList _list25 = iprot.readListBegin(org.apache.thrift.protocol.TType.STRUCT); + struct.ssiList = new java.util.ArrayList(_list25.size); + @org.apache.thrift.annotation.Nullable org.apache.accumulo.core.dataImpl.thrift.IterInfo _elem26; + for (int _i27 = 0; _i27 < _list25.size; ++_i27) + { + _elem26 = new org.apache.accumulo.core.dataImpl.thrift.IterInfo(); + _elem26.read(iprot); + struct.ssiList.add(_elem26); + } } + struct.setSsiListIsSet(true); } - struct.setSsiListIsSet(true); - } - if (incoming.get(10)) { - { - org.apache.thrift.protocol.TMap _map28 = iprot.readMapBegin(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.MAP); - struct.ssio = new java.util.HashMap>(2*_map28.size); - @org.apache.thrift.annotation.Nullable java.lang.String _key29; - @org.apache.thrift.annotation.Nullable java.util.Map _val30; - for (int _i31 = 0; _i31 < _map28.size; ++_i31) + if (incoming.get(10)) { { - _key29 = iprot.readString(); + org.apache.thrift.protocol.TMap _map28 = iprot.readMapBegin(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.MAP); + struct.ssio = new java.util.HashMap>(2*_map28.size); + @org.apache.thrift.annotation.Nullable java.lang.String _key29; + @org.apache.thrift.annotation.Nullable java.util.Map _val30; + for (int _i31 = 0; _i31 < _map28.size; ++_i31) { - org.apache.thrift.protocol.TMap _map32 = iprot.readMapBegin(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING); - _val30 = new java.util.HashMap(2*_map32.size); - @org.apache.thrift.annotation.Nullable java.lang.String _key33; - @org.apache.thrift.annotation.Nullable java.lang.String _val34; - for (int _i35 = 0; _i35 < _map32.size; ++_i35) + _key29 = iprot.readString(); { - _key33 = iprot.readString(); - _val34 = iprot.readString(); - _val30.put(_key33, _val34); + org.apache.thrift.protocol.TMap _map32 = iprot.readMapBegin(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING); + _val30 = new java.util.HashMap(2*_map32.size); + @org.apache.thrift.annotation.Nullable java.lang.String _key33; + @org.apache.thrift.annotation.Nullable java.lang.String _val34; + for (int _i35 = 0; _i35 < _map32.size; ++_i35) + { + _key33 = iprot.readString(); + _val34 = iprot.readString(); + _val30.put(_key33, _val34); + } } + struct.ssio.put(_key29, _val30); } - struct.ssio.put(_key29, _val30); } + struct.setSsioIsSet(true); } - struct.setSsioIsSet(true); - } - if (incoming.get(11)) { - struct.timesPaused = iprot.readI64(); - struct.setTimesPausedIsSet(true); + if (incoming.get(11)) { + struct.timesPaused = iprot.readI64(); + struct.setTimesPausedIsSet(true); + } + } finally { + prot.decrementRecursionDepth(); } } } diff --git a/core/src/main/thrift-gen-java/org/apache/accumulo/core/tabletserver/thrift/InputFile.java b/core/src/main/thrift-gen-java/org/apache/accumulo/core/tabletserver/thrift/InputFile.java index 1ffd1780a85..136a0804434 100644 --- a/core/src/main/thrift-gen-java/org/apache/accumulo/core/tabletserver/thrift/InputFile.java +++ b/core/src/main/thrift-gen-java/org/apache/accumulo/core/tabletserver/thrift/InputFile.java @@ -17,7 +17,7 @@ * under the License. */ /* - * Autogenerated by Thrift Compiler (0.17.0) + * Autogenerated by Thrift Compiler (0.23.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -550,56 +550,61 @@ private static class InputFileStandardScheme extends org.apache.thrift.scheme.St @Override public void read(org.apache.thrift.protocol.TProtocol iprot, InputFile struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TField schemeField; - iprot.readStructBegin(); - while (true) - { - schemeField = iprot.readFieldBegin(); - if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { - break; - } - switch (schemeField.id) { - case 1: // METADATA_FILE_ENTRY - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.metadataFileEntry = iprot.readString(); - struct.setMetadataFileEntryIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } + iprot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; - case 2: // SIZE - if (schemeField.type == org.apache.thrift.protocol.TType.I64) { - struct.size = iprot.readI64(); - struct.setSizeIsSet(true); - } else { + } + switch (schemeField.id) { + case 1: // METADATA_FILE_ENTRY + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.metadataFileEntry = iprot.readString(); + struct.setMetadataFileEntryIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 2: // SIZE + if (schemeField.type == org.apache.thrift.protocol.TType.I64) { + struct.size = iprot.readI64(); + struct.setSizeIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 3: // ENTRIES + if (schemeField.type == org.apache.thrift.protocol.TType.I64) { + struct.entries = iprot.readI64(); + struct.setEntriesIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 4: // TIMESTAMP + if (schemeField.type == org.apache.thrift.protocol.TType.I64) { + struct.timestamp = iprot.readI64(); + struct.setTimestampIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 3: // ENTRIES - if (schemeField.type == org.apache.thrift.protocol.TType.I64) { - struct.entries = iprot.readI64(); - struct.setEntriesIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 4: // TIMESTAMP - if (schemeField.type == org.apache.thrift.protocol.TType.I64) { - struct.timestamp = iprot.readI64(); - struct.setTimestampIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - default: - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); } - iprot.readFieldEnd(); - } - iprot.readStructEnd(); + iprot.readStructEnd(); - // check for required fields of primitive type, which can't be checked in the validate method - struct.validate(); + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } finally { + iprot.decrementRecursionDepth(); + } } @Override @@ -669,23 +674,28 @@ public void write(org.apache.thrift.protocol.TProtocol prot, InputFile struct) t @Override public void read(org.apache.thrift.protocol.TProtocol prot, InputFile struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; - java.util.BitSet incoming = iprot.readBitSet(4); - if (incoming.get(0)) { - struct.metadataFileEntry = iprot.readString(); - struct.setMetadataFileEntryIsSet(true); - } - if (incoming.get(1)) { - struct.size = iprot.readI64(); - struct.setSizeIsSet(true); - } - if (incoming.get(2)) { - struct.entries = iprot.readI64(); - struct.setEntriesIsSet(true); - } - if (incoming.get(3)) { - struct.timestamp = iprot.readI64(); - struct.setTimestampIsSet(true); + prot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(4); + if (incoming.get(0)) { + struct.metadataFileEntry = iprot.readString(); + struct.setMetadataFileEntryIsSet(true); + } + if (incoming.get(1)) { + struct.size = iprot.readI64(); + struct.setSizeIsSet(true); + } + if (incoming.get(2)) { + struct.entries = iprot.readI64(); + struct.setEntriesIsSet(true); + } + if (incoming.get(3)) { + struct.timestamp = iprot.readI64(); + struct.setTimestampIsSet(true); + } + } finally { + prot.decrementRecursionDepth(); } } } diff --git a/core/src/main/thrift-gen-java/org/apache/accumulo/core/tabletserver/thrift/IteratorConfig.java b/core/src/main/thrift-gen-java/org/apache/accumulo/core/tabletserver/thrift/IteratorConfig.java index 36a5ab1165c..6a4937bebc6 100644 --- a/core/src/main/thrift-gen-java/org/apache/accumulo/core/tabletserver/thrift/IteratorConfig.java +++ b/core/src/main/thrift-gen-java/org/apache/accumulo/core/tabletserver/thrift/IteratorConfig.java @@ -17,7 +17,7 @@ * under the License. */ /* - * Autogenerated by Thrift Compiler (0.17.0) + * Autogenerated by Thrift Compiler (0.23.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -342,43 +342,48 @@ private static class IteratorConfigStandardScheme extends org.apache.thrift.sche @Override public void read(org.apache.thrift.protocol.TProtocol iprot, IteratorConfig struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TField schemeField; - iprot.readStructBegin(); - while (true) - { - schemeField = iprot.readFieldBegin(); - if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { - break; - } - switch (schemeField.id) { - case 1: // ITERATORS - if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { - { - org.apache.thrift.protocol.TList _list46 = iprot.readListBegin(); - struct.iterators = new java.util.ArrayList(_list46.size); - @org.apache.thrift.annotation.Nullable TIteratorSetting _elem47; - for (int _i48 = 0; _i48 < _list46.size; ++_i48) + iprot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { + break; + } + switch (schemeField.id) { + case 1: // ITERATORS + if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - _elem47 = new TIteratorSetting(); - _elem47.read(iprot); - struct.iterators.add(_elem47); + org.apache.thrift.protocol.TList _list46 = iprot.readListBegin(); + struct.iterators = new java.util.ArrayList(_list46.size); + @org.apache.thrift.annotation.Nullable TIteratorSetting _elem47; + for (int _i48 = 0; _i48 < _list46.size; ++_i48) + { + _elem47 = new TIteratorSetting(); + _elem47.read(iprot); + struct.iterators.add(_elem47); + } + iprot.readListEnd(); } - iprot.readListEnd(); + struct.setIteratorsIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } - struct.setIteratorsIsSet(true); - } else { + break; + default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - default: - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); } - iprot.readFieldEnd(); - } - iprot.readStructEnd(); + iprot.readStructEnd(); - // check for required fields of primitive type, which can't be checked in the validate method - struct.validate(); + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } finally { + iprot.decrementRecursionDepth(); + } } @Override @@ -434,21 +439,26 @@ public void write(org.apache.thrift.protocol.TProtocol prot, IteratorConfig stru @Override public void read(org.apache.thrift.protocol.TProtocol prot, IteratorConfig struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; - java.util.BitSet incoming = iprot.readBitSet(1); - if (incoming.get(0)) { - { - org.apache.thrift.protocol.TList _list51 = iprot.readListBegin(org.apache.thrift.protocol.TType.STRUCT); - struct.iterators = new java.util.ArrayList(_list51.size); - @org.apache.thrift.annotation.Nullable TIteratorSetting _elem52; - for (int _i53 = 0; _i53 < _list51.size; ++_i53) + prot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(1); + if (incoming.get(0)) { { - _elem52 = new TIteratorSetting(); - _elem52.read(iprot); - struct.iterators.add(_elem52); + org.apache.thrift.protocol.TList _list51 = iprot.readListBegin(org.apache.thrift.protocol.TType.STRUCT); + struct.iterators = new java.util.ArrayList(_list51.size); + @org.apache.thrift.annotation.Nullable TIteratorSetting _elem52; + for (int _i53 = 0; _i53 < _list51.size; ++_i53) + { + _elem52 = new TIteratorSetting(); + _elem52.read(iprot); + struct.iterators.add(_elem52); + } } + struct.setIteratorsIsSet(true); } - struct.setIteratorsIsSet(true); + } finally { + prot.decrementRecursionDepth(); } } } diff --git a/core/src/main/thrift-gen-java/org/apache/accumulo/core/tabletserver/thrift/NoSuchScanIDException.java b/core/src/main/thrift-gen-java/org/apache/accumulo/core/tabletserver/thrift/NoSuchScanIDException.java index c2dd40ca766..795f302c100 100644 --- a/core/src/main/thrift-gen-java/org/apache/accumulo/core/tabletserver/thrift/NoSuchScanIDException.java +++ b/core/src/main/thrift-gen-java/org/apache/accumulo/core/tabletserver/thrift/NoSuchScanIDException.java @@ -17,7 +17,7 @@ * under the License. */ /* - * Autogenerated by Thrift Compiler (0.17.0) + * Autogenerated by Thrift Compiler (0.23.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -234,24 +234,29 @@ private static class NoSuchScanIDExceptionStandardScheme extends org.apache.thri @Override public void read(org.apache.thrift.protocol.TProtocol iprot, NoSuchScanIDException struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TField schemeField; - iprot.readStructBegin(); - while (true) - { - schemeField = iprot.readFieldBegin(); - if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { - break; + iprot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { + break; + } + switch (schemeField.id) { + default: + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); } - switch (schemeField.id) { - default: - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - iprot.readFieldEnd(); - } - iprot.readStructEnd(); + iprot.readStructEnd(); - // check for required fields of primitive type, which can't be checked in the validate method - struct.validate(); + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } finally { + iprot.decrementRecursionDepth(); + } } @Override @@ -281,7 +286,12 @@ public void write(org.apache.thrift.protocol.TProtocol prot, NoSuchScanIDExcepti @Override public void read(org.apache.thrift.protocol.TProtocol prot, NoSuchScanIDException struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + prot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + } finally { + prot.decrementRecursionDepth(); + } } } diff --git a/core/src/main/thrift-gen-java/org/apache/accumulo/core/tabletserver/thrift/NotServingTabletException.java b/core/src/main/thrift-gen-java/org/apache/accumulo/core/tabletserver/thrift/NotServingTabletException.java index 8ae323d2070..c23be939335 100644 --- a/core/src/main/thrift-gen-java/org/apache/accumulo/core/tabletserver/thrift/NotServingTabletException.java +++ b/core/src/main/thrift-gen-java/org/apache/accumulo/core/tabletserver/thrift/NotServingTabletException.java @@ -17,7 +17,7 @@ * under the License. */ /* - * Autogenerated by Thrift Compiler (0.17.0) + * Autogenerated by Thrift Compiler (0.23.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -324,33 +324,38 @@ private static class NotServingTabletExceptionStandardScheme extends org.apache. @Override public void read(org.apache.thrift.protocol.TProtocol iprot, NotServingTabletException struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TField schemeField; - iprot.readStructBegin(); - while (true) - { - schemeField = iprot.readFieldBegin(); - if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { - break; - } - switch (schemeField.id) { - case 1: // EXTENT - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.extent = new org.apache.accumulo.core.dataImpl.thrift.TKeyExtent(); - struct.extent.read(iprot); - struct.setExtentIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } + iprot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; - default: - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + switch (schemeField.id) { + case 1: // EXTENT + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.extent = new org.apache.accumulo.core.dataImpl.thrift.TKeyExtent(); + struct.extent.read(iprot); + struct.setExtentIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + default: + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); } - iprot.readFieldEnd(); - } - iprot.readStructEnd(); + iprot.readStructEnd(); - // check for required fields of primitive type, which can't be checked in the validate method - struct.validate(); + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } finally { + iprot.decrementRecursionDepth(); + } } @Override @@ -393,12 +398,17 @@ public void write(org.apache.thrift.protocol.TProtocol prot, NotServingTabletExc @Override public void read(org.apache.thrift.protocol.TProtocol prot, NotServingTabletException struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; - java.util.BitSet incoming = iprot.readBitSet(1); - if (incoming.get(0)) { - struct.extent = new org.apache.accumulo.core.dataImpl.thrift.TKeyExtent(); - struct.extent.read(iprot); - struct.setExtentIsSet(true); + prot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(1); + if (incoming.get(0)) { + struct.extent = new org.apache.accumulo.core.dataImpl.thrift.TKeyExtent(); + struct.extent.read(iprot); + struct.setExtentIsSet(true); + } + } finally { + prot.decrementRecursionDepth(); } } } diff --git a/core/src/main/thrift-gen-java/org/apache/accumulo/core/tabletserver/thrift/TCompactionGroupSummary.java b/core/src/main/thrift-gen-java/org/apache/accumulo/core/tabletserver/thrift/TCompactionGroupSummary.java index 38570765705..d10aeed4066 100644 --- a/core/src/main/thrift-gen-java/org/apache/accumulo/core/tabletserver/thrift/TCompactionGroupSummary.java +++ b/core/src/main/thrift-gen-java/org/apache/accumulo/core/tabletserver/thrift/TCompactionGroupSummary.java @@ -17,7 +17,7 @@ * under the License. */ /* - * Autogenerated by Thrift Compiler (0.17.0) + * Autogenerated by Thrift Compiler (0.23.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -400,40 +400,45 @@ private static class TCompactionGroupSummaryStandardScheme extends org.apache.th @Override public void read(org.apache.thrift.protocol.TProtocol iprot, TCompactionGroupSummary struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TField schemeField; - iprot.readStructBegin(); - while (true) - { - schemeField = iprot.readFieldBegin(); - if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { - break; - } - switch (schemeField.id) { - case 1: // GROUP - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.group = iprot.readString(); - struct.setGroupIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } + iprot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; - case 2: // PRIORITY - if (schemeField.type == org.apache.thrift.protocol.TType.I16) { - struct.priority = iprot.readI16(); - struct.setPriorityIsSet(true); - } else { + } + switch (schemeField.id) { + case 1: // GROUP + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.group = iprot.readString(); + struct.setGroupIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 2: // PRIORITY + if (schemeField.type == org.apache.thrift.protocol.TType.I16) { + struct.priority = iprot.readI16(); + struct.setPriorityIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - default: - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); } - iprot.readFieldEnd(); - } - iprot.readStructEnd(); + iprot.readStructEnd(); - // check for required fields of primitive type, which can't be checked in the validate method - struct.validate(); + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } finally { + iprot.decrementRecursionDepth(); + } } @Override @@ -485,15 +490,20 @@ public void write(org.apache.thrift.protocol.TProtocol prot, TCompactionGroupSum @Override public void read(org.apache.thrift.protocol.TProtocol prot, TCompactionGroupSummary struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; - java.util.BitSet incoming = iprot.readBitSet(2); - if (incoming.get(0)) { - struct.group = iprot.readString(); - struct.setGroupIsSet(true); - } - if (incoming.get(1)) { - struct.priority = iprot.readI16(); - struct.setPriorityIsSet(true); + prot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(2); + if (incoming.get(0)) { + struct.group = iprot.readString(); + struct.setGroupIsSet(true); + } + if (incoming.get(1)) { + struct.priority = iprot.readI16(); + struct.setPriorityIsSet(true); + } + } finally { + prot.decrementRecursionDepth(); } } } diff --git a/core/src/main/thrift-gen-java/org/apache/accumulo/core/tabletserver/thrift/TCompactionKind.java b/core/src/main/thrift-gen-java/org/apache/accumulo/core/tabletserver/thrift/TCompactionKind.java index bac7432ba67..53d4863f079 100644 --- a/core/src/main/thrift-gen-java/org/apache/accumulo/core/tabletserver/thrift/TCompactionKind.java +++ b/core/src/main/thrift-gen-java/org/apache/accumulo/core/tabletserver/thrift/TCompactionKind.java @@ -17,7 +17,7 @@ * under the License. */ /* - * Autogenerated by Thrift Compiler (0.17.0) + * Autogenerated by Thrift Compiler (0.23.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated diff --git a/core/src/main/thrift-gen-java/org/apache/accumulo/core/tabletserver/thrift/TCompactionReason.java b/core/src/main/thrift-gen-java/org/apache/accumulo/core/tabletserver/thrift/TCompactionReason.java index 8ea5edfbee5..9817899fd88 100644 --- a/core/src/main/thrift-gen-java/org/apache/accumulo/core/tabletserver/thrift/TCompactionReason.java +++ b/core/src/main/thrift-gen-java/org/apache/accumulo/core/tabletserver/thrift/TCompactionReason.java @@ -17,7 +17,7 @@ * under the License. */ /* - * Autogenerated by Thrift Compiler (0.17.0) + * Autogenerated by Thrift Compiler (0.23.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated diff --git a/core/src/main/thrift-gen-java/org/apache/accumulo/core/tabletserver/thrift/TCompactionStats.java b/core/src/main/thrift-gen-java/org/apache/accumulo/core/tabletserver/thrift/TCompactionStats.java index 41134460fbb..4b3f07642f0 100644 --- a/core/src/main/thrift-gen-java/org/apache/accumulo/core/tabletserver/thrift/TCompactionStats.java +++ b/core/src/main/thrift-gen-java/org/apache/accumulo/core/tabletserver/thrift/TCompactionStats.java @@ -17,7 +17,7 @@ * under the License. */ /* - * Autogenerated by Thrift Compiler (0.17.0) + * Autogenerated by Thrift Compiler (0.23.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -468,48 +468,53 @@ private static class TCompactionStatsStandardScheme extends org.apache.thrift.sc @Override public void read(org.apache.thrift.protocol.TProtocol iprot, TCompactionStats struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TField schemeField; - iprot.readStructBegin(); - while (true) - { - schemeField = iprot.readFieldBegin(); - if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { - break; - } - switch (schemeField.id) { - case 1: // ENTRIES_READ - if (schemeField.type == org.apache.thrift.protocol.TType.I64) { - struct.entriesRead = iprot.readI64(); - struct.setEntriesReadIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 2: // ENTRIES_WRITTEN - if (schemeField.type == org.apache.thrift.protocol.TType.I64) { - struct.entriesWritten = iprot.readI64(); - struct.setEntriesWrittenIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } + iprot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; - case 3: // FILE_SIZE - if (schemeField.type == org.apache.thrift.protocol.TType.I64) { - struct.fileSize = iprot.readI64(); - struct.setFileSizeIsSet(true); - } else { + } + switch (schemeField.id) { + case 1: // ENTRIES_READ + if (schemeField.type == org.apache.thrift.protocol.TType.I64) { + struct.entriesRead = iprot.readI64(); + struct.setEntriesReadIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 2: // ENTRIES_WRITTEN + if (schemeField.type == org.apache.thrift.protocol.TType.I64) { + struct.entriesWritten = iprot.readI64(); + struct.setEntriesWrittenIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 3: // FILE_SIZE + if (schemeField.type == org.apache.thrift.protocol.TType.I64) { + struct.fileSize = iprot.readI64(); + struct.setFileSizeIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - default: - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); } - iprot.readFieldEnd(); - } - iprot.readStructEnd(); + iprot.readStructEnd(); - // check for required fields of primitive type, which can't be checked in the validate method - struct.validate(); + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } finally { + iprot.decrementRecursionDepth(); + } } @Override @@ -568,19 +573,24 @@ public void write(org.apache.thrift.protocol.TProtocol prot, TCompactionStats st @Override public void read(org.apache.thrift.protocol.TProtocol prot, TCompactionStats struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; - java.util.BitSet incoming = iprot.readBitSet(3); - if (incoming.get(0)) { - struct.entriesRead = iprot.readI64(); - struct.setEntriesReadIsSet(true); - } - if (incoming.get(1)) { - struct.entriesWritten = iprot.readI64(); - struct.setEntriesWrittenIsSet(true); - } - if (incoming.get(2)) { - struct.fileSize = iprot.readI64(); - struct.setFileSizeIsSet(true); + prot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(3); + if (incoming.get(0)) { + struct.entriesRead = iprot.readI64(); + struct.setEntriesReadIsSet(true); + } + if (incoming.get(1)) { + struct.entriesWritten = iprot.readI64(); + struct.setEntriesWrittenIsSet(true); + } + if (incoming.get(2)) { + struct.fileSize = iprot.readI64(); + struct.setFileSizeIsSet(true); + } + } finally { + prot.decrementRecursionDepth(); } } } diff --git a/core/src/main/thrift-gen-java/org/apache/accumulo/core/tabletserver/thrift/TCompactionType.java b/core/src/main/thrift-gen-java/org/apache/accumulo/core/tabletserver/thrift/TCompactionType.java index 3c1d68200da..9a1d8a2ddc9 100644 --- a/core/src/main/thrift-gen-java/org/apache/accumulo/core/tabletserver/thrift/TCompactionType.java +++ b/core/src/main/thrift-gen-java/org/apache/accumulo/core/tabletserver/thrift/TCompactionType.java @@ -17,7 +17,7 @@ * under the License. */ /* - * Autogenerated by Thrift Compiler (0.17.0) + * Autogenerated by Thrift Compiler (0.23.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated diff --git a/core/src/main/thrift-gen-java/org/apache/accumulo/core/tabletserver/thrift/TExternalCompactionJob.java b/core/src/main/thrift-gen-java/org/apache/accumulo/core/tabletserver/thrift/TExternalCompactionJob.java index fa5f2e9fefc..e8916554bda 100644 --- a/core/src/main/thrift-gen-java/org/apache/accumulo/core/tabletserver/thrift/TExternalCompactionJob.java +++ b/core/src/main/thrift-gen-java/org/apache/accumulo/core/tabletserver/thrift/TExternalCompactionJob.java @@ -17,7 +17,7 @@ * under the License. */ /* - * Autogenerated by Thrift Compiler (0.17.0) + * Autogenerated by Thrift Compiler (0.23.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -47,6 +47,10 @@ public class TExternalCompactionJob implements org.apache.thrift.TBase overrides; // required @@ -59,6 +63,10 @@ public enum _Fields implements org.apache.thrift.TFieldIdEnum { ITERATOR_SETTINGS((short)4, "iteratorSettings"), OUTPUT_FILE((short)5, "outputFile"), PROPAGATE_DELETES((short)6, "propagateDeletes"), + /** + * + * @see TCompactionKind + */ KIND((short)7, "kind"), FATE_ID((short)8, "fateId"), OVERRIDES((short)9, "overrides"); @@ -157,7 +165,7 @@ public java.lang.String getFieldName() { tmpMap.put(_Fields.PROPAGATE_DELETES, new org.apache.thrift.meta_data.FieldMetaData("propagateDeletes", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL))); tmpMap.put(_Fields.KIND, new org.apache.thrift.meta_data.FieldMetaData("kind", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.ENUM , "TCompactionKind"))); + new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, TCompactionKind.class))); tmpMap.put(_Fields.FATE_ID, new org.apache.thrift.meta_data.FieldMetaData("fateId", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, org.apache.accumulo.core.manager.thrift.TFateId.class))); tmpMap.put(_Fields.OVERRIDES, new org.apache.thrift.meta_data.FieldMetaData("overrides", org.apache.thrift.TFieldRequirementType.DEFAULT, @@ -415,11 +423,19 @@ public void setPropagateDeletesIsSet(boolean value) { __isset_bitfield = org.apache.thrift.EncodingUtils.setBit(__isset_bitfield, __PROPAGATEDELETES_ISSET_ID, value); } + /** + * + * @see TCompactionKind + */ @org.apache.thrift.annotation.Nullable public TCompactionKind getKind() { return this.kind; } + /** + * + * @see TCompactionKind + */ public TExternalCompactionJob setKind(@org.apache.thrift.annotation.Nullable TCompactionKind kind) { this.kind = kind; return this; @@ -1018,122 +1034,127 @@ private static class TExternalCompactionJobStandardScheme extends org.apache.thr @Override public void read(org.apache.thrift.protocol.TProtocol iprot, TExternalCompactionJob struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TField schemeField; - iprot.readStructBegin(); - while (true) - { - schemeField = iprot.readFieldBegin(); - if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { - break; - } - switch (schemeField.id) { - case 1: // EXTERNAL_COMPACTION_ID - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.externalCompactionId = iprot.readString(); - struct.setExternalCompactionIdIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 2: // EXTENT - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.extent = new org.apache.accumulo.core.dataImpl.thrift.TKeyExtent(); - struct.extent.read(iprot); - struct.setExtentIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } + iprot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; - case 3: // FILES - if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { - { - org.apache.thrift.protocol.TList _list54 = iprot.readListBegin(); - struct.files = new java.util.ArrayList(_list54.size); - @org.apache.thrift.annotation.Nullable InputFile _elem55; - for (int _i56 = 0; _i56 < _list54.size; ++_i56) + } + switch (schemeField.id) { + case 1: // EXTERNAL_COMPACTION_ID + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.externalCompactionId = iprot.readString(); + struct.setExternalCompactionIdIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 2: // EXTENT + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.extent = new org.apache.accumulo.core.dataImpl.thrift.TKeyExtent(); + struct.extent.read(iprot); + struct.setExtentIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 3: // FILES + if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - _elem55 = new InputFile(); - _elem55.read(iprot); - struct.files.add(_elem55); + org.apache.thrift.protocol.TList _list54 = iprot.readListBegin(); + struct.files = new java.util.ArrayList(_list54.size); + @org.apache.thrift.annotation.Nullable InputFile _elem55; + for (int _i56 = 0; _i56 < _list54.size; ++_i56) + { + _elem55 = new InputFile(); + _elem55.read(iprot); + struct.files.add(_elem55); + } + iprot.readListEnd(); } - iprot.readListEnd(); + struct.setFilesIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } - struct.setFilesIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 4: // ITERATOR_SETTINGS - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.iteratorSettings = new IteratorConfig(); - struct.iteratorSettings.read(iprot); - struct.setIteratorSettingsIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 5: // OUTPUT_FILE - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.outputFile = iprot.readString(); - struct.setOutputFileIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 6: // PROPAGATE_DELETES - if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) { - struct.propagateDeletes = iprot.readBool(); - struct.setPropagateDeletesIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 7: // KIND - if (schemeField.type == org.apache.thrift.protocol.TType.I32) { - struct.kind = org.apache.accumulo.core.tabletserver.thrift.TCompactionKind.findByValue(iprot.readI32()); - struct.setKindIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 8: // FATE_ID - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.fateId = new org.apache.accumulo.core.manager.thrift.TFateId(); - struct.fateId.read(iprot); - struct.setFateIdIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 9: // OVERRIDES - if (schemeField.type == org.apache.thrift.protocol.TType.MAP) { - { - org.apache.thrift.protocol.TMap _map57 = iprot.readMapBegin(); - struct.overrides = new java.util.HashMap(2*_map57.size); - @org.apache.thrift.annotation.Nullable java.lang.String _key58; - @org.apache.thrift.annotation.Nullable java.lang.String _val59; - for (int _i60 = 0; _i60 < _map57.size; ++_i60) + break; + case 4: // ITERATOR_SETTINGS + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.iteratorSettings = new IteratorConfig(); + struct.iteratorSettings.read(iprot); + struct.setIteratorSettingsIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 5: // OUTPUT_FILE + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.outputFile = iprot.readString(); + struct.setOutputFileIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 6: // PROPAGATE_DELETES + if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) { + struct.propagateDeletes = iprot.readBool(); + struct.setPropagateDeletesIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 7: // KIND + if (schemeField.type == org.apache.thrift.protocol.TType.I32) { + struct.kind = org.apache.accumulo.core.tabletserver.thrift.TCompactionKind.findByValue(iprot.readI32()); + struct.setKindIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 8: // FATE_ID + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.fateId = new org.apache.accumulo.core.manager.thrift.TFateId(); + struct.fateId.read(iprot); + struct.setFateIdIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 9: // OVERRIDES + if (schemeField.type == org.apache.thrift.protocol.TType.MAP) { { - _key58 = iprot.readString(); - _val59 = iprot.readString(); - struct.overrides.put(_key58, _val59); + org.apache.thrift.protocol.TMap _map57 = iprot.readMapBegin(); + struct.overrides = new java.util.HashMap(2*_map57.size); + @org.apache.thrift.annotation.Nullable java.lang.String _key58; + @org.apache.thrift.annotation.Nullable java.lang.String _val59; + for (int _i60 = 0; _i60 < _map57.size; ++_i60) + { + _key58 = iprot.readString(); + _val59 = iprot.readString(); + struct.overrides.put(_key58, _val59); + } + iprot.readMapEnd(); } - iprot.readMapEnd(); + struct.setOverridesIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } - struct.setOverridesIsSet(true); - } else { + break; + default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - default: - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); } - iprot.readFieldEnd(); - } - iprot.readStructEnd(); + iprot.readStructEnd(); - // check for required fields of primitive type, which can't be checked in the validate method - struct.validate(); + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } finally { + iprot.decrementRecursionDepth(); + } } @Override @@ -1290,67 +1311,72 @@ public void write(org.apache.thrift.protocol.TProtocol prot, TExternalCompaction @Override public void read(org.apache.thrift.protocol.TProtocol prot, TExternalCompactionJob struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; - java.util.BitSet incoming = iprot.readBitSet(9); - if (incoming.get(0)) { - struct.externalCompactionId = iprot.readString(); - struct.setExternalCompactionIdIsSet(true); - } - if (incoming.get(1)) { - struct.extent = new org.apache.accumulo.core.dataImpl.thrift.TKeyExtent(); - struct.extent.read(iprot); - struct.setExtentIsSet(true); - } - if (incoming.get(2)) { - { - org.apache.thrift.protocol.TList _list65 = iprot.readListBegin(org.apache.thrift.protocol.TType.STRUCT); - struct.files = new java.util.ArrayList(_list65.size); - @org.apache.thrift.annotation.Nullable InputFile _elem66; - for (int _i67 = 0; _i67 < _list65.size; ++_i67) + prot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(9); + if (incoming.get(0)) { + struct.externalCompactionId = iprot.readString(); + struct.setExternalCompactionIdIsSet(true); + } + if (incoming.get(1)) { + struct.extent = new org.apache.accumulo.core.dataImpl.thrift.TKeyExtent(); + struct.extent.read(iprot); + struct.setExtentIsSet(true); + } + if (incoming.get(2)) { { - _elem66 = new InputFile(); - _elem66.read(iprot); - struct.files.add(_elem66); + org.apache.thrift.protocol.TList _list65 = iprot.readListBegin(org.apache.thrift.protocol.TType.STRUCT); + struct.files = new java.util.ArrayList(_list65.size); + @org.apache.thrift.annotation.Nullable InputFile _elem66; + for (int _i67 = 0; _i67 < _list65.size; ++_i67) + { + _elem66 = new InputFile(); + _elem66.read(iprot); + struct.files.add(_elem66); + } } + struct.setFilesIsSet(true); } - struct.setFilesIsSet(true); - } - if (incoming.get(3)) { - struct.iteratorSettings = new IteratorConfig(); - struct.iteratorSettings.read(iprot); - struct.setIteratorSettingsIsSet(true); - } - if (incoming.get(4)) { - struct.outputFile = iprot.readString(); - struct.setOutputFileIsSet(true); - } - if (incoming.get(5)) { - struct.propagateDeletes = iprot.readBool(); - struct.setPropagateDeletesIsSet(true); - } - if (incoming.get(6)) { - struct.kind = org.apache.accumulo.core.tabletserver.thrift.TCompactionKind.findByValue(iprot.readI32()); - struct.setKindIsSet(true); - } - if (incoming.get(7)) { - struct.fateId = new org.apache.accumulo.core.manager.thrift.TFateId(); - struct.fateId.read(iprot); - struct.setFateIdIsSet(true); - } - if (incoming.get(8)) { - { - org.apache.thrift.protocol.TMap _map68 = iprot.readMapBegin(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING); - struct.overrides = new java.util.HashMap(2*_map68.size); - @org.apache.thrift.annotation.Nullable java.lang.String _key69; - @org.apache.thrift.annotation.Nullable java.lang.String _val70; - for (int _i71 = 0; _i71 < _map68.size; ++_i71) + if (incoming.get(3)) { + struct.iteratorSettings = new IteratorConfig(); + struct.iteratorSettings.read(iprot); + struct.setIteratorSettingsIsSet(true); + } + if (incoming.get(4)) { + struct.outputFile = iprot.readString(); + struct.setOutputFileIsSet(true); + } + if (incoming.get(5)) { + struct.propagateDeletes = iprot.readBool(); + struct.setPropagateDeletesIsSet(true); + } + if (incoming.get(6)) { + struct.kind = org.apache.accumulo.core.tabletserver.thrift.TCompactionKind.findByValue(iprot.readI32()); + struct.setKindIsSet(true); + } + if (incoming.get(7)) { + struct.fateId = new org.apache.accumulo.core.manager.thrift.TFateId(); + struct.fateId.read(iprot); + struct.setFateIdIsSet(true); + } + if (incoming.get(8)) { { - _key69 = iprot.readString(); - _val70 = iprot.readString(); - struct.overrides.put(_key69, _val70); + org.apache.thrift.protocol.TMap _map68 = iprot.readMapBegin(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING); + struct.overrides = new java.util.HashMap(2*_map68.size); + @org.apache.thrift.annotation.Nullable java.lang.String _key69; + @org.apache.thrift.annotation.Nullable java.lang.String _val70; + for (int _i71 = 0; _i71 < _map68.size; ++_i71) + { + _key69 = iprot.readString(); + _val70 = iprot.readString(); + struct.overrides.put(_key69, _val70); + } } + struct.setOverridesIsSet(true); } - struct.setOverridesIsSet(true); + } finally { + prot.decrementRecursionDepth(); } } } diff --git a/core/src/main/thrift-gen-java/org/apache/accumulo/core/tabletserver/thrift/TIteratorSetting.java b/core/src/main/thrift-gen-java/org/apache/accumulo/core/tabletserver/thrift/TIteratorSetting.java index 95cc6f6f885..e08c9628b65 100644 --- a/core/src/main/thrift-gen-java/org/apache/accumulo/core/tabletserver/thrift/TIteratorSetting.java +++ b/core/src/main/thrift-gen-java/org/apache/accumulo/core/tabletserver/thrift/TIteratorSetting.java @@ -17,7 +17,7 @@ * under the License. */ /* - * Autogenerated by Thrift Compiler (0.17.0) + * Autogenerated by Thrift Compiler (0.23.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -578,68 +578,73 @@ private static class TIteratorSettingStandardScheme extends org.apache.thrift.sc @Override public void read(org.apache.thrift.protocol.TProtocol iprot, TIteratorSetting struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TField schemeField; - iprot.readStructBegin(); - while (true) - { - schemeField = iprot.readFieldBegin(); - if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { - break; - } - switch (schemeField.id) { - case 1: // PRIORITY - if (schemeField.type == org.apache.thrift.protocol.TType.I32) { - struct.priority = iprot.readI32(); - struct.setPriorityIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 2: // NAME - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.name = iprot.readString(); - struct.setNameIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 3: // ITERATOR_CLASS - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.iteratorClass = iprot.readString(); - struct.setIteratorClassIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } + iprot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; - case 4: // PROPERTIES - if (schemeField.type == org.apache.thrift.protocol.TType.MAP) { - { - org.apache.thrift.protocol.TMap _map36 = iprot.readMapBegin(); - struct.properties = new java.util.HashMap(2*_map36.size); - @org.apache.thrift.annotation.Nullable java.lang.String _key37; - @org.apache.thrift.annotation.Nullable java.lang.String _val38; - for (int _i39 = 0; _i39 < _map36.size; ++_i39) + } + switch (schemeField.id) { + case 1: // PRIORITY + if (schemeField.type == org.apache.thrift.protocol.TType.I32) { + struct.priority = iprot.readI32(); + struct.setPriorityIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 2: // NAME + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.name = iprot.readString(); + struct.setNameIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 3: // ITERATOR_CLASS + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.iteratorClass = iprot.readString(); + struct.setIteratorClassIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 4: // PROPERTIES + if (schemeField.type == org.apache.thrift.protocol.TType.MAP) { { - _key37 = iprot.readString(); - _val38 = iprot.readString(); - struct.properties.put(_key37, _val38); + org.apache.thrift.protocol.TMap _map36 = iprot.readMapBegin(); + struct.properties = new java.util.HashMap(2*_map36.size); + @org.apache.thrift.annotation.Nullable java.lang.String _key37; + @org.apache.thrift.annotation.Nullable java.lang.String _val38; + for (int _i39 = 0; _i39 < _map36.size; ++_i39) + { + _key37 = iprot.readString(); + _val38 = iprot.readString(); + struct.properties.put(_key37, _val38); + } + iprot.readMapEnd(); } - iprot.readMapEnd(); + struct.setPropertiesIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } - struct.setPropertiesIsSet(true); - } else { + break; + default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - default: - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); } - iprot.readFieldEnd(); - } - iprot.readStructEnd(); + iprot.readStructEnd(); - // check for required fields of primitive type, which can't be checked in the validate method - struct.validate(); + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } finally { + iprot.decrementRecursionDepth(); + } } @Override @@ -728,34 +733,39 @@ public void write(org.apache.thrift.protocol.TProtocol prot, TIteratorSetting st @Override public void read(org.apache.thrift.protocol.TProtocol prot, TIteratorSetting struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; - java.util.BitSet incoming = iprot.readBitSet(4); - if (incoming.get(0)) { - struct.priority = iprot.readI32(); - struct.setPriorityIsSet(true); - } - if (incoming.get(1)) { - struct.name = iprot.readString(); - struct.setNameIsSet(true); - } - if (incoming.get(2)) { - struct.iteratorClass = iprot.readString(); - struct.setIteratorClassIsSet(true); - } - if (incoming.get(3)) { - { - org.apache.thrift.protocol.TMap _map42 = iprot.readMapBegin(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING); - struct.properties = new java.util.HashMap(2*_map42.size); - @org.apache.thrift.annotation.Nullable java.lang.String _key43; - @org.apache.thrift.annotation.Nullable java.lang.String _val44; - for (int _i45 = 0; _i45 < _map42.size; ++_i45) + prot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(4); + if (incoming.get(0)) { + struct.priority = iprot.readI32(); + struct.setPriorityIsSet(true); + } + if (incoming.get(1)) { + struct.name = iprot.readString(); + struct.setNameIsSet(true); + } + if (incoming.get(2)) { + struct.iteratorClass = iprot.readString(); + struct.setIteratorClassIsSet(true); + } + if (incoming.get(3)) { { - _key43 = iprot.readString(); - _val44 = iprot.readString(); - struct.properties.put(_key43, _val44); + org.apache.thrift.protocol.TMap _map42 = iprot.readMapBegin(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING); + struct.properties = new java.util.HashMap(2*_map42.size); + @org.apache.thrift.annotation.Nullable java.lang.String _key43; + @org.apache.thrift.annotation.Nullable java.lang.String _val44; + for (int _i45 = 0; _i45 < _map42.size; ++_i45) + { + _key43 = iprot.readString(); + _val44 = iprot.readString(); + struct.properties.put(_key43, _val44); + } } + struct.setPropertiesIsSet(true); } - struct.setPropertiesIsSet(true); + } finally { + prot.decrementRecursionDepth(); } } } diff --git a/core/src/main/thrift-gen-java/org/apache/accumulo/core/tabletserver/thrift/TabletServerClientService.java b/core/src/main/thrift-gen-java/org/apache/accumulo/core/tabletserver/thrift/TabletServerClientService.java index 6815ed89d27..45949b42c0c 100644 --- a/core/src/main/thrift-gen-java/org/apache/accumulo/core/tabletserver/thrift/TabletServerClientService.java +++ b/core/src/main/thrift-gen-java/org/apache/accumulo/core/tabletserver/thrift/TabletServerClientService.java @@ -17,7 +17,7 @@ * under the License. */ /* - * Autogenerated by Thrift Compiler (0.17.0) + * Autogenerated by Thrift Compiler (0.23.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -1145,14 +1145,14 @@ public java.util.Map extends org.apache.thrift.TBaseProcessor implements org.apache.thrift.TProcessor { private static final org.slf4j.Logger _LOGGER = org.slf4j.LoggerFactory.getLogger(Processor.class.getName()); public Processor(I iface) { - super(iface, getProcessMap(new java.util.HashMap>())); + super(iface, getProcessMap(new java.util.HashMap>())); } - protected Processor(I iface, java.util.Map> processMap) { + protected Processor(I iface, java.util.Map> processMap) { super(iface, getProcessMap(processMap)); } - private static java.util.Map> getProcessMap(java.util.Map> processMap) { + private static java.util.Map> getProcessMap(java.util.Map> processMap) { processMap.put("flush", new flush()); processMap.put("getTabletServerStatus", new getTabletServerStatus()); processMap.put("getTabletStats", new getTabletStats()); @@ -1171,7 +1171,7 @@ protected Processor(I iface, java.util.Map extends org.apache.thrift.ProcessFunction { + public static class flush extends org.apache.thrift.ProcessFunction { public flush() { super("flush"); } @@ -1182,7 +1182,7 @@ public flush_args getEmptyArgsInstance() { } @Override - protected boolean isOneway() { + public boolean isOneway() { return true; } @@ -1191,6 +1191,11 @@ protected boolean rethrowUnhandledExceptions() { return false; } + @Override + public org.apache.thrift.TBase getEmptyResultInstance() { + return null; + } + @Override public org.apache.thrift.TBase getResult(I iface, flush_args args) throws org.apache.thrift.TException { iface.flush(args.tinfo, args.credentials, args.lock, args.tableId, args.startRow, args.endRow); @@ -1198,7 +1203,7 @@ public org.apache.thrift.TBase getResult(I iface, flush_args args) throws org.ap } } - public static class getTabletServerStatus extends org.apache.thrift.ProcessFunction { + public static class getTabletServerStatus extends org.apache.thrift.ProcessFunction { public getTabletServerStatus() { super("getTabletServerStatus"); } @@ -1209,7 +1214,7 @@ public getTabletServerStatus_args getEmptyArgsInstance() { } @Override - protected boolean isOneway() { + public boolean isOneway() { return false; } @@ -1218,9 +1223,14 @@ protected boolean rethrowUnhandledExceptions() { return false; } + @Override + public getTabletServerStatus_result getEmptyResultInstance() { + return new getTabletServerStatus_result(); + } + @Override public getTabletServerStatus_result getResult(I iface, getTabletServerStatus_args args) throws org.apache.thrift.TException { - getTabletServerStatus_result result = new getTabletServerStatus_result(); + getTabletServerStatus_result result = getEmptyResultInstance(); try { result.success = iface.getTabletServerStatus(args.tinfo, args.credentials); } catch (org.apache.accumulo.core.clientImpl.thrift.ThriftSecurityException sec) { @@ -1230,7 +1240,7 @@ public getTabletServerStatus_result getResult(I iface, getTabletServerStatus_arg } } - public static class getTabletStats extends org.apache.thrift.ProcessFunction { + public static class getTabletStats extends org.apache.thrift.ProcessFunction { public getTabletStats() { super("getTabletStats"); } @@ -1241,7 +1251,7 @@ public getTabletStats_args getEmptyArgsInstance() { } @Override - protected boolean isOneway() { + public boolean isOneway() { return false; } @@ -1250,9 +1260,14 @@ protected boolean rethrowUnhandledExceptions() { return false; } + @Override + public getTabletStats_result getEmptyResultInstance() { + return new getTabletStats_result(); + } + @Override public getTabletStats_result getResult(I iface, getTabletStats_args args) throws org.apache.thrift.TException { - getTabletStats_result result = new getTabletStats_result(); + getTabletStats_result result = getEmptyResultInstance(); try { result.success = iface.getTabletStats(args.tinfo, args.credentials, args.tableId); } catch (org.apache.accumulo.core.clientImpl.thrift.ThriftSecurityException sec) { @@ -1262,7 +1277,7 @@ public getTabletStats_result getResult(I iface, getTabletStats_args args) throws } } - public static class getHistoricalStats extends org.apache.thrift.ProcessFunction { + public static class getHistoricalStats extends org.apache.thrift.ProcessFunction { public getHistoricalStats() { super("getHistoricalStats"); } @@ -1273,7 +1288,7 @@ public getHistoricalStats_args getEmptyArgsInstance() { } @Override - protected boolean isOneway() { + public boolean isOneway() { return false; } @@ -1282,9 +1297,14 @@ protected boolean rethrowUnhandledExceptions() { return false; } + @Override + public getHistoricalStats_result getEmptyResultInstance() { + return new getHistoricalStats_result(); + } + @Override public getHistoricalStats_result getResult(I iface, getHistoricalStats_args args) throws org.apache.thrift.TException { - getHistoricalStats_result result = new getHistoricalStats_result(); + getHistoricalStats_result result = getEmptyResultInstance(); try { result.success = iface.getHistoricalStats(args.tinfo, args.credentials); } catch (org.apache.accumulo.core.clientImpl.thrift.ThriftSecurityException sec) { @@ -1294,7 +1314,7 @@ public getHistoricalStats_result getResult(I iface, getHistoricalStats_args args } } - public static class halt extends org.apache.thrift.ProcessFunction { + public static class halt extends org.apache.thrift.ProcessFunction { public halt() { super("halt"); } @@ -1305,7 +1325,7 @@ public halt_args getEmptyArgsInstance() { } @Override - protected boolean isOneway() { + public boolean isOneway() { return false; } @@ -1314,9 +1334,14 @@ protected boolean rethrowUnhandledExceptions() { return false; } + @Override + public halt_result getEmptyResultInstance() { + return new halt_result(); + } + @Override public halt_result getResult(I iface, halt_args args) throws org.apache.thrift.TException { - halt_result result = new halt_result(); + halt_result result = getEmptyResultInstance(); try { iface.halt(args.tinfo, args.credentials, args.lock); } catch (org.apache.accumulo.core.clientImpl.thrift.ThriftSecurityException sec) { @@ -1326,7 +1351,7 @@ public halt_result getResult(I iface, halt_args args) throws org.apache.thrift.T } } - public static class fastHalt extends org.apache.thrift.ProcessFunction { + public static class fastHalt extends org.apache.thrift.ProcessFunction { public fastHalt() { super("fastHalt"); } @@ -1337,7 +1362,7 @@ public fastHalt_args getEmptyArgsInstance() { } @Override - protected boolean isOneway() { + public boolean isOneway() { return true; } @@ -1346,6 +1371,11 @@ protected boolean rethrowUnhandledExceptions() { return false; } + @Override + public org.apache.thrift.TBase getEmptyResultInstance() { + return null; + } + @Override public org.apache.thrift.TBase getResult(I iface, fastHalt_args args) throws org.apache.thrift.TException { iface.fastHalt(args.tinfo, args.credentials, args.lock); @@ -1353,7 +1383,7 @@ public org.apache.thrift.TBase getResult(I iface, fastHalt_args args) throws org } } - public static class getActiveCompactions extends org.apache.thrift.ProcessFunction { + public static class getActiveCompactions extends org.apache.thrift.ProcessFunction { public getActiveCompactions() { super("getActiveCompactions"); } @@ -1364,7 +1394,7 @@ public getActiveCompactions_args getEmptyArgsInstance() { } @Override - protected boolean isOneway() { + public boolean isOneway() { return false; } @@ -1373,9 +1403,14 @@ protected boolean rethrowUnhandledExceptions() { return false; } + @Override + public getActiveCompactions_result getEmptyResultInstance() { + return new getActiveCompactions_result(); + } + @Override public getActiveCompactions_result getResult(I iface, getActiveCompactions_args args) throws org.apache.thrift.TException { - getActiveCompactions_result result = new getActiveCompactions_result(); + getActiveCompactions_result result = getEmptyResultInstance(); try { result.success = iface.getActiveCompactions(args.tinfo, args.credentials); } catch (org.apache.accumulo.core.clientImpl.thrift.ThriftSecurityException sec) { @@ -1385,7 +1420,7 @@ public getActiveCompactions_result getResult(I iface, getActiveCompactions_args } } - public static class removeLogs extends org.apache.thrift.ProcessFunction { + public static class removeLogs extends org.apache.thrift.ProcessFunction { public removeLogs() { super("removeLogs"); } @@ -1396,7 +1431,7 @@ public removeLogs_args getEmptyArgsInstance() { } @Override - protected boolean isOneway() { + public boolean isOneway() { return true; } @@ -1405,6 +1440,11 @@ protected boolean rethrowUnhandledExceptions() { return false; } + @Override + public org.apache.thrift.TBase getEmptyResultInstance() { + return null; + } + @Override public org.apache.thrift.TBase getResult(I iface, removeLogs_args args) throws org.apache.thrift.TException { iface.removeLogs(args.tinfo, args.credentials, args.filenames); @@ -1412,7 +1452,7 @@ public org.apache.thrift.TBase getResult(I iface, removeLogs_args args) throws o } } - public static class getActiveLogs extends org.apache.thrift.ProcessFunction { + public static class getActiveLogs extends org.apache.thrift.ProcessFunction { public getActiveLogs() { super("getActiveLogs"); } @@ -1423,7 +1463,7 @@ public getActiveLogs_args getEmptyArgsInstance() { } @Override - protected boolean isOneway() { + public boolean isOneway() { return false; } @@ -1432,15 +1472,20 @@ protected boolean rethrowUnhandledExceptions() { return false; } + @Override + public getActiveLogs_result getEmptyResultInstance() { + return new getActiveLogs_result(); + } + @Override public getActiveLogs_result getResult(I iface, getActiveLogs_args args) throws org.apache.thrift.TException { - getActiveLogs_result result = new getActiveLogs_result(); + getActiveLogs_result result = getEmptyResultInstance(); result.success = iface.getActiveLogs(args.tinfo, args.credentials); return result; } } - public static class startGetSummaries extends org.apache.thrift.ProcessFunction { + public static class startGetSummaries extends org.apache.thrift.ProcessFunction { public startGetSummaries() { super("startGetSummaries"); } @@ -1451,7 +1496,7 @@ public startGetSummaries_args getEmptyArgsInstance() { } @Override - protected boolean isOneway() { + public boolean isOneway() { return false; } @@ -1460,9 +1505,14 @@ protected boolean rethrowUnhandledExceptions() { return false; } + @Override + public startGetSummaries_result getEmptyResultInstance() { + return new startGetSummaries_result(); + } + @Override public startGetSummaries_result getResult(I iface, startGetSummaries_args args) throws org.apache.thrift.TException { - startGetSummaries_result result = new startGetSummaries_result(); + startGetSummaries_result result = getEmptyResultInstance(); try { result.success = iface.startGetSummaries(args.tinfo, args.credentials, args.request); } catch (org.apache.accumulo.core.clientImpl.thrift.ThriftSecurityException sec) { @@ -1474,7 +1524,7 @@ public startGetSummaries_result getResult(I iface, startGetSummaries_args args) } } - public static class startGetSummariesForPartition extends org.apache.thrift.ProcessFunction { + public static class startGetSummariesForPartition extends org.apache.thrift.ProcessFunction { public startGetSummariesForPartition() { super("startGetSummariesForPartition"); } @@ -1485,7 +1535,7 @@ public startGetSummariesForPartition_args getEmptyArgsInstance() { } @Override - protected boolean isOneway() { + public boolean isOneway() { return false; } @@ -1494,9 +1544,14 @@ protected boolean rethrowUnhandledExceptions() { return false; } + @Override + public startGetSummariesForPartition_result getEmptyResultInstance() { + return new startGetSummariesForPartition_result(); + } + @Override public startGetSummariesForPartition_result getResult(I iface, startGetSummariesForPartition_args args) throws org.apache.thrift.TException { - startGetSummariesForPartition_result result = new startGetSummariesForPartition_result(); + startGetSummariesForPartition_result result = getEmptyResultInstance(); try { result.success = iface.startGetSummariesForPartition(args.tinfo, args.credentials, args.request, args.modulus, args.remainder); } catch (org.apache.accumulo.core.clientImpl.thrift.ThriftSecurityException sec) { @@ -1506,7 +1561,7 @@ public startGetSummariesForPartition_result getResult(I iface, startGetSummaries } } - public static class startGetSummariesFromFiles extends org.apache.thrift.ProcessFunction { + public static class startGetSummariesFromFiles extends org.apache.thrift.ProcessFunction { public startGetSummariesFromFiles() { super("startGetSummariesFromFiles"); } @@ -1517,7 +1572,7 @@ public startGetSummariesFromFiles_args getEmptyArgsInstance() { } @Override - protected boolean isOneway() { + public boolean isOneway() { return false; } @@ -1526,9 +1581,14 @@ protected boolean rethrowUnhandledExceptions() { return false; } + @Override + public startGetSummariesFromFiles_result getEmptyResultInstance() { + return new startGetSummariesFromFiles_result(); + } + @Override public startGetSummariesFromFiles_result getResult(I iface, startGetSummariesFromFiles_args args) throws org.apache.thrift.TException { - startGetSummariesFromFiles_result result = new startGetSummariesFromFiles_result(); + startGetSummariesFromFiles_result result = getEmptyResultInstance(); try { result.success = iface.startGetSummariesFromFiles(args.tinfo, args.credentials, args.request, args.files); } catch (org.apache.accumulo.core.clientImpl.thrift.ThriftSecurityException sec) { @@ -1538,7 +1598,7 @@ public startGetSummariesFromFiles_result getResult(I iface, startGetSummariesFro } } - public static class contiuneGetSummaries extends org.apache.thrift.ProcessFunction { + public static class contiuneGetSummaries extends org.apache.thrift.ProcessFunction { public contiuneGetSummaries() { super("contiuneGetSummaries"); } @@ -1549,7 +1609,7 @@ public contiuneGetSummaries_args getEmptyArgsInstance() { } @Override - protected boolean isOneway() { + public boolean isOneway() { return false; } @@ -1558,9 +1618,14 @@ protected boolean rethrowUnhandledExceptions() { return false; } + @Override + public contiuneGetSummaries_result getEmptyResultInstance() { + return new contiuneGetSummaries_result(); + } + @Override public contiuneGetSummaries_result getResult(I iface, contiuneGetSummaries_args args) throws org.apache.thrift.TException { - contiuneGetSummaries_result result = new contiuneGetSummaries_result(); + contiuneGetSummaries_result result = getEmptyResultInstance(); try { result.success = iface.contiuneGetSummaries(args.tinfo, args.sessionId); } catch (NoSuchScanIDException nssi) { @@ -1570,7 +1635,7 @@ public contiuneGetSummaries_result getResult(I iface, contiuneGetSummaries_args } } - public static class refreshTablets extends org.apache.thrift.ProcessFunction { + public static class refreshTablets extends org.apache.thrift.ProcessFunction { public refreshTablets() { super("refreshTablets"); } @@ -1581,7 +1646,7 @@ public refreshTablets_args getEmptyArgsInstance() { } @Override - protected boolean isOneway() { + public boolean isOneway() { return false; } @@ -1590,15 +1655,20 @@ protected boolean rethrowUnhandledExceptions() { return false; } + @Override + public refreshTablets_result getEmptyResultInstance() { + return new refreshTablets_result(); + } + @Override public refreshTablets_result getResult(I iface, refreshTablets_args args) throws org.apache.thrift.TException { - refreshTablets_result result = new refreshTablets_result(); + refreshTablets_result result = getEmptyResultInstance(); result.success = iface.refreshTablets(args.tinfo, args.credentials, args.tabletsToRefresh); return result; } } - public static class allocateTimestamps extends org.apache.thrift.ProcessFunction { + public static class allocateTimestamps extends org.apache.thrift.ProcessFunction { public allocateTimestamps() { super("allocateTimestamps"); } @@ -1609,7 +1679,7 @@ public allocateTimestamps_args getEmptyArgsInstance() { } @Override - protected boolean isOneway() { + public boolean isOneway() { return false; } @@ -1618,9 +1688,14 @@ protected boolean rethrowUnhandledExceptions() { return false; } + @Override + public allocateTimestamps_result getEmptyResultInstance() { + return new allocateTimestamps_result(); + } + @Override public allocateTimestamps_result getResult(I iface, allocateTimestamps_args args) throws org.apache.thrift.TException { - allocateTimestamps_result result = new allocateTimestamps_result(); + allocateTimestamps_result result = getEmptyResultInstance(); result.success = iface.allocateTimestamps(args.tinfo, args.credentials, args.tablets); return result; } @@ -1631,14 +1706,14 @@ public allocateTimestamps_result getResult(I iface, allocateTimestamps_args args public static class AsyncProcessor extends org.apache.thrift.TBaseAsyncProcessor { private static final org.slf4j.Logger _LOGGER = org.slf4j.LoggerFactory.getLogger(AsyncProcessor.class.getName()); public AsyncProcessor(I iface) { - super(iface, getProcessMap(new java.util.HashMap>())); + super(iface, getProcessMap(new java.util.HashMap>())); } - protected AsyncProcessor(I iface, java.util.Map> processMap) { + protected AsyncProcessor(I iface, java.util.Map> processMap) { super(iface, getProcessMap(processMap)); } - private static java.util.Map> getProcessMap(java.util.Map> processMap) { + private static java.util.Map> getProcessMap(java.util.Map> processMap) { processMap.put("flush", new flush()); processMap.put("getTabletServerStatus", new getTabletServerStatus()); processMap.put("getTabletStats", new getTabletStats()); @@ -1657,11 +1732,16 @@ protected AsyncProcessor(I iface, java.util.Map extends org.apache.thrift.AsyncProcessFunction { + public static class flush extends org.apache.thrift.AsyncProcessFunction { public flush() { super("flush"); } + @Override + public org.apache.thrift.TBase getEmptyResultInstance() { + return null; + } + @Override public flush_args getEmptyArgsInstance() { return new flush_args(); @@ -1687,7 +1767,7 @@ public void onError(java.lang.Exception e) { } @Override - protected boolean isOneway() { + public boolean isOneway() { return true; } @@ -1697,11 +1777,16 @@ public void start(I iface, flush_args args, org.apache.thrift.async.AsyncMethodC } } - public static class getTabletServerStatus extends org.apache.thrift.AsyncProcessFunction { + public static class getTabletServerStatus extends org.apache.thrift.AsyncProcessFunction { public getTabletServerStatus() { super("getTabletServerStatus"); } + @Override + public getTabletServerStatus_result getEmptyResultInstance() { + return new getTabletServerStatus_result(); + } + @Override public getTabletServerStatus_args getEmptyArgsInstance() { return new getTabletServerStatus_args(); @@ -1758,7 +1843,7 @@ public void onError(java.lang.Exception e) { } @Override - protected boolean isOneway() { + public boolean isOneway() { return false; } @@ -1768,11 +1853,16 @@ public void start(I iface, getTabletServerStatus_args args, org.apache.thrift.as } } - public static class getTabletStats extends org.apache.thrift.AsyncProcessFunction> { + public static class getTabletStats extends org.apache.thrift.AsyncProcessFunction, getTabletStats_result> { public getTabletStats() { super("getTabletStats"); } + @Override + public getTabletStats_result getEmptyResultInstance() { + return new getTabletStats_result(); + } + @Override public getTabletStats_args getEmptyArgsInstance() { return new getTabletStats_args(); @@ -1829,7 +1919,7 @@ public void onError(java.lang.Exception e) { } @Override - protected boolean isOneway() { + public boolean isOneway() { return false; } @@ -1839,11 +1929,16 @@ public void start(I iface, getTabletStats_args args, org.apache.thrift.async.Asy } } - public static class getHistoricalStats extends org.apache.thrift.AsyncProcessFunction { + public static class getHistoricalStats extends org.apache.thrift.AsyncProcessFunction { public getHistoricalStats() { super("getHistoricalStats"); } + @Override + public getHistoricalStats_result getEmptyResultInstance() { + return new getHistoricalStats_result(); + } + @Override public getHistoricalStats_args getEmptyArgsInstance() { return new getHistoricalStats_args(); @@ -1900,7 +1995,7 @@ public void onError(java.lang.Exception e) { } @Override - protected boolean isOneway() { + public boolean isOneway() { return false; } @@ -1910,11 +2005,16 @@ public void start(I iface, getHistoricalStats_args args, org.apache.thrift.async } } - public static class halt extends org.apache.thrift.AsyncProcessFunction { + public static class halt extends org.apache.thrift.AsyncProcessFunction { public halt() { super("halt"); } + @Override + public halt_result getEmptyResultInstance() { + return new halt_result(); + } + @Override public halt_args getEmptyArgsInstance() { return new halt_args(); @@ -1970,7 +2070,7 @@ public void onError(java.lang.Exception e) { } @Override - protected boolean isOneway() { + public boolean isOneway() { return false; } @@ -1980,11 +2080,16 @@ public void start(I iface, halt_args args, org.apache.thrift.async.AsyncMethodCa } } - public static class fastHalt extends org.apache.thrift.AsyncProcessFunction { + public static class fastHalt extends org.apache.thrift.AsyncProcessFunction { public fastHalt() { super("fastHalt"); } + @Override + public org.apache.thrift.TBase getEmptyResultInstance() { + return null; + } + @Override public fastHalt_args getEmptyArgsInstance() { return new fastHalt_args(); @@ -2010,7 +2115,7 @@ public void onError(java.lang.Exception e) { } @Override - protected boolean isOneway() { + public boolean isOneway() { return true; } @@ -2020,11 +2125,16 @@ public void start(I iface, fastHalt_args args, org.apache.thrift.async.AsyncMeth } } - public static class getActiveCompactions extends org.apache.thrift.AsyncProcessFunction> { + public static class getActiveCompactions extends org.apache.thrift.AsyncProcessFunction, getActiveCompactions_result> { public getActiveCompactions() { super("getActiveCompactions"); } + @Override + public getActiveCompactions_result getEmptyResultInstance() { + return new getActiveCompactions_result(); + } + @Override public getActiveCompactions_args getEmptyArgsInstance() { return new getActiveCompactions_args(); @@ -2081,7 +2191,7 @@ public void onError(java.lang.Exception e) { } @Override - protected boolean isOneway() { + public boolean isOneway() { return false; } @@ -2091,11 +2201,16 @@ public void start(I iface, getActiveCompactions_args args, org.apache.thrift.asy } } - public static class removeLogs extends org.apache.thrift.AsyncProcessFunction { + public static class removeLogs extends org.apache.thrift.AsyncProcessFunction { public removeLogs() { super("removeLogs"); } + @Override + public org.apache.thrift.TBase getEmptyResultInstance() { + return null; + } + @Override public removeLogs_args getEmptyArgsInstance() { return new removeLogs_args(); @@ -2121,7 +2236,7 @@ public void onError(java.lang.Exception e) { } @Override - protected boolean isOneway() { + public boolean isOneway() { return true; } @@ -2131,11 +2246,16 @@ public void start(I iface, removeLogs_args args, org.apache.thrift.async.AsyncMe } } - public static class getActiveLogs extends org.apache.thrift.AsyncProcessFunction> { + public static class getActiveLogs extends org.apache.thrift.AsyncProcessFunction, getActiveLogs_result> { public getActiveLogs() { super("getActiveLogs"); } + @Override + public getActiveLogs_result getEmptyResultInstance() { + return new getActiveLogs_result(); + } + @Override public getActiveLogs_args getEmptyArgsInstance() { return new getActiveLogs_args(); @@ -2188,7 +2308,7 @@ public void onError(java.lang.Exception e) { } @Override - protected boolean isOneway() { + public boolean isOneway() { return false; } @@ -2198,11 +2318,16 @@ public void start(I iface, getActiveLogs_args args, org.apache.thrift.async.Asyn } } - public static class startGetSummaries extends org.apache.thrift.AsyncProcessFunction { + public static class startGetSummaries extends org.apache.thrift.AsyncProcessFunction { public startGetSummaries() { super("startGetSummaries"); } + @Override + public startGetSummaries_result getEmptyResultInstance() { + return new startGetSummaries_result(); + } + @Override public startGetSummaries_args getEmptyArgsInstance() { return new startGetSummaries_args(); @@ -2263,7 +2388,7 @@ public void onError(java.lang.Exception e) { } @Override - protected boolean isOneway() { + public boolean isOneway() { return false; } @@ -2273,11 +2398,16 @@ public void start(I iface, startGetSummaries_args args, org.apache.thrift.async. } } - public static class startGetSummariesForPartition extends org.apache.thrift.AsyncProcessFunction { + public static class startGetSummariesForPartition extends org.apache.thrift.AsyncProcessFunction { public startGetSummariesForPartition() { super("startGetSummariesForPartition"); } + @Override + public startGetSummariesForPartition_result getEmptyResultInstance() { + return new startGetSummariesForPartition_result(); + } + @Override public startGetSummariesForPartition_args getEmptyArgsInstance() { return new startGetSummariesForPartition_args(); @@ -2334,7 +2464,7 @@ public void onError(java.lang.Exception e) { } @Override - protected boolean isOneway() { + public boolean isOneway() { return false; } @@ -2344,11 +2474,16 @@ public void start(I iface, startGetSummariesForPartition_args args, org.apache.t } } - public static class startGetSummariesFromFiles extends org.apache.thrift.AsyncProcessFunction { + public static class startGetSummariesFromFiles extends org.apache.thrift.AsyncProcessFunction { public startGetSummariesFromFiles() { super("startGetSummariesFromFiles"); } + @Override + public startGetSummariesFromFiles_result getEmptyResultInstance() { + return new startGetSummariesFromFiles_result(); + } + @Override public startGetSummariesFromFiles_args getEmptyArgsInstance() { return new startGetSummariesFromFiles_args(); @@ -2405,7 +2540,7 @@ public void onError(java.lang.Exception e) { } @Override - protected boolean isOneway() { + public boolean isOneway() { return false; } @@ -2415,11 +2550,16 @@ public void start(I iface, startGetSummariesFromFiles_args args, org.apache.thri } } - public static class contiuneGetSummaries extends org.apache.thrift.AsyncProcessFunction { + public static class contiuneGetSummaries extends org.apache.thrift.AsyncProcessFunction { public contiuneGetSummaries() { super("contiuneGetSummaries"); } + @Override + public contiuneGetSummaries_result getEmptyResultInstance() { + return new contiuneGetSummaries_result(); + } + @Override public contiuneGetSummaries_args getEmptyArgsInstance() { return new contiuneGetSummaries_args(); @@ -2476,7 +2616,7 @@ public void onError(java.lang.Exception e) { } @Override - protected boolean isOneway() { + public boolean isOneway() { return false; } @@ -2486,11 +2626,16 @@ public void start(I iface, contiuneGetSummaries_args args, org.apache.thrift.asy } } - public static class refreshTablets extends org.apache.thrift.AsyncProcessFunction> { + public static class refreshTablets extends org.apache.thrift.AsyncProcessFunction, refreshTablets_result> { public refreshTablets() { super("refreshTablets"); } + @Override + public refreshTablets_result getEmptyResultInstance() { + return new refreshTablets_result(); + } + @Override public refreshTablets_args getEmptyArgsInstance() { return new refreshTablets_args(); @@ -2543,7 +2688,7 @@ public void onError(java.lang.Exception e) { } @Override - protected boolean isOneway() { + public boolean isOneway() { return false; } @@ -2553,11 +2698,16 @@ public void start(I iface, refreshTablets_args args, org.apache.thrift.async.Asy } } - public static class allocateTimestamps extends org.apache.thrift.AsyncProcessFunction> { + public static class allocateTimestamps extends org.apache.thrift.AsyncProcessFunction, allocateTimestamps_result> { public allocateTimestamps() { super("allocateTimestamps"); } + @Override + public allocateTimestamps_result getEmptyResultInstance() { + return new allocateTimestamps_result(); + } + @Override public allocateTimestamps_args getEmptyArgsInstance() { return new allocateTimestamps_args(); @@ -2610,7 +2760,7 @@ public void onError(java.lang.Exception e) { } @Override - protected boolean isOneway() { + public boolean isOneway() { return false; } @@ -3361,74 +3511,79 @@ private static class flush_argsStandardScheme extends org.apache.thrift.scheme.S @Override public void read(org.apache.thrift.protocol.TProtocol iprot, flush_args struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TField schemeField; - iprot.readStructBegin(); - while (true) - { - schemeField = iprot.readFieldBegin(); - if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { - break; - } - switch (schemeField.id) { - case 4: // TINFO - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.tinfo = new org.apache.accumulo.core.clientImpl.thrift.TInfo(); - struct.tinfo.read(iprot); - struct.setTinfoIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 1: // CREDENTIALS - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); - struct.credentials.read(iprot); - struct.setCredentialsIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 3: // LOCK - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.lock = iprot.readString(); - struct.setLockIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 2: // TABLE_ID - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.tableId = iprot.readString(); - struct.setTableIdIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 5: // START_ROW - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.startRow = iprot.readBinary(); - struct.setStartRowIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } + iprot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; - case 6: // END_ROW - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.endRow = iprot.readBinary(); - struct.setEndRowIsSet(true); - } else { + } + switch (schemeField.id) { + case 4: // TINFO + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.tinfo = new org.apache.accumulo.core.clientImpl.thrift.TInfo(); + struct.tinfo.read(iprot); + struct.setTinfoIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 1: // CREDENTIALS + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); + struct.credentials.read(iprot); + struct.setCredentialsIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 3: // LOCK + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.lock = iprot.readString(); + struct.setLockIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 2: // TABLE_ID + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.tableId = iprot.readString(); + struct.setTableIdIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 5: // START_ROW + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.startRow = iprot.readBinary(); + struct.setStartRowIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 6: // END_ROW + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.endRow = iprot.readBinary(); + struct.setEndRowIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - default: - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); } - iprot.readFieldEnd(); - } - iprot.readStructEnd(); + iprot.readStructEnd(); - // check for required fields of primitive type, which can't be checked in the validate method - struct.validate(); + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } finally { + iprot.decrementRecursionDepth(); + } } @Override @@ -3526,33 +3681,38 @@ public void write(org.apache.thrift.protocol.TProtocol prot, flush_args struct) @Override public void read(org.apache.thrift.protocol.TProtocol prot, flush_args struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; - java.util.BitSet incoming = iprot.readBitSet(6); - if (incoming.get(0)) { - struct.tinfo = new org.apache.accumulo.core.clientImpl.thrift.TInfo(); - struct.tinfo.read(iprot); - struct.setTinfoIsSet(true); - } - if (incoming.get(1)) { - struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); - struct.credentials.read(iprot); - struct.setCredentialsIsSet(true); - } - if (incoming.get(2)) { - struct.lock = iprot.readString(); - struct.setLockIsSet(true); - } - if (incoming.get(3)) { - struct.tableId = iprot.readString(); - struct.setTableIdIsSet(true); - } - if (incoming.get(4)) { - struct.startRow = iprot.readBinary(); - struct.setStartRowIsSet(true); - } - if (incoming.get(5)) { - struct.endRow = iprot.readBinary(); - struct.setEndRowIsSet(true); + prot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(6); + if (incoming.get(0)) { + struct.tinfo = new org.apache.accumulo.core.clientImpl.thrift.TInfo(); + struct.tinfo.read(iprot); + struct.setTinfoIsSet(true); + } + if (incoming.get(1)) { + struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); + struct.credentials.read(iprot); + struct.setCredentialsIsSet(true); + } + if (incoming.get(2)) { + struct.lock = iprot.readString(); + struct.setLockIsSet(true); + } + if (incoming.get(3)) { + struct.tableId = iprot.readString(); + struct.setTableIdIsSet(true); + } + if (incoming.get(4)) { + struct.startRow = iprot.readBinary(); + struct.setStartRowIsSet(true); + } + if (incoming.get(5)) { + struct.endRow = iprot.readBinary(); + struct.setEndRowIsSet(true); + } + } finally { + prot.decrementRecursionDepth(); } } } @@ -3947,42 +4107,47 @@ private static class getTabletServerStatus_argsStandardScheme extends org.apache @Override public void read(org.apache.thrift.protocol.TProtocol iprot, getTabletServerStatus_args struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TField schemeField; - iprot.readStructBegin(); - while (true) - { - schemeField = iprot.readFieldBegin(); - if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { - break; - } - switch (schemeField.id) { - case 3: // TINFO - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.tinfo = new org.apache.accumulo.core.clientImpl.thrift.TInfo(); - struct.tinfo.read(iprot); - struct.setTinfoIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } + iprot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; - case 1: // CREDENTIALS - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); - struct.credentials.read(iprot); - struct.setCredentialsIsSet(true); - } else { + } + switch (schemeField.id) { + case 3: // TINFO + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.tinfo = new org.apache.accumulo.core.clientImpl.thrift.TInfo(); + struct.tinfo.read(iprot); + struct.setTinfoIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 1: // CREDENTIALS + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); + struct.credentials.read(iprot); + struct.setCredentialsIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - default: - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); } - iprot.readFieldEnd(); - } - iprot.readStructEnd(); + iprot.readStructEnd(); - // check for required fields of primitive type, which can't be checked in the validate method - struct.validate(); + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } finally { + iprot.decrementRecursionDepth(); + } } @Override @@ -4036,17 +4201,22 @@ public void write(org.apache.thrift.protocol.TProtocol prot, getTabletServerStat @Override public void read(org.apache.thrift.protocol.TProtocol prot, getTabletServerStatus_args struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; - java.util.BitSet incoming = iprot.readBitSet(2); - if (incoming.get(0)) { - struct.tinfo = new org.apache.accumulo.core.clientImpl.thrift.TInfo(); - struct.tinfo.read(iprot); - struct.setTinfoIsSet(true); - } - if (incoming.get(1)) { - struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); - struct.credentials.read(iprot); - struct.setCredentialsIsSet(true); + prot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(2); + if (incoming.get(0)) { + struct.tinfo = new org.apache.accumulo.core.clientImpl.thrift.TInfo(); + struct.tinfo.read(iprot); + struct.setTinfoIsSet(true); + } + if (incoming.get(1)) { + struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); + struct.credentials.read(iprot); + struct.setCredentialsIsSet(true); + } + } finally { + prot.decrementRecursionDepth(); } } } @@ -4437,42 +4607,47 @@ private static class getTabletServerStatus_resultStandardScheme extends org.apac @Override public void read(org.apache.thrift.protocol.TProtocol iprot, getTabletServerStatus_result struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TField schemeField; - iprot.readStructBegin(); - while (true) - { - schemeField = iprot.readFieldBegin(); - if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { - break; - } - switch (schemeField.id) { - case 0: // SUCCESS - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.success = new org.apache.accumulo.core.manager.thrift.TabletServerStatus(); - struct.success.read(iprot); - struct.setSuccessIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } + iprot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; - case 1: // SEC - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.sec = new org.apache.accumulo.core.clientImpl.thrift.ThriftSecurityException(); - struct.sec.read(iprot); - struct.setSecIsSet(true); - } else { + } + switch (schemeField.id) { + case 0: // SUCCESS + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.success = new org.apache.accumulo.core.manager.thrift.TabletServerStatus(); + struct.success.read(iprot); + struct.setSuccessIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 1: // SEC + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.sec = new org.apache.accumulo.core.clientImpl.thrift.ThriftSecurityException(); + struct.sec.read(iprot); + struct.setSecIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - default: - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); } - iprot.readFieldEnd(); - } - iprot.readStructEnd(); + iprot.readStructEnd(); - // check for required fields of primitive type, which can't be checked in the validate method - struct.validate(); + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } finally { + iprot.decrementRecursionDepth(); + } } @Override @@ -4526,17 +4701,22 @@ public void write(org.apache.thrift.protocol.TProtocol prot, getTabletServerStat @Override public void read(org.apache.thrift.protocol.TProtocol prot, getTabletServerStatus_result struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; - java.util.BitSet incoming = iprot.readBitSet(2); - if (incoming.get(0)) { - struct.success = new org.apache.accumulo.core.manager.thrift.TabletServerStatus(); - struct.success.read(iprot); - struct.setSuccessIsSet(true); - } - if (incoming.get(1)) { - struct.sec = new org.apache.accumulo.core.clientImpl.thrift.ThriftSecurityException(); - struct.sec.read(iprot); - struct.setSecIsSet(true); + prot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(2); + if (incoming.get(0)) { + struct.success = new org.apache.accumulo.core.manager.thrift.TabletServerStatus(); + struct.success.read(iprot); + struct.setSuccessIsSet(true); + } + if (incoming.get(1)) { + struct.sec = new org.apache.accumulo.core.clientImpl.thrift.ThriftSecurityException(); + struct.sec.read(iprot); + struct.setSecIsSet(true); + } + } finally { + prot.decrementRecursionDepth(); } } } @@ -5013,50 +5193,55 @@ private static class getTabletStats_argsStandardScheme extends org.apache.thrift @Override public void read(org.apache.thrift.protocol.TProtocol iprot, getTabletStats_args struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TField schemeField; - iprot.readStructBegin(); - while (true) - { - schemeField = iprot.readFieldBegin(); - if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { - break; - } - switch (schemeField.id) { - case 3: // TINFO - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.tinfo = new org.apache.accumulo.core.clientImpl.thrift.TInfo(); - struct.tinfo.read(iprot); - struct.setTinfoIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 1: // CREDENTIALS - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); - struct.credentials.read(iprot); - struct.setCredentialsIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } + iprot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; - case 2: // TABLE_ID - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.tableId = iprot.readString(); - struct.setTableIdIsSet(true); - } else { + } + switch (schemeField.id) { + case 3: // TINFO + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.tinfo = new org.apache.accumulo.core.clientImpl.thrift.TInfo(); + struct.tinfo.read(iprot); + struct.setTinfoIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 1: // CREDENTIALS + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); + struct.credentials.read(iprot); + struct.setCredentialsIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 2: // TABLE_ID + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.tableId = iprot.readString(); + struct.setTableIdIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - default: - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); } - iprot.readFieldEnd(); - } - iprot.readStructEnd(); + iprot.readStructEnd(); - // check for required fields of primitive type, which can't be checked in the validate method - struct.validate(); + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } finally { + iprot.decrementRecursionDepth(); + } } @Override @@ -5121,21 +5306,26 @@ public void write(org.apache.thrift.protocol.TProtocol prot, getTabletStats_args @Override public void read(org.apache.thrift.protocol.TProtocol prot, getTabletStats_args struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; - java.util.BitSet incoming = iprot.readBitSet(3); - if (incoming.get(0)) { - struct.tinfo = new org.apache.accumulo.core.clientImpl.thrift.TInfo(); - struct.tinfo.read(iprot); - struct.setTinfoIsSet(true); - } - if (incoming.get(1)) { - struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); - struct.credentials.read(iprot); - struct.setCredentialsIsSet(true); - } - if (incoming.get(2)) { - struct.tableId = iprot.readString(); - struct.setTableIdIsSet(true); + prot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(3); + if (incoming.get(0)) { + struct.tinfo = new org.apache.accumulo.core.clientImpl.thrift.TInfo(); + struct.tinfo.read(iprot); + struct.setTinfoIsSet(true); + } + if (incoming.get(1)) { + struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); + struct.credentials.read(iprot); + struct.setCredentialsIsSet(true); + } + if (incoming.get(2)) { + struct.tableId = iprot.readString(); + struct.setTableIdIsSet(true); + } + } finally { + prot.decrementRecursionDepth(); } } } @@ -5544,52 +5734,57 @@ private static class getTabletStats_resultStandardScheme extends org.apache.thri @Override public void read(org.apache.thrift.protocol.TProtocol iprot, getTabletStats_result struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TField schemeField; - iprot.readStructBegin(); - while (true) - { - schemeField = iprot.readFieldBegin(); - if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { - break; - } - switch (schemeField.id) { - case 0: // SUCCESS - if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { - { - org.apache.thrift.protocol.TList _list72 = iprot.readListBegin(); - struct.success = new java.util.ArrayList(_list72.size); - @org.apache.thrift.annotation.Nullable TabletStats _elem73; - for (int _i74 = 0; _i74 < _list72.size; ++_i74) + iprot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { + break; + } + switch (schemeField.id) { + case 0: // SUCCESS + if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - _elem73 = new TabletStats(); - _elem73.read(iprot); - struct.success.add(_elem73); + org.apache.thrift.protocol.TList _list72 = iprot.readListBegin(); + struct.success = new java.util.ArrayList(_list72.size); + @org.apache.thrift.annotation.Nullable TabletStats _elem73; + for (int _i74 = 0; _i74 < _list72.size; ++_i74) + { + _elem73 = new TabletStats(); + _elem73.read(iprot); + struct.success.add(_elem73); + } + iprot.readListEnd(); } - iprot.readListEnd(); + struct.setSuccessIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } - struct.setSuccessIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 1: // SEC - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.sec = new org.apache.accumulo.core.clientImpl.thrift.ThriftSecurityException(); - struct.sec.read(iprot); - struct.setSecIsSet(true); - } else { + break; + case 1: // SEC + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.sec = new org.apache.accumulo.core.clientImpl.thrift.ThriftSecurityException(); + struct.sec.read(iprot); + struct.setSecIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - default: - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); } - iprot.readFieldEnd(); - } - iprot.readStructEnd(); + iprot.readStructEnd(); - // check for required fields of primitive type, which can't be checked in the validate method - struct.validate(); + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } finally { + iprot.decrementRecursionDepth(); + } } @Override @@ -5656,26 +5851,31 @@ public void write(org.apache.thrift.protocol.TProtocol prot, getTabletStats_resu @Override public void read(org.apache.thrift.protocol.TProtocol prot, getTabletStats_result struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; - java.util.BitSet incoming = iprot.readBitSet(2); - if (incoming.get(0)) { - { - org.apache.thrift.protocol.TList _list77 = iprot.readListBegin(org.apache.thrift.protocol.TType.STRUCT); - struct.success = new java.util.ArrayList(_list77.size); - @org.apache.thrift.annotation.Nullable TabletStats _elem78; - for (int _i79 = 0; _i79 < _list77.size; ++_i79) + prot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(2); + if (incoming.get(0)) { { - _elem78 = new TabletStats(); - _elem78.read(iprot); - struct.success.add(_elem78); + org.apache.thrift.protocol.TList _list77 = iprot.readListBegin(org.apache.thrift.protocol.TType.STRUCT); + struct.success = new java.util.ArrayList(_list77.size); + @org.apache.thrift.annotation.Nullable TabletStats _elem78; + for (int _i79 = 0; _i79 < _list77.size; ++_i79) + { + _elem78 = new TabletStats(); + _elem78.read(iprot); + struct.success.add(_elem78); + } } + struct.setSuccessIsSet(true); } - struct.setSuccessIsSet(true); - } - if (incoming.get(1)) { - struct.sec = new org.apache.accumulo.core.clientImpl.thrift.ThriftSecurityException(); - struct.sec.read(iprot); - struct.setSecIsSet(true); + if (incoming.get(1)) { + struct.sec = new org.apache.accumulo.core.clientImpl.thrift.ThriftSecurityException(); + struct.sec.read(iprot); + struct.setSecIsSet(true); + } + } finally { + prot.decrementRecursionDepth(); } } } @@ -6070,42 +6270,47 @@ private static class getHistoricalStats_argsStandardScheme extends org.apache.th @Override public void read(org.apache.thrift.protocol.TProtocol iprot, getHistoricalStats_args struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TField schemeField; - iprot.readStructBegin(); - while (true) - { - schemeField = iprot.readFieldBegin(); - if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { - break; - } - switch (schemeField.id) { - case 2: // TINFO - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.tinfo = new org.apache.accumulo.core.clientImpl.thrift.TInfo(); - struct.tinfo.read(iprot); - struct.setTinfoIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } + iprot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; - case 1: // CREDENTIALS - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); - struct.credentials.read(iprot); - struct.setCredentialsIsSet(true); - } else { + } + switch (schemeField.id) { + case 2: // TINFO + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.tinfo = new org.apache.accumulo.core.clientImpl.thrift.TInfo(); + struct.tinfo.read(iprot); + struct.setTinfoIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 1: // CREDENTIALS + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); + struct.credentials.read(iprot); + struct.setCredentialsIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - default: - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); } - iprot.readFieldEnd(); - } - iprot.readStructEnd(); + iprot.readStructEnd(); - // check for required fields of primitive type, which can't be checked in the validate method - struct.validate(); + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } finally { + iprot.decrementRecursionDepth(); + } } @Override @@ -6159,17 +6364,22 @@ public void write(org.apache.thrift.protocol.TProtocol prot, getHistoricalStats_ @Override public void read(org.apache.thrift.protocol.TProtocol prot, getHistoricalStats_args struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; - java.util.BitSet incoming = iprot.readBitSet(2); - if (incoming.get(0)) { - struct.tinfo = new org.apache.accumulo.core.clientImpl.thrift.TInfo(); - struct.tinfo.read(iprot); - struct.setTinfoIsSet(true); - } - if (incoming.get(1)) { - struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); - struct.credentials.read(iprot); - struct.setCredentialsIsSet(true); + prot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(2); + if (incoming.get(0)) { + struct.tinfo = new org.apache.accumulo.core.clientImpl.thrift.TInfo(); + struct.tinfo.read(iprot); + struct.setTinfoIsSet(true); + } + if (incoming.get(1)) { + struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); + struct.credentials.read(iprot); + struct.setCredentialsIsSet(true); + } + } finally { + prot.decrementRecursionDepth(); } } } @@ -6560,42 +6770,47 @@ private static class getHistoricalStats_resultStandardScheme extends org.apache. @Override public void read(org.apache.thrift.protocol.TProtocol iprot, getHistoricalStats_result struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TField schemeField; - iprot.readStructBegin(); - while (true) - { - schemeField = iprot.readFieldBegin(); - if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { - break; - } - switch (schemeField.id) { - case 0: // SUCCESS - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.success = new TabletStats(); - struct.success.read(iprot); - struct.setSuccessIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } + iprot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; - case 1: // SEC - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.sec = new org.apache.accumulo.core.clientImpl.thrift.ThriftSecurityException(); - struct.sec.read(iprot); - struct.setSecIsSet(true); - } else { + } + switch (schemeField.id) { + case 0: // SUCCESS + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.success = new TabletStats(); + struct.success.read(iprot); + struct.setSuccessIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 1: // SEC + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.sec = new org.apache.accumulo.core.clientImpl.thrift.ThriftSecurityException(); + struct.sec.read(iprot); + struct.setSecIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - default: - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); } - iprot.readFieldEnd(); - } - iprot.readStructEnd(); + iprot.readStructEnd(); - // check for required fields of primitive type, which can't be checked in the validate method - struct.validate(); + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } finally { + iprot.decrementRecursionDepth(); + } } @Override @@ -6649,17 +6864,22 @@ public void write(org.apache.thrift.protocol.TProtocol prot, getHistoricalStats_ @Override public void read(org.apache.thrift.protocol.TProtocol prot, getHistoricalStats_result struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; - java.util.BitSet incoming = iprot.readBitSet(2); - if (incoming.get(0)) { - struct.success = new TabletStats(); - struct.success.read(iprot); - struct.setSuccessIsSet(true); - } - if (incoming.get(1)) { - struct.sec = new org.apache.accumulo.core.clientImpl.thrift.ThriftSecurityException(); - struct.sec.read(iprot); - struct.setSecIsSet(true); + prot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(2); + if (incoming.get(0)) { + struct.success = new TabletStats(); + struct.success.read(iprot); + struct.setSuccessIsSet(true); + } + if (incoming.get(1)) { + struct.sec = new org.apache.accumulo.core.clientImpl.thrift.ThriftSecurityException(); + struct.sec.read(iprot); + struct.setSecIsSet(true); + } + } finally { + prot.decrementRecursionDepth(); } } } @@ -7136,50 +7356,55 @@ private static class halt_argsStandardScheme extends org.apache.thrift.scheme.St @Override public void read(org.apache.thrift.protocol.TProtocol iprot, halt_args struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TField schemeField; - iprot.readStructBegin(); - while (true) - { - schemeField = iprot.readFieldBegin(); - if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { - break; - } - switch (schemeField.id) { - case 3: // TINFO - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.tinfo = new org.apache.accumulo.core.clientImpl.thrift.TInfo(); - struct.tinfo.read(iprot); - struct.setTinfoIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 1: // CREDENTIALS - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); - struct.credentials.read(iprot); - struct.setCredentialsIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } + iprot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; - case 2: // LOCK - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.lock = iprot.readString(); - struct.setLockIsSet(true); - } else { + } + switch (schemeField.id) { + case 3: // TINFO + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.tinfo = new org.apache.accumulo.core.clientImpl.thrift.TInfo(); + struct.tinfo.read(iprot); + struct.setTinfoIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 1: // CREDENTIALS + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); + struct.credentials.read(iprot); + struct.setCredentialsIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 2: // LOCK + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.lock = iprot.readString(); + struct.setLockIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - default: - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); } - iprot.readFieldEnd(); - } - iprot.readStructEnd(); + iprot.readStructEnd(); - // check for required fields of primitive type, which can't be checked in the validate method - struct.validate(); + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } finally { + iprot.decrementRecursionDepth(); + } } @Override @@ -7244,21 +7469,26 @@ public void write(org.apache.thrift.protocol.TProtocol prot, halt_args struct) t @Override public void read(org.apache.thrift.protocol.TProtocol prot, halt_args struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; - java.util.BitSet incoming = iprot.readBitSet(3); - if (incoming.get(0)) { - struct.tinfo = new org.apache.accumulo.core.clientImpl.thrift.TInfo(); - struct.tinfo.read(iprot); - struct.setTinfoIsSet(true); - } - if (incoming.get(1)) { - struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); - struct.credentials.read(iprot); - struct.setCredentialsIsSet(true); - } - if (incoming.get(2)) { - struct.lock = iprot.readString(); - struct.setLockIsSet(true); + prot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(3); + if (incoming.get(0)) { + struct.tinfo = new org.apache.accumulo.core.clientImpl.thrift.TInfo(); + struct.tinfo.read(iprot); + struct.setTinfoIsSet(true); + } + if (incoming.get(1)) { + struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); + struct.credentials.read(iprot); + struct.setCredentialsIsSet(true); + } + if (incoming.get(2)) { + struct.lock = iprot.readString(); + struct.setLockIsSet(true); + } + } finally { + prot.decrementRecursionDepth(); } } } @@ -7564,33 +7794,38 @@ private static class halt_resultStandardScheme extends org.apache.thrift.scheme. @Override public void read(org.apache.thrift.protocol.TProtocol iprot, halt_result struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TField schemeField; - iprot.readStructBegin(); - while (true) - { - schemeField = iprot.readFieldBegin(); - if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { - break; - } - switch (schemeField.id) { - case 1: // SEC - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.sec = new org.apache.accumulo.core.clientImpl.thrift.ThriftSecurityException(); - struct.sec.read(iprot); - struct.setSecIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } + iprot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; - default: - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + switch (schemeField.id) { + case 1: // SEC + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.sec = new org.apache.accumulo.core.clientImpl.thrift.ThriftSecurityException(); + struct.sec.read(iprot); + struct.setSecIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + default: + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); } - iprot.readFieldEnd(); - } - iprot.readStructEnd(); + iprot.readStructEnd(); - // check for required fields of primitive type, which can't be checked in the validate method - struct.validate(); + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } finally { + iprot.decrementRecursionDepth(); + } } @Override @@ -7633,12 +7868,17 @@ public void write(org.apache.thrift.protocol.TProtocol prot, halt_result struct) @Override public void read(org.apache.thrift.protocol.TProtocol prot, halt_result struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; - java.util.BitSet incoming = iprot.readBitSet(1); - if (incoming.get(0)) { - struct.sec = new org.apache.accumulo.core.clientImpl.thrift.ThriftSecurityException(); - struct.sec.read(iprot); - struct.setSecIsSet(true); + prot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(1); + if (incoming.get(0)) { + struct.sec = new org.apache.accumulo.core.clientImpl.thrift.ThriftSecurityException(); + struct.sec.read(iprot); + struct.setSecIsSet(true); + } + } finally { + prot.decrementRecursionDepth(); } } } @@ -8115,50 +8355,55 @@ private static class fastHalt_argsStandardScheme extends org.apache.thrift.schem @Override public void read(org.apache.thrift.protocol.TProtocol iprot, fastHalt_args struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TField schemeField; - iprot.readStructBegin(); - while (true) - { - schemeField = iprot.readFieldBegin(); - if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { - break; - } - switch (schemeField.id) { - case 3: // TINFO - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.tinfo = new org.apache.accumulo.core.clientImpl.thrift.TInfo(); - struct.tinfo.read(iprot); - struct.setTinfoIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 1: // CREDENTIALS - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); - struct.credentials.read(iprot); - struct.setCredentialsIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } + iprot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; - case 2: // LOCK - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.lock = iprot.readString(); - struct.setLockIsSet(true); - } else { + } + switch (schemeField.id) { + case 3: // TINFO + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.tinfo = new org.apache.accumulo.core.clientImpl.thrift.TInfo(); + struct.tinfo.read(iprot); + struct.setTinfoIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 1: // CREDENTIALS + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); + struct.credentials.read(iprot); + struct.setCredentialsIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 2: // LOCK + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.lock = iprot.readString(); + struct.setLockIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - default: - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); } - iprot.readFieldEnd(); - } - iprot.readStructEnd(); + iprot.readStructEnd(); - // check for required fields of primitive type, which can't be checked in the validate method - struct.validate(); + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } finally { + iprot.decrementRecursionDepth(); + } } @Override @@ -8223,21 +8468,26 @@ public void write(org.apache.thrift.protocol.TProtocol prot, fastHalt_args struc @Override public void read(org.apache.thrift.protocol.TProtocol prot, fastHalt_args struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; - java.util.BitSet incoming = iprot.readBitSet(3); - if (incoming.get(0)) { - struct.tinfo = new org.apache.accumulo.core.clientImpl.thrift.TInfo(); - struct.tinfo.read(iprot); - struct.setTinfoIsSet(true); - } - if (incoming.get(1)) { - struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); - struct.credentials.read(iprot); - struct.setCredentialsIsSet(true); - } - if (incoming.get(2)) { - struct.lock = iprot.readString(); - struct.setLockIsSet(true); + prot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(3); + if (incoming.get(0)) { + struct.tinfo = new org.apache.accumulo.core.clientImpl.thrift.TInfo(); + struct.tinfo.read(iprot); + struct.setTinfoIsSet(true); + } + if (incoming.get(1)) { + struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); + struct.credentials.read(iprot); + struct.setCredentialsIsSet(true); + } + if (incoming.get(2)) { + struct.lock = iprot.readString(); + struct.setLockIsSet(true); + } + } finally { + prot.decrementRecursionDepth(); } } } @@ -8632,42 +8882,47 @@ private static class getActiveCompactions_argsStandardScheme extends org.apache. @Override public void read(org.apache.thrift.protocol.TProtocol iprot, getActiveCompactions_args struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TField schemeField; - iprot.readStructBegin(); - while (true) - { - schemeField = iprot.readFieldBegin(); - if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { - break; - } - switch (schemeField.id) { - case 2: // TINFO - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.tinfo = new org.apache.accumulo.core.clientImpl.thrift.TInfo(); - struct.tinfo.read(iprot); - struct.setTinfoIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } + iprot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; - case 1: // CREDENTIALS - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); - struct.credentials.read(iprot); - struct.setCredentialsIsSet(true); - } else { + } + switch (schemeField.id) { + case 2: // TINFO + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.tinfo = new org.apache.accumulo.core.clientImpl.thrift.TInfo(); + struct.tinfo.read(iprot); + struct.setTinfoIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 1: // CREDENTIALS + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); + struct.credentials.read(iprot); + struct.setCredentialsIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - default: - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); } - iprot.readFieldEnd(); - } - iprot.readStructEnd(); + iprot.readStructEnd(); - // check for required fields of primitive type, which can't be checked in the validate method - struct.validate(); + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } finally { + iprot.decrementRecursionDepth(); + } } @Override @@ -8721,17 +8976,22 @@ public void write(org.apache.thrift.protocol.TProtocol prot, getActiveCompaction @Override public void read(org.apache.thrift.protocol.TProtocol prot, getActiveCompactions_args struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; - java.util.BitSet incoming = iprot.readBitSet(2); - if (incoming.get(0)) { - struct.tinfo = new org.apache.accumulo.core.clientImpl.thrift.TInfo(); - struct.tinfo.read(iprot); - struct.setTinfoIsSet(true); - } - if (incoming.get(1)) { - struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); - struct.credentials.read(iprot); - struct.setCredentialsIsSet(true); + prot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(2); + if (incoming.get(0)) { + struct.tinfo = new org.apache.accumulo.core.clientImpl.thrift.TInfo(); + struct.tinfo.read(iprot); + struct.setTinfoIsSet(true); + } + if (incoming.get(1)) { + struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); + struct.credentials.read(iprot); + struct.setCredentialsIsSet(true); + } + } finally { + prot.decrementRecursionDepth(); } } } @@ -9140,52 +9400,57 @@ private static class getActiveCompactions_resultStandardScheme extends org.apach @Override public void read(org.apache.thrift.protocol.TProtocol iprot, getActiveCompactions_result struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TField schemeField; - iprot.readStructBegin(); - while (true) - { - schemeField = iprot.readFieldBegin(); - if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { - break; - } - switch (schemeField.id) { - case 0: // SUCCESS - if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { - { - org.apache.thrift.protocol.TList _list80 = iprot.readListBegin(); - struct.success = new java.util.ArrayList(_list80.size); - @org.apache.thrift.annotation.Nullable ActiveCompaction _elem81; - for (int _i82 = 0; _i82 < _list80.size; ++_i82) + iprot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { + break; + } + switch (schemeField.id) { + case 0: // SUCCESS + if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - _elem81 = new ActiveCompaction(); - _elem81.read(iprot); - struct.success.add(_elem81); + org.apache.thrift.protocol.TList _list80 = iprot.readListBegin(); + struct.success = new java.util.ArrayList(_list80.size); + @org.apache.thrift.annotation.Nullable ActiveCompaction _elem81; + for (int _i82 = 0; _i82 < _list80.size; ++_i82) + { + _elem81 = new ActiveCompaction(); + _elem81.read(iprot); + struct.success.add(_elem81); + } + iprot.readListEnd(); } - iprot.readListEnd(); + struct.setSuccessIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } - struct.setSuccessIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 1: // SEC - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.sec = new org.apache.accumulo.core.clientImpl.thrift.ThriftSecurityException(); - struct.sec.read(iprot); - struct.setSecIsSet(true); - } else { + break; + case 1: // SEC + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.sec = new org.apache.accumulo.core.clientImpl.thrift.ThriftSecurityException(); + struct.sec.read(iprot); + struct.setSecIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - default: - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); } - iprot.readFieldEnd(); - } - iprot.readStructEnd(); + iprot.readStructEnd(); - // check for required fields of primitive type, which can't be checked in the validate method - struct.validate(); + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } finally { + iprot.decrementRecursionDepth(); + } } @Override @@ -9252,26 +9517,31 @@ public void write(org.apache.thrift.protocol.TProtocol prot, getActiveCompaction @Override public void read(org.apache.thrift.protocol.TProtocol prot, getActiveCompactions_result struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; - java.util.BitSet incoming = iprot.readBitSet(2); - if (incoming.get(0)) { - { - org.apache.thrift.protocol.TList _list85 = iprot.readListBegin(org.apache.thrift.protocol.TType.STRUCT); - struct.success = new java.util.ArrayList(_list85.size); - @org.apache.thrift.annotation.Nullable ActiveCompaction _elem86; - for (int _i87 = 0; _i87 < _list85.size; ++_i87) + prot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(2); + if (incoming.get(0)) { { - _elem86 = new ActiveCompaction(); - _elem86.read(iprot); - struct.success.add(_elem86); + org.apache.thrift.protocol.TList _list85 = iprot.readListBegin(org.apache.thrift.protocol.TType.STRUCT); + struct.success = new java.util.ArrayList(_list85.size); + @org.apache.thrift.annotation.Nullable ActiveCompaction _elem86; + for (int _i87 = 0; _i87 < _list85.size; ++_i87) + { + _elem86 = new ActiveCompaction(); + _elem86.read(iprot); + struct.success.add(_elem86); + } } + struct.setSuccessIsSet(true); } - struct.setSuccessIsSet(true); - } - if (incoming.get(1)) { - struct.sec = new org.apache.accumulo.core.clientImpl.thrift.ThriftSecurityException(); - struct.sec.read(iprot); - struct.setSecIsSet(true); + if (incoming.get(1)) { + struct.sec = new org.apache.accumulo.core.clientImpl.thrift.ThriftSecurityException(); + struct.sec.read(iprot); + struct.setSecIsSet(true); + } + } finally { + prot.decrementRecursionDepth(); } } } @@ -9766,60 +10036,65 @@ private static class removeLogs_argsStandardScheme extends org.apache.thrift.sch @Override public void read(org.apache.thrift.protocol.TProtocol iprot, removeLogs_args struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TField schemeField; - iprot.readStructBegin(); - while (true) - { - schemeField = iprot.readFieldBegin(); - if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { - break; - } - switch (schemeField.id) { - case 1: // TINFO - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.tinfo = new org.apache.accumulo.core.clientImpl.thrift.TInfo(); - struct.tinfo.read(iprot); - struct.setTinfoIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 2: // CREDENTIALS - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); - struct.credentials.read(iprot); - struct.setCredentialsIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } + iprot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; - case 3: // FILENAMES - if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { - { - org.apache.thrift.protocol.TList _list88 = iprot.readListBegin(); - struct.filenames = new java.util.ArrayList(_list88.size); - @org.apache.thrift.annotation.Nullable java.lang.String _elem89; - for (int _i90 = 0; _i90 < _list88.size; ++_i90) + } + switch (schemeField.id) { + case 1: // TINFO + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.tinfo = new org.apache.accumulo.core.clientImpl.thrift.TInfo(); + struct.tinfo.read(iprot); + struct.setTinfoIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 2: // CREDENTIALS + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); + struct.credentials.read(iprot); + struct.setCredentialsIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 3: // FILENAMES + if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - _elem89 = iprot.readString(); - struct.filenames.add(_elem89); + org.apache.thrift.protocol.TList _list88 = iprot.readListBegin(); + struct.filenames = new java.util.ArrayList(_list88.size); + @org.apache.thrift.annotation.Nullable java.lang.String _elem89; + for (int _i90 = 0; _i90 < _list88.size; ++_i90) + { + _elem89 = iprot.readString(); + struct.filenames.add(_elem89); + } + iprot.readListEnd(); } - iprot.readListEnd(); + struct.setFilenamesIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } - struct.setFilenamesIsSet(true); - } else { + break; + default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - default: - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); } - iprot.readFieldEnd(); - } - iprot.readStructEnd(); + iprot.readStructEnd(); - // check for required fields of primitive type, which can't be checked in the validate method - struct.validate(); + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } finally { + iprot.decrementRecursionDepth(); + } } @Override @@ -9897,30 +10172,35 @@ public void write(org.apache.thrift.protocol.TProtocol prot, removeLogs_args str @Override public void read(org.apache.thrift.protocol.TProtocol prot, removeLogs_args struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; - java.util.BitSet incoming = iprot.readBitSet(3); - if (incoming.get(0)) { - struct.tinfo = new org.apache.accumulo.core.clientImpl.thrift.TInfo(); - struct.tinfo.read(iprot); - struct.setTinfoIsSet(true); - } - if (incoming.get(1)) { - struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); - struct.credentials.read(iprot); - struct.setCredentialsIsSet(true); - } - if (incoming.get(2)) { - { - org.apache.thrift.protocol.TList _list93 = iprot.readListBegin(org.apache.thrift.protocol.TType.STRING); - struct.filenames = new java.util.ArrayList(_list93.size); - @org.apache.thrift.annotation.Nullable java.lang.String _elem94; - for (int _i95 = 0; _i95 < _list93.size; ++_i95) + prot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(3); + if (incoming.get(0)) { + struct.tinfo = new org.apache.accumulo.core.clientImpl.thrift.TInfo(); + struct.tinfo.read(iprot); + struct.setTinfoIsSet(true); + } + if (incoming.get(1)) { + struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); + struct.credentials.read(iprot); + struct.setCredentialsIsSet(true); + } + if (incoming.get(2)) { { - _elem94 = iprot.readString(); - struct.filenames.add(_elem94); + org.apache.thrift.protocol.TList _list93 = iprot.readListBegin(org.apache.thrift.protocol.TType.STRING); + struct.filenames = new java.util.ArrayList(_list93.size); + @org.apache.thrift.annotation.Nullable java.lang.String _elem94; + for (int _i95 = 0; _i95 < _list93.size; ++_i95) + { + _elem94 = iprot.readString(); + struct.filenames.add(_elem94); + } } + struct.setFilenamesIsSet(true); } - struct.setFilenamesIsSet(true); + } finally { + prot.decrementRecursionDepth(); } } } @@ -10315,42 +10595,47 @@ private static class getActiveLogs_argsStandardScheme extends org.apache.thrift. @Override public void read(org.apache.thrift.protocol.TProtocol iprot, getActiveLogs_args struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TField schemeField; - iprot.readStructBegin(); - while (true) - { - schemeField = iprot.readFieldBegin(); - if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { - break; - } - switch (schemeField.id) { - case 1: // TINFO - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.tinfo = new org.apache.accumulo.core.clientImpl.thrift.TInfo(); - struct.tinfo.read(iprot); - struct.setTinfoIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } + iprot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; - case 2: // CREDENTIALS - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); - struct.credentials.read(iprot); - struct.setCredentialsIsSet(true); - } else { + } + switch (schemeField.id) { + case 1: // TINFO + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.tinfo = new org.apache.accumulo.core.clientImpl.thrift.TInfo(); + struct.tinfo.read(iprot); + struct.setTinfoIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 2: // CREDENTIALS + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); + struct.credentials.read(iprot); + struct.setCredentialsIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - default: - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); } - iprot.readFieldEnd(); - } - iprot.readStructEnd(); + iprot.readStructEnd(); - // check for required fields of primitive type, which can't be checked in the validate method - struct.validate(); + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } finally { + iprot.decrementRecursionDepth(); + } } @Override @@ -10404,17 +10689,22 @@ public void write(org.apache.thrift.protocol.TProtocol prot, getActiveLogs_args @Override public void read(org.apache.thrift.protocol.TProtocol prot, getActiveLogs_args struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; - java.util.BitSet incoming = iprot.readBitSet(2); - if (incoming.get(0)) { - struct.tinfo = new org.apache.accumulo.core.clientImpl.thrift.TInfo(); - struct.tinfo.read(iprot); - struct.setTinfoIsSet(true); - } - if (incoming.get(1)) { - struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); - struct.credentials.read(iprot); - struct.setCredentialsIsSet(true); + prot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(2); + if (incoming.get(0)) { + struct.tinfo = new org.apache.accumulo.core.clientImpl.thrift.TInfo(); + struct.tinfo.read(iprot); + struct.setTinfoIsSet(true); + } + if (incoming.get(1)) { + struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); + struct.credentials.read(iprot); + struct.setCredentialsIsSet(true); + } + } finally { + prot.decrementRecursionDepth(); } } } @@ -10738,42 +11028,47 @@ private static class getActiveLogs_resultStandardScheme extends org.apache.thrif @Override public void read(org.apache.thrift.protocol.TProtocol iprot, getActiveLogs_result struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TField schemeField; - iprot.readStructBegin(); - while (true) - { - schemeField = iprot.readFieldBegin(); - if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { - break; - } - switch (schemeField.id) { - case 0: // SUCCESS - if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { - { - org.apache.thrift.protocol.TList _list96 = iprot.readListBegin(); - struct.success = new java.util.ArrayList(_list96.size); - @org.apache.thrift.annotation.Nullable java.lang.String _elem97; - for (int _i98 = 0; _i98 < _list96.size; ++_i98) + iprot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { + break; + } + switch (schemeField.id) { + case 0: // SUCCESS + if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - _elem97 = iprot.readString(); - struct.success.add(_elem97); + org.apache.thrift.protocol.TList _list96 = iprot.readListBegin(); + struct.success = new java.util.ArrayList(_list96.size); + @org.apache.thrift.annotation.Nullable java.lang.String _elem97; + for (int _i98 = 0; _i98 < _list96.size; ++_i98) + { + _elem97 = iprot.readString(); + struct.success.add(_elem97); + } + iprot.readListEnd(); } - iprot.readListEnd(); + struct.setSuccessIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } - struct.setSuccessIsSet(true); - } else { + break; + default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - default: - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); } - iprot.readFieldEnd(); - } - iprot.readStructEnd(); + iprot.readStructEnd(); - // check for required fields of primitive type, which can't be checked in the validate method - struct.validate(); + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } finally { + iprot.decrementRecursionDepth(); + } } @Override @@ -10829,20 +11124,25 @@ public void write(org.apache.thrift.protocol.TProtocol prot, getActiveLogs_resul @Override public void read(org.apache.thrift.protocol.TProtocol prot, getActiveLogs_result struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; - java.util.BitSet incoming = iprot.readBitSet(1); - if (incoming.get(0)) { - { - org.apache.thrift.protocol.TList _list101 = iprot.readListBegin(org.apache.thrift.protocol.TType.STRING); - struct.success = new java.util.ArrayList(_list101.size); - @org.apache.thrift.annotation.Nullable java.lang.String _elem102; - for (int _i103 = 0; _i103 < _list101.size; ++_i103) + prot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(1); + if (incoming.get(0)) { { - _elem102 = iprot.readString(); - struct.success.add(_elem102); + org.apache.thrift.protocol.TList _list101 = iprot.readListBegin(org.apache.thrift.protocol.TType.STRING); + struct.success = new java.util.ArrayList(_list101.size); + @org.apache.thrift.annotation.Nullable java.lang.String _elem102; + for (int _i103 = 0; _i103 < _list101.size; ++_i103) + { + _elem102 = iprot.readString(); + struct.success.add(_elem102); + } } + struct.setSuccessIsSet(true); } - struct.setSuccessIsSet(true); + } finally { + prot.decrementRecursionDepth(); } } } @@ -11322,51 +11622,56 @@ private static class startGetSummaries_argsStandardScheme extends org.apache.thr @Override public void read(org.apache.thrift.protocol.TProtocol iprot, startGetSummaries_args struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TField schemeField; - iprot.readStructBegin(); - while (true) - { - schemeField = iprot.readFieldBegin(); - if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { - break; - } - switch (schemeField.id) { - case 1: // TINFO - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.tinfo = new org.apache.accumulo.core.clientImpl.thrift.TInfo(); - struct.tinfo.read(iprot); - struct.setTinfoIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 2: // CREDENTIALS - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); - struct.credentials.read(iprot); - struct.setCredentialsIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } + iprot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; - case 3: // REQUEST - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.request = new org.apache.accumulo.core.dataImpl.thrift.TSummaryRequest(); - struct.request.read(iprot); - struct.setRequestIsSet(true); - } else { + } + switch (schemeField.id) { + case 1: // TINFO + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.tinfo = new org.apache.accumulo.core.clientImpl.thrift.TInfo(); + struct.tinfo.read(iprot); + struct.setTinfoIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 2: // CREDENTIALS + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); + struct.credentials.read(iprot); + struct.setCredentialsIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 3: // REQUEST + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.request = new org.apache.accumulo.core.dataImpl.thrift.TSummaryRequest(); + struct.request.read(iprot); + struct.setRequestIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - default: - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); } - iprot.readFieldEnd(); - } - iprot.readStructEnd(); + iprot.readStructEnd(); - // check for required fields of primitive type, which can't be checked in the validate method - struct.validate(); + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } finally { + iprot.decrementRecursionDepth(); + } } @Override @@ -11431,22 +11736,27 @@ public void write(org.apache.thrift.protocol.TProtocol prot, startGetSummaries_a @Override public void read(org.apache.thrift.protocol.TProtocol prot, startGetSummaries_args struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; - java.util.BitSet incoming = iprot.readBitSet(3); - if (incoming.get(0)) { - struct.tinfo = new org.apache.accumulo.core.clientImpl.thrift.TInfo(); - struct.tinfo.read(iprot); - struct.setTinfoIsSet(true); - } - if (incoming.get(1)) { - struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); - struct.credentials.read(iprot); - struct.setCredentialsIsSet(true); - } - if (incoming.get(2)) { - struct.request = new org.apache.accumulo.core.dataImpl.thrift.TSummaryRequest(); - struct.request.read(iprot); - struct.setRequestIsSet(true); + prot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(3); + if (incoming.get(0)) { + struct.tinfo = new org.apache.accumulo.core.clientImpl.thrift.TInfo(); + struct.tinfo.read(iprot); + struct.setTinfoIsSet(true); + } + if (incoming.get(1)) { + struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); + struct.credentials.read(iprot); + struct.setCredentialsIsSet(true); + } + if (incoming.get(2)) { + struct.request = new org.apache.accumulo.core.dataImpl.thrift.TSummaryRequest(); + struct.request.read(iprot); + struct.setRequestIsSet(true); + } + } finally { + prot.decrementRecursionDepth(); } } } @@ -11919,51 +12229,56 @@ private static class startGetSummaries_resultStandardScheme extends org.apache.t @Override public void read(org.apache.thrift.protocol.TProtocol iprot, startGetSummaries_result struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TField schemeField; - iprot.readStructBegin(); - while (true) - { - schemeField = iprot.readFieldBegin(); - if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { - break; - } - switch (schemeField.id) { - case 0: // SUCCESS - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.success = new org.apache.accumulo.core.dataImpl.thrift.TSummaries(); - struct.success.read(iprot); - struct.setSuccessIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 1: // SEC - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.sec = new org.apache.accumulo.core.clientImpl.thrift.ThriftSecurityException(); - struct.sec.read(iprot); - struct.setSecIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } + iprot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; - case 2: // TOPE - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.tope = new org.apache.accumulo.core.clientImpl.thrift.ThriftTableOperationException(); - struct.tope.read(iprot); - struct.setTopeIsSet(true); - } else { + } + switch (schemeField.id) { + case 0: // SUCCESS + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.success = new org.apache.accumulo.core.dataImpl.thrift.TSummaries(); + struct.success.read(iprot); + struct.setSuccessIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 1: // SEC + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.sec = new org.apache.accumulo.core.clientImpl.thrift.ThriftSecurityException(); + struct.sec.read(iprot); + struct.setSecIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 2: // TOPE + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.tope = new org.apache.accumulo.core.clientImpl.thrift.ThriftTableOperationException(); + struct.tope.read(iprot); + struct.setTopeIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - default: - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); } - iprot.readFieldEnd(); - } - iprot.readStructEnd(); + iprot.readStructEnd(); - // check for required fields of primitive type, which can't be checked in the validate method - struct.validate(); + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } finally { + iprot.decrementRecursionDepth(); + } } @Override @@ -12028,22 +12343,27 @@ public void write(org.apache.thrift.protocol.TProtocol prot, startGetSummaries_r @Override public void read(org.apache.thrift.protocol.TProtocol prot, startGetSummaries_result struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; - java.util.BitSet incoming = iprot.readBitSet(3); - if (incoming.get(0)) { - struct.success = new org.apache.accumulo.core.dataImpl.thrift.TSummaries(); - struct.success.read(iprot); - struct.setSuccessIsSet(true); - } - if (incoming.get(1)) { - struct.sec = new org.apache.accumulo.core.clientImpl.thrift.ThriftSecurityException(); - struct.sec.read(iprot); - struct.setSecIsSet(true); - } - if (incoming.get(2)) { - struct.tope = new org.apache.accumulo.core.clientImpl.thrift.ThriftTableOperationException(); - struct.tope.read(iprot); - struct.setTopeIsSet(true); + prot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(3); + if (incoming.get(0)) { + struct.success = new org.apache.accumulo.core.dataImpl.thrift.TSummaries(); + struct.success.read(iprot); + struct.setSuccessIsSet(true); + } + if (incoming.get(1)) { + struct.sec = new org.apache.accumulo.core.clientImpl.thrift.ThriftSecurityException(); + struct.sec.read(iprot); + struct.setSecIsSet(true); + } + if (incoming.get(2)) { + struct.tope = new org.apache.accumulo.core.clientImpl.thrift.ThriftTableOperationException(); + struct.tope.read(iprot); + struct.setTopeIsSet(true); + } + } finally { + prot.decrementRecursionDepth(); } } } @@ -12677,67 +12997,72 @@ private static class startGetSummariesForPartition_argsStandardScheme extends or @Override public void read(org.apache.thrift.protocol.TProtocol iprot, startGetSummariesForPartition_args struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TField schemeField; - iprot.readStructBegin(); - while (true) - { - schemeField = iprot.readFieldBegin(); - if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { - break; - } - switch (schemeField.id) { - case 1: // TINFO - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.tinfo = new org.apache.accumulo.core.clientImpl.thrift.TInfo(); - struct.tinfo.read(iprot); - struct.setTinfoIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 2: // CREDENTIALS - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); - struct.credentials.read(iprot); - struct.setCredentialsIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 3: // REQUEST - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.request = new org.apache.accumulo.core.dataImpl.thrift.TSummaryRequest(); - struct.request.read(iprot); - struct.setRequestIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 4: // MODULUS - if (schemeField.type == org.apache.thrift.protocol.TType.I32) { - struct.modulus = iprot.readI32(); - struct.setModulusIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } + iprot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; - case 5: // REMAINDER - if (schemeField.type == org.apache.thrift.protocol.TType.I32) { - struct.remainder = iprot.readI32(); - struct.setRemainderIsSet(true); - } else { + } + switch (schemeField.id) { + case 1: // TINFO + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.tinfo = new org.apache.accumulo.core.clientImpl.thrift.TInfo(); + struct.tinfo.read(iprot); + struct.setTinfoIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 2: // CREDENTIALS + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); + struct.credentials.read(iprot); + struct.setCredentialsIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 3: // REQUEST + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.request = new org.apache.accumulo.core.dataImpl.thrift.TSummaryRequest(); + struct.request.read(iprot); + struct.setRequestIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 4: // MODULUS + if (schemeField.type == org.apache.thrift.protocol.TType.I32) { + struct.modulus = iprot.readI32(); + struct.setModulusIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 5: // REMAINDER + if (schemeField.type == org.apache.thrift.protocol.TType.I32) { + struct.remainder = iprot.readI32(); + struct.setRemainderIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - default: - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); } - iprot.readFieldEnd(); - } - iprot.readStructEnd(); + iprot.readStructEnd(); - // check for required fields of primitive type, which can't be checked in the validate method - struct.validate(); + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } finally { + iprot.decrementRecursionDepth(); + } } @Override @@ -12820,30 +13145,35 @@ public void write(org.apache.thrift.protocol.TProtocol prot, startGetSummariesFo @Override public void read(org.apache.thrift.protocol.TProtocol prot, startGetSummariesForPartition_args struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; - java.util.BitSet incoming = iprot.readBitSet(5); - if (incoming.get(0)) { - struct.tinfo = new org.apache.accumulo.core.clientImpl.thrift.TInfo(); - struct.tinfo.read(iprot); - struct.setTinfoIsSet(true); - } - if (incoming.get(1)) { - struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); - struct.credentials.read(iprot); - struct.setCredentialsIsSet(true); - } - if (incoming.get(2)) { - struct.request = new org.apache.accumulo.core.dataImpl.thrift.TSummaryRequest(); - struct.request.read(iprot); - struct.setRequestIsSet(true); - } - if (incoming.get(3)) { - struct.modulus = iprot.readI32(); - struct.setModulusIsSet(true); - } - if (incoming.get(4)) { - struct.remainder = iprot.readI32(); - struct.setRemainderIsSet(true); + prot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(5); + if (incoming.get(0)) { + struct.tinfo = new org.apache.accumulo.core.clientImpl.thrift.TInfo(); + struct.tinfo.read(iprot); + struct.setTinfoIsSet(true); + } + if (incoming.get(1)) { + struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); + struct.credentials.read(iprot); + struct.setCredentialsIsSet(true); + } + if (incoming.get(2)) { + struct.request = new org.apache.accumulo.core.dataImpl.thrift.TSummaryRequest(); + struct.request.read(iprot); + struct.setRequestIsSet(true); + } + if (incoming.get(3)) { + struct.modulus = iprot.readI32(); + struct.setModulusIsSet(true); + } + if (incoming.get(4)) { + struct.remainder = iprot.readI32(); + struct.setRemainderIsSet(true); + } + } finally { + prot.decrementRecursionDepth(); } } } @@ -13234,42 +13564,47 @@ private static class startGetSummariesForPartition_resultStandardScheme extends @Override public void read(org.apache.thrift.protocol.TProtocol iprot, startGetSummariesForPartition_result struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TField schemeField; - iprot.readStructBegin(); - while (true) - { - schemeField = iprot.readFieldBegin(); - if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { - break; - } - switch (schemeField.id) { - case 0: // SUCCESS - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.success = new org.apache.accumulo.core.dataImpl.thrift.TSummaries(); - struct.success.read(iprot); - struct.setSuccessIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } + iprot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; - case 1: // SEC - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.sec = new org.apache.accumulo.core.clientImpl.thrift.ThriftSecurityException(); - struct.sec.read(iprot); - struct.setSecIsSet(true); - } else { + } + switch (schemeField.id) { + case 0: // SUCCESS + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.success = new org.apache.accumulo.core.dataImpl.thrift.TSummaries(); + struct.success.read(iprot); + struct.setSuccessIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 1: // SEC + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.sec = new org.apache.accumulo.core.clientImpl.thrift.ThriftSecurityException(); + struct.sec.read(iprot); + struct.setSecIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - default: - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); } - iprot.readFieldEnd(); - } - iprot.readStructEnd(); + iprot.readStructEnd(); - // check for required fields of primitive type, which can't be checked in the validate method - struct.validate(); + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } finally { + iprot.decrementRecursionDepth(); + } } @Override @@ -13323,17 +13658,22 @@ public void write(org.apache.thrift.protocol.TProtocol prot, startGetSummariesFo @Override public void read(org.apache.thrift.protocol.TProtocol prot, startGetSummariesForPartition_result struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; - java.util.BitSet incoming = iprot.readBitSet(2); - if (incoming.get(0)) { - struct.success = new org.apache.accumulo.core.dataImpl.thrift.TSummaries(); - struct.success.read(iprot); - struct.setSuccessIsSet(true); - } - if (incoming.get(1)) { - struct.sec = new org.apache.accumulo.core.clientImpl.thrift.ThriftSecurityException(); - struct.sec.read(iprot); - struct.setSecIsSet(true); + prot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(2); + if (incoming.get(0)) { + struct.success = new org.apache.accumulo.core.dataImpl.thrift.TSummaries(); + struct.success.read(iprot); + struct.setSuccessIsSet(true); + } + if (incoming.get(1)) { + struct.sec = new org.apache.accumulo.core.clientImpl.thrift.ThriftSecurityException(); + struct.sec.read(iprot); + struct.setSecIsSet(true); + } + } finally { + prot.decrementRecursionDepth(); } } } @@ -13924,82 +14264,87 @@ private static class startGetSummariesFromFiles_argsStandardScheme extends org.a @Override public void read(org.apache.thrift.protocol.TProtocol iprot, startGetSummariesFromFiles_args struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TField schemeField; - iprot.readStructBegin(); - while (true) - { - schemeField = iprot.readFieldBegin(); - if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { - break; - } - switch (schemeField.id) { - case 1: // TINFO - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.tinfo = new org.apache.accumulo.core.clientImpl.thrift.TInfo(); - struct.tinfo.read(iprot); - struct.setTinfoIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 2: // CREDENTIALS - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); - struct.credentials.read(iprot); - struct.setCredentialsIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 3: // REQUEST - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.request = new org.apache.accumulo.core.dataImpl.thrift.TSummaryRequest(); - struct.request.read(iprot); - struct.setRequestIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } + iprot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; - case 4: // FILES - if (schemeField.type == org.apache.thrift.protocol.TType.MAP) { - { - org.apache.thrift.protocol.TMap _map104 = iprot.readMapBegin(); - struct.files = new java.util.HashMap>(2*_map104.size); - @org.apache.thrift.annotation.Nullable java.lang.String _key105; - @org.apache.thrift.annotation.Nullable java.util.List _val106; - for (int _i107 = 0; _i107 < _map104.size; ++_i107) + } + switch (schemeField.id) { + case 1: // TINFO + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.tinfo = new org.apache.accumulo.core.clientImpl.thrift.TInfo(); + struct.tinfo.read(iprot); + struct.setTinfoIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 2: // CREDENTIALS + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); + struct.credentials.read(iprot); + struct.setCredentialsIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 3: // REQUEST + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.request = new org.apache.accumulo.core.dataImpl.thrift.TSummaryRequest(); + struct.request.read(iprot); + struct.setRequestIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 4: // FILES + if (schemeField.type == org.apache.thrift.protocol.TType.MAP) { { - _key105 = iprot.readString(); + org.apache.thrift.protocol.TMap _map104 = iprot.readMapBegin(); + struct.files = new java.util.HashMap>(2*_map104.size); + @org.apache.thrift.annotation.Nullable java.lang.String _key105; + @org.apache.thrift.annotation.Nullable java.util.List _val106; + for (int _i107 = 0; _i107 < _map104.size; ++_i107) { - org.apache.thrift.protocol.TList _list108 = iprot.readListBegin(); - _val106 = new java.util.ArrayList(_list108.size); - @org.apache.thrift.annotation.Nullable org.apache.accumulo.core.dataImpl.thrift.TRowRange _elem109; - for (int _i110 = 0; _i110 < _list108.size; ++_i110) + _key105 = iprot.readString(); { - _elem109 = new org.apache.accumulo.core.dataImpl.thrift.TRowRange(); - _elem109.read(iprot); - _val106.add(_elem109); + org.apache.thrift.protocol.TList _list108 = iprot.readListBegin(); + _val106 = new java.util.ArrayList(_list108.size); + @org.apache.thrift.annotation.Nullable org.apache.accumulo.core.dataImpl.thrift.TRowRange _elem109; + for (int _i110 = 0; _i110 < _list108.size; ++_i110) + { + _elem109 = new org.apache.accumulo.core.dataImpl.thrift.TRowRange(); + _elem109.read(iprot); + _val106.add(_elem109); + } + iprot.readListEnd(); } - iprot.readListEnd(); + struct.files.put(_key105, _val106); } - struct.files.put(_key105, _val106); + iprot.readMapEnd(); } - iprot.readMapEnd(); + struct.setFilesIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } - struct.setFilesIsSet(true); - } else { + break; + default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - default: - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); } - iprot.readFieldEnd(); - } - iprot.readStructEnd(); + iprot.readStructEnd(); - // check for required fields of primitive type, which can't be checked in the validate method - struct.validate(); + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } finally { + iprot.decrementRecursionDepth(); + } } @Override @@ -14103,47 +14448,52 @@ public void write(org.apache.thrift.protocol.TProtocol prot, startGetSummariesFr @Override public void read(org.apache.thrift.protocol.TProtocol prot, startGetSummariesFromFiles_args struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; - java.util.BitSet incoming = iprot.readBitSet(4); - if (incoming.get(0)) { - struct.tinfo = new org.apache.accumulo.core.clientImpl.thrift.TInfo(); - struct.tinfo.read(iprot); - struct.setTinfoIsSet(true); - } - if (incoming.get(1)) { - struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); - struct.credentials.read(iprot); - struct.setCredentialsIsSet(true); - } - if (incoming.get(2)) { - struct.request = new org.apache.accumulo.core.dataImpl.thrift.TSummaryRequest(); - struct.request.read(iprot); - struct.setRequestIsSet(true); - } - if (incoming.get(3)) { - { - org.apache.thrift.protocol.TMap _map115 = iprot.readMapBegin(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.LIST); - struct.files = new java.util.HashMap>(2*_map115.size); - @org.apache.thrift.annotation.Nullable java.lang.String _key116; - @org.apache.thrift.annotation.Nullable java.util.List _val117; - for (int _i118 = 0; _i118 < _map115.size; ++_i118) + prot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(4); + if (incoming.get(0)) { + struct.tinfo = new org.apache.accumulo.core.clientImpl.thrift.TInfo(); + struct.tinfo.read(iprot); + struct.setTinfoIsSet(true); + } + if (incoming.get(1)) { + struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); + struct.credentials.read(iprot); + struct.setCredentialsIsSet(true); + } + if (incoming.get(2)) { + struct.request = new org.apache.accumulo.core.dataImpl.thrift.TSummaryRequest(); + struct.request.read(iprot); + struct.setRequestIsSet(true); + } + if (incoming.get(3)) { { - _key116 = iprot.readString(); + org.apache.thrift.protocol.TMap _map115 = iprot.readMapBegin(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.LIST); + struct.files = new java.util.HashMap>(2*_map115.size); + @org.apache.thrift.annotation.Nullable java.lang.String _key116; + @org.apache.thrift.annotation.Nullable java.util.List _val117; + for (int _i118 = 0; _i118 < _map115.size; ++_i118) { - org.apache.thrift.protocol.TList _list119 = iprot.readListBegin(org.apache.thrift.protocol.TType.STRUCT); - _val117 = new java.util.ArrayList(_list119.size); - @org.apache.thrift.annotation.Nullable org.apache.accumulo.core.dataImpl.thrift.TRowRange _elem120; - for (int _i121 = 0; _i121 < _list119.size; ++_i121) + _key116 = iprot.readString(); { - _elem120 = new org.apache.accumulo.core.dataImpl.thrift.TRowRange(); - _elem120.read(iprot); - _val117.add(_elem120); + org.apache.thrift.protocol.TList _list119 = iprot.readListBegin(org.apache.thrift.protocol.TType.STRUCT); + _val117 = new java.util.ArrayList(_list119.size); + @org.apache.thrift.annotation.Nullable org.apache.accumulo.core.dataImpl.thrift.TRowRange _elem120; + for (int _i121 = 0; _i121 < _list119.size; ++_i121) + { + _elem120 = new org.apache.accumulo.core.dataImpl.thrift.TRowRange(); + _elem120.read(iprot); + _val117.add(_elem120); + } } + struct.files.put(_key116, _val117); } - struct.files.put(_key116, _val117); } + struct.setFilesIsSet(true); } - struct.setFilesIsSet(true); + } finally { + prot.decrementRecursionDepth(); } } } @@ -14534,42 +14884,47 @@ private static class startGetSummariesFromFiles_resultStandardScheme extends org @Override public void read(org.apache.thrift.protocol.TProtocol iprot, startGetSummariesFromFiles_result struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TField schemeField; - iprot.readStructBegin(); - while (true) - { - schemeField = iprot.readFieldBegin(); - if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { - break; - } - switch (schemeField.id) { - case 0: // SUCCESS - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.success = new org.apache.accumulo.core.dataImpl.thrift.TSummaries(); - struct.success.read(iprot); - struct.setSuccessIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } + iprot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; - case 1: // SEC - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.sec = new org.apache.accumulo.core.clientImpl.thrift.ThriftSecurityException(); - struct.sec.read(iprot); - struct.setSecIsSet(true); - } else { + } + switch (schemeField.id) { + case 0: // SUCCESS + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.success = new org.apache.accumulo.core.dataImpl.thrift.TSummaries(); + struct.success.read(iprot); + struct.setSuccessIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 1: // SEC + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.sec = new org.apache.accumulo.core.clientImpl.thrift.ThriftSecurityException(); + struct.sec.read(iprot); + struct.setSecIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - default: - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); } - iprot.readFieldEnd(); - } - iprot.readStructEnd(); + iprot.readStructEnd(); - // check for required fields of primitive type, which can't be checked in the validate method - struct.validate(); + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } finally { + iprot.decrementRecursionDepth(); + } } @Override @@ -14623,17 +14978,22 @@ public void write(org.apache.thrift.protocol.TProtocol prot, startGetSummariesFr @Override public void read(org.apache.thrift.protocol.TProtocol prot, startGetSummariesFromFiles_result struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; - java.util.BitSet incoming = iprot.readBitSet(2); - if (incoming.get(0)) { - struct.success = new org.apache.accumulo.core.dataImpl.thrift.TSummaries(); - struct.success.read(iprot); - struct.setSuccessIsSet(true); - } - if (incoming.get(1)) { - struct.sec = new org.apache.accumulo.core.clientImpl.thrift.ThriftSecurityException(); - struct.sec.read(iprot); - struct.setSecIsSet(true); + prot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(2); + if (incoming.get(0)) { + struct.success = new org.apache.accumulo.core.dataImpl.thrift.TSummaries(); + struct.success.read(iprot); + struct.setSuccessIsSet(true); + } + if (incoming.get(1)) { + struct.sec = new org.apache.accumulo.core.clientImpl.thrift.ThriftSecurityException(); + struct.sec.read(iprot); + struct.setSecIsSet(true); + } + } finally { + prot.decrementRecursionDepth(); } } } @@ -15022,41 +15382,46 @@ private static class contiuneGetSummaries_argsStandardScheme extends org.apache. @Override public void read(org.apache.thrift.protocol.TProtocol iprot, contiuneGetSummaries_args struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TField schemeField; - iprot.readStructBegin(); - while (true) - { - schemeField = iprot.readFieldBegin(); - if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { - break; - } - switch (schemeField.id) { - case 1: // TINFO - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.tinfo = new org.apache.accumulo.core.clientImpl.thrift.TInfo(); - struct.tinfo.read(iprot); - struct.setTinfoIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } + iprot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; - case 2: // SESSION_ID - if (schemeField.type == org.apache.thrift.protocol.TType.I64) { - struct.sessionId = iprot.readI64(); - struct.setSessionIdIsSet(true); - } else { + } + switch (schemeField.id) { + case 1: // TINFO + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.tinfo = new org.apache.accumulo.core.clientImpl.thrift.TInfo(); + struct.tinfo.read(iprot); + struct.setTinfoIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 2: // SESSION_ID + if (schemeField.type == org.apache.thrift.protocol.TType.I64) { + struct.sessionId = iprot.readI64(); + struct.setSessionIdIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - default: - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); } - iprot.readFieldEnd(); - } - iprot.readStructEnd(); + iprot.readStructEnd(); - // check for required fields of primitive type, which can't be checked in the validate method - struct.validate(); + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } finally { + iprot.decrementRecursionDepth(); + } } @Override @@ -15108,16 +15473,21 @@ public void write(org.apache.thrift.protocol.TProtocol prot, contiuneGetSummarie @Override public void read(org.apache.thrift.protocol.TProtocol prot, contiuneGetSummaries_args struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; - java.util.BitSet incoming = iprot.readBitSet(2); - if (incoming.get(0)) { - struct.tinfo = new org.apache.accumulo.core.clientImpl.thrift.TInfo(); - struct.tinfo.read(iprot); - struct.setTinfoIsSet(true); - } - if (incoming.get(1)) { - struct.sessionId = iprot.readI64(); - struct.setSessionIdIsSet(true); + prot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(2); + if (incoming.get(0)) { + struct.tinfo = new org.apache.accumulo.core.clientImpl.thrift.TInfo(); + struct.tinfo.read(iprot); + struct.setTinfoIsSet(true); + } + if (incoming.get(1)) { + struct.sessionId = iprot.readI64(); + struct.setSessionIdIsSet(true); + } + } finally { + prot.decrementRecursionDepth(); } } } @@ -15508,42 +15878,47 @@ private static class contiuneGetSummaries_resultStandardScheme extends org.apach @Override public void read(org.apache.thrift.protocol.TProtocol iprot, contiuneGetSummaries_result struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TField schemeField; - iprot.readStructBegin(); - while (true) - { - schemeField = iprot.readFieldBegin(); - if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { - break; - } - switch (schemeField.id) { - case 0: // SUCCESS - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.success = new org.apache.accumulo.core.dataImpl.thrift.TSummaries(); - struct.success.read(iprot); - struct.setSuccessIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } + iprot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; - case 1: // NSSI - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.nssi = new NoSuchScanIDException(); - struct.nssi.read(iprot); - struct.setNssiIsSet(true); - } else { + } + switch (schemeField.id) { + case 0: // SUCCESS + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.success = new org.apache.accumulo.core.dataImpl.thrift.TSummaries(); + struct.success.read(iprot); + struct.setSuccessIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 1: // NSSI + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.nssi = new NoSuchScanIDException(); + struct.nssi.read(iprot); + struct.setNssiIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - default: - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); } - iprot.readFieldEnd(); - } - iprot.readStructEnd(); + iprot.readStructEnd(); - // check for required fields of primitive type, which can't be checked in the validate method - struct.validate(); + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } finally { + iprot.decrementRecursionDepth(); + } } @Override @@ -15597,17 +15972,22 @@ public void write(org.apache.thrift.protocol.TProtocol prot, contiuneGetSummarie @Override public void read(org.apache.thrift.protocol.TProtocol prot, contiuneGetSummaries_result struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; - java.util.BitSet incoming = iprot.readBitSet(2); - if (incoming.get(0)) { - struct.success = new org.apache.accumulo.core.dataImpl.thrift.TSummaries(); - struct.success.read(iprot); - struct.setSuccessIsSet(true); - } - if (incoming.get(1)) { - struct.nssi = new NoSuchScanIDException(); - struct.nssi.read(iprot); - struct.setNssiIsSet(true); + prot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(2); + if (incoming.get(0)) { + struct.success = new org.apache.accumulo.core.dataImpl.thrift.TSummaries(); + struct.success.read(iprot); + struct.setSuccessIsSet(true); + } + if (incoming.get(1)) { + struct.nssi = new NoSuchScanIDException(); + struct.nssi.read(iprot); + struct.setNssiIsSet(true); + } + } finally { + prot.decrementRecursionDepth(); } } } @@ -16105,61 +16485,66 @@ private static class refreshTablets_argsStandardScheme extends org.apache.thrift @Override public void read(org.apache.thrift.protocol.TProtocol iprot, refreshTablets_args struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TField schemeField; - iprot.readStructBegin(); - while (true) - { - schemeField = iprot.readFieldBegin(); - if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { - break; - } - switch (schemeField.id) { - case 1: // TINFO - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.tinfo = new org.apache.accumulo.core.clientImpl.thrift.TInfo(); - struct.tinfo.read(iprot); - struct.setTinfoIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 2: // CREDENTIALS - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); - struct.credentials.read(iprot); - struct.setCredentialsIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } + iprot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; - case 3: // TABLETS_TO_REFRESH - if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { - { - org.apache.thrift.protocol.TList _list122 = iprot.readListBegin(); - struct.tabletsToRefresh = new java.util.ArrayList(_list122.size); - @org.apache.thrift.annotation.Nullable org.apache.accumulo.core.dataImpl.thrift.TKeyExtent _elem123; - for (int _i124 = 0; _i124 < _list122.size; ++_i124) + } + switch (schemeField.id) { + case 1: // TINFO + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.tinfo = new org.apache.accumulo.core.clientImpl.thrift.TInfo(); + struct.tinfo.read(iprot); + struct.setTinfoIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 2: // CREDENTIALS + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); + struct.credentials.read(iprot); + struct.setCredentialsIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 3: // TABLETS_TO_REFRESH + if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - _elem123 = new org.apache.accumulo.core.dataImpl.thrift.TKeyExtent(); - _elem123.read(iprot); - struct.tabletsToRefresh.add(_elem123); + org.apache.thrift.protocol.TList _list122 = iprot.readListBegin(); + struct.tabletsToRefresh = new java.util.ArrayList(_list122.size); + @org.apache.thrift.annotation.Nullable org.apache.accumulo.core.dataImpl.thrift.TKeyExtent _elem123; + for (int _i124 = 0; _i124 < _list122.size; ++_i124) + { + _elem123 = new org.apache.accumulo.core.dataImpl.thrift.TKeyExtent(); + _elem123.read(iprot); + struct.tabletsToRefresh.add(_elem123); + } + iprot.readListEnd(); } - iprot.readListEnd(); + struct.setTabletsToRefreshIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } - struct.setTabletsToRefreshIsSet(true); - } else { + break; + default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - default: - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); } - iprot.readFieldEnd(); - } - iprot.readStructEnd(); + iprot.readStructEnd(); - // check for required fields of primitive type, which can't be checked in the validate method - struct.validate(); + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } finally { + iprot.decrementRecursionDepth(); + } } @Override @@ -16237,31 +16622,36 @@ public void write(org.apache.thrift.protocol.TProtocol prot, refreshTablets_args @Override public void read(org.apache.thrift.protocol.TProtocol prot, refreshTablets_args struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; - java.util.BitSet incoming = iprot.readBitSet(3); - if (incoming.get(0)) { - struct.tinfo = new org.apache.accumulo.core.clientImpl.thrift.TInfo(); - struct.tinfo.read(iprot); - struct.setTinfoIsSet(true); - } - if (incoming.get(1)) { - struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); - struct.credentials.read(iprot); - struct.setCredentialsIsSet(true); - } - if (incoming.get(2)) { - { - org.apache.thrift.protocol.TList _list127 = iprot.readListBegin(org.apache.thrift.protocol.TType.STRUCT); - struct.tabletsToRefresh = new java.util.ArrayList(_list127.size); - @org.apache.thrift.annotation.Nullable org.apache.accumulo.core.dataImpl.thrift.TKeyExtent _elem128; - for (int _i129 = 0; _i129 < _list127.size; ++_i129) + prot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(3); + if (incoming.get(0)) { + struct.tinfo = new org.apache.accumulo.core.clientImpl.thrift.TInfo(); + struct.tinfo.read(iprot); + struct.setTinfoIsSet(true); + } + if (incoming.get(1)) { + struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); + struct.credentials.read(iprot); + struct.setCredentialsIsSet(true); + } + if (incoming.get(2)) { { - _elem128 = new org.apache.accumulo.core.dataImpl.thrift.TKeyExtent(); - _elem128.read(iprot); - struct.tabletsToRefresh.add(_elem128); + org.apache.thrift.protocol.TList _list127 = iprot.readListBegin(org.apache.thrift.protocol.TType.STRUCT); + struct.tabletsToRefresh = new java.util.ArrayList(_list127.size); + @org.apache.thrift.annotation.Nullable org.apache.accumulo.core.dataImpl.thrift.TKeyExtent _elem128; + for (int _i129 = 0; _i129 < _list127.size; ++_i129) + { + _elem128 = new org.apache.accumulo.core.dataImpl.thrift.TKeyExtent(); + _elem128.read(iprot); + struct.tabletsToRefresh.add(_elem128); + } } + struct.setTabletsToRefreshIsSet(true); } - struct.setTabletsToRefreshIsSet(true); + } finally { + prot.decrementRecursionDepth(); } } } @@ -16588,43 +16978,48 @@ private static class refreshTablets_resultStandardScheme extends org.apache.thri @Override public void read(org.apache.thrift.protocol.TProtocol iprot, refreshTablets_result struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TField schemeField; - iprot.readStructBegin(); - while (true) - { - schemeField = iprot.readFieldBegin(); - if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { - break; - } - switch (schemeField.id) { - case 0: // SUCCESS - if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { - { - org.apache.thrift.protocol.TList _list130 = iprot.readListBegin(); - struct.success = new java.util.ArrayList(_list130.size); - @org.apache.thrift.annotation.Nullable org.apache.accumulo.core.dataImpl.thrift.TKeyExtent _elem131; - for (int _i132 = 0; _i132 < _list130.size; ++_i132) + iprot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { + break; + } + switch (schemeField.id) { + case 0: // SUCCESS + if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - _elem131 = new org.apache.accumulo.core.dataImpl.thrift.TKeyExtent(); - _elem131.read(iprot); - struct.success.add(_elem131); + org.apache.thrift.protocol.TList _list130 = iprot.readListBegin(); + struct.success = new java.util.ArrayList(_list130.size); + @org.apache.thrift.annotation.Nullable org.apache.accumulo.core.dataImpl.thrift.TKeyExtent _elem131; + for (int _i132 = 0; _i132 < _list130.size; ++_i132) + { + _elem131 = new org.apache.accumulo.core.dataImpl.thrift.TKeyExtent(); + _elem131.read(iprot); + struct.success.add(_elem131); + } + iprot.readListEnd(); } - iprot.readListEnd(); + struct.setSuccessIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } - struct.setSuccessIsSet(true); - } else { + break; + default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - default: - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); } - iprot.readFieldEnd(); - } - iprot.readStructEnd(); + iprot.readStructEnd(); - // check for required fields of primitive type, which can't be checked in the validate method - struct.validate(); + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } finally { + iprot.decrementRecursionDepth(); + } } @Override @@ -16680,21 +17075,26 @@ public void write(org.apache.thrift.protocol.TProtocol prot, refreshTablets_resu @Override public void read(org.apache.thrift.protocol.TProtocol prot, refreshTablets_result struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; - java.util.BitSet incoming = iprot.readBitSet(1); - if (incoming.get(0)) { - { - org.apache.thrift.protocol.TList _list135 = iprot.readListBegin(org.apache.thrift.protocol.TType.STRUCT); - struct.success = new java.util.ArrayList(_list135.size); - @org.apache.thrift.annotation.Nullable org.apache.accumulo.core.dataImpl.thrift.TKeyExtent _elem136; - for (int _i137 = 0; _i137 < _list135.size; ++_i137) + prot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(1); + if (incoming.get(0)) { { - _elem136 = new org.apache.accumulo.core.dataImpl.thrift.TKeyExtent(); - _elem136.read(iprot); - struct.success.add(_elem136); + org.apache.thrift.protocol.TList _list135 = iprot.readListBegin(org.apache.thrift.protocol.TType.STRUCT); + struct.success = new java.util.ArrayList(_list135.size); + @org.apache.thrift.annotation.Nullable org.apache.accumulo.core.dataImpl.thrift.TKeyExtent _elem136; + for (int _i137 = 0; _i137 < _list135.size; ++_i137) + { + _elem136 = new org.apache.accumulo.core.dataImpl.thrift.TKeyExtent(); + _elem136.read(iprot); + struct.success.add(_elem136); + } } + struct.setSuccessIsSet(true); } - struct.setSuccessIsSet(true); + } finally { + prot.decrementRecursionDepth(); } } } @@ -17192,61 +17592,66 @@ private static class allocateTimestamps_argsStandardScheme extends org.apache.th @Override public void read(org.apache.thrift.protocol.TProtocol iprot, allocateTimestamps_args struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TField schemeField; - iprot.readStructBegin(); - while (true) - { - schemeField = iprot.readFieldBegin(); - if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { - break; - } - switch (schemeField.id) { - case 1: // TINFO - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.tinfo = new org.apache.accumulo.core.clientImpl.thrift.TInfo(); - struct.tinfo.read(iprot); - struct.setTinfoIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 2: // CREDENTIALS - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); - struct.credentials.read(iprot); - struct.setCredentialsIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } + iprot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; - case 3: // TABLETS - if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { - { - org.apache.thrift.protocol.TList _list138 = iprot.readListBegin(); - struct.tablets = new java.util.ArrayList(_list138.size); - @org.apache.thrift.annotation.Nullable org.apache.accumulo.core.dataImpl.thrift.TKeyExtent _elem139; - for (int _i140 = 0; _i140 < _list138.size; ++_i140) + } + switch (schemeField.id) { + case 1: // TINFO + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.tinfo = new org.apache.accumulo.core.clientImpl.thrift.TInfo(); + struct.tinfo.read(iprot); + struct.setTinfoIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 2: // CREDENTIALS + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); + struct.credentials.read(iprot); + struct.setCredentialsIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 3: // TABLETS + if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - _elem139 = new org.apache.accumulo.core.dataImpl.thrift.TKeyExtent(); - _elem139.read(iprot); - struct.tablets.add(_elem139); + org.apache.thrift.protocol.TList _list138 = iprot.readListBegin(); + struct.tablets = new java.util.ArrayList(_list138.size); + @org.apache.thrift.annotation.Nullable org.apache.accumulo.core.dataImpl.thrift.TKeyExtent _elem139; + for (int _i140 = 0; _i140 < _list138.size; ++_i140) + { + _elem139 = new org.apache.accumulo.core.dataImpl.thrift.TKeyExtent(); + _elem139.read(iprot); + struct.tablets.add(_elem139); + } + iprot.readListEnd(); } - iprot.readListEnd(); + struct.setTabletsIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } - struct.setTabletsIsSet(true); - } else { + break; + default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - default: - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); } - iprot.readFieldEnd(); - } - iprot.readStructEnd(); + iprot.readStructEnd(); - // check for required fields of primitive type, which can't be checked in the validate method - struct.validate(); + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } finally { + iprot.decrementRecursionDepth(); + } } @Override @@ -17324,31 +17729,36 @@ public void write(org.apache.thrift.protocol.TProtocol prot, allocateTimestamps_ @Override public void read(org.apache.thrift.protocol.TProtocol prot, allocateTimestamps_args struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; - java.util.BitSet incoming = iprot.readBitSet(3); - if (incoming.get(0)) { - struct.tinfo = new org.apache.accumulo.core.clientImpl.thrift.TInfo(); - struct.tinfo.read(iprot); - struct.setTinfoIsSet(true); - } - if (incoming.get(1)) { - struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); - struct.credentials.read(iprot); - struct.setCredentialsIsSet(true); - } - if (incoming.get(2)) { - { - org.apache.thrift.protocol.TList _list143 = iprot.readListBegin(org.apache.thrift.protocol.TType.STRUCT); - struct.tablets = new java.util.ArrayList(_list143.size); - @org.apache.thrift.annotation.Nullable org.apache.accumulo.core.dataImpl.thrift.TKeyExtent _elem144; - for (int _i145 = 0; _i145 < _list143.size; ++_i145) + prot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(3); + if (incoming.get(0)) { + struct.tinfo = new org.apache.accumulo.core.clientImpl.thrift.TInfo(); + struct.tinfo.read(iprot); + struct.setTinfoIsSet(true); + } + if (incoming.get(1)) { + struct.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(); + struct.credentials.read(iprot); + struct.setCredentialsIsSet(true); + } + if (incoming.get(2)) { { - _elem144 = new org.apache.accumulo.core.dataImpl.thrift.TKeyExtent(); - _elem144.read(iprot); - struct.tablets.add(_elem144); + org.apache.thrift.protocol.TList _list143 = iprot.readListBegin(org.apache.thrift.protocol.TType.STRUCT); + struct.tablets = new java.util.ArrayList(_list143.size); + @org.apache.thrift.annotation.Nullable org.apache.accumulo.core.dataImpl.thrift.TKeyExtent _elem144; + for (int _i145 = 0; _i145 < _list143.size; ++_i145) + { + _elem144 = new org.apache.accumulo.core.dataImpl.thrift.TKeyExtent(); + _elem144.read(iprot); + struct.tablets.add(_elem144); + } } + struct.setTabletsIsSet(true); } - struct.setTabletsIsSet(true); + } finally { + prot.decrementRecursionDepth(); } } } @@ -17679,45 +18089,50 @@ private static class allocateTimestamps_resultStandardScheme extends org.apache. @Override public void read(org.apache.thrift.protocol.TProtocol iprot, allocateTimestamps_result struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TField schemeField; - iprot.readStructBegin(); - while (true) - { - schemeField = iprot.readFieldBegin(); - if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { - break; - } - switch (schemeField.id) { - case 0: // SUCCESS - if (schemeField.type == org.apache.thrift.protocol.TType.MAP) { - { - org.apache.thrift.protocol.TMap _map146 = iprot.readMapBegin(); - struct.success = new java.util.HashMap(2*_map146.size); - @org.apache.thrift.annotation.Nullable org.apache.accumulo.core.dataImpl.thrift.TKeyExtent _key147; - long _val148; - for (int _i149 = 0; _i149 < _map146.size; ++_i149) + iprot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { + break; + } + switch (schemeField.id) { + case 0: // SUCCESS + if (schemeField.type == org.apache.thrift.protocol.TType.MAP) { { - _key147 = new org.apache.accumulo.core.dataImpl.thrift.TKeyExtent(); - _key147.read(iprot); - _val148 = iprot.readI64(); - struct.success.put(_key147, _val148); + org.apache.thrift.protocol.TMap _map146 = iprot.readMapBegin(); + struct.success = new java.util.HashMap(2*_map146.size); + @org.apache.thrift.annotation.Nullable org.apache.accumulo.core.dataImpl.thrift.TKeyExtent _key147; + long _val148; + for (int _i149 = 0; _i149 < _map146.size; ++_i149) + { + _key147 = new org.apache.accumulo.core.dataImpl.thrift.TKeyExtent(); + _key147.read(iprot); + _val148 = iprot.readI64(); + struct.success.put(_key147, _val148); + } + iprot.readMapEnd(); } - iprot.readMapEnd(); + struct.setSuccessIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } - struct.setSuccessIsSet(true); - } else { + break; + default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - default: - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); } - iprot.readFieldEnd(); - } - iprot.readStructEnd(); + iprot.readStructEnd(); - // check for required fields of primitive type, which can't be checked in the validate method - struct.validate(); + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } finally { + iprot.decrementRecursionDepth(); + } } @Override @@ -17775,23 +18190,28 @@ public void write(org.apache.thrift.protocol.TProtocol prot, allocateTimestamps_ @Override public void read(org.apache.thrift.protocol.TProtocol prot, allocateTimestamps_result struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; - java.util.BitSet incoming = iprot.readBitSet(1); - if (incoming.get(0)) { - { - org.apache.thrift.protocol.TMap _map152 = iprot.readMapBegin(org.apache.thrift.protocol.TType.STRUCT, org.apache.thrift.protocol.TType.I64); - struct.success = new java.util.HashMap(2*_map152.size); - @org.apache.thrift.annotation.Nullable org.apache.accumulo.core.dataImpl.thrift.TKeyExtent _key153; - long _val154; - for (int _i155 = 0; _i155 < _map152.size; ++_i155) + prot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(1); + if (incoming.get(0)) { { - _key153 = new org.apache.accumulo.core.dataImpl.thrift.TKeyExtent(); - _key153.read(iprot); - _val154 = iprot.readI64(); - struct.success.put(_key153, _val154); + org.apache.thrift.protocol.TMap _map152 = iprot.readMapBegin(org.apache.thrift.protocol.TType.STRUCT, org.apache.thrift.protocol.TType.I64); + struct.success = new java.util.HashMap(2*_map152.size); + @org.apache.thrift.annotation.Nullable org.apache.accumulo.core.dataImpl.thrift.TKeyExtent _key153; + long _val154; + for (int _i155 = 0; _i155 < _map152.size; ++_i155) + { + _key153 = new org.apache.accumulo.core.dataImpl.thrift.TKeyExtent(); + _key153.read(iprot); + _val154 = iprot.readI64(); + struct.success.put(_key153, _val154); + } } + struct.setSuccessIsSet(true); } - struct.setSuccessIsSet(true); + } finally { + prot.decrementRecursionDepth(); } } } diff --git a/core/src/main/thrift-gen-java/org/apache/accumulo/core/tabletserver/thrift/TabletStats.java b/core/src/main/thrift-gen-java/org/apache/accumulo/core/tabletserver/thrift/TabletStats.java index e595e51b823..d3cd7170ed8 100644 --- a/core/src/main/thrift-gen-java/org/apache/accumulo/core/tabletserver/thrift/TabletStats.java +++ b/core/src/main/thrift-gen-java/org/apache/accumulo/core/tabletserver/thrift/TabletStats.java @@ -17,7 +17,7 @@ * under the License. */ /* - * Autogenerated by Thrift Compiler (0.17.0) + * Autogenerated by Thrift Compiler (0.23.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -638,66 +638,71 @@ private static class TabletStatsStandardScheme extends org.apache.thrift.scheme. @Override public void read(org.apache.thrift.protocol.TProtocol iprot, TabletStats struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TField schemeField; - iprot.readStructBegin(); - while (true) - { - schemeField = iprot.readFieldBegin(); - if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { - break; - } - switch (schemeField.id) { - case 1: // EXTENT - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.extent = new org.apache.accumulo.core.dataImpl.thrift.TKeyExtent(); - struct.extent.read(iprot); - struct.setExtentIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 3: // MINORS - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.minors = new ActionStats(); - struct.minors.read(iprot); - struct.setMinorsIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 5: // NUM_ENTRIES - if (schemeField.type == org.apache.thrift.protocol.TType.I64) { - struct.numEntries = iprot.readI64(); - struct.setNumEntriesIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } + iprot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; - case 6: // INGEST_RATE - if (schemeField.type == org.apache.thrift.protocol.TType.DOUBLE) { - struct.ingestRate = iprot.readDouble(); - struct.setIngestRateIsSet(true); - } else { + } + switch (schemeField.id) { + case 1: // EXTENT + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.extent = new org.apache.accumulo.core.dataImpl.thrift.TKeyExtent(); + struct.extent.read(iprot); + struct.setExtentIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 3: // MINORS + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.minors = new ActionStats(); + struct.minors.read(iprot); + struct.setMinorsIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 5: // NUM_ENTRIES + if (schemeField.type == org.apache.thrift.protocol.TType.I64) { + struct.numEntries = iprot.readI64(); + struct.setNumEntriesIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 6: // INGEST_RATE + if (schemeField.type == org.apache.thrift.protocol.TType.DOUBLE) { + struct.ingestRate = iprot.readDouble(); + struct.setIngestRateIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 7: // QUERY_RATE + if (schemeField.type == org.apache.thrift.protocol.TType.DOUBLE) { + struct.queryRate = iprot.readDouble(); + struct.setQueryRateIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 7: // QUERY_RATE - if (schemeField.type == org.apache.thrift.protocol.TType.DOUBLE) { - struct.queryRate = iprot.readDouble(); - struct.setQueryRateIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - default: - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); } - iprot.readFieldEnd(); - } - iprot.readStructEnd(); + iprot.readStructEnd(); - // check for required fields of primitive type, which can't be checked in the validate method - struct.validate(); + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } finally { + iprot.decrementRecursionDepth(); + } } @Override @@ -778,29 +783,34 @@ public void write(org.apache.thrift.protocol.TProtocol prot, TabletStats struct) @Override public void read(org.apache.thrift.protocol.TProtocol prot, TabletStats struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; - java.util.BitSet incoming = iprot.readBitSet(5); - if (incoming.get(0)) { - struct.extent = new org.apache.accumulo.core.dataImpl.thrift.TKeyExtent(); - struct.extent.read(iprot); - struct.setExtentIsSet(true); - } - if (incoming.get(1)) { - struct.minors = new ActionStats(); - struct.minors.read(iprot); - struct.setMinorsIsSet(true); - } - if (incoming.get(2)) { - struct.numEntries = iprot.readI64(); - struct.setNumEntriesIsSet(true); - } - if (incoming.get(3)) { - struct.ingestRate = iprot.readDouble(); - struct.setIngestRateIsSet(true); - } - if (incoming.get(4)) { - struct.queryRate = iprot.readDouble(); - struct.setQueryRateIsSet(true); + prot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(5); + if (incoming.get(0)) { + struct.extent = new org.apache.accumulo.core.dataImpl.thrift.TKeyExtent(); + struct.extent.read(iprot); + struct.setExtentIsSet(true); + } + if (incoming.get(1)) { + struct.minors = new ActionStats(); + struct.minors.read(iprot); + struct.setMinorsIsSet(true); + } + if (incoming.get(2)) { + struct.numEntries = iprot.readI64(); + struct.setNumEntriesIsSet(true); + } + if (incoming.get(3)) { + struct.ingestRate = iprot.readDouble(); + struct.setIngestRateIsSet(true); + } + if (incoming.get(4)) { + struct.queryRate = iprot.readDouble(); + struct.setQueryRateIsSet(true); + } + } finally { + prot.decrementRecursionDepth(); } } } diff --git a/pom.xml b/pom.xml index 32427e4c0e0..92eb06f61aa 100644 --- a/pom.xml +++ b/pom.xml @@ -176,7 +176,7 @@ under the License. 2.25.4 1.60.1 2.0.17 - 0.17.0 + 0.23.0 3.9.5 diff --git a/server/base/src/main/java/org/apache/accumulo/server/rpc/PrimaryManagerThriftServiceWrapper.java b/server/base/src/main/java/org/apache/accumulo/server/rpc/PrimaryManagerThriftServiceWrapper.java index d23a59bf13b..e8167f07ede 100644 --- a/server/base/src/main/java/org/apache/accumulo/server/rpc/PrimaryManagerThriftServiceWrapper.java +++ b/server/base/src/main/java/org/apache/accumulo/server/rpc/PrimaryManagerThriftServiceWrapper.java @@ -48,7 +48,7 @@ public class PrimaryManagerThriftServiceWrapper { * Returns all thrift methods on a processor along w/ an indication if they are oneway or not. */ static Map getThriftMethods(TBaseProcessor tbProcessor) { - Map> pmv = tbProcessor.getProcessMapView(); + Map> pmv = tbProcessor.getProcessMapView(); Method method; try { diff --git a/test/src/main/thrift-gen-java/org/apache/accumulo/test/rpc/thrift/SimpleThriftService.java b/test/src/main/thrift-gen-java/org/apache/accumulo/test/rpc/thrift/SimpleThriftService.java index 1cb24f0d3d3..ff21680f2e1 100644 --- a/test/src/main/thrift-gen-java/org/apache/accumulo/test/rpc/thrift/SimpleThriftService.java +++ b/test/src/main/thrift-gen-java/org/apache/accumulo/test/rpc/thrift/SimpleThriftService.java @@ -17,7 +17,7 @@ * under the License. */ /* - * Autogenerated by Thrift Compiler (0.17.0) + * Autogenerated by Thrift Compiler (0.23.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -487,14 +487,14 @@ public Void getResult() throws org.apache.thrift.TException { public static class Processor extends org.apache.thrift.TBaseProcessor implements org.apache.thrift.TProcessor { private static final org.slf4j.Logger _LOGGER = org.slf4j.LoggerFactory.getLogger(Processor.class.getName()); public Processor(I iface) { - super(iface, getProcessMap(new java.util.HashMap>())); + super(iface, getProcessMap(new java.util.HashMap>())); } - protected Processor(I iface, java.util.Map> processMap) { + protected Processor(I iface, java.util.Map> processMap) { super(iface, getProcessMap(processMap)); } - private static java.util.Map> getProcessMap(java.util.Map> processMap) { + private static java.util.Map> getProcessMap(java.util.Map> processMap) { processMap.put("echoPass", new echoPass()); processMap.put("onewayPass", new onewayPass()); processMap.put("echoFail", new echoFail()); @@ -505,7 +505,7 @@ protected Processor(I iface, java.util.Map extends org.apache.thrift.ProcessFunction { + public static class echoPass extends org.apache.thrift.ProcessFunction { public echoPass() { super("echoPass"); } @@ -516,7 +516,7 @@ public echoPass_args getEmptyArgsInstance() { } @Override - protected boolean isOneway() { + public boolean isOneway() { return false; } @@ -525,15 +525,20 @@ protected boolean rethrowUnhandledExceptions() { return false; } + @Override + public echoPass_result getEmptyResultInstance() { + return new echoPass_result(); + } + @Override public echoPass_result getResult(I iface, echoPass_args args) throws org.apache.thrift.TException { - echoPass_result result = new echoPass_result(); + echoPass_result result = getEmptyResultInstance(); result.success = iface.echoPass(args.value); return result; } } - public static class onewayPass extends org.apache.thrift.ProcessFunction { + public static class onewayPass extends org.apache.thrift.ProcessFunction { public onewayPass() { super("onewayPass"); } @@ -544,7 +549,7 @@ public onewayPass_args getEmptyArgsInstance() { } @Override - protected boolean isOneway() { + public boolean isOneway() { return true; } @@ -553,6 +558,11 @@ protected boolean rethrowUnhandledExceptions() { return false; } + @Override + public org.apache.thrift.TBase getEmptyResultInstance() { + return null; + } + @Override public org.apache.thrift.TBase getResult(I iface, onewayPass_args args) throws org.apache.thrift.TException { iface.onewayPass(args.value); @@ -560,7 +570,7 @@ public org.apache.thrift.TBase getResult(I iface, onewayPass_args args) throws o } } - public static class echoFail extends org.apache.thrift.ProcessFunction { + public static class echoFail extends org.apache.thrift.ProcessFunction { public echoFail() { super("echoFail"); } @@ -571,7 +581,7 @@ public echoFail_args getEmptyArgsInstance() { } @Override - protected boolean isOneway() { + public boolean isOneway() { return false; } @@ -580,15 +590,20 @@ protected boolean rethrowUnhandledExceptions() { return false; } + @Override + public echoFail_result getEmptyResultInstance() { + return new echoFail_result(); + } + @Override public echoFail_result getResult(I iface, echoFail_args args) throws org.apache.thrift.TException { - echoFail_result result = new echoFail_result(); + echoFail_result result = getEmptyResultInstance(); result.success = iface.echoFail(args.value); return result; } } - public static class onewayFail extends org.apache.thrift.ProcessFunction { + public static class onewayFail extends org.apache.thrift.ProcessFunction { public onewayFail() { super("onewayFail"); } @@ -599,7 +614,7 @@ public onewayFail_args getEmptyArgsInstance() { } @Override - protected boolean isOneway() { + public boolean isOneway() { return true; } @@ -608,6 +623,11 @@ protected boolean rethrowUnhandledExceptions() { return false; } + @Override + public org.apache.thrift.TBase getEmptyResultInstance() { + return null; + } + @Override public org.apache.thrift.TBase getResult(I iface, onewayFail_args args) throws org.apache.thrift.TException { iface.onewayFail(args.value); @@ -615,7 +635,7 @@ public org.apache.thrift.TBase getResult(I iface, onewayFail_args args) throws o } } - public static class echoRuntimeFail extends org.apache.thrift.ProcessFunction { + public static class echoRuntimeFail extends org.apache.thrift.ProcessFunction { public echoRuntimeFail() { super("echoRuntimeFail"); } @@ -626,7 +646,7 @@ public echoRuntimeFail_args getEmptyArgsInstance() { } @Override - protected boolean isOneway() { + public boolean isOneway() { return false; } @@ -635,15 +655,20 @@ protected boolean rethrowUnhandledExceptions() { return false; } + @Override + public echoRuntimeFail_result getEmptyResultInstance() { + return new echoRuntimeFail_result(); + } + @Override public echoRuntimeFail_result getResult(I iface, echoRuntimeFail_args args) throws org.apache.thrift.TException { - echoRuntimeFail_result result = new echoRuntimeFail_result(); + echoRuntimeFail_result result = getEmptyResultInstance(); result.success = iface.echoRuntimeFail(args.value); return result; } } - public static class onewayRuntimeFail extends org.apache.thrift.ProcessFunction { + public static class onewayRuntimeFail extends org.apache.thrift.ProcessFunction { public onewayRuntimeFail() { super("onewayRuntimeFail"); } @@ -654,7 +679,7 @@ public onewayRuntimeFail_args getEmptyArgsInstance() { } @Override - protected boolean isOneway() { + public boolean isOneway() { return true; } @@ -663,6 +688,11 @@ protected boolean rethrowUnhandledExceptions() { return false; } + @Override + public org.apache.thrift.TBase getEmptyResultInstance() { + return null; + } + @Override public org.apache.thrift.TBase getResult(I iface, onewayRuntimeFail_args args) throws org.apache.thrift.TException { iface.onewayRuntimeFail(args.value); @@ -670,7 +700,7 @@ public org.apache.thrift.TBase getResult(I iface, onewayRuntimeFail_args args) t } } - public static class echoPassVoid extends org.apache.thrift.ProcessFunction { + public static class echoPassVoid extends org.apache.thrift.ProcessFunction { public echoPassVoid() { super("echoPassVoid"); } @@ -681,7 +711,7 @@ public echoPassVoid_args getEmptyArgsInstance() { } @Override - protected boolean isOneway() { + public boolean isOneway() { return false; } @@ -690,9 +720,14 @@ protected boolean rethrowUnhandledExceptions() { return false; } + @Override + public echoPassVoid_result getEmptyResultInstance() { + return new echoPassVoid_result(); + } + @Override public echoPassVoid_result getResult(I iface, echoPassVoid_args args) throws org.apache.thrift.TException { - echoPassVoid_result result = new echoPassVoid_result(); + echoPassVoid_result result = getEmptyResultInstance(); iface.echoPassVoid(args.value); return result; } @@ -703,14 +738,14 @@ public echoPassVoid_result getResult(I iface, echoPassVoid_args args) throws org public static class AsyncProcessor extends org.apache.thrift.TBaseAsyncProcessor { private static final org.slf4j.Logger _LOGGER = org.slf4j.LoggerFactory.getLogger(AsyncProcessor.class.getName()); public AsyncProcessor(I iface) { - super(iface, getProcessMap(new java.util.HashMap>())); + super(iface, getProcessMap(new java.util.HashMap>())); } - protected AsyncProcessor(I iface, java.util.Map> processMap) { + protected AsyncProcessor(I iface, java.util.Map> processMap) { super(iface, getProcessMap(processMap)); } - private static java.util.Map> getProcessMap(java.util.Map> processMap) { + private static java.util.Map> getProcessMap(java.util.Map> processMap) { processMap.put("echoPass", new echoPass()); processMap.put("onewayPass", new onewayPass()); processMap.put("echoFail", new echoFail()); @@ -721,11 +756,16 @@ protected AsyncProcessor(I iface, java.util.Map extends org.apache.thrift.AsyncProcessFunction { + public static class echoPass extends org.apache.thrift.AsyncProcessFunction { public echoPass() { super("echoPass"); } + @Override + public echoPass_result getEmptyResultInstance() { + return new echoPass_result(); + } + @Override public echoPass_args getEmptyArgsInstance() { return new echoPass_args(); @@ -778,7 +818,7 @@ public void onError(java.lang.Exception e) { } @Override - protected boolean isOneway() { + public boolean isOneway() { return false; } @@ -788,11 +828,16 @@ public void start(I iface, echoPass_args args, org.apache.thrift.async.AsyncMeth } } - public static class onewayPass extends org.apache.thrift.AsyncProcessFunction { + public static class onewayPass extends org.apache.thrift.AsyncProcessFunction { public onewayPass() { super("onewayPass"); } + @Override + public org.apache.thrift.TBase getEmptyResultInstance() { + return null; + } + @Override public onewayPass_args getEmptyArgsInstance() { return new onewayPass_args(); @@ -818,7 +863,7 @@ public void onError(java.lang.Exception e) { } @Override - protected boolean isOneway() { + public boolean isOneway() { return true; } @@ -828,11 +873,16 @@ public void start(I iface, onewayPass_args args, org.apache.thrift.async.AsyncMe } } - public static class echoFail extends org.apache.thrift.AsyncProcessFunction { + public static class echoFail extends org.apache.thrift.AsyncProcessFunction { public echoFail() { super("echoFail"); } + @Override + public echoFail_result getEmptyResultInstance() { + return new echoFail_result(); + } + @Override public echoFail_args getEmptyArgsInstance() { return new echoFail_args(); @@ -885,7 +935,7 @@ public void onError(java.lang.Exception e) { } @Override - protected boolean isOneway() { + public boolean isOneway() { return false; } @@ -895,11 +945,16 @@ public void start(I iface, echoFail_args args, org.apache.thrift.async.AsyncMeth } } - public static class onewayFail extends org.apache.thrift.AsyncProcessFunction { + public static class onewayFail extends org.apache.thrift.AsyncProcessFunction { public onewayFail() { super("onewayFail"); } + @Override + public org.apache.thrift.TBase getEmptyResultInstance() { + return null; + } + @Override public onewayFail_args getEmptyArgsInstance() { return new onewayFail_args(); @@ -925,7 +980,7 @@ public void onError(java.lang.Exception e) { } @Override - protected boolean isOneway() { + public boolean isOneway() { return true; } @@ -935,11 +990,16 @@ public void start(I iface, onewayFail_args args, org.apache.thrift.async.AsyncMe } } - public static class echoRuntimeFail extends org.apache.thrift.AsyncProcessFunction { + public static class echoRuntimeFail extends org.apache.thrift.AsyncProcessFunction { public echoRuntimeFail() { super("echoRuntimeFail"); } + @Override + public echoRuntimeFail_result getEmptyResultInstance() { + return new echoRuntimeFail_result(); + } + @Override public echoRuntimeFail_args getEmptyArgsInstance() { return new echoRuntimeFail_args(); @@ -992,7 +1052,7 @@ public void onError(java.lang.Exception e) { } @Override - protected boolean isOneway() { + public boolean isOneway() { return false; } @@ -1002,11 +1062,16 @@ public void start(I iface, echoRuntimeFail_args args, org.apache.thrift.async.As } } - public static class onewayRuntimeFail extends org.apache.thrift.AsyncProcessFunction { + public static class onewayRuntimeFail extends org.apache.thrift.AsyncProcessFunction { public onewayRuntimeFail() { super("onewayRuntimeFail"); } + @Override + public org.apache.thrift.TBase getEmptyResultInstance() { + return null; + } + @Override public onewayRuntimeFail_args getEmptyArgsInstance() { return new onewayRuntimeFail_args(); @@ -1032,7 +1097,7 @@ public void onError(java.lang.Exception e) { } @Override - protected boolean isOneway() { + public boolean isOneway() { return true; } @@ -1042,11 +1107,16 @@ public void start(I iface, onewayRuntimeFail_args args, org.apache.thrift.async. } } - public static class echoPassVoid extends org.apache.thrift.AsyncProcessFunction { + public static class echoPassVoid extends org.apache.thrift.AsyncProcessFunction { public echoPassVoid() { super("echoPassVoid"); } + @Override + public echoPassVoid_result getEmptyResultInstance() { + return new echoPassVoid_result(); + } + @Override public echoPassVoid_args getEmptyArgsInstance() { return new echoPassVoid_args(); @@ -1098,7 +1168,7 @@ public void onError(java.lang.Exception e) { } @Override - protected boolean isOneway() { + public boolean isOneway() { return false; } @@ -1407,32 +1477,37 @@ private static class echoPass_argsStandardScheme extends org.apache.thrift.schem @Override public void read(org.apache.thrift.protocol.TProtocol iprot, echoPass_args struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TField schemeField; - iprot.readStructBegin(); - while (true) - { - schemeField = iprot.readFieldBegin(); - if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { - break; - } - switch (schemeField.id) { - case 1: // VALUE - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.value = iprot.readString(); - struct.setValueIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } + iprot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; - default: - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + switch (schemeField.id) { + case 1: // VALUE + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.value = iprot.readString(); + struct.setValueIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + default: + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); } - iprot.readFieldEnd(); - } - iprot.readStructEnd(); + iprot.readStructEnd(); - // check for required fields of primitive type, which can't be checked in the validate method - struct.validate(); + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } finally { + iprot.decrementRecursionDepth(); + } } @Override @@ -1475,11 +1550,16 @@ public void write(org.apache.thrift.protocol.TProtocol prot, echoPass_args struc @Override public void read(org.apache.thrift.protocol.TProtocol prot, echoPass_args struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; - java.util.BitSet incoming = iprot.readBitSet(1); - if (incoming.get(0)) { - struct.value = iprot.readString(); - struct.setValueIsSet(true); + prot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(1); + if (incoming.get(0)) { + struct.value = iprot.readString(); + struct.setValueIsSet(true); + } + } finally { + prot.decrementRecursionDepth(); } } } @@ -1785,32 +1865,37 @@ private static class echoPass_resultStandardScheme extends org.apache.thrift.sch @Override public void read(org.apache.thrift.protocol.TProtocol iprot, echoPass_result struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TField schemeField; - iprot.readStructBegin(); - while (true) - { - schemeField = iprot.readFieldBegin(); - if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { - break; - } - switch (schemeField.id) { - case 0: // SUCCESS - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.success = iprot.readString(); - struct.setSuccessIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } + iprot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; - default: - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + switch (schemeField.id) { + case 0: // SUCCESS + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.success = iprot.readString(); + struct.setSuccessIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + default: + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); } - iprot.readFieldEnd(); - } - iprot.readStructEnd(); + iprot.readStructEnd(); - // check for required fields of primitive type, which can't be checked in the validate method - struct.validate(); + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } finally { + iprot.decrementRecursionDepth(); + } } @Override @@ -1853,11 +1938,16 @@ public void write(org.apache.thrift.protocol.TProtocol prot, echoPass_result str @Override public void read(org.apache.thrift.protocol.TProtocol prot, echoPass_result struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; - java.util.BitSet incoming = iprot.readBitSet(1); - if (incoming.get(0)) { - struct.success = iprot.readString(); - struct.setSuccessIsSet(true); + prot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(1); + if (incoming.get(0)) { + struct.success = iprot.readString(); + struct.setSuccessIsSet(true); + } + } finally { + prot.decrementRecursionDepth(); } } } @@ -2164,32 +2254,37 @@ private static class onewayPass_argsStandardScheme extends org.apache.thrift.sch @Override public void read(org.apache.thrift.protocol.TProtocol iprot, onewayPass_args struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TField schemeField; - iprot.readStructBegin(); - while (true) - { - schemeField = iprot.readFieldBegin(); - if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { - break; - } - switch (schemeField.id) { - case 1: // VALUE - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.value = iprot.readString(); - struct.setValueIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } + iprot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; - default: - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + switch (schemeField.id) { + case 1: // VALUE + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.value = iprot.readString(); + struct.setValueIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + default: + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); } - iprot.readFieldEnd(); - } - iprot.readStructEnd(); + iprot.readStructEnd(); - // check for required fields of primitive type, which can't be checked in the validate method - struct.validate(); + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } finally { + iprot.decrementRecursionDepth(); + } } @Override @@ -2232,11 +2327,16 @@ public void write(org.apache.thrift.protocol.TProtocol prot, onewayPass_args str @Override public void read(org.apache.thrift.protocol.TProtocol prot, onewayPass_args struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; - java.util.BitSet incoming = iprot.readBitSet(1); - if (incoming.get(0)) { - struct.value = iprot.readString(); - struct.setValueIsSet(true); + prot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(1); + if (incoming.get(0)) { + struct.value = iprot.readString(); + struct.setValueIsSet(true); + } + } finally { + prot.decrementRecursionDepth(); } } } @@ -2543,32 +2643,37 @@ private static class echoFail_argsStandardScheme extends org.apache.thrift.schem @Override public void read(org.apache.thrift.protocol.TProtocol iprot, echoFail_args struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TField schemeField; - iprot.readStructBegin(); - while (true) - { - schemeField = iprot.readFieldBegin(); - if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { - break; - } - switch (schemeField.id) { - case 1: // VALUE - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.value = iprot.readString(); - struct.setValueIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } + iprot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; - default: - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + switch (schemeField.id) { + case 1: // VALUE + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.value = iprot.readString(); + struct.setValueIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + default: + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); } - iprot.readFieldEnd(); - } - iprot.readStructEnd(); + iprot.readStructEnd(); - // check for required fields of primitive type, which can't be checked in the validate method - struct.validate(); + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } finally { + iprot.decrementRecursionDepth(); + } } @Override @@ -2611,11 +2716,16 @@ public void write(org.apache.thrift.protocol.TProtocol prot, echoFail_args struc @Override public void read(org.apache.thrift.protocol.TProtocol prot, echoFail_args struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; - java.util.BitSet incoming = iprot.readBitSet(1); - if (incoming.get(0)) { - struct.value = iprot.readString(); - struct.setValueIsSet(true); + prot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(1); + if (incoming.get(0)) { + struct.value = iprot.readString(); + struct.setValueIsSet(true); + } + } finally { + prot.decrementRecursionDepth(); } } } @@ -2921,32 +3031,37 @@ private static class echoFail_resultStandardScheme extends org.apache.thrift.sch @Override public void read(org.apache.thrift.protocol.TProtocol iprot, echoFail_result struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TField schemeField; - iprot.readStructBegin(); - while (true) - { - schemeField = iprot.readFieldBegin(); - if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { - break; - } - switch (schemeField.id) { - case 0: // SUCCESS - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.success = iprot.readString(); - struct.setSuccessIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } + iprot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; - default: - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + switch (schemeField.id) { + case 0: // SUCCESS + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.success = iprot.readString(); + struct.setSuccessIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + default: + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); } - iprot.readFieldEnd(); - } - iprot.readStructEnd(); + iprot.readStructEnd(); - // check for required fields of primitive type, which can't be checked in the validate method - struct.validate(); + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } finally { + iprot.decrementRecursionDepth(); + } } @Override @@ -2989,11 +3104,16 @@ public void write(org.apache.thrift.protocol.TProtocol prot, echoFail_result str @Override public void read(org.apache.thrift.protocol.TProtocol prot, echoFail_result struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; - java.util.BitSet incoming = iprot.readBitSet(1); - if (incoming.get(0)) { - struct.success = iprot.readString(); - struct.setSuccessIsSet(true); + prot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(1); + if (incoming.get(0)) { + struct.success = iprot.readString(); + struct.setSuccessIsSet(true); + } + } finally { + prot.decrementRecursionDepth(); } } } @@ -3300,32 +3420,37 @@ private static class onewayFail_argsStandardScheme extends org.apache.thrift.sch @Override public void read(org.apache.thrift.protocol.TProtocol iprot, onewayFail_args struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TField schemeField; - iprot.readStructBegin(); - while (true) - { - schemeField = iprot.readFieldBegin(); - if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { - break; - } - switch (schemeField.id) { - case 1: // VALUE - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.value = iprot.readString(); - struct.setValueIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } + iprot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; - default: - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + switch (schemeField.id) { + case 1: // VALUE + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.value = iprot.readString(); + struct.setValueIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + default: + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); } - iprot.readFieldEnd(); - } - iprot.readStructEnd(); + iprot.readStructEnd(); - // check for required fields of primitive type, which can't be checked in the validate method - struct.validate(); + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } finally { + iprot.decrementRecursionDepth(); + } } @Override @@ -3368,11 +3493,16 @@ public void write(org.apache.thrift.protocol.TProtocol prot, onewayFail_args str @Override public void read(org.apache.thrift.protocol.TProtocol prot, onewayFail_args struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; - java.util.BitSet incoming = iprot.readBitSet(1); - if (incoming.get(0)) { - struct.value = iprot.readString(); - struct.setValueIsSet(true); + prot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(1); + if (incoming.get(0)) { + struct.value = iprot.readString(); + struct.setValueIsSet(true); + } + } finally { + prot.decrementRecursionDepth(); } } } @@ -3679,32 +3809,37 @@ private static class echoRuntimeFail_argsStandardScheme extends org.apache.thrif @Override public void read(org.apache.thrift.protocol.TProtocol iprot, echoRuntimeFail_args struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TField schemeField; - iprot.readStructBegin(); - while (true) - { - schemeField = iprot.readFieldBegin(); - if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { - break; - } - switch (schemeField.id) { - case 1: // VALUE - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.value = iprot.readString(); - struct.setValueIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } + iprot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; - default: - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + switch (schemeField.id) { + case 1: // VALUE + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.value = iprot.readString(); + struct.setValueIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + default: + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); } - iprot.readFieldEnd(); - } - iprot.readStructEnd(); + iprot.readStructEnd(); - // check for required fields of primitive type, which can't be checked in the validate method - struct.validate(); + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } finally { + iprot.decrementRecursionDepth(); + } } @Override @@ -3747,11 +3882,16 @@ public void write(org.apache.thrift.protocol.TProtocol prot, echoRuntimeFail_arg @Override public void read(org.apache.thrift.protocol.TProtocol prot, echoRuntimeFail_args struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; - java.util.BitSet incoming = iprot.readBitSet(1); - if (incoming.get(0)) { - struct.value = iprot.readString(); - struct.setValueIsSet(true); + prot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(1); + if (incoming.get(0)) { + struct.value = iprot.readString(); + struct.setValueIsSet(true); + } + } finally { + prot.decrementRecursionDepth(); } } } @@ -4057,32 +4197,37 @@ private static class echoRuntimeFail_resultStandardScheme extends org.apache.thr @Override public void read(org.apache.thrift.protocol.TProtocol iprot, echoRuntimeFail_result struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TField schemeField; - iprot.readStructBegin(); - while (true) - { - schemeField = iprot.readFieldBegin(); - if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { - break; - } - switch (schemeField.id) { - case 0: // SUCCESS - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.success = iprot.readString(); - struct.setSuccessIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } + iprot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; - default: - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + switch (schemeField.id) { + case 0: // SUCCESS + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.success = iprot.readString(); + struct.setSuccessIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + default: + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); } - iprot.readFieldEnd(); - } - iprot.readStructEnd(); + iprot.readStructEnd(); - // check for required fields of primitive type, which can't be checked in the validate method - struct.validate(); + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } finally { + iprot.decrementRecursionDepth(); + } } @Override @@ -4125,11 +4270,16 @@ public void write(org.apache.thrift.protocol.TProtocol prot, echoRuntimeFail_res @Override public void read(org.apache.thrift.protocol.TProtocol prot, echoRuntimeFail_result struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; - java.util.BitSet incoming = iprot.readBitSet(1); - if (incoming.get(0)) { - struct.success = iprot.readString(); - struct.setSuccessIsSet(true); + prot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(1); + if (incoming.get(0)) { + struct.success = iprot.readString(); + struct.setSuccessIsSet(true); + } + } finally { + prot.decrementRecursionDepth(); } } } @@ -4436,32 +4586,37 @@ private static class onewayRuntimeFail_argsStandardScheme extends org.apache.thr @Override public void read(org.apache.thrift.protocol.TProtocol iprot, onewayRuntimeFail_args struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TField schemeField; - iprot.readStructBegin(); - while (true) - { - schemeField = iprot.readFieldBegin(); - if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { - break; - } - switch (schemeField.id) { - case 1: // VALUE - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.value = iprot.readString(); - struct.setValueIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } + iprot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; - default: - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + switch (schemeField.id) { + case 1: // VALUE + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.value = iprot.readString(); + struct.setValueIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + default: + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); } - iprot.readFieldEnd(); - } - iprot.readStructEnd(); + iprot.readStructEnd(); - // check for required fields of primitive type, which can't be checked in the validate method - struct.validate(); + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } finally { + iprot.decrementRecursionDepth(); + } } @Override @@ -4504,11 +4659,16 @@ public void write(org.apache.thrift.protocol.TProtocol prot, onewayRuntimeFail_a @Override public void read(org.apache.thrift.protocol.TProtocol prot, onewayRuntimeFail_args struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; - java.util.BitSet incoming = iprot.readBitSet(1); - if (incoming.get(0)) { - struct.value = iprot.readString(); - struct.setValueIsSet(true); + prot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(1); + if (incoming.get(0)) { + struct.value = iprot.readString(); + struct.setValueIsSet(true); + } + } finally { + prot.decrementRecursionDepth(); } } } @@ -4815,32 +4975,37 @@ private static class echoPassVoid_argsStandardScheme extends org.apache.thrift.s @Override public void read(org.apache.thrift.protocol.TProtocol iprot, echoPassVoid_args struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TField schemeField; - iprot.readStructBegin(); - while (true) - { - schemeField = iprot.readFieldBegin(); - if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { - break; - } - switch (schemeField.id) { - case 1: // VALUE - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.value = iprot.readString(); - struct.setValueIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } + iprot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; - default: - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + switch (schemeField.id) { + case 1: // VALUE + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.value = iprot.readString(); + struct.setValueIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + default: + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); } - iprot.readFieldEnd(); - } - iprot.readStructEnd(); + iprot.readStructEnd(); - // check for required fields of primitive type, which can't be checked in the validate method - struct.validate(); + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } finally { + iprot.decrementRecursionDepth(); + } } @Override @@ -4883,11 +5048,16 @@ public void write(org.apache.thrift.protocol.TProtocol prot, echoPassVoid_args s @Override public void read(org.apache.thrift.protocol.TProtocol prot, echoPassVoid_args struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; - java.util.BitSet incoming = iprot.readBitSet(1); - if (incoming.get(0)) { - struct.value = iprot.readString(); - struct.setValueIsSet(true); + prot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(1); + if (incoming.get(0)) { + struct.value = iprot.readString(); + struct.setValueIsSet(true); + } + } finally { + prot.decrementRecursionDepth(); } } } @@ -5106,24 +5276,29 @@ private static class echoPassVoid_resultStandardScheme extends org.apache.thrift @Override public void read(org.apache.thrift.protocol.TProtocol iprot, echoPassVoid_result struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TField schemeField; - iprot.readStructBegin(); - while (true) - { - schemeField = iprot.readFieldBegin(); - if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { - break; - } - switch (schemeField.id) { - default: - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + iprot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { + break; + } + switch (schemeField.id) { + default: + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); } - iprot.readFieldEnd(); - } - iprot.readStructEnd(); + iprot.readStructEnd(); - // check for required fields of primitive type, which can't be checked in the validate method - struct.validate(); + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } finally { + iprot.decrementRecursionDepth(); + } } @Override @@ -5153,7 +5328,12 @@ public void write(org.apache.thrift.protocol.TProtocol prot, echoPassVoid_result @Override public void read(org.apache.thrift.protocol.TProtocol prot, echoPassVoid_result struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + prot.incrementRecursionDepth(); + try { + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + } finally { + prot.decrementRecursionDepth(); + } } }