Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 64DF5200CFA for ; Tue, 5 Sep 2017 22:44:14 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 636E31609EA; Tue, 5 Sep 2017 20:44:14 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id DF8B7161131 for ; Tue, 5 Sep 2017 22:44:11 +0200 (CEST) Received: (qmail 68823 invoked by uid 500); 5 Sep 2017 20:44:05 -0000 Mailing-List: contact commits-help@airavata.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@airavata.apache.org Delivered-To: mailing list commits@airavata.apache.org Received: (qmail 67693 invoked by uid 99); 5 Sep 2017 20:44:04 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 05 Sep 2017 20:44:04 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id C76A3F56A5; Tue, 5 Sep 2017 20:44:03 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: machristie@apache.org To: commits@airavata.apache.org Date: Tue, 05 Sep 2017 20:44:16 -0000 Message-Id: <7a435023a79945449bf65edf7c5ff8ec@git.apache.org> In-Reply-To: <5eb21ab29fee4bf3a05eb90d557ead83@git.apache.org> References: <5eb21ab29fee4bf3a05eb90d557ead83@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: [14/52] [partial] airavata git commit: AIRAVATA-2505 Upgrade Airavata to Thrift 0.10.0 archived-at: Tue, 05 Sep 2017 20:44:14 -0000 http://git-wip-us.apache.org/repos/asf/airavata/blob/8e775660/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/application/io/InputDataObjectType.java ---------------------------------------------------------------------- diff --git a/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/application/io/InputDataObjectType.java b/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/application/io/InputDataObjectType.java index 6308e58..48f45d8 100644 --- a/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/application/io/InputDataObjectType.java +++ b/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/application/io/InputDataObjectType.java @@ -16,41 +16,14 @@ */ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.10.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.airavata.model.application.io; -import org.apache.thrift.scheme.IScheme; -import org.apache.thrift.scheme.SchemeFactory; -import org.apache.thrift.scheme.StandardScheme; - -import org.apache.thrift.scheme.TupleScheme; -import org.apache.thrift.protocol.TTupleProtocol; -import org.apache.thrift.protocol.TProtocolException; -import org.apache.thrift.EncodingUtils; -import org.apache.thrift.TException; -import org.apache.thrift.async.AsyncMethodCallback; -import org.apache.thrift.server.AbstractNonblockingServer.*; -import java.util.List; -import java.util.ArrayList; -import java.util.Map; -import java.util.HashMap; -import java.util.EnumMap; -import java.util.Set; -import java.util.HashSet; -import java.util.EnumSet; -import java.util.Collections; -import java.util.BitSet; -import java.nio.ByteBuffer; -import java.util.Arrays; -import javax.annotation.Generated; -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; - -@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) +@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked", "unused"}) /** * Application Inputs. The paramters describe how inputs are passed to the application. * @@ -77,7 +50,7 @@ import org.slf4j.LoggerFactory; * Any metadat. This is typically ignore by Airavata and is used by gateways for application configuration. * */ -@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)") +@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.10.0)") public class InputDataObjectType implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("InputDataObjectType"); @@ -95,24 +68,21 @@ public class InputDataObjectType implements org.apache.thrift.TBase, SchemeFactory> schemes = new HashMap, SchemeFactory>(); - static { - schemes.put(StandardScheme.class, new InputDataObjectTypeStandardSchemeFactory()); - schemes.put(TupleScheme.class, new InputDataObjectTypeTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new InputDataObjectTypeStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new InputDataObjectTypeTupleSchemeFactory(); - private String name; // required - private String value; // optional + private java.lang.String name; // required + private java.lang.String value; // optional private DataType type; // optional - private String applicationArgument; // optional + private java.lang.String applicationArgument; // optional private boolean standardInput; // optional - private String userFriendlyDescription; // optional - private String metaData; // optional + private java.lang.String userFriendlyDescription; // optional + private java.lang.String metaData; // optional private int inputOrder; // optional private boolean isRequired; // optional private boolean requiredToAddedToCommandLine; // optional private boolean dataStaged; // optional - private String storageResourceId; // optional + private java.lang.String storageResourceId; // optional private boolean isReadOnly; // optional /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ @@ -135,10 +105,10 @@ public class InputDataObjectType implements org.apache.thrift.TBase byName = new HashMap(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -185,21 +155,21 @@ public class InputDataObjectType implements org.apache.thrift.TBase metaDataMap; + public static final java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.NAME, new org.apache.thrift.meta_data.FieldMetaData("name", org.apache.thrift.TFieldRequirementType.REQUIRED, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.VALUE, new org.apache.thrift.meta_data.FieldMetaData("value", org.apache.thrift.TFieldRequirementType.OPTIONAL, @@ -251,7 +221,7 @@ public class InputDataObjectType implements org.apache.thrift.TBase list = new ArrayList(); - - boolean present_name = true && (isSetName()); - list.add(present_name); - if (present_name) - list.add(name); - - boolean present_value = true && (isSetValue()); - list.add(present_value); - if (present_value) - list.add(value); - - boolean present_type = true && (isSetType()); - list.add(present_type); - if (present_type) - list.add(type.getValue()); - - boolean present_applicationArgument = true && (isSetApplicationArgument()); - list.add(present_applicationArgument); - if (present_applicationArgument) - list.add(applicationArgument); - - boolean present_standardInput = true && (isSetStandardInput()); - list.add(present_standardInput); - if (present_standardInput) - list.add(standardInput); - - boolean present_userFriendlyDescription = true && (isSetUserFriendlyDescription()); - list.add(present_userFriendlyDescription); - if (present_userFriendlyDescription) - list.add(userFriendlyDescription); - - boolean present_metaData = true && (isSetMetaData()); - list.add(present_metaData); - if (present_metaData) - list.add(metaData); - - boolean present_inputOrder = true && (isSetInputOrder()); - list.add(present_inputOrder); - if (present_inputOrder) - list.add(inputOrder); - - boolean present_isRequired = true && (isSetIsRequired()); - list.add(present_isRequired); - if (present_isRequired) - list.add(isRequired); - - boolean present_requiredToAddedToCommandLine = true && (isSetRequiredToAddedToCommandLine()); - list.add(present_requiredToAddedToCommandLine); - if (present_requiredToAddedToCommandLine) - list.add(requiredToAddedToCommandLine); - - boolean present_dataStaged = true && (isSetDataStaged()); - list.add(present_dataStaged); - if (present_dataStaged) - list.add(dataStaged); - - boolean present_storageResourceId = true && (isSetStorageResourceId()); - list.add(present_storageResourceId); - if (present_storageResourceId) - list.add(storageResourceId); - - boolean present_isReadOnly = true && (isSetIsReadOnly()); - list.add(present_isReadOnly); - if (present_isReadOnly) - list.add(isReadOnly); - - return list.hashCode(); + int hashCode = 1; + + hashCode = hashCode * 8191 + ((isSetName()) ? 131071 : 524287); + if (isSetName()) + hashCode = hashCode * 8191 + name.hashCode(); + + hashCode = hashCode * 8191 + ((isSetValue()) ? 131071 : 524287); + if (isSetValue()) + hashCode = hashCode * 8191 + value.hashCode(); + + hashCode = hashCode * 8191 + ((isSetType()) ? 131071 : 524287); + if (isSetType()) + hashCode = hashCode * 8191 + type.getValue(); + + hashCode = hashCode * 8191 + ((isSetApplicationArgument()) ? 131071 : 524287); + if (isSetApplicationArgument()) + hashCode = hashCode * 8191 + applicationArgument.hashCode(); + + hashCode = hashCode * 8191 + ((isSetStandardInput()) ? 131071 : 524287); + if (isSetStandardInput()) + hashCode = hashCode * 8191 + ((standardInput) ? 131071 : 524287); + + hashCode = hashCode * 8191 + ((isSetUserFriendlyDescription()) ? 131071 : 524287); + if (isSetUserFriendlyDescription()) + hashCode = hashCode * 8191 + userFriendlyDescription.hashCode(); + + hashCode = hashCode * 8191 + ((isSetMetaData()) ? 131071 : 524287); + if (isSetMetaData()) + hashCode = hashCode * 8191 + metaData.hashCode(); + + hashCode = hashCode * 8191 + ((isSetInputOrder()) ? 131071 : 524287); + if (isSetInputOrder()) + hashCode = hashCode * 8191 + inputOrder; + + hashCode = hashCode * 8191 + ((isSetIsRequired()) ? 131071 : 524287); + if (isSetIsRequired()) + hashCode = hashCode * 8191 + ((isRequired) ? 131071 : 524287); + + hashCode = hashCode * 8191 + ((isSetRequiredToAddedToCommandLine()) ? 131071 : 524287); + if (isSetRequiredToAddedToCommandLine()) + hashCode = hashCode * 8191 + ((requiredToAddedToCommandLine) ? 131071 : 524287); + + hashCode = hashCode * 8191 + ((isSetDataStaged()) ? 131071 : 524287); + if (isSetDataStaged()) + hashCode = hashCode * 8191 + ((dataStaged) ? 131071 : 524287); + + hashCode = hashCode * 8191 + ((isSetStorageResourceId()) ? 131071 : 524287); + if (isSetStorageResourceId()) + hashCode = hashCode * 8191 + storageResourceId.hashCode(); + + hashCode = hashCode * 8191 + ((isSetIsReadOnly()) ? 131071 : 524287); + if (isSetIsReadOnly()) + hashCode = hashCode * 8191 + ((isReadOnly) ? 131071 : 524287); + + return hashCode; } @Override @@ -1031,7 +990,7 @@ public class InputDataObjectType implements org.apache.thrift.TBase { + private static class InputDataObjectTypeStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, InputDataObjectType struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -1533,19 +1492,19 @@ public class InputDataObjectType implements org.apache.thrift.TBase { + private static class InputDataObjectTypeTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, InputDataObjectType struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; oprot.writeString(struct.name); - BitSet optionals = new BitSet(); + java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetValue()) { optionals.set(0); } @@ -1623,10 +1582,10 @@ public class InputDataObjectType implements org.apache.thrift.TBase S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } http://git-wip-us.apache.org/repos/asf/airavata/blob/8e775660/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/application/io/OutputDataObjectType.java ---------------------------------------------------------------------- diff --git a/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/application/io/OutputDataObjectType.java b/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/application/io/OutputDataObjectType.java index 19df1e3..1c24ed1 100644 --- a/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/application/io/OutputDataObjectType.java +++ b/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/application/io/OutputDataObjectType.java @@ -16,41 +16,14 @@ */ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.10.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.airavata.model.application.io; -import org.apache.thrift.scheme.IScheme; -import org.apache.thrift.scheme.SchemeFactory; -import org.apache.thrift.scheme.StandardScheme; - -import org.apache.thrift.scheme.TupleScheme; -import org.apache.thrift.protocol.TTupleProtocol; -import org.apache.thrift.protocol.TProtocolException; -import org.apache.thrift.EncodingUtils; -import org.apache.thrift.TException; -import org.apache.thrift.async.AsyncMethodCallback; -import org.apache.thrift.server.AbstractNonblockingServer.*; -import java.util.List; -import java.util.ArrayList; -import java.util.Map; -import java.util.HashMap; -import java.util.EnumMap; -import java.util.Set; -import java.util.HashSet; -import java.util.EnumSet; -import java.util.Collections; -import java.util.BitSet; -import java.nio.ByteBuffer; -import java.util.Arrays; -import javax.annotation.Generated; -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; - -@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) +@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked", "unused"}) /** * Application Outputs. The paramters describe how outputs generated by the application. * @@ -77,7 +50,7 @@ import org.slf4j.LoggerFactory; * Any metadat. This is typically ignore by Airavata and is used by gateways for application configuration. * */ -@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)") +@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.10.0)") public class OutputDataObjectType implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("OutputDataObjectType"); @@ -93,23 +66,20 @@ public class OutputDataObjectType implements org.apache.thrift.TBase, SchemeFactory> schemes = new HashMap, SchemeFactory>(); - static { - schemes.put(StandardScheme.class, new OutputDataObjectTypeStandardSchemeFactory()); - schemes.put(TupleScheme.class, new OutputDataObjectTypeTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new OutputDataObjectTypeStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new OutputDataObjectTypeTupleSchemeFactory(); - private String name; // required - private String value; // optional + private java.lang.String name; // required + private java.lang.String value; // optional private DataType type; // optional - private String applicationArgument; // optional + private java.lang.String applicationArgument; // optional private boolean isRequired; // optional private boolean requiredToAddedToCommandLine; // optional private boolean dataMovement; // optional - private String location; // optional - private String searchQuery; // optional + private java.lang.String location; // optional + private java.lang.String searchQuery; // optional private boolean outputStreaming; // optional - private String storageResourceId; // optional + private java.lang.String storageResourceId; // optional /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { @@ -129,10 +99,10 @@ public class OutputDataObjectType implements org.apache.thrift.TBase byName = new HashMap(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -175,21 +145,21 @@ public class OutputDataObjectType implements org.apache.thrift.TBase metaDataMap; + public static final java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.NAME, new org.apache.thrift.meta_data.FieldMetaData("name", org.apache.thrift.TFieldRequirementType.REQUIRED, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.VALUE, new org.apache.thrift.meta_data.FieldMetaData("value", org.apache.thrift.TFieldRequirementType.OPTIONAL, @@ -235,7 +205,7 @@ public class OutputDataObjectType implements org.apache.thrift.TBase list = new ArrayList(); - - boolean present_name = true && (isSetName()); - list.add(present_name); - if (present_name) - list.add(name); - - boolean present_value = true && (isSetValue()); - list.add(present_value); - if (present_value) - list.add(value); - - boolean present_type = true && (isSetType()); - list.add(present_type); - if (present_type) - list.add(type.getValue()); - - boolean present_applicationArgument = true && (isSetApplicationArgument()); - list.add(present_applicationArgument); - if (present_applicationArgument) - list.add(applicationArgument); - - boolean present_isRequired = true && (isSetIsRequired()); - list.add(present_isRequired); - if (present_isRequired) - list.add(isRequired); - - boolean present_requiredToAddedToCommandLine = true && (isSetRequiredToAddedToCommandLine()); - list.add(present_requiredToAddedToCommandLine); - if (present_requiredToAddedToCommandLine) - list.add(requiredToAddedToCommandLine); - - boolean present_dataMovement = true && (isSetDataMovement()); - list.add(present_dataMovement); - if (present_dataMovement) - list.add(dataMovement); - - boolean present_location = true && (isSetLocation()); - list.add(present_location); - if (present_location) - list.add(location); - - boolean present_searchQuery = true && (isSetSearchQuery()); - list.add(present_searchQuery); - if (present_searchQuery) - list.add(searchQuery); - - boolean present_outputStreaming = true && (isSetOutputStreaming()); - list.add(present_outputStreaming); - if (present_outputStreaming) - list.add(outputStreaming); - - boolean present_storageResourceId = true && (isSetStorageResourceId()); - list.add(present_storageResourceId); - if (present_storageResourceId) - list.add(storageResourceId); - - return list.hashCode(); + int hashCode = 1; + + hashCode = hashCode * 8191 + ((isSetName()) ? 131071 : 524287); + if (isSetName()) + hashCode = hashCode * 8191 + name.hashCode(); + + hashCode = hashCode * 8191 + ((isSetValue()) ? 131071 : 524287); + if (isSetValue()) + hashCode = hashCode * 8191 + value.hashCode(); + + hashCode = hashCode * 8191 + ((isSetType()) ? 131071 : 524287); + if (isSetType()) + hashCode = hashCode * 8191 + type.getValue(); + + hashCode = hashCode * 8191 + ((isSetApplicationArgument()) ? 131071 : 524287); + if (isSetApplicationArgument()) + hashCode = hashCode * 8191 + applicationArgument.hashCode(); + + hashCode = hashCode * 8191 + ((isSetIsRequired()) ? 131071 : 524287); + if (isSetIsRequired()) + hashCode = hashCode * 8191 + ((isRequired) ? 131071 : 524287); + + hashCode = hashCode * 8191 + ((isSetRequiredToAddedToCommandLine()) ? 131071 : 524287); + if (isSetRequiredToAddedToCommandLine()) + hashCode = hashCode * 8191 + ((requiredToAddedToCommandLine) ? 131071 : 524287); + + hashCode = hashCode * 8191 + ((isSetDataMovement()) ? 131071 : 524287); + if (isSetDataMovement()) + hashCode = hashCode * 8191 + ((dataMovement) ? 131071 : 524287); + + hashCode = hashCode * 8191 + ((isSetLocation()) ? 131071 : 524287); + if (isSetLocation()) + hashCode = hashCode * 8191 + location.hashCode(); + + hashCode = hashCode * 8191 + ((isSetSearchQuery()) ? 131071 : 524287); + if (isSetSearchQuery()) + hashCode = hashCode * 8191 + searchQuery.hashCode(); + + hashCode = hashCode * 8191 + ((isSetOutputStreaming()) ? 131071 : 524287); + if (isSetOutputStreaming()) + hashCode = hashCode * 8191 + ((outputStreaming) ? 131071 : 524287); + + hashCode = hashCode * 8191 + ((isSetStorageResourceId()) ? 131071 : 524287); + if (isSetStorageResourceId()) + hashCode = hashCode * 8191 + storageResourceId.hashCode(); + + return hashCode; } @Override @@ -911,7 +872,7 @@ public class OutputDataObjectType implements org.apache.thrift.TBase { + private static class OutputDataObjectTypeStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, OutputDataObjectType struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -1355,19 +1316,19 @@ public class OutputDataObjectType implements org.apache.thrift.TBase { + private static class OutputDataObjectTypeTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, OutputDataObjectType struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; oprot.writeString(struct.name); - BitSet optionals = new BitSet(); + java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetValue()) { optionals.set(0); } @@ -1433,10 +1394,10 @@ public class OutputDataObjectType implements org.apache.thrift.TBase S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } }