FAQ
Repository: hive
Updated Branches:
   refs/heads/master b829d4189 -> 2542f5cc2


http://git-wip-us.apache.org/repos/asf/hive/blob/2542f5cc/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TGetCatalogsResp.java
----------------------------------------------------------------------
diff --git a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TGetCatalogsResp.java b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TGetCatalogsResp.java
deleted file mode 100644
index 2372d3a..0000000
--- a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TGetCatalogsResp.java
+++ /dev/null
@@ -1,509 +0,0 @@
-/**
- * Autogenerated by Thrift Compiler (0.9.3)
- *
- * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
- * @generated
- */
-package org.apache.hive.service.cli.thrift;
-
-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"})
-@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)")
-public class TGetCatalogsResp implements org.apache.thrift.TBase<TGetCatalogsResp, TGetCatalogsResp._Fields>, java.io.Serializable, Cloneable, Comparable<TGetCatalogsResp> {
- private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TGetCatalogsResp");
-
- private static final org.apache.thrift.protocol.TField STATUS_FIELD_DESC = new org.apache.thrift.protocol.TField("status", org.apache.thrift.protocol.TType.STRUCT, (short)1);
- private static final org.apache.thrift.protocol.TField OPERATION_HANDLE_FIELD_DESC = new org.apache.thrift.protocol.TField("operationHandle", org.apache.thrift.protocol.TType.STRUCT, (short)2);
-
- private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
- static {
- schemes.put(StandardScheme.class, new TGetCatalogsRespStandardSchemeFactory());
- schemes.put(TupleScheme.class, new TGetCatalogsRespTupleSchemeFactory());
- }
-
- private TStatus status; // required
- private TOperationHandle operationHandle; // 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 {
- STATUS((short)1, "status"),
- OPERATION_HANDLE((short)2, "operationHandle");
-
- private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
- static {
- for (_Fields field : EnumSet.allOf(_Fields.class)) {
- byName.put(field.getFieldName(), field);
- }
- }
-
- /**
- * Find the _Fields constant that matches fieldId, or null if its not found.
- */
- public static _Fields findByThriftId(int fieldId) {
- switch(fieldId) {
- case 1: // STATUS
- return STATUS;
- case 2: // OPERATION_HANDLE
- return OPERATION_HANDLE;
- default:
- return null;
- }
- }
-
- /**
- * Find the _Fields constant that matches fieldId, throwing an exception
- * if it is not found.
- */
- public static _Fields findByThriftIdOrThrow(int fieldId) {
- _Fields fields = findByThriftId(fieldId);
- if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
- return fields;
- }
-
- /**
- * Find the _Fields constant that matches name, or null if its not found.
- */
- public static _Fields findByName(String name) {
- return byName.get(name);
- }
-
- private final short _thriftId;
- private final String _fieldName;
-
- _Fields(short thriftId, String fieldName) {
- _thriftId = thriftId;
- _fieldName = fieldName;
- }
-
- public short getThriftFieldId() {
- return _thriftId;
- }
-
- public String getFieldName() {
- return _fieldName;
- }
- }
-
- // isset id assignments
- private static final _Fields optionals[] = {_Fields.OPERATION_HANDLE};
- public static final 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);
- tmpMap.put(_Fields.STATUS, new org.apache.thrift.meta_data.FieldMetaData("status", org.apache.thrift.TFieldRequirementType.REQUIRED,
- new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TStatus.class)));
- tmpMap.put(_Fields.OPERATION_HANDLE, new org.apache.thrift.meta_data.FieldMetaData("operationHandle", org.apache.thrift.TFieldRequirementType.OPTIONAL,
- new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TOperationHandle.class)));
- metaDataMap = Collections.unmodifiableMap(tmpMap);
- org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(TGetCatalogsResp.class, metaDataMap);
- }
-
- public TGetCatalogsResp() {
- }
-
- public TGetCatalogsResp(
- TStatus status)
- {
- this();
- this.status = status;
- }
-
- /**
- * Performs a deep copy on <i>other</i>.
- */
- public TGetCatalogsResp(TGetCatalogsResp other) {
- if (other.isSetStatus()) {
- this.status = new TStatus(other.status);
- }
- if (other.isSetOperationHandle()) {
- this.operationHandle = new TOperationHandle(other.operationHandle);
- }
- }
-
- public TGetCatalogsResp deepCopy() {
- return new TGetCatalogsResp(this);
- }
-
- @Override
- public void clear() {
- this.status = null;
- this.operationHandle = null;
- }
-
- public TStatus getStatus() {
- return this.status;
- }
-
- public void setStatus(TStatus status) {
- this.status = status;
- }
-
- public void unsetStatus() {
- this.status = null;
- }
-
- /** Returns true if field status is set (has been assigned a value) and false otherwise */
- public boolean isSetStatus() {
- return this.status != null;
- }
-
- public void setStatusIsSet(boolean value) {
- if (!value) {
- this.status = null;
- }
- }
-
- public TOperationHandle getOperationHandle() {
- return this.operationHandle;
- }
-
- public void setOperationHandle(TOperationHandle operationHandle) {
- this.operationHandle = operationHandle;
- }
-
- public void unsetOperationHandle() {
- this.operationHandle = null;
- }
-
- /** Returns true if field operationHandle is set (has been assigned a value) and false otherwise */
- public boolean isSetOperationHandle() {
- return this.operationHandle != null;
- }
-
- public void setOperationHandleIsSet(boolean value) {
- if (!value) {
- this.operationHandle = null;
- }
- }
-
- public void setFieldValue(_Fields field, Object value) {
- switch (field) {
- case STATUS:
- if (value == null) {
- unsetStatus();
- } else {
- setStatus((TStatus)value);
- }
- break;
-
- case OPERATION_HANDLE:
- if (value == null) {
- unsetOperationHandle();
- } else {
- setOperationHandle((TOperationHandle)value);
- }
- break;
-
- }
- }
-
- public Object getFieldValue(_Fields field) {
- switch (field) {
- case STATUS:
- return getStatus();
-
- case OPERATION_HANDLE:
- return getOperationHandle();
-
- }
- throw new IllegalStateException();
- }
-
- /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
- public boolean isSet(_Fields field) {
- if (field == null) {
- throw new IllegalArgumentException();
- }
-
- switch (field) {
- case STATUS:
- return isSetStatus();
- case OPERATION_HANDLE:
- return isSetOperationHandle();
- }
- throw new IllegalStateException();
- }
-
- @Override
- public boolean equals(Object that) {
- if (that == null)
- return false;
- if (that instanceof TGetCatalogsResp)
- return this.equals((TGetCatalogsResp)that);
- return false;
- }
-
- public boolean equals(TGetCatalogsResp that) {
- if (that == null)
- return false;
-
- boolean this_present_status = true && this.isSetStatus();
- boolean that_present_status = true && that.isSetStatus();
- if (this_present_status || that_present_status) {
- if (!(this_present_status && that_present_status))
- return false;
- if (!this.status.equals(that.status))
- return false;
- }
-
- boolean this_present_operationHandle = true && this.isSetOperationHandle();
- boolean that_present_operationHandle = true && that.isSetOperationHandle();
- if (this_present_operationHandle || that_present_operationHandle) {
- if (!(this_present_operationHandle && that_present_operationHandle))
- return false;
- if (!this.operationHandle.equals(that.operationHandle))
- return false;
- }
-
- return true;
- }
-
- @Override
- public int hashCode() {
- List<Object> list = new ArrayList<Object>();
-
- boolean present_status = true && (isSetStatus());
- list.add(present_status);
- if (present_status)
- list.add(status);
-
- boolean present_operationHandle = true && (isSetOperationHandle());
- list.add(present_operationHandle);
- if (present_operationHandle)
- list.add(operationHandle);
-
- return list.hashCode();
- }
-
- @Override
- public int compareTo(TGetCatalogsResp other) {
- if (!getClass().equals(other.getClass())) {
- return getClass().getName().compareTo(other.getClass().getName());
- }
-
- int lastComparison = 0;
-
- lastComparison = Boolean.valueOf(isSetStatus()).compareTo(other.isSetStatus());
- if (lastComparison != 0) {
- return lastComparison;
- }
- if (isSetStatus()) {
- lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.status, other.status);
- if (lastComparison != 0) {
- return lastComparison;
- }
- }
- lastComparison = Boolean.valueOf(isSetOperationHandle()).compareTo(other.isSetOperationHandle());
- if (lastComparison != 0) {
- return lastComparison;
- }
- if (isSetOperationHandle()) {
- lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.operationHandle, other.operationHandle);
- if (lastComparison != 0) {
- return lastComparison;
- }
- }
- return 0;
- }
-
- public _Fields fieldForId(int fieldId) {
- return _Fields.findByThriftId(fieldId);
- }
-
- public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
- schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
- }
-
- public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
- schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
- }
-
- @Override
- public String toString() {
- StringBuilder sb = new StringBuilder("TGetCatalogsResp(");
- boolean first = true;
-
- sb.append("status:");
- if (this.status == null) {
- sb.append("null");
- } else {
- sb.append(this.status);
- }
- first = false;
- if (isSetOperationHandle()) {
- if (!first) sb.append(", ");
- sb.append("operationHandle:");
- if (this.operationHandle == null) {
- sb.append("null");
- } else {
- sb.append(this.operationHandle);
- }
- first = false;
- }
- sb.append(")");
- return sb.toString();
- }
-
- public void validate() throws org.apache.thrift.TException {
- // check for required fields
- if (!isSetStatus()) {
- throw new org.apache.thrift.protocol.TProtocolException("Required field 'status' is unset! Struct:" + toString());
- }
-
- // check for sub-struct validity
- if (status != null) {
- status.validate();
- }
- if (operationHandle != null) {
- operationHandle.validate();
- }
- }
-
- private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
- try {
- write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
- } catch (org.apache.thrift.TException te) {
- throw new java.io.IOException(te);
- }
- }
-
- private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
- try {
- read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
- } catch (org.apache.thrift.TException te) {
- throw new java.io.IOException(te);
- }
- }
-
- private static class TGetCatalogsRespStandardSchemeFactory implements SchemeFactory {
- public TGetCatalogsRespStandardScheme getScheme() {
- return new TGetCatalogsRespStandardScheme();
- }
- }
-
- private static class TGetCatalogsRespStandardScheme extends StandardScheme<TGetCatalogsResp> {
-
- public void read(org.apache.thrift.protocol.TProtocol iprot, TGetCatalogsResp struct) throws org.apache.thrift.TException {
- org.apache.thrift.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.STRUCT) {
- struct.status = new TStatus();
- struct.status.read(iprot);
- struct.setStatusIsSet(true);
- } else {
- org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
- }
- break;
- case 2: // OPERATION_HANDLE
- if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
- struct.operationHandle = new TOperationHandle();
- struct.operationHandle.read(iprot);
- struct.setOperationHandleIsSet(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.readStructEnd();
- struct.validate();
- }
-
- public void write(org.apache.thrift.protocol.TProtocol oprot, TGetCatalogsResp struct) throws org.apache.thrift.TException {
- struct.validate();
-
- oprot.writeStructBegin(STRUCT_DESC);
- if (struct.status != null) {
- oprot.writeFieldBegin(STATUS_FIELD_DESC);
- struct.status.write(oprot);
- oprot.writeFieldEnd();
- }
- if (struct.operationHandle != null) {
- if (struct.isSetOperationHandle()) {
- oprot.writeFieldBegin(OPERATION_HANDLE_FIELD_DESC);
- struct.operationHandle.write(oprot);
- oprot.writeFieldEnd();
- }
- }
- oprot.writeFieldStop();
- oprot.writeStructEnd();
- }
-
- }
-
- private static class TGetCatalogsRespTupleSchemeFactory implements SchemeFactory {
- public TGetCatalogsRespTupleScheme getScheme() {
- return new TGetCatalogsRespTupleScheme();
- }
- }
-
- private static class TGetCatalogsRespTupleScheme extends TupleScheme<TGetCatalogsResp> {
-
- @Override
- public void write(org.apache.thrift.protocol.TProtocol prot, TGetCatalogsResp struct) throws org.apache.thrift.TException {
- TTupleProtocol oprot = (TTupleProtocol) prot;
- struct.status.write(oprot);
- BitSet optionals = new BitSet();
- if (struct.isSetOperationHandle()) {
- optionals.set(0);
- }
- oprot.writeBitSet(optionals, 1);
- if (struct.isSetOperationHandle()) {
- struct.operationHandle.write(oprot);
- }
- }
-
- @Override
- public void read(org.apache.thrift.protocol.TProtocol prot, TGetCatalogsResp struct) throws org.apache.thrift.TException {
- TTupleProtocol iprot = (TTupleProtocol) prot;
- struct.status = new TStatus();
- struct.status.read(iprot);
- struct.setStatusIsSet(true);
- BitSet incoming = iprot.readBitSet(1);
- if (incoming.get(0)) {
- struct.operationHandle = new TOperationHandle();
- struct.operationHandle.read(iprot);
- struct.setOperationHandleIsSet(true);
- }
- }
- }
-
-}
-

Search Discussions

  • Vgumashta at Jan 8, 2016 at 12:19 am
    Repository: hive
    Updated Branches:
       refs/heads/master b829d4189 -> 2542f5cc2


    http://git-wip-us.apache.org/repos/asf/hive/blob/2542f5cc/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TGetCatalogsResp.java
    ----------------------------------------------------------------------
    diff --git a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TGetCatalogsResp.java b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TGetCatalogsResp.java
    deleted file mode 100644
    index 2372d3a..0000000
    --- a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TGetCatalogsResp.java
    +++ /dev/null
    @@ -1,509 +0,0 @@
    -/**
    - * Autogenerated by Thrift Compiler (0.9.3)
    - *
    - * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
    - * @generated
    - */
    -package org.apache.hive.service.cli.thrift;
    -
    -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"})
    -@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)")
    -public class TGetCatalogsResp implements org.apache.thrift.TBase<TGetCatalogsResp, TGetCatalogsResp._Fields>, java.io.Serializable, Cloneable, Comparable<TGetCatalogsResp> {
    - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TGetCatalogsResp");
    -
    - private static final org.apache.thrift.protocol.TField STATUS_FIELD_DESC = new org.apache.thrift.protocol.TField("status", org.apache.thrift.protocol.TType.STRUCT, (short)1);
    - private static final org.apache.thrift.protocol.TField OPERATION_HANDLE_FIELD_DESC = new org.apache.thrift.protocol.TField("operationHandle", org.apache.thrift.protocol.TType.STRUCT, (short)2);
    -
    - private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
    - static {
    - schemes.put(StandardScheme.class, new TGetCatalogsRespStandardSchemeFactory());
    - schemes.put(TupleScheme.class, new TGetCatalogsRespTupleSchemeFactory());
    - }
    -
    - private TStatus status; // required
    - private TOperationHandle operationHandle; // 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 {
    - STATUS((short)1, "status"),
    - OPERATION_HANDLE((short)2, "operationHandle");
    -
    - private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
    -
    - static {
    - for (_Fields field : EnumSet.allOf(_Fields.class)) {
    - byName.put(field.getFieldName(), field);
    - }
    - }
    -
    - /**
    - * Find the _Fields constant that matches fieldId, or null if its not found.
    - */
    - public static _Fields findByThriftId(int fieldId) {
    - switch(fieldId) {
    - case 1: // STATUS
    - return STATUS;
    - case 2: // OPERATION_HANDLE
    - return OPERATION_HANDLE;
    - default:
    - return null;
    - }
    - }
    -
    - /**
    - * Find the _Fields constant that matches fieldId, throwing an exception
    - * if it is not found.
    - */
    - public static _Fields findByThriftIdOrThrow(int fieldId) {
    - _Fields fields = findByThriftId(fieldId);
    - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
    - return fields;
    - }
    -
    - /**
    - * Find the _Fields constant that matches name, or null if its not found.
    - */
    - public static _Fields findByName(String name) {
    - return byName.get(name);
    - }
    -
    - private final short _thriftId;
    - private final String _fieldName;
    -
    - _Fields(short thriftId, String fieldName) {
    - _thriftId = thriftId;
    - _fieldName = fieldName;
    - }
    -
    - public short getThriftFieldId() {
    - return _thriftId;
    - }
    -
    - public String getFieldName() {
    - return _fieldName;
    - }
    - }
    -
    - // isset id assignments
    - private static final _Fields optionals[] = {_Fields.OPERATION_HANDLE};
    - public static final 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);
    - tmpMap.put(_Fields.STATUS, new org.apache.thrift.meta_data.FieldMetaData("status", org.apache.thrift.TFieldRequirementType.REQUIRED,
    - new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TStatus.class)));
    - tmpMap.put(_Fields.OPERATION_HANDLE, new org.apache.thrift.meta_data.FieldMetaData("operationHandle", org.apache.thrift.TFieldRequirementType.OPTIONAL,
    - new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TOperationHandle.class)));
    - metaDataMap = Collections.unmodifiableMap(tmpMap);
    - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(TGetCatalogsResp.class, metaDataMap);
    - }
    -
    - public TGetCatalogsResp() {
    - }
    -
    - public TGetCatalogsResp(
    - TStatus status)
    - {
    - this();
    - this.status = status;
    - }
    -
    - /**
    - * Performs a deep copy on <i>other</i>.
    - */
    - public TGetCatalogsResp(TGetCatalogsResp other) {
    - if (other.isSetStatus()) {
    - this.status = new TStatus(other.status);
    - }
    - if (other.isSetOperationHandle()) {
    - this.operationHandle = new TOperationHandle(other.operationHandle);
    - }
    - }
    -
    - public TGetCatalogsResp deepCopy() {
    - return new TGetCatalogsResp(this);
    - }
    -
    - @Override
    - public void clear() {
    - this.status = null;
    - this.operationHandle = null;
    - }
    -
    - public TStatus getStatus() {
    - return this.status;
    - }
    -
    - public void setStatus(TStatus status) {
    - this.status = status;
    - }
    -
    - public void unsetStatus() {
    - this.status = null;
    - }
    -
    - /** Returns true if field status is set (has been assigned a value) and false otherwise */
    - public boolean isSetStatus() {
    - return this.status != null;
    - }
    -
    - public void setStatusIsSet(boolean value) {
    - if (!value) {
    - this.status = null;
    - }
    - }
    -
    - public TOperationHandle getOperationHandle() {
    - return this.operationHandle;
    - }
    -
    - public void setOperationHandle(TOperationHandle operationHandle) {
    - this.operationHandle = operationHandle;
    - }
    -
    - public void unsetOperationHandle() {
    - this.operationHandle = null;
    - }
    -
    - /** Returns true if field operationHandle is set (has been assigned a value) and false otherwise */
    - public boolean isSetOperationHandle() {
    - return this.operationHandle != null;
    - }
    -
    - public void setOperationHandleIsSet(boolean value) {
    - if (!value) {
    - this.operationHandle = null;
    - }
    - }
    -
    - public void setFieldValue(_Fields field, Object value) {
    - switch (field) {
    - case STATUS:
    - if (value == null) {
    - unsetStatus();
    - } else {
    - setStatus((TStatus)value);
    - }
    - break;
    -
    - case OPERATION_HANDLE:
    - if (value == null) {
    - unsetOperationHandle();
    - } else {
    - setOperationHandle((TOperationHandle)value);
    - }
    - break;
    -
    - }
    - }
    -
    - public Object getFieldValue(_Fields field) {
    - switch (field) {
    - case STATUS:
    - return getStatus();
    -
    - case OPERATION_HANDLE:
    - return getOperationHandle();
    -
    - }
    - throw new IllegalStateException();
    - }
    -
    - /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
    - public boolean isSet(_Fields field) {
    - if (field == null) {
    - throw new IllegalArgumentException();
    - }
    -
    - switch (field) {
    - case STATUS:
    - return isSetStatus();
    - case OPERATION_HANDLE:
    - return isSetOperationHandle();
    - }
    - throw new IllegalStateException();
    - }
    -
    - @Override
    - public boolean equals(Object that) {
    - if (that == null)
    - return false;
    - if (that instanceof TGetCatalogsResp)
    - return this.equals((TGetCatalogsResp)that);
    - return false;
    - }
    -
    - public boolean equals(TGetCatalogsResp that) {
    - if (that == null)
    - return false;
    -
    - boolean this_present_status = true && this.isSetStatus();
    - boolean that_present_status = true && that.isSetStatus();
    - if (this_present_status || that_present_status) {
    - if (!(this_present_status && that_present_status))
    - return false;
    - if (!this.status.equals(that.status))
    - return false;
    - }
    -
    - boolean this_present_operationHandle = true && this.isSetOperationHandle();
    - boolean that_present_operationHandle = true && that.isSetOperationHandle();
    - if (this_present_operationHandle || that_present_operationHandle) {
    - if (!(this_present_operationHandle && that_present_operationHandle))
    - return false;
    - if (!this.operationHandle.equals(that.operationHandle))
    - return false;
    - }
    -
    - return true;
    - }
    -
    - @Override
    - public int hashCode() {
    - List<Object> list = new ArrayList<Object>();
    -
    - boolean present_status = true && (isSetStatus());
    - list.add(present_status);
    - if (present_status)
    - list.add(status);
    -
    - boolean present_operationHandle = true && (isSetOperationHandle());
    - list.add(present_operationHandle);
    - if (present_operationHandle)
    - list.add(operationHandle);
    -
    - return list.hashCode();
    - }
    -
    - @Override
    - public int compareTo(TGetCatalogsResp other) {
    - if (!getClass().equals(other.getClass())) {
    - return getClass().getName().compareTo(other.getClass().getName());
    - }
    -
    - int lastComparison = 0;
    -
    - lastComparison = Boolean.valueOf(isSetStatus()).compareTo(other.isSetStatus());
    - if (lastComparison != 0) {
    - return lastComparison;
    - }
    - if (isSetStatus()) {
    - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.status, other.status);
    - if (lastComparison != 0) {
    - return lastComparison;
    - }
    - }
    - lastComparison = Boolean.valueOf(isSetOperationHandle()).compareTo(other.isSetOperationHandle());
    - if (lastComparison != 0) {
    - return lastComparison;
    - }
    - if (isSetOperationHandle()) {
    - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.operationHandle, other.operationHandle);
    - if (lastComparison != 0) {
    - return lastComparison;
    - }
    - }
    - return 0;
    - }
    -
    - public _Fields fieldForId(int fieldId) {
    - return _Fields.findByThriftId(fieldId);
    - }
    -
    - public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
    - schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
    - }
    -
    - public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
    - schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
    - }
    -
    - @Override
    - public String toString() {
    - StringBuilder sb = new StringBuilder("TGetCatalogsResp(");
    - boolean first = true;
    -
    - sb.append("status:");
    - if (this.status == null) {
    - sb.append("null");
    - } else {
    - sb.append(this.status);
    - }
    - first = false;
    - if (isSetOperationHandle()) {
    - if (!first) sb.append(", ");
    - sb.append("operationHandle:");
    - if (this.operationHandle == null) {
    - sb.append("null");
    - } else {
    - sb.append(this.operationHandle);
    - }
    - first = false;
    - }
    - sb.append(")");
    - return sb.toString();
    - }
    -
    - public void validate() throws org.apache.thrift.TException {
    - // check for required fields
    - if (!isSetStatus()) {
    - throw new org.apache.thrift.protocol.TProtocolException("Required field 'status' is unset! Struct:" + toString());
    - }
    -
    - // check for sub-struct validity
    - if (status != null) {
    - status.validate();
    - }
    - if (operationHandle != null) {
    - operationHandle.validate();
    - }
    - }
    -
    - private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
    - try {
    - write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
    - } catch (org.apache.thrift.TException te) {
    - throw new java.io.IOException(te);
    - }
    - }
    -
    - private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
    - try {
    - read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
    - } catch (org.apache.thrift.TException te) {
    - throw new java.io.IOException(te);
    - }
    - }
    -
    - private static class TGetCatalogsRespStandardSchemeFactory implements SchemeFactory {
    - public TGetCatalogsRespStandardScheme getScheme() {
    - return new TGetCatalogsRespStandardScheme();
    - }
    - }
    -
    - private static class TGetCatalogsRespStandardScheme extends StandardScheme<TGetCatalogsResp> {
    -
    - public void read(org.apache.thrift.protocol.TProtocol iprot, TGetCatalogsResp struct) throws org.apache.thrift.TException {
    - org.apache.thrift.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.STRUCT) {
    - struct.status = new TStatus();
    - struct.status.read(iprot);
    - struct.setStatusIsSet(true);
    - } else {
    - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
    - }
    - break;
    - case 2: // OPERATION_HANDLE
    - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
    - struct.operationHandle = new TOperationHandle();
    - struct.operationHandle.read(iprot);
    - struct.setOperationHandleIsSet(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.readStructEnd();
    - struct.validate();
    - }
    -
    - public void write(org.apache.thrift.protocol.TProtocol oprot, TGetCatalogsResp struct) throws org.apache.thrift.TException {
    - struct.validate();
    -
    - oprot.writeStructBegin(STRUCT_DESC);
    - if (struct.status != null) {
    - oprot.writeFieldBegin(STATUS_FIELD_DESC);
    - struct.status.write(oprot);
    - oprot.writeFieldEnd();
    - }
    - if (struct.operationHandle != null) {
    - if (struct.isSetOperationHandle()) {
    - oprot.writeFieldBegin(OPERATION_HANDLE_FIELD_DESC);
    - struct.operationHandle.write(oprot);
    - oprot.writeFieldEnd();
    - }
    - }
    - oprot.writeFieldStop();
    - oprot.writeStructEnd();
    - }
    -
    - }
    -
    - private static class TGetCatalogsRespTupleSchemeFactory implements SchemeFactory {
    - public TGetCatalogsRespTupleScheme getScheme() {
    - return new TGetCatalogsRespTupleScheme();
    - }
    - }
    -
    - private static class TGetCatalogsRespTupleScheme extends TupleScheme<TGetCatalogsResp> {
    -
    - @Override
    - public void write(org.apache.thrift.protocol.TProtocol prot, TGetCatalogsResp struct) throws org.apache.thrift.TException {
    - TTupleProtocol oprot = (TTupleProtocol) prot;
    - struct.status.write(oprot);
    - BitSet optionals = new BitSet();
    - if (struct.isSetOperationHandle()) {
    - optionals.set(0);
    - }
    - oprot.writeBitSet(optionals, 1);
    - if (struct.isSetOperationHandle()) {
    - struct.operationHandle.write(oprot);
    - }
    - }
    -
    - @Override
    - public void read(org.apache.thrift.protocol.TProtocol prot, TGetCatalogsResp struct) throws org.apache.thrift.TException {
    - TTupleProtocol iprot = (TTupleProtocol) prot;
    - struct.status = new TStatus();
    - struct.status.read(iprot);
    - struct.setStatusIsSet(true);
    - BitSet incoming = iprot.readBitSet(1);
    - if (incoming.get(0)) {
    - struct.operationHandle = new TOperationHandle();
    - struct.operationHandle.read(iprot);
    - struct.setOperationHandleIsSet(true);
    - }
    - }
    - }
    -
    -}
    -
  • Vgumashta at Jan 8, 2016 at 12:19 am
    http://git-wip-us.apache.org/repos/asf/hive/blob/2542f5cc/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TColumnValue.java
    ----------------------------------------------------------------------
    diff --git a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TColumnValue.java b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TColumnValue.java
    deleted file mode 100644
    index 2c2c6bb..0000000
    --- a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TColumnValue.java
    +++ /dev/null
    @@ -1,675 +0,0 @@
    -/**
    - * Autogenerated by Thrift Compiler (0.9.3)
    - *
    - * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
    - * @generated
    - */
    -package org.apache.hive.service.cli.thrift;
    -
    -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"})
    -public class TColumnValue extends org.apache.thrift.TUnion<TColumnValue, TColumnValue._Fields> {
    - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TColumnValue");
    - private static final org.apache.thrift.protocol.TField BOOL_VAL_FIELD_DESC = new org.apache.thrift.protocol.TField("boolVal", org.apache.thrift.protocol.TType.STRUCT, (short)1);
    - private static final org.apache.thrift.protocol.TField BYTE_VAL_FIELD_DESC = new org.apache.thrift.protocol.TField("byteVal", org.apache.thrift.protocol.TType.STRUCT, (short)2);
    - private static final org.apache.thrift.protocol.TField I16_VAL_FIELD_DESC = new org.apache.thrift.protocol.TField("i16Val", org.apache.thrift.protocol.TType.STRUCT, (short)3);
    - private static final org.apache.thrift.protocol.TField I32_VAL_FIELD_DESC = new org.apache.thrift.protocol.TField("i32Val", org.apache.thrift.protocol.TType.STRUCT, (short)4);
    - private static final org.apache.thrift.protocol.TField I64_VAL_FIELD_DESC = new org.apache.thrift.protocol.TField("i64Val", org.apache.thrift.protocol.TType.STRUCT, (short)5);
    - private static final org.apache.thrift.protocol.TField DOUBLE_VAL_FIELD_DESC = new org.apache.thrift.protocol.TField("doubleVal", org.apache.thrift.protocol.TType.STRUCT, (short)6);
    - private static final org.apache.thrift.protocol.TField STRING_VAL_FIELD_DESC = new org.apache.thrift.protocol.TField("stringVal", org.apache.thrift.protocol.TType.STRUCT, (short)7);
    -
    - /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
    - public enum _Fields implements org.apache.thrift.TFieldIdEnum {
    - BOOL_VAL((short)1, "boolVal"),
    - BYTE_VAL((short)2, "byteVal"),
    - I16_VAL((short)3, "i16Val"),
    - I32_VAL((short)4, "i32Val"),
    - I64_VAL((short)5, "i64Val"),
    - DOUBLE_VAL((short)6, "doubleVal"),
    - STRING_VAL((short)7, "stringVal");
    -
    - private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
    -
    - static {
    - for (_Fields field : EnumSet.allOf(_Fields.class)) {
    - byName.put(field.getFieldName(), field);
    - }
    - }
    -
    - /**
    - * Find the _Fields constant that matches fieldId, or null if its not found.
    - */
    - public static _Fields findByThriftId(int fieldId) {
    - switch(fieldId) {
    - case 1: // BOOL_VAL
    - return BOOL_VAL;
    - case 2: // BYTE_VAL
    - return BYTE_VAL;
    - case 3: // I16_VAL
    - return I16_VAL;
    - case 4: // I32_VAL
    - return I32_VAL;
    - case 5: // I64_VAL
    - return I64_VAL;
    - case 6: // DOUBLE_VAL
    - return DOUBLE_VAL;
    - case 7: // STRING_VAL
    - return STRING_VAL;
    - default:
    - return null;
    - }
    - }
    -
    - /**
    - * Find the _Fields constant that matches fieldId, throwing an exception
    - * if it is not found.
    - */
    - public static _Fields findByThriftIdOrThrow(int fieldId) {
    - _Fields fields = findByThriftId(fieldId);
    - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
    - return fields;
    - }
    -
    - /**
    - * Find the _Fields constant that matches name, or null if its not found.
    - */
    - public static _Fields findByName(String name) {
    - return byName.get(name);
    - }
    -
    - private final short _thriftId;
    - private final String _fieldName;
    -
    - _Fields(short thriftId, String fieldName) {
    - _thriftId = thriftId;
    - _fieldName = fieldName;
    - }
    -
    - public short getThriftFieldId() {
    - return _thriftId;
    - }
    -
    - public String getFieldName() {
    - return _fieldName;
    - }
    - }
    -
    - public static final 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);
    - tmpMap.put(_Fields.BOOL_VAL, new org.apache.thrift.meta_data.FieldMetaData("boolVal", org.apache.thrift.TFieldRequirementType.DEFAULT,
    - new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TBoolValue.class)));
    - tmpMap.put(_Fields.BYTE_VAL, new org.apache.thrift.meta_data.FieldMetaData("byteVal", org.apache.thrift.TFieldRequirementType.DEFAULT,
    - new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TByteValue.class)));
    - tmpMap.put(_Fields.I16_VAL, new org.apache.thrift.meta_data.FieldMetaData("i16Val", org.apache.thrift.TFieldRequirementType.DEFAULT,
    - new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TI16Value.class)));
    - tmpMap.put(_Fields.I32_VAL, new org.apache.thrift.meta_data.FieldMetaData("i32Val", org.apache.thrift.TFieldRequirementType.DEFAULT,
    - new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TI32Value.class)));
    - tmpMap.put(_Fields.I64_VAL, new org.apache.thrift.meta_data.FieldMetaData("i64Val", org.apache.thrift.TFieldRequirementType.DEFAULT,
    - new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TI64Value.class)));
    - tmpMap.put(_Fields.DOUBLE_VAL, new org.apache.thrift.meta_data.FieldMetaData("doubleVal", org.apache.thrift.TFieldRequirementType.DEFAULT,
    - new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TDoubleValue.class)));
    - tmpMap.put(_Fields.STRING_VAL, new org.apache.thrift.meta_data.FieldMetaData("stringVal", org.apache.thrift.TFieldRequirementType.DEFAULT,
    - new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TStringValue.class)));
    - metaDataMap = Collections.unmodifiableMap(tmpMap);
    - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(TColumnValue.class, metaDataMap);
    - }
    -
    - public TColumnValue() {
    - super();
    - }
    -
    - public TColumnValue(_Fields setField, Object value) {
    - super(setField, value);
    - }
    -
    - public TColumnValue(TColumnValue other) {
    - super(other);
    - }
    - public TColumnValue deepCopy() {
    - return new TColumnValue(this);
    - }
    -
    - public static TColumnValue boolVal(TBoolValue value) {
    - TColumnValue x = new TColumnValue();
    - x.setBoolVal(value);
    - return x;
    - }
    -
    - public static TColumnValue byteVal(TByteValue value) {
    - TColumnValue x = new TColumnValue();
    - x.setByteVal(value);
    - return x;
    - }
    -
    - public static TColumnValue i16Val(TI16Value value) {
    - TColumnValue x = new TColumnValue();
    - x.setI16Val(value);
    - return x;
    - }
    -
    - public static TColumnValue i32Val(TI32Value value) {
    - TColumnValue x = new TColumnValue();
    - x.setI32Val(value);
    - return x;
    - }
    -
    - public static TColumnValue i64Val(TI64Value value) {
    - TColumnValue x = new TColumnValue();
    - x.setI64Val(value);
    - return x;
    - }
    -
    - public static TColumnValue doubleVal(TDoubleValue value) {
    - TColumnValue x = new TColumnValue();
    - x.setDoubleVal(value);
    - return x;
    - }
    -
    - public static TColumnValue stringVal(TStringValue value) {
    - TColumnValue x = new TColumnValue();
    - x.setStringVal(value);
    - return x;
    - }
    -
    -
    - @Override
    - protected void checkType(_Fields setField, Object value) throws ClassCastException {
    - switch (setField) {
    - case BOOL_VAL:
    - if (value instanceof TBoolValue) {
    - break;
    - }
    - throw new ClassCastException("Was expecting value of type TBoolValue for field 'boolVal', but got " + value.getClass().getSimpleName());
    - case BYTE_VAL:
    - if (value instanceof TByteValue) {
    - break;
    - }
    - throw new ClassCastException("Was expecting value of type TByteValue for field 'byteVal', but got " + value.getClass().getSimpleName());
    - case I16_VAL:
    - if (value instanceof TI16Value) {
    - break;
    - }
    - throw new ClassCastException("Was expecting value of type TI16Value for field 'i16Val', but got " + value.getClass().getSimpleName());
    - case I32_VAL:
    - if (value instanceof TI32Value) {
    - break;
    - }
    - throw new ClassCastException("Was expecting value of type TI32Value for field 'i32Val', but got " + value.getClass().getSimpleName());
    - case I64_VAL:
    - if (value instanceof TI64Value) {
    - break;
    - }
    - throw new ClassCastException("Was expecting value of type TI64Value for field 'i64Val', but got " + value.getClass().getSimpleName());
    - case DOUBLE_VAL:
    - if (value instanceof TDoubleValue) {
    - break;
    - }
    - throw new ClassCastException("Was expecting value of type TDoubleValue for field 'doubleVal', but got " + value.getClass().getSimpleName());
    - case STRING_VAL:
    - if (value instanceof TStringValue) {
    - break;
    - }
    - throw new ClassCastException("Was expecting value of type TStringValue for field 'stringVal', but got " + value.getClass().getSimpleName());
    - default:
    - throw new IllegalArgumentException("Unknown field id " + setField);
    - }
    - }
    -
    - @Override
    - protected Object standardSchemeReadValue(org.apache.thrift.protocol.TProtocol iprot, org.apache.thrift.protocol.TField field) throws org.apache.thrift.TException {
    - _Fields setField = _Fields.findByThriftId(field.id);
    - if (setField != null) {
    - switch (setField) {
    - case BOOL_VAL:
    - if (field.type == BOOL_VAL_FIELD_DESC.type) {
    - TBoolValue boolVal;
    - boolVal = new TBoolValue();
    - boolVal.read(iprot);
    - return boolVal;
    - } else {
    - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
    - return null;
    - }
    - case BYTE_VAL:
    - if (field.type == BYTE_VAL_FIELD_DESC.type) {
    - TByteValue byteVal;
    - byteVal = new TByteValue();
    - byteVal.read(iprot);
    - return byteVal;
    - } else {
    - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
    - return null;
    - }
    - case I16_VAL:
    - if (field.type == I16_VAL_FIELD_DESC.type) {
    - TI16Value i16Val;
    - i16Val = new TI16Value();
    - i16Val.read(iprot);
    - return i16Val;
    - } else {
    - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
    - return null;
    - }
    - case I32_VAL:
    - if (field.type == I32_VAL_FIELD_DESC.type) {
    - TI32Value i32Val;
    - i32Val = new TI32Value();
    - i32Val.read(iprot);
    - return i32Val;
    - } else {
    - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
    - return null;
    - }
    - case I64_VAL:
    - if (field.type == I64_VAL_FIELD_DESC.type) {
    - TI64Value i64Val;
    - i64Val = new TI64Value();
    - i64Val.read(iprot);
    - return i64Val;
    - } else {
    - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
    - return null;
    - }
    - case DOUBLE_VAL:
    - if (field.type == DOUBLE_VAL_FIELD_DESC.type) {
    - TDoubleValue doubleVal;
    - doubleVal = new TDoubleValue();
    - doubleVal.read(iprot);
    - return doubleVal;
    - } else {
    - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
    - return null;
    - }
    - case STRING_VAL:
    - if (field.type == STRING_VAL_FIELD_DESC.type) {
    - TStringValue stringVal;
    - stringVal = new TStringValue();
    - stringVal.read(iprot);
    - return stringVal;
    - } else {
    - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
    - return null;
    - }
    - default:
    - throw new IllegalStateException("setField wasn't null, but didn't match any of the case statements!");
    - }
    - } else {
    - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
    - return null;
    - }
    - }
    -
    - @Override
    - protected void standardSchemeWriteValue(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
    - switch (setField_) {
    - case BOOL_VAL:
    - TBoolValue boolVal = (TBoolValue)value_;
    - boolVal.write(oprot);
    - return;
    - case BYTE_VAL:
    - TByteValue byteVal = (TByteValue)value_;
    - byteVal.write(oprot);
    - return;
    - case I16_VAL:
    - TI16Value i16Val = (TI16Value)value_;
    - i16Val.write(oprot);
    - return;
    - case I32_VAL:
    - TI32Value i32Val = (TI32Value)value_;
    - i32Val.write(oprot);
    - return;
    - case I64_VAL:
    - TI64Value i64Val = (TI64Value)value_;
    - i64Val.write(oprot);
    - return;
    - case DOUBLE_VAL:
    - TDoubleValue doubleVal = (TDoubleValue)value_;
    - doubleVal.write(oprot);
    - return;
    - case STRING_VAL:
    - TStringValue stringVal = (TStringValue)value_;
    - stringVal.write(oprot);
    - return;
    - default:
    - throw new IllegalStateException("Cannot write union with unknown field " + setField_);
    - }
    - }
    -
    - @Override
    - protected Object tupleSchemeReadValue(org.apache.thrift.protocol.TProtocol iprot, short fieldID) throws org.apache.thrift.TException {
    - _Fields setField = _Fields.findByThriftId(fieldID);
    - if (setField != null) {
    - switch (setField) {
    - case BOOL_VAL:
    - TBoolValue boolVal;
    - boolVal = new TBoolValue();
    - boolVal.read(iprot);
    - return boolVal;
    - case BYTE_VAL:
    - TByteValue byteVal;
    - byteVal = new TByteValue();
    - byteVal.read(iprot);
    - return byteVal;
    - case I16_VAL:
    - TI16Value i16Val;
    - i16Val = new TI16Value();
    - i16Val.read(iprot);
    - return i16Val;
    - case I32_VAL:
    - TI32Value i32Val;
    - i32Val = new TI32Value();
    - i32Val.read(iprot);
    - return i32Val;
    - case I64_VAL:
    - TI64Value i64Val;
    - i64Val = new TI64Value();
    - i64Val.read(iprot);
    - return i64Val;
    - case DOUBLE_VAL:
    - TDoubleValue doubleVal;
    - doubleVal = new TDoubleValue();
    - doubleVal.read(iprot);
    - return doubleVal;
    - case STRING_VAL:
    - TStringValue stringVal;
    - stringVal = new TStringValue();
    - stringVal.read(iprot);
    - return stringVal;
    - default:
    - throw new IllegalStateException("setField wasn't null, but didn't match any of the case statements!");
    - }
    - } else {
    - throw new TProtocolException("Couldn't find a field with field id " + fieldID);
    - }
    - }
    -
    - @Override
    - protected void tupleSchemeWriteValue(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
    - switch (setField_) {
    - case BOOL_VAL:
    - TBoolValue boolVal = (TBoolValue)value_;
    - boolVal.write(oprot);
    - return;
    - case BYTE_VAL:
    - TByteValue byteVal = (TByteValue)value_;
    - byteVal.write(oprot);
    - return;
    - case I16_VAL:
    - TI16Value i16Val = (TI16Value)value_;
    - i16Val.write(oprot);
    - return;
    - case I32_VAL:
    - TI32Value i32Val = (TI32Value)value_;
    - i32Val.write(oprot);
    - return;
    - case I64_VAL:
    - TI64Value i64Val = (TI64Value)value_;
    - i64Val.write(oprot);
    - return;
    - case DOUBLE_VAL:
    - TDoubleValue doubleVal = (TDoubleValue)value_;
    - doubleVal.write(oprot);
    - return;
    - case STRING_VAL:
    - TStringValue stringVal = (TStringValue)value_;
    - stringVal.write(oprot);
    - return;
    - default:
    - throw new IllegalStateException("Cannot write union with unknown field " + setField_);
    - }
    - }
    -
    - @Override
    - protected org.apache.thrift.protocol.TField getFieldDesc(_Fields setField) {
    - switch (setField) {
    - case BOOL_VAL:
    - return BOOL_VAL_FIELD_DESC;
    - case BYTE_VAL:
    - return BYTE_VAL_FIELD_DESC;
    - case I16_VAL:
    - return I16_VAL_FIELD_DESC;
    - case I32_VAL:
    - return I32_VAL_FIELD_DESC;
    - case I64_VAL:
    - return I64_VAL_FIELD_DESC;
    - case DOUBLE_VAL:
    - return DOUBLE_VAL_FIELD_DESC;
    - case STRING_VAL:
    - return STRING_VAL_FIELD_DESC;
    - default:
    - throw new IllegalArgumentException("Unknown field id " + setField);
    - }
    - }
    -
    - @Override
    - protected org.apache.thrift.protocol.TStruct getStructDesc() {
    - return STRUCT_DESC;
    - }
    -
    - @Override
    - protected _Fields enumForId(short id) {
    - return _Fields.findByThriftIdOrThrow(id);
    - }
    -
    - public _Fields fieldForId(int fieldId) {
    - return _Fields.findByThriftId(fieldId);
    - }
    -
    -
    - public TBoolValue getBoolVal() {
    - if (getSetField() == _Fields.BOOL_VAL) {
    - return (TBoolValue)getFieldValue();
    - } else {
    - throw new RuntimeException("Cannot get field 'boolVal' because union is currently set to " + getFieldDesc(getSetField()).name);
    - }
    - }
    -
    - public void setBoolVal(TBoolValue value) {
    - if (value == null) throw new NullPointerException();
    - setField_ = _Fields.BOOL_VAL;
    - value_ = value;
    - }
    -
    - public TByteValue getByteVal() {
    - if (getSetField() == _Fields.BYTE_VAL) {
    - return (TByteValue)getFieldValue();
    - } else {
    - throw new RuntimeException("Cannot get field 'byteVal' because union is currently set to " + getFieldDesc(getSetField()).name);
    - }
    - }
    -
    - public void setByteVal(TByteValue value) {
    - if (value == null) throw new NullPointerException();
    - setField_ = _Fields.BYTE_VAL;
    - value_ = value;
    - }
    -
    - public TI16Value getI16Val() {
    - if (getSetField() == _Fields.I16_VAL) {
    - return (TI16Value)getFieldValue();
    - } else {
    - throw new RuntimeException("Cannot get field 'i16Val' because union is currently set to " + getFieldDesc(getSetField()).name);
    - }
    - }
    -
    - public void setI16Val(TI16Value value) {
    - if (value == null) throw new NullPointerException();
    - setField_ = _Fields.I16_VAL;
    - value_ = value;
    - }
    -
    - public TI32Value getI32Val() {
    - if (getSetField() == _Fields.I32_VAL) {
    - return (TI32Value)getFieldValue();
    - } else {
    - throw new RuntimeException("Cannot get field 'i32Val' because union is currently set to " + getFieldDesc(getSetField()).name);
    - }
    - }
    -
    - public void setI32Val(TI32Value value) {
    - if (value == null) throw new NullPointerException();
    - setField_ = _Fields.I32_VAL;
    - value_ = value;
    - }
    -
    - public TI64Value getI64Val() {
    - if (getSetField() == _Fields.I64_VAL) {
    - return (TI64Value)getFieldValue();
    - } else {
    - throw new RuntimeException("Cannot get field 'i64Val' because union is currently set to " + getFieldDesc(getSetField()).name);
    - }
    - }
    -
    - public void setI64Val(TI64Value value) {
    - if (value == null) throw new NullPointerException();
    - setField_ = _Fields.I64_VAL;
    - value_ = value;
    - }
    -
    - public TDoubleValue getDoubleVal() {
    - if (getSetField() == _Fields.DOUBLE_VAL) {
    - return (TDoubleValue)getFieldValue();
    - } else {
    - throw new RuntimeException("Cannot get field 'doubleVal' because union is currently set to " + getFieldDesc(getSetField()).name);
    - }
    - }
    -
    - public void setDoubleVal(TDoubleValue value) {
    - if (value == null) throw new NullPointerException();
    - setField_ = _Fields.DOUBLE_VAL;
    - value_ = value;
    - }
    -
    - public TStringValue getStringVal() {
    - if (getSetField() == _Fields.STRING_VAL) {
    - return (TStringValue)getFieldValue();
    - } else {
    - throw new RuntimeException("Cannot get field 'stringVal' because union is currently set to " + getFieldDesc(getSetField()).name);
    - }
    - }
    -
    - public void setStringVal(TStringValue value) {
    - if (value == null) throw new NullPointerException();
    - setField_ = _Fields.STRING_VAL;
    - value_ = value;
    - }
    -
    - public boolean isSetBoolVal() {
    - return setField_ == _Fields.BOOL_VAL;
    - }
    -
    -
    - public boolean isSetByteVal() {
    - return setField_ == _Fields.BYTE_VAL;
    - }
    -
    -
    - public boolean isSetI16Val() {
    - return setField_ == _Fields.I16_VAL;
    - }
    -
    -
    - public boolean isSetI32Val() {
    - return setField_ == _Fields.I32_VAL;
    - }
    -
    -
    - public boolean isSetI64Val() {
    - return setField_ == _Fields.I64_VAL;
    - }
    -
    -
    - public boolean isSetDoubleVal() {
    - return setField_ == _Fields.DOUBLE_VAL;
    - }
    -
    -
    - public boolean isSetStringVal() {
    - return setField_ == _Fields.STRING_VAL;
    - }
    -
    -
    - public boolean equals(Object other) {
    - if (other instanceof TColumnValue) {
    - return equals((TColumnValue)other);
    - } else {
    - return false;
    - }
    - }
    -
    - public boolean equals(TColumnValue other) {
    - return other != null && getSetField() == other.getSetField() && getFieldValue().equals(other.getFieldValue());
    - }
    -
    - @Override
    - public int compareTo(TColumnValue other) {
    - int lastComparison = org.apache.thrift.TBaseHelper.compareTo(getSetField(), other.getSetField());
    - if (lastComparison == 0) {
    - return org.apache.thrift.TBaseHelper.compareTo(getFieldValue(), other.getFieldValue());
    - }
    - return lastComparison;
    - }
    -
    -
    - @Override
    - public int hashCode() {
    - List<Object> list = new ArrayList<Object>();
    - list.add(this.getClass().getName());
    - org.apache.thrift.TFieldIdEnum setField = getSetField();
    - if (setField != null) {
    - list.add(setField.getThriftFieldId());
    - Object value = getFieldValue();
    - if (value instanceof org.apache.thrift.TEnum) {
    - list.add(((org.apache.thrift.TEnum)getFieldValue()).getValue());
    - } else {
    - list.add(value);
    - }
    - }
    - return list.hashCode();
    - }
    - private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
    - try {
    - write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
    - } catch (org.apache.thrift.TException te) {
    - throw new java.io.IOException(te);
    - }
    - }
    -
    -
    - private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
    - try {
    - read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
    - } catch (org.apache.thrift.TException te) {
    - throw new java.io.IOException(te);
    - }
    - }
    -
    -
    -}

    http://git-wip-us.apache.org/repos/asf/hive/blob/2542f5cc/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TDoubleColumn.java
    ----------------------------------------------------------------------
    diff --git a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TDoubleColumn.java b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TDoubleColumn.java
    deleted file mode 100644
    index dffad80..0000000
    --- a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TDoubleColumn.java
    +++ /dev/null
    @@ -1,548 +0,0 @@
    -/**
    - * Autogenerated by Thrift Compiler (0.9.3)
    - *
    - * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
    - * @generated
    - */
    -package org.apache.hive.service.cli.thrift;
    -
    -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"})
    -@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)")
    -public class TDoubleColumn implements org.apache.thrift.TBase<TDoubleColumn, TDoubleColumn._Fields>, java.io.Serializable, Cloneable, Comparable<TDoubleColumn> {
    - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TDoubleColumn");
    -
    - private static final org.apache.thrift.protocol.TField VALUES_FIELD_DESC = new org.apache.thrift.protocol.TField("values", org.apache.thrift.protocol.TType.LIST, (short)1);
    - private static final org.apache.thrift.protocol.TField NULLS_FIELD_DESC = new org.apache.thrift.protocol.TField("nulls", org.apache.thrift.protocol.TType.STRING, (short)2);
    -
    - private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
    - static {
    - schemes.put(StandardScheme.class, new TDoubleColumnStandardSchemeFactory());
    - schemes.put(TupleScheme.class, new TDoubleColumnTupleSchemeFactory());
    - }
    -
    - private List<Double> values; // required
    - private ByteBuffer nulls; // required
    -
    - /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
    - public enum _Fields implements org.apache.thrift.TFieldIdEnum {
    - VALUES((short)1, "values"),
    - NULLS((short)2, "nulls");
    -
    - private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
    -
    - static {
    - for (_Fields field : EnumSet.allOf(_Fields.class)) {
    - byName.put(field.getFieldName(), field);
    - }
    - }
    -
    - /**
    - * Find the _Fields constant that matches fieldId, or null if its not found.
    - */
    - public static _Fields findByThriftId(int fieldId) {
    - switch(fieldId) {
    - case 1: // VALUES
    - return VALUES;
    - case 2: // NULLS
    - return NULLS;
    - default:
    - return null;
    - }
    - }
    -
    - /**
    - * Find the _Fields constant that matches fieldId, throwing an exception
    - * if it is not found.
    - */
    - public static _Fields findByThriftIdOrThrow(int fieldId) {
    - _Fields fields = findByThriftId(fieldId);
    - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
    - return fields;
    - }
    -
    - /**
    - * Find the _Fields constant that matches name, or null if its not found.
    - */
    - public static _Fields findByName(String name) {
    - return byName.get(name);
    - }
    -
    - private final short _thriftId;
    - private final String _fieldName;
    -
    - _Fields(short thriftId, String fieldName) {
    - _thriftId = thriftId;
    - _fieldName = fieldName;
    - }
    -
    - public short getThriftFieldId() {
    - return _thriftId;
    - }
    -
    - public String getFieldName() {
    - return _fieldName;
    - }
    - }
    -
    - // isset id assignments
    - public static final 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);
    - tmpMap.put(_Fields.VALUES, new org.apache.thrift.meta_data.FieldMetaData("values", org.apache.thrift.TFieldRequirementType.REQUIRED,
    - 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.DOUBLE))));
    - tmpMap.put(_Fields.NULLS, new org.apache.thrift.meta_data.FieldMetaData("nulls", org.apache.thrift.TFieldRequirementType.REQUIRED,
    - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , true)));
    - metaDataMap = Collections.unmodifiableMap(tmpMap);
    - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(TDoubleColumn.class, metaDataMap);
    - }
    -
    - public TDoubleColumn() {
    - }
    -
    - public TDoubleColumn(
    - List<Double> values,
    - ByteBuffer nulls)
    - {
    - this();
    - this.values = values;
    - this.nulls = org.apache.thrift.TBaseHelper.copyBinary(nulls);
    - }
    -
    - /**
    - * Performs a deep copy on <i>other</i>.
    - */
    - public TDoubleColumn(TDoubleColumn other) {
    - if (other.isSetValues()) {
    - List<Double> __this__values = new ArrayList<Double>(other.values);
    - this.values = __this__values;
    - }
    - if (other.isSetNulls()) {
    - this.nulls = org.apache.thrift.TBaseHelper.copyBinary(other.nulls);
    - }
    - }
    -
    - public TDoubleColumn deepCopy() {
    - return new TDoubleColumn(this);
    - }
    -
    - @Override
    - public void clear() {
    - this.values = null;
    - this.nulls = null;
    - }
    -
    - public int getValuesSize() {
    - return (this.values == null) ? 0 : this.values.size();
    - }
    -
    - public java.util.Iterator<Double> getValuesIterator() {
    - return (this.values == null) ? null : this.values.iterator();
    - }
    -
    - public void addToValues(double elem) {
    - if (this.values == null) {
    - this.values = new ArrayList<Double>();
    - }
    - this.values.add(elem);
    - }
    -
    - public List<Double> getValues() {
    - return this.values;
    - }
    -
    - public void setValues(List<Double> values) {
    - this.values = values;
    - }
    -
    - public void unsetValues() {
    - this.values = null;
    - }
    -
    - /** Returns true if field values is set (has been assigned a value) and false otherwise */
    - public boolean isSetValues() {
    - return this.values != null;
    - }
    -
    - public void setValuesIsSet(boolean value) {
    - if (!value) {
    - this.values = null;
    - }
    - }
    -
    - public byte[] getNulls() {
    - setNulls(org.apache.thrift.TBaseHelper.rightSize(nulls));
    - return nulls == null ? null : nulls.array();
    - }
    -
    - public ByteBuffer bufferForNulls() {
    - return org.apache.thrift.TBaseHelper.copyBinary(nulls);
    - }
    -
    - public void setNulls(byte[] nulls) {
    - this.nulls = nulls == null ? (ByteBuffer)null : ByteBuffer.wrap(Arrays.copyOf(nulls, nulls.length));
    - }
    -
    - public void setNulls(ByteBuffer nulls) {
    - this.nulls = org.apache.thrift.TBaseHelper.copyBinary(nulls);
    - }
    -
    - public void unsetNulls() {
    - this.nulls = null;
    - }
    -
    - /** Returns true if field nulls is set (has been assigned a value) and false otherwise */
    - public boolean isSetNulls() {
    - return this.nulls != null;
    - }
    -
    - public void setNullsIsSet(boolean value) {
    - if (!value) {
    - this.nulls = null;
    - }
    - }
    -
    - public void setFieldValue(_Fields field, Object value) {
    - switch (field) {
    - case VALUES:
    - if (value == null) {
    - unsetValues();
    - } else {
    - setValues((List<Double>)value);
    - }
    - break;
    -
    - case NULLS:
    - if (value == null) {
    - unsetNulls();
    - } else {
    - setNulls((ByteBuffer)value);
    - }
    - break;
    -
    - }
    - }
    -
    - public Object getFieldValue(_Fields field) {
    - switch (field) {
    - case VALUES:
    - return getValues();
    -
    - case NULLS:
    - return getNulls();
    -
    - }
    - throw new IllegalStateException();
    - }
    -
    - /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
    - public boolean isSet(_Fields field) {
    - if (field == null) {
    - throw new IllegalArgumentException();
    - }
    -
    - switch (field) {
    - case VALUES:
    - return isSetValues();
    - case NULLS:
    - return isSetNulls();
    - }
    - throw new IllegalStateException();
    - }
    -
    - @Override
    - public boolean equals(Object that) {
    - if (that == null)
    - return false;
    - if (that instanceof TDoubleColumn)
    - return this.equals((TDoubleColumn)that);
    - return false;
    - }
    -
    - public boolean equals(TDoubleColumn that) {
    - if (that == null)
    - return false;
    -
    - boolean this_present_values = true && this.isSetValues();
    - boolean that_present_values = true && that.isSetValues();
    - if (this_present_values || that_present_values) {
    - if (!(this_present_values && that_present_values))
    - return false;
    - if (!this.values.equals(that.values))
    - return false;
    - }
    -
    - boolean this_present_nulls = true && this.isSetNulls();
    - boolean that_present_nulls = true && that.isSetNulls();
    - if (this_present_nulls || that_present_nulls) {
    - if (!(this_present_nulls && that_present_nulls))
    - return false;
    - if (!this.nulls.equals(that.nulls))
    - return false;
    - }
    -
    - return true;
    - }
    -
    - @Override
    - public int hashCode() {
    - List<Object> list = new ArrayList<Object>();
    -
    - boolean present_values = true && (isSetValues());
    - list.add(present_values);
    - if (present_values)
    - list.add(values);
    -
    - boolean present_nulls = true && (isSetNulls());
    - list.add(present_nulls);
    - if (present_nulls)
    - list.add(nulls);
    -
    - return list.hashCode();
    - }
    -
    - @Override
    - public int compareTo(TDoubleColumn other) {
    - if (!getClass().equals(other.getClass())) {
    - return getClass().getName().compareTo(other.getClass().getName());
    - }
    -
    - int lastComparison = 0;
    -
    - lastComparison = Boolean.valueOf(isSetValues()).compareTo(other.isSetValues());
    - if (lastComparison != 0) {
    - return lastComparison;
    - }
    - if (isSetValues()) {
    - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.values, other.values);
    - if (lastComparison != 0) {
    - return lastComparison;
    - }
    - }
    - lastComparison = Boolean.valueOf(isSetNulls()).compareTo(other.isSetNulls());
    - if (lastComparison != 0) {
    - return lastComparison;
    - }
    - if (isSetNulls()) {
    - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.nulls, other.nulls);
    - if (lastComparison != 0) {
    - return lastComparison;
    - }
    - }
    - return 0;
    - }
    -
    - public _Fields fieldForId(int fieldId) {
    - return _Fields.findByThriftId(fieldId);
    - }
    -
    - public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
    - schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
    - }
    -
    - public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
    - schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
    - }
    -
    - @Override
    - public String toString() {
    - StringBuilder sb = new StringBuilder("TDoubleColumn(");
    - boolean first = true;
    -
    - sb.append("values:");
    - if (this.values == null) {
    - sb.append("null");
    - } else {
    - sb.append(this.values);
    - }
    - first = false;
    - if (!first) sb.append(", ");
    - sb.append("nulls:");
    - if (this.nulls == null) {
    - sb.append("null");
    - } else {
    - org.apache.thrift.TBaseHelper.toString(this.nulls, sb);
    - }
    - first = false;
    - sb.append(")");
    - return sb.toString();
    - }
    -
    - public void validate() throws org.apache.thrift.TException {
    - // check for required fields
    - if (!isSetValues()) {
    - throw new org.apache.thrift.protocol.TProtocolException("Required field 'values' is unset! Struct:" + toString());
    - }
    -
    - if (!isSetNulls()) {
    - throw new org.apache.thrift.protocol.TProtocolException("Required field 'nulls' is unset! Struct:" + toString());
    - }
    -
    - // check for sub-struct validity
    - }
    -
    - private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
    - try {
    - write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
    - } catch (org.apache.thrift.TException te) {
    - throw new java.io.IOException(te);
    - }
    - }
    -
    - private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
    - try {
    - read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
    - } catch (org.apache.thrift.TException te) {
    - throw new java.io.IOException(te);
    - }
    - }
    -
    - private static class TDoubleColumnStandardSchemeFactory implements SchemeFactory {
    - public TDoubleColumnStandardScheme getScheme() {
    - return new TDoubleColumnStandardScheme();
    - }
    - }
    -
    - private static class TDoubleColumnStandardScheme extends StandardScheme<TDoubleColumn> {
    -
    - public void read(org.apache.thrift.protocol.TProtocol iprot, TDoubleColumn struct) throws org.apache.thrift.TException {
    - org.apache.thrift.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: // VALUES
    - if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
    - {
    - org.apache.thrift.protocol.TList _list94 = iprot.readListBegin();
    - struct.values = new ArrayList<Double>(_list94.size);
    - double _elem95;
    - for (int _i96 = 0; _i96 < _list94.size; ++_i96)
    - {
    - _elem95 = iprot.readDouble();
    - struct.values.add(_elem95);
    - }
    - iprot.readListEnd();
    - }
    - struct.setValuesIsSet(true);
    - } else {
    - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
    - }
    - break;
    - case 2: // NULLS
    - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
    - struct.nulls = iprot.readBinary();
    - struct.setNullsIsSet(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.readStructEnd();
    - struct.validate();
    - }
    -
    - public void write(org.apache.thrift.protocol.TProtocol oprot, TDoubleColumn struct) throws org.apache.thrift.TException {
    - struct.validate();
    -
    - oprot.writeStructBegin(STRUCT_DESC);
    - if (struct.values != null) {
    - oprot.writeFieldBegin(VALUES_FIELD_DESC);
    - {
    - oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.DOUBLE, struct.values.size()));
    - for (double _iter97 : struct.values)
    - {
    - oprot.writeDouble(_iter97);
    - }
    - oprot.writeListEnd();
    - }
    - oprot.writeFieldEnd();
    - }
    - if (struct.nulls != null) {
    - oprot.writeFieldBegin(NULLS_FIELD_DESC);
    - oprot.writeBinary(struct.nulls);
    - oprot.writeFieldEnd();
    - }
    - oprot.writeFieldStop();
    - oprot.writeStructEnd();
    - }
    -
    - }
    -
    - private static class TDoubleColumnTupleSchemeFactory implements SchemeFactory {
    - public TDoubleColumnTupleScheme getScheme() {
    - return new TDoubleColumnTupleScheme();
    - }
    - }
    -
    - private static class TDoubleColumnTupleScheme extends TupleScheme<TDoubleColumn> {
    -
    - @Override
    - public void write(org.apache.thrift.protocol.TProtocol prot, TDoubleColumn struct) throws org.apache.thrift.TException {
    - TTupleProtocol oprot = (TTupleProtocol) prot;
    - {
    - oprot.writeI32(struct.values.size());
    - for (double _iter98 : struct.values)
    - {
    - oprot.writeDouble(_iter98);
    - }
    - }
    - oprot.writeBinary(struct.nulls);
    - }
    -
    - @Override
    - public void read(org.apache.thrift.protocol.TProtocol prot, TDoubleColumn struct) throws org.apache.thrift.TException {
    - TTupleProtocol iprot = (TTupleProtocol) prot;
    - {
    - org.apache.thrift.protocol.TList _list99 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.DOUBLE, iprot.readI32());
    - struct.values = new ArrayList<Double>(_list99.size);
    - double _elem100;
    - for (int _i101 = 0; _i101 < _list99.size; ++_i101)
    - {
    - _elem100 = iprot.readDouble();
    - struct.values.add(_elem100);
    - }
    - }
    - struct.setValuesIsSet(true);
    - struct.nulls = iprot.readBinary();
    - struct.setNullsIsSet(true);
    - }
    - }
    -
    -}
    -

    http://git-wip-us.apache.org/repos/asf/hive/blob/2542f5cc/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TDoubleValue.java
    ----------------------------------------------------------------------
    diff --git a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TDoubleValue.java b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TDoubleValue.java
    deleted file mode 100644
    index 6524f93..0000000
    --- a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TDoubleValue.java
    +++ /dev/null
    @@ -1,390 +0,0 @@
    -/**
    - * Autogenerated by Thrift Compiler (0.9.3)
    - *
    - * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
    - * @generated
    - */
    -package org.apache.hive.service.cli.thrift;
    -
    -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"})
    -@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)")
    -public class TDoubleValue implements org.apache.thrift.TBase<TDoubleValue, TDoubleValue._Fields>, java.io.Serializable, Cloneable, Comparable<TDoubleValue> {
    - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TDoubleValue");
    -
    - private static final org.apache.thrift.protocol.TField VALUE_FIELD_DESC = new org.apache.thrift.protocol.TField("value", org.apache.thrift.protocol.TType.DOUBLE, (short)1);
    -
    - private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
    - static {
    - schemes.put(StandardScheme.class, new TDoubleValueStandardSchemeFactory());
    - schemes.put(TupleScheme.class, new TDoubleValueTupleSchemeFactory());
    - }
    -
    - private double value; // 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 {
    - VALUE((short)1, "value");
    -
    - private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
    -
    - static {
    - for (_Fields field : EnumSet.allOf(_Fields.class)) {
    - byName.put(field.getFieldName(), field);
    - }
    - }
    -
    - /**
    - * Find the _Fields constant that matches fieldId, or null if its not found.
    - */
    - public static _Fields findByThriftId(int fieldId) {
    - switch(fieldId) {
    - case 1: // VALUE
    - return VALUE;
    - default:
    - return null;
    - }
    - }
    -
    - /**
    - * Find the _Fields constant that matches fieldId, throwing an exception
    - * if it is not found.
    - */
    - public static _Fields findByThriftIdOrThrow(int fieldId) {
    - _Fields fields = findByThriftId(fieldId);
    - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
    - return fields;
    - }
    -
    - /**
    - * Find the _Fields constant that matches name, or null if its not found.
    - */
    - public static _Fields findByName(String name) {
    - return byName.get(name);
    - }
    -
    - private final short _thriftId;
    - private final String _fieldName;
    -
    - _Fields(short thriftId, String fieldName) {
    - _thriftId = thriftId;
    - _fieldName = fieldName;
    - }
    -
    - public short getThriftFieldId() {
    - return _thriftId;
    - }
    -
    - public String getFieldName() {
    - return _fieldName;
    - }
    - }
    -
    - // isset id assignments
    - private static final int __VALUE_ISSET_ID = 0;
    - private byte __isset_bitfield = 0;
    - private static final _Fields optionals[] = {_Fields.VALUE};
    - public static final 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);
    - tmpMap.put(_Fields.VALUE, new org.apache.thrift.meta_data.FieldMetaData("value", org.apache.thrift.TFieldRequirementType.OPTIONAL,
    - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
    - metaDataMap = Collections.unmodifiableMap(tmpMap);
    - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(TDoubleValue.class, metaDataMap);
    - }
    -
    - public TDoubleValue() {
    - }
    -
    - /**
    - * Performs a deep copy on <i>other</i>.
    - */
    - public TDoubleValue(TDoubleValue other) {
    - __isset_bitfield = other.__isset_bitfield;
    - this.value = other.value;
    - }
    -
    - public TDoubleValue deepCopy() {
    - return new TDoubleValue(this);
    - }
    -
    - @Override
    - public void clear() {
    - setValueIsSet(false);
    - this.value = 0.0;
    - }
    -
    - public double getValue() {
    - return this.value;
    - }
    -
    - public void setValue(double value) {
    - this.value = value;
    - setValueIsSet(true);
    - }
    -
    - public void unsetValue() {
    - __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __VALUE_ISSET_ID);
    - }
    -
    - /** Returns true if field value is set (has been assigned a value) and false otherwise */
    - public boolean isSetValue() {
    - return EncodingUtils.testBit(__isset_bitfield, __VALUE_ISSET_ID);
    - }
    -
    - public void setValueIsSet(boolean value) {
    - __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __VALUE_ISSET_ID, value);
    - }
    -
    - public void setFieldValue(_Fields field, Object value) {
    - switch (field) {
    - case VALUE:
    - if (value == null) {
    - unsetValue();
    - } else {
    - setValue((Double)value);
    - }
    - break;
    -
    - }
    - }
    -
    - public Object getFieldValue(_Fields field) {
    - switch (field) {
    - case VALUE:
    - return getValue();
    -
    - }
    - throw new IllegalStateException();
    - }
    -
    - /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
    - public boolean isSet(_Fields field) {
    - if (field == null) {
    - throw new IllegalArgumentException();
    - }
    -
    - switch (field) {
    - case VALUE:
    - return isSetValue();
    - }
    - throw new IllegalStateException();
    - }
    -
    - @Override
    - public boolean equals(Object that) {
    - if (that == null)
    - return false;
    - if (that instanceof TDoubleValue)
    - return this.equals((TDoubleValue)that);
    - return false;
    - }
    -
    - public boolean equals(TDoubleValue that) {
    - if (that == null)
    - return false;
    -
    - boolean this_present_value = true && this.isSetValue();
    - boolean that_present_value = true && that.isSetValue();
    - if (this_present_value || that_present_value) {
    - if (!(this_present_value && that_present_value))
    - return false;
    - if (this.value != that.value)
    - return false;
    - }
    -
    - return true;
    - }
    -
    - @Override
    - public int hashCode() {
    - List<Object> list = new ArrayList<Object>();
    -
    - boolean present_value = true && (isSetValue());
    - list.add(present_value);
    - if (present_value)
    - list.add(value);
    -
    - return list.hashCode();
    - }
    -
    - @Override
    - public int compareTo(TDoubleValue other) {
    - if (!getClass().equals(other.getClass())) {
    - return getClass().getName().compareTo(other.getClass().getName());
    - }
    -
    - int lastComparison = 0;
    -
    - lastComparison = Boolean.valueOf(isSetValue()).compareTo(other.isSetValue());
    - if (lastComparison != 0) {
    - return lastComparison;
    - }
    - if (isSetValue()) {
    - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.value, other.value);
    - if (lastComparison != 0) {
    - return lastComparison;
    - }
    - }
    - return 0;
    - }
    -
    - public _Fields fieldForId(int fieldId) {
    - return _Fields.findByThriftId(fieldId);
    - }
    -
    - public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
    - schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
    - }
    -
    - public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
    - schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
    - }
    -
    - @Override
    - public String toString() {
    - StringBuilder sb = new StringBuilder("TDoubleValue(");
    - boolean first = true;
    -
    - if (isSetValue()) {
    - sb.append("value:");
    - sb.append(this.value);
    - first = false;
    - }
    - sb.append(")");
    - return sb.toString();
    - }
    -
    - public void validate() throws org.apache.thrift.TException {
    - // check for required fields
    - // check for sub-struct validity
    - }
    -
    - private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
    - try {
    - write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
    - } catch (org.apache.thrift.TException te) {
    - throw new java.io.IOException(te);
    - }
    - }
    -
    - private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
    - try {
    - // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
    - __isset_bitfield = 0;
    - read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
    - } catch (org.apache.thrift.TException te) {
    - throw new java.io.IOException(te);
    - }
    - }
    -
    - private static class TDoubleValueStandardSchemeFactory implements SchemeFactory {
    - public TDoubleValueStandardScheme getScheme() {
    - return new TDoubleValueStandardScheme();
    - }
    - }
    -
    - private static class TDoubleValueStandardScheme extends StandardScheme<TDoubleValue> {
    -
    - public void read(org.apache.thrift.protocol.TProtocol iprot, TDoubleValue struct) throws org.apache.thrift.TException {
    - org.apache.thrift.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.DOUBLE) {
    - struct.value = iprot.readDouble();
    - 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.readStructEnd();
    - struct.validate();
    - }
    -
    - public void write(org.apache.thrift.protocol.TProtocol oprot, TDoubleValue struct) throws org.apache.thrift.TException {
    - struct.validate();
    -
    - oprot.writeStructBegin(STRUCT_DESC);
    - if (struct.isSetValue()) {
    - oprot.writeFieldBegin(VALUE_FIELD_DESC);
    - oprot.writeDouble(struct.value);
    - oprot.writeFieldEnd();
    - }
    - oprot.writeFieldStop();
    - oprot.writeStructEnd();
    - }
    -
    - }
    -
    - private static class TDoubleValueTupleSchemeFactory implements SchemeFactory {
    - public TDoubleValueTupleScheme getScheme() {
    - return new TDoubleValueTupleScheme();
    - }
    - }
    -
    - private static class TDoubleValueTupleScheme extends TupleScheme<TDoubleValue> {
    -
    - @Override
    - public void write(org.apache.thrift.protocol.TProtocol prot, TDoubleValue struct) throws org.apache.thrift.TException {
    - TTupleProtocol oprot = (TTupleProtocol) prot;
    - BitSet optionals = new BitSet();
    - if (struct.isSetValue()) {
    - optionals.set(0);
    - }
    - oprot.writeBitSet(optionals, 1);
    - if (struct.isSetValue()) {
    - oprot.writeDouble(struct.value);
    - }
    - }
    -
    - @Override
    - public void read(org.apache.thrift.protocol.TProtocol prot, TDoubleValue struct) throws org.apache.thrift.TException {
    - TTupleProtocol iprot = (TTupleProtocol) prot;
    - BitSet incoming = iprot.readBitSet(1);
    - if (incoming.get(0)) {
    - struct.value = iprot.readDouble();
    - struct.setValueIsSet(true);
    - }
    - }
    - }
    -
    -}
    -

    http://git-wip-us.apache.org/repos/asf/hive/blob/2542f5cc/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TExecuteStatementReq.java
    ----------------------------------------------------------------------
    diff --git a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TExecuteStatementReq.java b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TExecuteStatementReq.java
    deleted file mode 100644
    index 30cf243..0000000
    --- a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TExecuteStatementReq.java
    +++ /dev/null
    @@ -1,762 +0,0 @@
    -/**
    - * Autogenerated by Thrift Compiler (0.9.3)
    - *
    - * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
    - * @generated
    - */
    -package org.apache.hive.service.cli.thrift;
    -
    -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"})
    -@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)")
    -public class TExecuteStatementReq implements org.apache.thrift.TBase<TExecuteStatementReq, TExecuteStatementReq._Fields>, java.io.Serializable, Cloneable, Comparable<TExecuteStatementReq> {
    - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TExecuteStatementReq");
    -
    - private static final org.apache.thrift.protocol.TField SESSION_HANDLE_FIELD_DESC = new org.apache.thrift.protocol.TField("sessionHandle", org.apache.thrift.protocol.TType.STRUCT, (short)1);
    - private static final org.apache.thrift.protocol.TField STATEMENT_FIELD_DESC = new org.apache.thrift.protocol.TField("statement", org.apache.thrift.protocol.TType.STRING, (short)2);
    - private static final org.apache.thrift.protocol.TField CONF_OVERLAY_FIELD_DESC = new org.apache.thrift.protocol.TField("confOverlay", org.apache.thrift.protocol.TType.MAP, (short)3);
    - private static final org.apache.thrift.protocol.TField RUN_ASYNC_FIELD_DESC = new org.apache.thrift.protocol.TField("runAsync", org.apache.thrift.protocol.TType.BOOL, (short)4);
    -
    - private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
    - static {
    - schemes.put(StandardScheme.class, new TExecuteStatementReqStandardSchemeFactory());
    - schemes.put(TupleScheme.class, new TExecuteStatementReqTupleSchemeFactory());
    - }
    -
    - private TSessionHandle sessionHandle; // required
    - private String statement; // required
    - private Map<String,String> confOverlay; // optional
    - private boolean runAsync; // 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 {
    - SESSION_HANDLE((short)1, "sessionHandle"),
    - STATEMENT((short)2, "statement"),
    - CONF_OVERLAY((short)3, "confOverlay"),
    - RUN_ASYNC((short)4, "runAsync");
    -
    - private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
    -
    - static {
    - for (_Fields field : EnumSet.allOf(_Fields.class)) {
    - byName.put(field.getFieldName(), field);
    - }
    - }
    -
    - /**
    - * Find the _Fields constant that matches fieldId, or null if its not found.
    - */
    - public static _Fields findByThriftId(int fieldId) {
    - switch(fieldId) {
    - case 1: // SESSION_HANDLE
    - return SESSION_HANDLE;
    - case 2: // STATEMENT
    - return STATEMENT;
    - case 3: // CONF_OVERLAY
    - return CONF_OVERLAY;
    - case 4: // RUN_ASYNC
    - return RUN_ASYNC;
    - default:
    - return null;
    - }
    - }
    -
    - /**
    - * Find the _Fields constant that matches fieldId, throwing an exception
    - * if it is not found.
    - */
    - public static _Fields findByThriftIdOrThrow(int fieldId) {
    - _Fields fields = findByThriftId(fieldId);
    - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
    - return fields;
    - }
    -
    - /**
    - * Find the _Fields constant that matches name, or null if its not found.
    - */
    - public static _Fields findByName(String name) {
    - return byName.get(name);
    - }
    -
    - private final short _thriftId;
    - private final String _fieldName;
    -
    - _Fields(short thriftId, String fieldName) {
    - _thriftId = thriftId;
    - _fieldName = fieldName;
    - }
    -
    - public short getThriftFieldId() {
    - return _thriftId;
    - }
    -
    - public String getFieldName() {
    - return _fieldName;
    - }
    - }
    -
    - // isset id assignments
    - private static final int __RUNASYNC_ISSET_ID = 0;
    - private byte __isset_bitfield = 0;
    - private static final _Fields optionals[] = {_Fields.CONF_OVERLAY,_Fields.RUN_ASYNC};
    - public static final 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);
    - tmpMap.put(_Fields.SESSION_HANDLE, new org.apache.thrift.meta_data.FieldMetaData("sessionHandle", org.apache.thrift.TFieldRequirementType.REQUIRED,
    - new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TSessionHandle.class)));
    - tmpMap.put(_Fields.STATEMENT, new org.apache.thrift.meta_data.FieldMetaData("statement", org.apache.thrift.TFieldRequirementType.REQUIRED,
    - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
    - tmpMap.put(_Fields.CONF_OVERLAY, new org.apache.thrift.meta_data.FieldMetaData("confOverlay", org.apache.thrift.TFieldRequirementType.OPTIONAL,
    - new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP,
    - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING),
    - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))));
    - tmpMap.put(_Fields.RUN_ASYNC, new org.apache.thrift.meta_data.FieldMetaData("runAsync", org.apache.thrift.TFieldRequirementType.OPTIONAL,
    - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
    - metaDataMap = Collections.unmodifiableMap(tmpMap);
    - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(TExecuteStatementReq.class, metaDataMap);
    - }
    -
    - public TExecuteStatementReq() {
    - this.runAsync = false;
    -
    - }
    -
    - public TExecuteStatementReq(
    - TSessionHandle sessionHandle,
    - String statement)
    - {
    - this();
    - this.sessionHandle = sessionHandle;
    - this.statement = statement;
    - }
    -
    - /**
    - * Performs a deep copy on <i>other</i>.
    - */
    - public TExecuteStatementReq(TExecuteStatementReq other) {
    - __isset_bitfield = other.__isset_bitfield;
    - if (other.isSetSessionHandle()) {
    - this.sessionHandle = new TSessionHandle(other.sessionHandle);
    - }
    - if (other.isSetStatement()) {
    - this.statement = other.statement;
    - }
    - if (other.isSetConfOverlay()) {
    - Map<String,String> __this__confOverlay = new HashMap<String,String>(other.confOverlay);
    - this.confOverlay = __this__confOverlay;
    - }
    - this.runAsync = other.runAsync;
    - }
    -
    - public TExecuteStatementReq deepCopy() {
    - return new TExecuteStatementReq(this);
    - }
    -
    - @Override
    - public void clear() {
    - this.sessionHandle = null;
    - this.statement = null;
    - this.confOverlay = null;
    - this.runAsync = false;
    -
    - }
    -
    - public TSessionHandle getSessionHandle() {
    - return this.sessionHandle;
    - }
    -
    - public void setSessionHandle(TSessionHandle sessionHandle) {
    - this.sessionHandle = sessionHandle;
    - }
    -
    - public void unsetSessionHandle() {
    - this.sessionHandle = null;
    - }
    -
    - /** Returns true if field sessionHandle is set (has been assigned a value) and false otherwise */
    - public boolean isSetSessionHandle() {
    - return this.sessionHandle != null;
    - }
    -
    - public void setSessionHandleIsSet(boolean value) {
    - if (!value) {
    - this.sessionHandle = null;
    - }
    - }
    -
    - public String getStatement() {
    - return this.statement;
    - }
    -
    - public void setStatement(String statement) {
    - this.statement = statement;
    - }
    -
    - public void unsetStatement() {
    - this.statement = null;
    - }
    -
    - /** Returns true if field statement is set (has been assigned a value) and false otherwise */
    - public boolean isSetStatement() {
    - return this.statement != null;
    - }
    -
    - public void setStatementIsSet(boolean value) {
    - if (!value) {
    - this.statement = null;
    - }
    - }
    -
    - public int getConfOverlaySize() {
    - return (this.confOverlay == null) ? 0 : this.confOverlay.size();
    - }
    -
    - public void putToConfOverlay(String key, String val) {
    - if (this.confOverlay == null) {
    - this.confOverlay = new HashMap<String,String>();
    - }
    - this.confOverlay.put(key, val);
    - }
    -
    - public Map<String,String> getConfOverlay() {
    - return this.confOverlay;
    - }
    -
    - public void setConfOverlay(Map<String,String> confOverlay) {
    - this.confOverlay = confOverlay;
    - }
    -
    - public void unsetConfOverlay() {
    - this.confOverlay = null;
    - }
    -
    - /** Returns true if field confOverlay is set (has been assigned a value) and false otherwise */
    - public boolean isSetConfOverlay() {
    - return this.confOverlay != null;
    - }
    -
    - public void setConfOverlayIsSet(boolean value) {
    - if (!value) {
    - this.confOverlay = null;
    - }
    - }
    -
    - public boolean isRunAsync() {
    - return this.runAsync;
    - }
    -
    - public void setRunAsync(boolean runAsync) {
    - this.runAsync = runAsync;
    - setRunAsyncIsSet(true);
    - }
    -
    - public void unsetRunAsync() {
    - __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __RUNASYNC_ISSET_ID);
    - }
    -
    - /** Returns true if field runAsync is set (has been assigned a value) and false otherwise */
    - public boolean isSetRunAsync() {
    - return EncodingUtils.testBit(__isset_bitfield, __RUNASYNC_ISSET_ID);
    - }
    -
    - public void setRunAsyncIsSet(boolean value) {
    - __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __RUNASYNC_ISSET_ID, value);
    - }
    -
    - public void setFieldValue(_Fields field, Object value) {
    - switch (field) {
    - case SESSION_HANDLE:
    - if (value == null) {
    - unsetSessionHandle();
    - } else {
    - setSessionHandle((TSessionHandle)value);
    - }
    - break;
    -
    - case STATEMENT:
    - if (value == null) {
    - unsetStatement();
    - } else {
    - setStatement((String)value);
    - }
    - break;
    -
    - case CONF_OVERLAY:
    - if (value == null) {
    - unsetConfOverlay();
    - } else {
    - setConfOverlay((Map<String,String>)value);
    - }
    - break;
    -
    - case RUN_ASYNC:
    - if (value == null) {
    - unsetRunAsync();
    - } else {
    - setRunAsync((Boolean)value);
    - }
    - break;
    -
    - }
    - }
    -
    - public Object getFieldValue(_Fields field) {
    - switch (field) {
    - case SESSION_HANDLE:
    - return getSessionHandle();
    -
    - case STATEMENT:
    - return getStatement();
    -
    - case CONF_OVERLAY:
    - return getConfOverlay();
    -
    - case RUN_ASYNC:
    - return isRunAsync();
    -
    - }
    - throw new IllegalStateException();
    - }
    -
    - /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
    - public boolean isSet(_Fields field) {
    - if (field == null) {
    - throw new IllegalArgumentException();
    - }
    -
    - switch (field) {
    - case SESSION_HANDLE:
    - return isSetSessionHandle();
    - case STATEMENT:
    - return isSetStatement();
    - case CONF_OVERLAY:
    - return isSetConfOverlay();
    - case RUN_ASYNC:
    - return isSetRunAsync();
    - }
    - throw new IllegalStateException();
    - }
    -
    - @Override
    - public boolean equals(Object that) {
    - if (that == null)
    - return false;
    - if (that instanceof TExecuteStatementReq)
    - return this.equals((TExecuteStatementReq)that);
    - return false;
    - }
    -
    - public boolean equals(TExecuteStatementReq that) {
    - if (that == null)
    - return false;
    -
    - boolean this_present_sessionHandle = true && this.isSetSessionHandle();
    - boolean that_present_sessionHandle = true && that.isSetSessionHandle();
    - if (this_present_sessionHandle || that_present_sessionHandle) {
    - if (!(this_present_sessionHandle && that_present_sessionHandle))
    - return false;
    - if (!this.sessionHandle.equals(that.sessionHandle))
    - return false;
    - }
    -
    - boolean this_present_statement = true && this.isSetStatement();
    - boolean that_present_statement = true && that.isSetStatement();
    - if (this_present_statement || that_present_statement) {
    - if (!(this_present_statement && that_present_statement))
    - return false;
    - if (!this.statement.equals(that.statement))
    - return false;
    - }
    -
    - boolean this_present_confOverlay = true && this.isSetConfOverlay();
    - boolean that_present_confOverlay = true && that.isSetConfOverlay();
    - if (this_present_confOverlay || that_present_confOverlay) {
    - if (!(this_present_confOverlay && that_present_confOverlay))
    - return false;
    - if (!this.confOverlay.equals(that.confOverlay))
    - return false;
    - }
    -
    - boolean this_present_runAsync = true && this.isSetRunAsync();
    - boolean that_present_runAsync = true && that.isSetRunAsync();
    - if (this_present_runAsync || that_present_runAsync) {
    - if (!(this_present_runAsync && that_present_runAsync))
    - return false;
    - if (this.runAsync != that.runAsync)
    - return false;
    - }
    -
    - return true;
    - }
    -
    - @Override
    - public int hashCode() {
    - List<Object> list = new ArrayList<Object>();
    -
    - boolean present_sessionHandle = true && (isSetSessionHandle());
    - list.add(present_sessionHandle);
    - if (present_sessionHandle)
    - list.add(sessionHandle);
    -
    - boolean present_statement = true && (isSetStatement());
    - list.add(present_statement);
    - if (present_statement)
    - list.add(statement);
    -
    - boolean present_confOverlay = true && (isSetConfOverlay());
    - list.add(present_confOverlay);
    - if (present_confOverlay)
    - list.add(confOverlay);
    -
    - boolean present_runAsync = true && (isSetRunAsync());
    - list.add(present_runAsync);
    - if (present_runAsync)
    - list.add(runAsync);
    -
    - return list.hashCode();
    - }
    -
    - @Override
    - public int compareTo(TExecuteStatementReq other) {
    - if (!getClass().equals(other.getClass())) {
    - return getClass().getName().compareTo(other.getClass().getName());
    - }
    -
    - int lastComparison = 0;
    -
    - lastComparison = Boolean.valueOf(isSetSessionHandle()).compareTo(other.isSetSessionHandle());
    - if (lastComparison != 0) {
    - return lastComparison;
    - }
    - if (isSetSessionHandle()) {
    - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.sessionHandle, other.sessionHandle);
    - if (lastComparison != 0) {
    - return lastComparison;
    - }
    - }
    - lastComparison = Boolean.valueOf(isSetStatement()).compareTo(other.isSetStatement());
    - if (lastComparison != 0) {
    - return lastComparison;
    - }
    - if (isSetStatement()) {
    - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.statement, other.statement);
    - if (lastComparison != 0) {
    - return lastComparison;
    - }
    - }
    - lastComparison = Boolean.valueOf(isSetConfOverlay()).compareTo(other.isSetConfOverlay());
    - if (lastComparison != 0) {
    - return lastComparison;
    - }
    - if (isSetConfOverlay()) {
    - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.confOverlay, other.confOverlay);
    - if (lastComparison != 0) {
    - return lastComparison;
    - }
    - }
    - lastComparison = Boolean.valueOf(isSetRunAsync()).compareTo(other.isSetRunAsync());
    - if (lastComparison != 0) {
    - return lastComparison;
    - }
    - if (isSetRunAsync()) {
    - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.runAsync, other.runAsync);
    - if (lastComparison != 0) {
    - return lastComparison;
    - }
    - }
    - return 0;
    - }
    -
    - public _Fields fieldForId(int fieldId) {
    - return _Fields.findByThriftId(fieldId);
    - }
    -
    - public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
    - schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
    - }
    -
    - public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
    - schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
    - }
    -
    - @Override
    - public String toString() {
    - StringBuilder sb = new StringBuilder("TExecuteStatementReq(");
    - boolean first = true;
    -
    - sb.append("sessionHandle:");
    - if (this.sessionHandle == null) {
    - sb.append("null");
    - } else {
    - sb.append(this.sessionHandle);
    - }
    - first = false;
    - if (!first) sb.append(", ");
    - sb.append("statement:");
    - if (this.statement == null) {
    - sb.append("null");
    - } else {
    - sb.append(this.statement);
    - }
    - first = false;
    - if (isSetConfOverlay()) {
    - if (!first) sb.append(", ");
    - sb.append("confOverlay:");
    - if (this.confOverlay == null) {
    - sb.append("null");
    - } else {
    - sb.append(this.confOverlay);
    - }
    - first = false;
    - }
    - if (isSetRunAsync()) {
    - if (!first) sb.append(", ");
    - sb.append("runAsync:");
    - sb.append(this.runAsync);
    - first = false;
    - }
    - sb.append(")");
    - return sb.toString();
    - }
    -
    - public void validate() throws org.apache.thrift.TException {
    - // check for required fields
    - if (!isSetSessionHandle()) {
    - throw new org.apache.thrift.protocol.TProtocolException("Required field 'sessionHandle' is unset! Struct:" + toString());
    - }
    -
    - if (!isSetStatement()) {
    - throw new org.apache.thrift.protocol.TProtocolException("Required field 'statement' is unset! Struct:" + toString());
    - }
    -
    - // check for sub-struct validity
    - if (sessionHandle != null) {
    - sessionHandle.validate();
    - }
    - }
    -
    - private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
    - try {
    - write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
    - } catch (org.apache.thrift.TException te) {
    - throw new java.io.IOException(te);
    - }
    - }
    -
    - private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
    - try {
    - // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
    - __isset_bitfield = 0;
    - read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
    - } catch (org.apache.thrift.TException te) {
    - throw new java.io.IOException(te);
    - }
    - }
    -
    - private static class TExecuteStatementReqStandardSchemeFactory implements SchemeFactory {
    - public TExecuteStatementReqStandardScheme getScheme() {
    - return new TExecuteStatementReqStandardScheme();
    - }
    - }
    -
    - private static class TExecuteStatementReqStandardScheme extends StandardScheme<TExecuteStatementReq> {
    -
    - public void read(org.apache.thrift.protocol.TProtocol iprot, TExecuteStatementReq struct) throws org.apache.thrift.TException {
    - org.apache.thrift.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_HANDLE
    - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
    - struct.sessionHandle = new TSessionHandle();
    - struct.sessionHandle.read(iprot);
    - struct.setSessionHandleIsSet(true);
    - } else {
    - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
    - }
    - break;
    - case 2: // STATEMENT
    - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
    - struct.statement = iprot.readString();
    - struct.setStatementIsSet(true);
    - } else {
    - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
    - }
    - break;
    - case 3: // CONF_OVERLAY
    - if (schemeField.type == org.apache.thrift.protocol.TType.MAP) {
    - {
    - org.apache.thrift.protocol.TMap _map162 = iprot.readMapBegin();
    - struct.confOverlay = new HashMap<String,String>(2*_map162.size);
    - String _key163;
    - String _val164;
    - for (int _i165 = 0; _i165 < _map162.size; ++_i165)
    - {
    - _key163 = iprot.readString();
    - _val164 = iprot.readString();
    - struct.confOverlay.put(_key163, _val164);
    - }
    - iprot.readMapEnd();
    - }
    - struct.setConfOverlayIsSet(true);
    - } else {
    - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
    - }
    - break;
    - case 4: // RUN_ASYNC
    - if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) {
    - struct.runAsync = iprot.readBool();
    - struct.setRunAsyncIsSet(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.readStructEnd();
    - struct.validate();
    - }
    -
    - public void write(org.apache.thrift.protocol.TProtocol oprot, TExecuteStatementReq struct) throws org.apache.thrift.TException {
    - struct.validate();
    -
    - oprot.writeStructBegin(STRUCT_DESC);
    - if (struct.sessionHandle != null) {
    - oprot.writeFieldBegin(SESSION_HANDLE_FIELD_DESC);
    - struct.sessionHandle.write(oprot);
    - oprot.writeFieldEnd();
    - }
    - if (struct.statement != null) {
    - oprot.writeFieldBegin(STATEMENT_FIELD_DESC);
    - oprot.writeString(struct.statement);
    - oprot.writeFieldEnd();
    - }
    - if (struct.confOverlay != null) {
    - if (struct.isSetConfOverlay()) {
    - oprot.writeFieldBegin(CONF_OVERLAY_FIELD_DESC);
    - {
    - oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, struct.confOverlay.size()));
    - for (Map.Entry<String, String> _iter166 : struct.confOverlay.entrySet())
    - {
    - oprot.writeString(_iter166.getKey());
    - oprot.writeString(_iter166.getValue());
    - }
    - oprot.writeMapEnd();
    - }
    - oprot.writeFieldEnd();
    - }
    - }
    - if (struct.isSetRunAsync()) {
    - oprot.writeFieldBegin(RUN_ASYNC_FIELD_DESC);
    - oprot.writeBool(struct.runAsync);
    - oprot.writeFieldEnd();
    - }
    - oprot.writeFieldStop();
    - oprot.writeStructEnd();
    - }
    -
    - }
    -
    - private static class TExecuteStatementReqTupleSchemeFactory implements SchemeFactory {
    - public TExecuteStatementReqTupleScheme getScheme() {
    - return new TExecuteStatementReqTupleScheme();
    - }
    - }
    -
    - private static class TExecuteStatementReqTupleScheme extends TupleScheme<TExecuteStatementReq> {
    -
    - @Override
    - public void write(org.apache.thrift.protocol.TProtocol prot, TExecuteStatementReq struct) throws org.apache.thrift.TException {
    - TTupleProtocol oprot = (TTupleProtocol) prot;
    - struct.sessionHandle.write(oprot);
    - oprot.writeString(struct.statement);
    - BitSet optionals = new BitSet();
    - if (struct.isSetConfOverlay()) {
    - optionals.set(0);
    - }
    - if (struct.isSetRunAsync()) {
    - optionals.set(1);
    - }
    - oprot.writeBitSet(optionals, 2);
    - if (struct.isSetConfOverlay()) {
    - {
    - oprot.writeI32(struct.confOverlay.size());
    - for (Map.Entry<String, String> _iter167 : struct.confOverlay.entrySet())
    - {
    - oprot.writeString(_iter167.getKey());
    - oprot.writeString(_iter167.getValue());
    - }
    - }
    - }
    - if (struct.isSetRunAsync()) {
    - oprot.writeBool(struct.runAsync);
    - }
    - }
    -
    - @Override
    - public void read(org.apache.thrift.protocol.TProtocol prot, TExecuteStatementReq struct) throws org.apache.thrift.TException {
    - TTupleProtocol iprot = (TTupleProtocol) prot;
    - struct.sessionHandle = new TSessionHandle();
    - struct.sessionHandle.read(iprot);
    - struct.setSessionHandleIsSet(true);
    - struct.statement = iprot.readString();
    - struct.setStatementIsSet(true);
    - BitSet incoming = iprot.readBitSet(2);
    - if (incoming.get(0)) {
    - {
    - org.apache.thrift.protocol.TMap _map168 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32());
    - struct.confOverlay = new HashMap<String,String>(2*_map168.size);
    - String _key169;
    - String _val170;
    - for (int _i171 = 0; _i171 < _map168.size; ++_i171)
    - {
    - _key169 = iprot.readString();
    - _val170 = iprot.readString();
    - struct.confOverlay.put(_key169, _val170);
    - }
    - }
    - struct.setConfOverlayIsSet(true);
    - }
    - if (incoming.get(1)) {
    - struct.runAsync = iprot.readBool();
    - struct.setRunAsyncIsSet(true);
    - }
    - }
    - }
    -
    -}
    -
  • Vgumashta at Jan 8, 2016 at 12:19 am
    http://git-wip-us.apache.org/repos/asf/hive/blob/2542f5cc/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TByteValue.java
    ----------------------------------------------------------------------
    diff --git a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TByteValue.java b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TByteValue.java
    deleted file mode 100644
    index 82209f1..0000000
    --- a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TByteValue.java
    +++ /dev/null
    @@ -1,390 +0,0 @@
    -/**
    - * Autogenerated by Thrift Compiler (0.9.3)
    - *
    - * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
    - * @generated
    - */
    -package org.apache.hive.service.cli.thrift;
    -
    -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"})
    -@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)")
    -public class TByteValue implements org.apache.thrift.TBase<TByteValue, TByteValue._Fields>, java.io.Serializable, Cloneable, Comparable<TByteValue> {
    - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TByteValue");
    -
    - private static final org.apache.thrift.protocol.TField VALUE_FIELD_DESC = new org.apache.thrift.protocol.TField("value", org.apache.thrift.protocol.TType.BYTE, (short)1);
    -
    - private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
    - static {
    - schemes.put(StandardScheme.class, new TByteValueStandardSchemeFactory());
    - schemes.put(TupleScheme.class, new TByteValueTupleSchemeFactory());
    - }
    -
    - private byte value; // 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 {
    - VALUE((short)1, "value");
    -
    - private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
    -
    - static {
    - for (_Fields field : EnumSet.allOf(_Fields.class)) {
    - byName.put(field.getFieldName(), field);
    - }
    - }
    -
    - /**
    - * Find the _Fields constant that matches fieldId, or null if its not found.
    - */
    - public static _Fields findByThriftId(int fieldId) {
    - switch(fieldId) {
    - case 1: // VALUE
    - return VALUE;
    - default:
    - return null;
    - }
    - }
    -
    - /**
    - * Find the _Fields constant that matches fieldId, throwing an exception
    - * if it is not found.
    - */
    - public static _Fields findByThriftIdOrThrow(int fieldId) {
    - _Fields fields = findByThriftId(fieldId);
    - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
    - return fields;
    - }
    -
    - /**
    - * Find the _Fields constant that matches name, or null if its not found.
    - */
    - public static _Fields findByName(String name) {
    - return byName.get(name);
    - }
    -
    - private final short _thriftId;
    - private final String _fieldName;
    -
    - _Fields(short thriftId, String fieldName) {
    - _thriftId = thriftId;
    - _fieldName = fieldName;
    - }
    -
    - public short getThriftFieldId() {
    - return _thriftId;
    - }
    -
    - public String getFieldName() {
    - return _fieldName;
    - }
    - }
    -
    - // isset id assignments
    - private static final int __VALUE_ISSET_ID = 0;
    - private byte __isset_bitfield = 0;
    - private static final _Fields optionals[] = {_Fields.VALUE};
    - public static final 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);
    - tmpMap.put(_Fields.VALUE, new org.apache.thrift.meta_data.FieldMetaData("value", org.apache.thrift.TFieldRequirementType.OPTIONAL,
    - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BYTE)));
    - metaDataMap = Collections.unmodifiableMap(tmpMap);
    - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(TByteValue.class, metaDataMap);
    - }
    -
    - public TByteValue() {
    - }
    -
    - /**
    - * Performs a deep copy on <i>other</i>.
    - */
    - public TByteValue(TByteValue other) {
    - __isset_bitfield = other.__isset_bitfield;
    - this.value = other.value;
    - }
    -
    - public TByteValue deepCopy() {
    - return new TByteValue(this);
    - }
    -
    - @Override
    - public void clear() {
    - setValueIsSet(false);
    - this.value = 0;
    - }
    -
    - public byte getValue() {
    - return this.value;
    - }
    -
    - public void setValue(byte value) {
    - this.value = value;
    - setValueIsSet(true);
    - }
    -
    - public void unsetValue() {
    - __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __VALUE_ISSET_ID);
    - }
    -
    - /** Returns true if field value is set (has been assigned a value) and false otherwise */
    - public boolean isSetValue() {
    - return EncodingUtils.testBit(__isset_bitfield, __VALUE_ISSET_ID);
    - }
    -
    - public void setValueIsSet(boolean value) {
    - __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __VALUE_ISSET_ID, value);
    - }
    -
    - public void setFieldValue(_Fields field, Object value) {
    - switch (field) {
    - case VALUE:
    - if (value == null) {
    - unsetValue();
    - } else {
    - setValue((Byte)value);
    - }
    - break;
    -
    - }
    - }
    -
    - public Object getFieldValue(_Fields field) {
    - switch (field) {
    - case VALUE:
    - return getValue();
    -
    - }
    - throw new IllegalStateException();
    - }
    -
    - /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
    - public boolean isSet(_Fields field) {
    - if (field == null) {
    - throw new IllegalArgumentException();
    - }
    -
    - switch (field) {
    - case VALUE:
    - return isSetValue();
    - }
    - throw new IllegalStateException();
    - }
    -
    - @Override
    - public boolean equals(Object that) {
    - if (that == null)
    - return false;
    - if (that instanceof TByteValue)
    - return this.equals((TByteValue)that);
    - return false;
    - }
    -
    - public boolean equals(TByteValue that) {
    - if (that == null)
    - return false;
    -
    - boolean this_present_value = true && this.isSetValue();
    - boolean that_present_value = true && that.isSetValue();
    - if (this_present_value || that_present_value) {
    - if (!(this_present_value && that_present_value))
    - return false;
    - if (this.value != that.value)
    - return false;
    - }
    -
    - return true;
    - }
    -
    - @Override
    - public int hashCode() {
    - List<Object> list = new ArrayList<Object>();
    -
    - boolean present_value = true && (isSetValue());
    - list.add(present_value);
    - if (present_value)
    - list.add(value);
    -
    - return list.hashCode();
    - }
    -
    - @Override
    - public int compareTo(TByteValue other) {
    - if (!getClass().equals(other.getClass())) {
    - return getClass().getName().compareTo(other.getClass().getName());
    - }
    -
    - int lastComparison = 0;
    -
    - lastComparison = Boolean.valueOf(isSetValue()).compareTo(other.isSetValue());
    - if (lastComparison != 0) {
    - return lastComparison;
    - }
    - if (isSetValue()) {
    - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.value, other.value);
    - if (lastComparison != 0) {
    - return lastComparison;
    - }
    - }
    - return 0;
    - }
    -
    - public _Fields fieldForId(int fieldId) {
    - return _Fields.findByThriftId(fieldId);
    - }
    -
    - public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
    - schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
    - }
    -
    - public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
    - schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
    - }
    -
    - @Override
    - public String toString() {
    - StringBuilder sb = new StringBuilder("TByteValue(");
    - boolean first = true;
    -
    - if (isSetValue()) {
    - sb.append("value:");
    - sb.append(this.value);
    - first = false;
    - }
    - sb.append(")");
    - return sb.toString();
    - }
    -
    - public void validate() throws org.apache.thrift.TException {
    - // check for required fields
    - // check for sub-struct validity
    - }
    -
    - private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
    - try {
    - write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
    - } catch (org.apache.thrift.TException te) {
    - throw new java.io.IOException(te);
    - }
    - }
    -
    - private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
    - try {
    - // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
    - __isset_bitfield = 0;
    - read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
    - } catch (org.apache.thrift.TException te) {
    - throw new java.io.IOException(te);
    - }
    - }
    -
    - private static class TByteValueStandardSchemeFactory implements SchemeFactory {
    - public TByteValueStandardScheme getScheme() {
    - return new TByteValueStandardScheme();
    - }
    - }
    -
    - private static class TByteValueStandardScheme extends StandardScheme<TByteValue> {
    -
    - public void read(org.apache.thrift.protocol.TProtocol iprot, TByteValue struct) throws org.apache.thrift.TException {
    - org.apache.thrift.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.BYTE) {
    - struct.value = iprot.readByte();
    - 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.readStructEnd();
    - struct.validate();
    - }
    -
    - public void write(org.apache.thrift.protocol.TProtocol oprot, TByteValue struct) throws org.apache.thrift.TException {
    - struct.validate();
    -
    - oprot.writeStructBegin(STRUCT_DESC);
    - if (struct.isSetValue()) {
    - oprot.writeFieldBegin(VALUE_FIELD_DESC);
    - oprot.writeByte(struct.value);
    - oprot.writeFieldEnd();
    - }
    - oprot.writeFieldStop();
    - oprot.writeStructEnd();
    - }
    -
    - }
    -
    - private static class TByteValueTupleSchemeFactory implements SchemeFactory {
    - public TByteValueTupleScheme getScheme() {
    - return new TByteValueTupleScheme();
    - }
    - }
    -
    - private static class TByteValueTupleScheme extends TupleScheme<TByteValue> {
    -
    - @Override
    - public void write(org.apache.thrift.protocol.TProtocol prot, TByteValue struct) throws org.apache.thrift.TException {
    - TTupleProtocol oprot = (TTupleProtocol) prot;
    - BitSet optionals = new BitSet();
    - if (struct.isSetValue()) {
    - optionals.set(0);
    - }
    - oprot.writeBitSet(optionals, 1);
    - if (struct.isSetValue()) {
    - oprot.writeByte(struct.value);
    - }
    - }
    -
    - @Override
    - public void read(org.apache.thrift.protocol.TProtocol prot, TByteValue struct) throws org.apache.thrift.TException {
    - TTupleProtocol iprot = (TTupleProtocol) prot;
    - BitSet incoming = iprot.readBitSet(1);
    - if (incoming.get(0)) {
    - struct.value = iprot.readByte();
    - struct.setValueIsSet(true);
    - }
    - }
    - }
    -
    -}
    -
  • Vgumashta at Jan 8, 2016 at 12:19 am
    http://git-wip-us.apache.org/repos/asf/hive/blob/2542f5cc/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TCLIServiceConstants.java
    ----------------------------------------------------------------------
    diff --git a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TCLIServiceConstants.java b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TCLIServiceConstants.java
    deleted file mode 100644
    index 3f46013..0000000
    --- a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TCLIServiceConstants.java
    +++ /dev/null
    @@ -1,106 +0,0 @@
    -/**
    - * Autogenerated by Thrift Compiler (0.9.3)
    - *
    - * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
    - * @generated
    - */
    -package org.apache.hive.service.cli.thrift;
    -
    -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"})
    -public class TCLIServiceConstants {
    -
    - public static final Set<TTypeId> PRIMITIVE_TYPES = new HashSet<TTypeId>();
    - static {
    - PRIMITIVE_TYPES.add(org.apache.hive.service.cli.thrift.TTypeId.BOOLEAN_TYPE);
    - PRIMITIVE_TYPES.add(org.apache.hive.service.cli.thrift.TTypeId.TINYINT_TYPE);
    - PRIMITIVE_TYPES.add(org.apache.hive.service.cli.thrift.TTypeId.SMALLINT_TYPE);
    - PRIMITIVE_TYPES.add(org.apache.hive.service.cli.thrift.TTypeId.INT_TYPE);
    - PRIMITIVE_TYPES.add(org.apache.hive.service.cli.thrift.TTypeId.BIGINT_TYPE);
    - PRIMITIVE_TYPES.add(org.apache.hive.service.cli.thrift.TTypeId.FLOAT_TYPE);
    - PRIMITIVE_TYPES.add(org.apache.hive.service.cli.thrift.TTypeId.DOUBLE_TYPE);
    - PRIMITIVE_TYPES.add(org.apache.hive.service.cli.thrift.TTypeId.STRING_TYPE);
    - PRIMITIVE_TYPES.add(org.apache.hive.service.cli.thrift.TTypeId.TIMESTAMP_TYPE);
    - PRIMITIVE_TYPES.add(org.apache.hive.service.cli.thrift.TTypeId.BINARY_TYPE);
    - PRIMITIVE_TYPES.add(org.apache.hive.service.cli.thrift.TTypeId.DECIMAL_TYPE);
    - PRIMITIVE_TYPES.add(org.apache.hive.service.cli.thrift.TTypeId.NULL_TYPE);
    - PRIMITIVE_TYPES.add(org.apache.hive.service.cli.thrift.TTypeId.DATE_TYPE);
    - PRIMITIVE_TYPES.add(org.apache.hive.service.cli.thrift.TTypeId.VARCHAR_TYPE);
    - PRIMITIVE_TYPES.add(org.apache.hive.service.cli.thrift.TTypeId.CHAR_TYPE);
    - PRIMITIVE_TYPES.add(org.apache.hive.service.cli.thrift.TTypeId.INTERVAL_YEAR_MONTH_TYPE);
    - PRIMITIVE_TYPES.add(org.apache.hive.service.cli.thrift.TTypeId.INTERVAL_DAY_TIME_TYPE);
    - }
    -
    - public static final Set<TTypeId> COMPLEX_TYPES = new HashSet<TTypeId>();
    - static {
    - COMPLEX_TYPES.add(org.apache.hive.service.cli.thrift.TTypeId.ARRAY_TYPE);
    - COMPLEX_TYPES.add(org.apache.hive.service.cli.thrift.TTypeId.MAP_TYPE);
    - COMPLEX_TYPES.add(org.apache.hive.service.cli.thrift.TTypeId.STRUCT_TYPE);
    - COMPLEX_TYPES.add(org.apache.hive.service.cli.thrift.TTypeId.UNION_TYPE);
    - COMPLEX_TYPES.add(org.apache.hive.service.cli.thrift.TTypeId.USER_DEFINED_TYPE);
    - }
    -
    - public static final Set<TTypeId> COLLECTION_TYPES = new HashSet<TTypeId>();
    - static {
    - COLLECTION_TYPES.add(org.apache.hive.service.cli.thrift.TTypeId.ARRAY_TYPE);
    - COLLECTION_TYPES.add(org.apache.hive.service.cli.thrift.TTypeId.MAP_TYPE);
    - }
    -
    - public static final Map<TTypeId,String> TYPE_NAMES = new HashMap<TTypeId,String>();
    - static {
    - TYPE_NAMES.put(org.apache.hive.service.cli.thrift.TTypeId.BOOLEAN_TYPE, "BOOLEAN");
    - TYPE_NAMES.put(org.apache.hive.service.cli.thrift.TTypeId.TINYINT_TYPE, "TINYINT");
    - TYPE_NAMES.put(org.apache.hive.service.cli.thrift.TTypeId.SMALLINT_TYPE, "SMALLINT");
    - TYPE_NAMES.put(org.apache.hive.service.cli.thrift.TTypeId.INT_TYPE, "INT");
    - TYPE_NAMES.put(org.apache.hive.service.cli.thrift.TTypeId.BIGINT_TYPE, "BIGINT");
    - TYPE_NAMES.put(org.apache.hive.service.cli.thrift.TTypeId.FLOAT_TYPE, "FLOAT");
    - TYPE_NAMES.put(org.apache.hive.service.cli.thrift.TTypeId.DOUBLE_TYPE, "DOUBLE");
    - TYPE_NAMES.put(org.apache.hive.service.cli.thrift.TTypeId.STRING_TYPE, "STRING");
    - TYPE_NAMES.put(org.apache.hive.service.cli.thrift.TTypeId.TIMESTAMP_TYPE, "TIMESTAMP");
    - TYPE_NAMES.put(org.apache.hive.service.cli.thrift.TTypeId.BINARY_TYPE, "BINARY");
    - TYPE_NAMES.put(org.apache.hive.service.cli.thrift.TTypeId.ARRAY_TYPE, "ARRAY");
    - TYPE_NAMES.put(org.apache.hive.service.cli.thrift.TTypeId.MAP_TYPE, "MAP");
    - TYPE_NAMES.put(org.apache.hive.service.cli.thrift.TTypeId.STRUCT_TYPE, "STRUCT");
    - TYPE_NAMES.put(org.apache.hive.service.cli.thrift.TTypeId.UNION_TYPE, "UNIONTYPE");
    - TYPE_NAMES.put(org.apache.hive.service.cli.thrift.TTypeId.DECIMAL_TYPE, "DECIMAL");
    - TYPE_NAMES.put(org.apache.hive.service.cli.thrift.TTypeId.NULL_TYPE, "NULL");
    - TYPE_NAMES.put(org.apache.hive.service.cli.thrift.TTypeId.DATE_TYPE, "DATE");
    - TYPE_NAMES.put(org.apache.hive.service.cli.thrift.TTypeId.VARCHAR_TYPE, "VARCHAR");
    - TYPE_NAMES.put(org.apache.hive.service.cli.thrift.TTypeId.CHAR_TYPE, "CHAR");
    - TYPE_NAMES.put(org.apache.hive.service.cli.thrift.TTypeId.INTERVAL_YEAR_MONTH_TYPE, "INTERVAL_YEAR_MONTH");
    - TYPE_NAMES.put(org.apache.hive.service.cli.thrift.TTypeId.INTERVAL_DAY_TIME_TYPE, "INTERVAL_DAY_TIME");
    - }
    -
    - public static final String CHARACTER_MAXIMUM_LENGTH = "characterMaximumLength";
    -
    - public static final String PRECISION = "precision";
    -
    - public static final String SCALE = "scale";
    -
    -}

    http://git-wip-us.apache.org/repos/asf/hive/blob/2542f5cc/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TCancelDelegationTokenReq.java
    ----------------------------------------------------------------------
    diff --git a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TCancelDelegationTokenReq.java b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TCancelDelegationTokenReq.java
    deleted file mode 100644
    index fde0c47..0000000
    --- a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TCancelDelegationTokenReq.java
    +++ /dev/null
    @@ -1,495 +0,0 @@
    -/**
    - * Autogenerated by Thrift Compiler (0.9.3)
    - *
    - * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
    - * @generated
    - */
    -package org.apache.hive.service.cli.thrift;
    -
    -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"})
    -@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)")
    -public class TCancelDelegationTokenReq implements org.apache.thrift.TBase<TCancelDelegationTokenReq, TCancelDelegationTokenReq._Fields>, java.io.Serializable, Cloneable, Comparable<TCancelDelegationTokenReq> {
    - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TCancelDelegationTokenReq");
    -
    - private static final org.apache.thrift.protocol.TField SESSION_HANDLE_FIELD_DESC = new org.apache.thrift.protocol.TField("sessionHandle", org.apache.thrift.protocol.TType.STRUCT, (short)1);
    - private static final org.apache.thrift.protocol.TField DELEGATION_TOKEN_FIELD_DESC = new org.apache.thrift.protocol.TField("delegationToken", org.apache.thrift.protocol.TType.STRING, (short)2);
    -
    - private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
    - static {
    - schemes.put(StandardScheme.class, new TCancelDelegationTokenReqStandardSchemeFactory());
    - schemes.put(TupleScheme.class, new TCancelDelegationTokenReqTupleSchemeFactory());
    - }
    -
    - private TSessionHandle sessionHandle; // required
    - private String delegationToken; // required
    -
    - /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
    - public enum _Fields implements org.apache.thrift.TFieldIdEnum {
    - SESSION_HANDLE((short)1, "sessionHandle"),
    - DELEGATION_TOKEN((short)2, "delegationToken");
    -
    - private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
    -
    - static {
    - for (_Fields field : EnumSet.allOf(_Fields.class)) {
    - byName.put(field.getFieldName(), field);
    - }
    - }
    -
    - /**
    - * Find the _Fields constant that matches fieldId, or null if its not found.
    - */
    - public static _Fields findByThriftId(int fieldId) {
    - switch(fieldId) {
    - case 1: // SESSION_HANDLE
    - return SESSION_HANDLE;
    - case 2: // DELEGATION_TOKEN
    - return DELEGATION_TOKEN;
    - default:
    - return null;
    - }
    - }
    -
    - /**
    - * Find the _Fields constant that matches fieldId, throwing an exception
    - * if it is not found.
    - */
    - public static _Fields findByThriftIdOrThrow(int fieldId) {
    - _Fields fields = findByThriftId(fieldId);
    - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
    - return fields;
    - }
    -
    - /**
    - * Find the _Fields constant that matches name, or null if its not found.
    - */
    - public static _Fields findByName(String name) {
    - return byName.get(name);
    - }
    -
    - private final short _thriftId;
    - private final String _fieldName;
    -
    - _Fields(short thriftId, String fieldName) {
    - _thriftId = thriftId;
    - _fieldName = fieldName;
    - }
    -
    - public short getThriftFieldId() {
    - return _thriftId;
    - }
    -
    - public String getFieldName() {
    - return _fieldName;
    - }
    - }
    -
    - // isset id assignments
    - public static final 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);
    - tmpMap.put(_Fields.SESSION_HANDLE, new org.apache.thrift.meta_data.FieldMetaData("sessionHandle", org.apache.thrift.TFieldRequirementType.REQUIRED,
    - new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TSessionHandle.class)));
    - tmpMap.put(_Fields.DELEGATION_TOKEN, new org.apache.thrift.meta_data.FieldMetaData("delegationToken", org.apache.thrift.TFieldRequirementType.REQUIRED,
    - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
    - metaDataMap = Collections.unmodifiableMap(tmpMap);
    - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(TCancelDelegationTokenReq.class, metaDataMap);
    - }
    -
    - public TCancelDelegationTokenReq() {
    - }
    -
    - public TCancelDelegationTokenReq(
    - TSessionHandle sessionHandle,
    - String delegationToken)
    - {
    - this();
    - this.sessionHandle = sessionHandle;
    - this.delegationToken = delegationToken;
    - }
    -
    - /**
    - * Performs a deep copy on <i>other</i>.
    - */
    - public TCancelDelegationTokenReq(TCancelDelegationTokenReq other) {
    - if (other.isSetSessionHandle()) {
    - this.sessionHandle = new TSessionHandle(other.sessionHandle);
    - }
    - if (other.isSetDelegationToken()) {
    - this.delegationToken = other.delegationToken;
    - }
    - }
    -
    - public TCancelDelegationTokenReq deepCopy() {
    - return new TCancelDelegationTokenReq(this);
    - }
    -
    - @Override
    - public void clear() {
    - this.sessionHandle = null;
    - this.delegationToken = null;
    - }
    -
    - public TSessionHandle getSessionHandle() {
    - return this.sessionHandle;
    - }
    -
    - public void setSessionHandle(TSessionHandle sessionHandle) {
    - this.sessionHandle = sessionHandle;
    - }
    -
    - public void unsetSessionHandle() {
    - this.sessionHandle = null;
    - }
    -
    - /** Returns true if field sessionHandle is set (has been assigned a value) and false otherwise */
    - public boolean isSetSessionHandle() {
    - return this.sessionHandle != null;
    - }
    -
    - public void setSessionHandleIsSet(boolean value) {
    - if (!value) {
    - this.sessionHandle = null;
    - }
    - }
    -
    - public String getDelegationToken() {
    - return this.delegationToken;
    - }
    -
    - public void setDelegationToken(String delegationToken) {
    - this.delegationToken = delegationToken;
    - }
    -
    - public void unsetDelegationToken() {
    - this.delegationToken = null;
    - }
    -
    - /** Returns true if field delegationToken is set (has been assigned a value) and false otherwise */
    - public boolean isSetDelegationToken() {
    - return this.delegationToken != null;
    - }
    -
    - public void setDelegationTokenIsSet(boolean value) {
    - if (!value) {
    - this.delegationToken = null;
    - }
    - }
    -
    - public void setFieldValue(_Fields field, Object value) {
    - switch (field) {
    - case SESSION_HANDLE:
    - if (value == null) {
    - unsetSessionHandle();
    - } else {
    - setSessionHandle((TSessionHandle)value);
    - }
    - break;
    -
    - case DELEGATION_TOKEN:
    - if (value == null) {
    - unsetDelegationToken();
    - } else {
    - setDelegationToken((String)value);
    - }
    - break;
    -
    - }
    - }
    -
    - public Object getFieldValue(_Fields field) {
    - switch (field) {
    - case SESSION_HANDLE:
    - return getSessionHandle();
    -
    - case DELEGATION_TOKEN:
    - return getDelegationToken();
    -
    - }
    - throw new IllegalStateException();
    - }
    -
    - /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
    - public boolean isSet(_Fields field) {
    - if (field == null) {
    - throw new IllegalArgumentException();
    - }
    -
    - switch (field) {
    - case SESSION_HANDLE:
    - return isSetSessionHandle();
    - case DELEGATION_TOKEN:
    - return isSetDelegationToken();
    - }
    - throw new IllegalStateException();
    - }
    -
    - @Override
    - public boolean equals(Object that) {
    - if (that == null)
    - return false;
    - if (that instanceof TCancelDelegationTokenReq)
    - return this.equals((TCancelDelegationTokenReq)that);
    - return false;
    - }
    -
    - public boolean equals(TCancelDelegationTokenReq that) {
    - if (that == null)
    - return false;
    -
    - boolean this_present_sessionHandle = true && this.isSetSessionHandle();
    - boolean that_present_sessionHandle = true && that.isSetSessionHandle();
    - if (this_present_sessionHandle || that_present_sessionHandle) {
    - if (!(this_present_sessionHandle && that_present_sessionHandle))
    - return false;
    - if (!this.sessionHandle.equals(that.sessionHandle))
    - return false;
    - }
    -
    - boolean this_present_delegationToken = true && this.isSetDelegationToken();
    - boolean that_present_delegationToken = true && that.isSetDelegationToken();
    - if (this_present_delegationToken || that_present_delegationToken) {
    - if (!(this_present_delegationToken && that_present_delegationToken))
    - return false;
    - if (!this.delegationToken.equals(that.delegationToken))
    - return false;
    - }
    -
    - return true;
    - }
    -
    - @Override
    - public int hashCode() {
    - List<Object> list = new ArrayList<Object>();
    -
    - boolean present_sessionHandle = true && (isSetSessionHandle());
    - list.add(present_sessionHandle);
    - if (present_sessionHandle)
    - list.add(sessionHandle);
    -
    - boolean present_delegationToken = true && (isSetDelegationToken());
    - list.add(present_delegationToken);
    - if (present_delegationToken)
    - list.add(delegationToken);
    -
    - return list.hashCode();
    - }
    -
    - @Override
    - public int compareTo(TCancelDelegationTokenReq other) {
    - if (!getClass().equals(other.getClass())) {
    - return getClass().getName().compareTo(other.getClass().getName());
    - }
    -
    - int lastComparison = 0;
    -
    - lastComparison = Boolean.valueOf(isSetSessionHandle()).compareTo(other.isSetSessionHandle());
    - if (lastComparison != 0) {
    - return lastComparison;
    - }
    - if (isSetSessionHandle()) {
    - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.sessionHandle, other.sessionHandle);
    - if (lastComparison != 0) {
    - return lastComparison;
    - }
    - }
    - lastComparison = Boolean.valueOf(isSetDelegationToken()).compareTo(other.isSetDelegationToken());
    - if (lastComparison != 0) {
    - return lastComparison;
    - }
    - if (isSetDelegationToken()) {
    - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.delegationToken, other.delegationToken);
    - if (lastComparison != 0) {
    - return lastComparison;
    - }
    - }
    - return 0;
    - }
    -
    - public _Fields fieldForId(int fieldId) {
    - return _Fields.findByThriftId(fieldId);
    - }
    -
    - public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
    - schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
    - }
    -
    - public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
    - schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
    - }
    -
    - @Override
    - public String toString() {
    - StringBuilder sb = new StringBuilder("TCancelDelegationTokenReq(");
    - boolean first = true;
    -
    - sb.append("sessionHandle:");
    - if (this.sessionHandle == null) {
    - sb.append("null");
    - } else {
    - sb.append(this.sessionHandle);
    - }
    - first = false;
    - if (!first) sb.append(", ");
    - sb.append("delegationToken:");
    - if (this.delegationToken == null) {
    - sb.append("null");
    - } else {
    - sb.append(this.delegationToken);
    - }
    - first = false;
    - sb.append(")");
    - return sb.toString();
    - }
    -
    - public void validate() throws org.apache.thrift.TException {
    - // check for required fields
    - if (!isSetSessionHandle()) {
    - throw new org.apache.thrift.protocol.TProtocolException("Required field 'sessionHandle' is unset! Struct:" + toString());
    - }
    -
    - if (!isSetDelegationToken()) {
    - throw new org.apache.thrift.protocol.TProtocolException("Required field 'delegationToken' is unset! Struct:" + toString());
    - }
    -
    - // check for sub-struct validity
    - if (sessionHandle != null) {
    - sessionHandle.validate();
    - }
    - }
    -
    - private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
    - try {
    - write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
    - } catch (org.apache.thrift.TException te) {
    - throw new java.io.IOException(te);
    - }
    - }
    -
    - private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
    - try {
    - read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
    - } catch (org.apache.thrift.TException te) {
    - throw new java.io.IOException(te);
    - }
    - }
    -
    - private static class TCancelDelegationTokenReqStandardSchemeFactory implements SchemeFactory {
    - public TCancelDelegationTokenReqStandardScheme getScheme() {
    - return new TCancelDelegationTokenReqStandardScheme();
    - }
    - }
    -
    - private static class TCancelDelegationTokenReqStandardScheme extends StandardScheme<TCancelDelegationTokenReq> {
    -
    - public void read(org.apache.thrift.protocol.TProtocol iprot, TCancelDelegationTokenReq struct) throws org.apache.thrift.TException {
    - org.apache.thrift.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_HANDLE
    - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
    - struct.sessionHandle = new TSessionHandle();
    - struct.sessionHandle.read(iprot);
    - struct.setSessionHandleIsSet(true);
    - } else {
    - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
    - }
    - break;
    - case 2: // DELEGATION_TOKEN
    - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
    - struct.delegationToken = iprot.readString();
    - struct.setDelegationTokenIsSet(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.readStructEnd();
    - struct.validate();
    - }
    -
    - public void write(org.apache.thrift.protocol.TProtocol oprot, TCancelDelegationTokenReq struct) throws org.apache.thrift.TException {
    - struct.validate();
    -
    - oprot.writeStructBegin(STRUCT_DESC);
    - if (struct.sessionHandle != null) {
    - oprot.writeFieldBegin(SESSION_HANDLE_FIELD_DESC);
    - struct.sessionHandle.write(oprot);
    - oprot.writeFieldEnd();
    - }
    - if (struct.delegationToken != null) {
    - oprot.writeFieldBegin(DELEGATION_TOKEN_FIELD_DESC);
    - oprot.writeString(struct.delegationToken);
    - oprot.writeFieldEnd();
    - }
    - oprot.writeFieldStop();
    - oprot.writeStructEnd();
    - }
    -
    - }
    -
    - private static class TCancelDelegationTokenReqTupleSchemeFactory implements SchemeFactory {
    - public TCancelDelegationTokenReqTupleScheme getScheme() {
    - return new TCancelDelegationTokenReqTupleScheme();
    - }
    - }
    -
    - private static class TCancelDelegationTokenReqTupleScheme extends TupleScheme<TCancelDelegationTokenReq> {
    -
    - @Override
    - public void write(org.apache.thrift.protocol.TProtocol prot, TCancelDelegationTokenReq struct) throws org.apache.thrift.TException {
    - TTupleProtocol oprot = (TTupleProtocol) prot;
    - struct.sessionHandle.write(oprot);
    - oprot.writeString(struct.delegationToken);
    - }
    -
    - @Override
    - public void read(org.apache.thrift.protocol.TProtocol prot, TCancelDelegationTokenReq struct) throws org.apache.thrift.TException {
    - TTupleProtocol iprot = (TTupleProtocol) prot;
    - struct.sessionHandle = new TSessionHandle();
    - struct.sessionHandle.read(iprot);
    - struct.setSessionHandleIsSet(true);
    - struct.delegationToken = iprot.readString();
    - struct.setDelegationTokenIsSet(true);
    - }
    - }
    -
    -}
    -

    http://git-wip-us.apache.org/repos/asf/hive/blob/2542f5cc/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TCancelDelegationTokenResp.java
    ----------------------------------------------------------------------
    diff --git a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TCancelDelegationTokenResp.java b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TCancelDelegationTokenResp.java
    deleted file mode 100644
    index 65d0551..0000000
    --- a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TCancelDelegationTokenResp.java
    +++ /dev/null
    @@ -1,394 +0,0 @@
    -/**
    - * Autogenerated by Thrift Compiler (0.9.3)
    - *
    - * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
    - * @generated
    - */
    -package org.apache.hive.service.cli.thrift;
    -
    -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"})
    -@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)")
    -public class TCancelDelegationTokenResp implements org.apache.thrift.TBase<TCancelDelegationTokenResp, TCancelDelegationTokenResp._Fields>, java.io.Serializable, Cloneable, Comparable<TCancelDelegationTokenResp> {
    - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TCancelDelegationTokenResp");
    -
    - private static final org.apache.thrift.protocol.TField STATUS_FIELD_DESC = new org.apache.thrift.protocol.TField("status", org.apache.thrift.protocol.TType.STRUCT, (short)1);
    -
    - private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
    - static {
    - schemes.put(StandardScheme.class, new TCancelDelegationTokenRespStandardSchemeFactory());
    - schemes.put(TupleScheme.class, new TCancelDelegationTokenRespTupleSchemeFactory());
    - }
    -
    - private TStatus status; // required
    -
    - /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
    - public enum _Fields implements org.apache.thrift.TFieldIdEnum {
    - STATUS((short)1, "status");
    -
    - private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
    -
    - static {
    - for (_Fields field : EnumSet.allOf(_Fields.class)) {
    - byName.put(field.getFieldName(), field);
    - }
    - }
    -
    - /**
    - * Find the _Fields constant that matches fieldId, or null if its not found.
    - */
    - public static _Fields findByThriftId(int fieldId) {
    - switch(fieldId) {
    - case 1: // STATUS
    - return STATUS;
    - default:
    - return null;
    - }
    - }
    -
    - /**
    - * Find the _Fields constant that matches fieldId, throwing an exception
    - * if it is not found.
    - */
    - public static _Fields findByThriftIdOrThrow(int fieldId) {
    - _Fields fields = findByThriftId(fieldId);
    - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
    - return fields;
    - }
    -
    - /**
    - * Find the _Fields constant that matches name, or null if its not found.
    - */
    - public static _Fields findByName(String name) {
    - return byName.get(name);
    - }
    -
    - private final short _thriftId;
    - private final String _fieldName;
    -
    - _Fields(short thriftId, String fieldName) {
    - _thriftId = thriftId;
    - _fieldName = fieldName;
    - }
    -
    - public short getThriftFieldId() {
    - return _thriftId;
    - }
    -
    - public String getFieldName() {
    - return _fieldName;
    - }
    - }
    -
    - // isset id assignments
    - public static final 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);
    - tmpMap.put(_Fields.STATUS, new org.apache.thrift.meta_data.FieldMetaData("status", org.apache.thrift.TFieldRequirementType.REQUIRED,
    - new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TStatus.class)));
    - metaDataMap = Collections.unmodifiableMap(tmpMap);
    - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(TCancelDelegationTokenResp.class, metaDataMap);
    - }
    -
    - public TCancelDelegationTokenResp() {
    - }
    -
    - public TCancelDelegationTokenResp(
    - TStatus status)
    - {
    - this();
    - this.status = status;
    - }
    -
    - /**
    - * Performs a deep copy on <i>other</i>.
    - */
    - public TCancelDelegationTokenResp(TCancelDelegationTokenResp other) {
    - if (other.isSetStatus()) {
    - this.status = new TStatus(other.status);
    - }
    - }
    -
    - public TCancelDelegationTokenResp deepCopy() {
    - return new TCancelDelegationTokenResp(this);
    - }
    -
    - @Override
    - public void clear() {
    - this.status = null;
    - }
    -
    - public TStatus getStatus() {
    - return this.status;
    - }
    -
    - public void setStatus(TStatus status) {
    - this.status = status;
    - }
    -
    - public void unsetStatus() {
    - this.status = null;
    - }
    -
    - /** Returns true if field status is set (has been assigned a value) and false otherwise */
    - public boolean isSetStatus() {
    - return this.status != null;
    - }
    -
    - public void setStatusIsSet(boolean value) {
    - if (!value) {
    - this.status = null;
    - }
    - }
    -
    - public void setFieldValue(_Fields field, Object value) {
    - switch (field) {
    - case STATUS:
    - if (value == null) {
    - unsetStatus();
    - } else {
    - setStatus((TStatus)value);
    - }
    - break;
    -
    - }
    - }
    -
    - public Object getFieldValue(_Fields field) {
    - switch (field) {
    - case STATUS:
    - return getStatus();
    -
    - }
    - throw new IllegalStateException();
    - }
    -
    - /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
    - public boolean isSet(_Fields field) {
    - if (field == null) {
    - throw new IllegalArgumentException();
    - }
    -
    - switch (field) {
    - case STATUS:
    - return isSetStatus();
    - }
    - throw new IllegalStateException();
    - }
    -
    - @Override
    - public boolean equals(Object that) {
    - if (that == null)
    - return false;
    - if (that instanceof TCancelDelegationTokenResp)
    - return this.equals((TCancelDelegationTokenResp)that);
    - return false;
    - }
    -
    - public boolean equals(TCancelDelegationTokenResp that) {
    - if (that == null)
    - return false;
    -
    - boolean this_present_status = true && this.isSetStatus();
    - boolean that_present_status = true && that.isSetStatus();
    - if (this_present_status || that_present_status) {
    - if (!(this_present_status && that_present_status))
    - return false;
    - if (!this.status.equals(that.status))
    - return false;
    - }
    -
    - return true;
    - }
    -
    - @Override
    - public int hashCode() {
    - List<Object> list = new ArrayList<Object>();
    -
    - boolean present_status = true && (isSetStatus());
    - list.add(present_status);
    - if (present_status)
    - list.add(status);
    -
    - return list.hashCode();
    - }
    -
    - @Override
    - public int compareTo(TCancelDelegationTokenResp other) {
    - if (!getClass().equals(other.getClass())) {
    - return getClass().getName().compareTo(other.getClass().getName());
    - }
    -
    - int lastComparison = 0;
    -
    - lastComparison = Boolean.valueOf(isSetStatus()).compareTo(other.isSetStatus());
    - if (lastComparison != 0) {
    - return lastComparison;
    - }
    - if (isSetStatus()) {
    - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.status, other.status);
    - if (lastComparison != 0) {
    - return lastComparison;
    - }
    - }
    - return 0;
    - }
    -
    - public _Fields fieldForId(int fieldId) {
    - return _Fields.findByThriftId(fieldId);
    - }
    -
    - public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
    - schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
    - }
    -
    - public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
    - schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
    - }
    -
    - @Override
    - public String toString() {
    - StringBuilder sb = new StringBuilder("TCancelDelegationTokenResp(");
    - boolean first = true;
    -
    - sb.append("status:");
    - if (this.status == null) {
    - sb.append("null");
    - } else {
    - sb.append(this.status);
    - }
    - first = false;
    - sb.append(")");
    - return sb.toString();
    - }
    -
    - public void validate() throws org.apache.thrift.TException {
    - // check for required fields
    - if (!isSetStatus()) {
    - throw new org.apache.thrift.protocol.TProtocolException("Required field 'status' is unset! Struct:" + toString());
    - }
    -
    - // check for sub-struct validity
    - if (status != null) {
    - status.validate();
    - }
    - }
    -
    - private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
    - try {
    - write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
    - } catch (org.apache.thrift.TException te) {
    - throw new java.io.IOException(te);
    - }
    - }
    -
    - private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
    - try {
    - read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
    - } catch (org.apache.thrift.TException te) {
    - throw new java.io.IOException(te);
    - }
    - }
    -
    - private static class TCancelDelegationTokenRespStandardSchemeFactory implements SchemeFactory {
    - public TCancelDelegationTokenRespStandardScheme getScheme() {
    - return new TCancelDelegationTokenRespStandardScheme();
    - }
    - }
    -
    - private static class TCancelDelegationTokenRespStandardScheme extends StandardScheme<TCancelDelegationTokenResp> {
    -
    - public void read(org.apache.thrift.protocol.TProtocol iprot, TCancelDelegationTokenResp struct) throws org.apache.thrift.TException {
    - org.apache.thrift.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.STRUCT) {
    - struct.status = new TStatus();
    - struct.status.read(iprot);
    - struct.setStatusIsSet(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.readStructEnd();
    - struct.validate();
    - }
    -
    - public void write(org.apache.thrift.protocol.TProtocol oprot, TCancelDelegationTokenResp struct) throws org.apache.thrift.TException {
    - struct.validate();
    -
    - oprot.writeStructBegin(STRUCT_DESC);
    - if (struct.status != null) {
    - oprot.writeFieldBegin(STATUS_FIELD_DESC);
    - struct.status.write(oprot);
    - oprot.writeFieldEnd();
    - }
    - oprot.writeFieldStop();
    - oprot.writeStructEnd();
    - }
    -
    - }
    -
    - private static class TCancelDelegationTokenRespTupleSchemeFactory implements SchemeFactory {
    - public TCancelDelegationTokenRespTupleScheme getScheme() {
    - return new TCancelDelegationTokenRespTupleScheme();
    - }
    - }
    -
    - private static class TCancelDelegationTokenRespTupleScheme extends TupleScheme<TCancelDelegationTokenResp> {
    -
    - @Override
    - public void write(org.apache.thrift.protocol.TProtocol prot, TCancelDelegationTokenResp struct) throws org.apache.thrift.TException {
    - TTupleProtocol oprot = (TTupleProtocol) prot;
    - struct.status.write(oprot);
    - }
    -
    - @Override
    - public void read(org.apache.thrift.protocol.TProtocol prot, TCancelDelegationTokenResp struct) throws org.apache.thrift.TException {
    - TTupleProtocol iprot = (TTupleProtocol) prot;
    - struct.status = new TStatus();
    - struct.status.read(iprot);
    - struct.setStatusIsSet(true);
    - }
    - }
    -
    -}
    -

    http://git-wip-us.apache.org/repos/asf/hive/blob/2542f5cc/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TCancelOperationReq.java
    ----------------------------------------------------------------------
    diff --git a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TCancelOperationReq.java b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TCancelOperationReq.java
    deleted file mode 100644
    index f532d09..0000000
    --- a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TCancelOperationReq.java
    +++ /dev/null
    @@ -1,394 +0,0 @@
    -/**
    - * Autogenerated by Thrift Compiler (0.9.3)
    - *
    - * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
    - * @generated
    - */
    -package org.apache.hive.service.cli.thrift;
    -
    -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"})
    -@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)")
    -public class TCancelOperationReq implements org.apache.thrift.TBase<TCancelOperationReq, TCancelOperationReq._Fields>, java.io.Serializable, Cloneable, Comparable<TCancelOperationReq> {
    - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TCancelOperationReq");
    -
    - private static final org.apache.thrift.protocol.TField OPERATION_HANDLE_FIELD_DESC = new org.apache.thrift.protocol.TField("operationHandle", org.apache.thrift.protocol.TType.STRUCT, (short)1);
    -
    - private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
    - static {
    - schemes.put(StandardScheme.class, new TCancelOperationReqStandardSchemeFactory());
    - schemes.put(TupleScheme.class, new TCancelOperationReqTupleSchemeFactory());
    - }
    -
    - private TOperationHandle operationHandle; // required
    -
    - /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
    - public enum _Fields implements org.apache.thrift.TFieldIdEnum {
    - OPERATION_HANDLE((short)1, "operationHandle");
    -
    - private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
    -
    - static {
    - for (_Fields field : EnumSet.allOf(_Fields.class)) {
    - byName.put(field.getFieldName(), field);
    - }
    - }
    -
    - /**
    - * Find the _Fields constant that matches fieldId, or null if its not found.
    - */
    - public static _Fields findByThriftId(int fieldId) {
    - switch(fieldId) {
    - case 1: // OPERATION_HANDLE
    - return OPERATION_HANDLE;
    - default:
    - return null;
    - }
    - }
    -
    - /**
    - * Find the _Fields constant that matches fieldId, throwing an exception
    - * if it is not found.
    - */
    - public static _Fields findByThriftIdOrThrow(int fieldId) {
    - _Fields fields = findByThriftId(fieldId);
    - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
    - return fields;
    - }
    -
    - /**
    - * Find the _Fields constant that matches name, or null if its not found.
    - */
    - public static _Fields findByName(String name) {
    - return byName.get(name);
    - }
    -
    - private final short _thriftId;
    - private final String _fieldName;
    -
    - _Fields(short thriftId, String fieldName) {
    - _thriftId = thriftId;
    - _fieldName = fieldName;
    - }
    -
    - public short getThriftFieldId() {
    - return _thriftId;
    - }
    -
    - public String getFieldName() {
    - return _fieldName;
    - }
    - }
    -
    - // isset id assignments
    - public static final 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);
    - tmpMap.put(_Fields.OPERATION_HANDLE, new org.apache.thrift.meta_data.FieldMetaData("operationHandle", org.apache.thrift.TFieldRequirementType.REQUIRED,
    - new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TOperationHandle.class)));
    - metaDataMap = Collections.unmodifiableMap(tmpMap);
    - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(TCancelOperationReq.class, metaDataMap);
    - }
    -
    - public TCancelOperationReq() {
    - }
    -
    - public TCancelOperationReq(
    - TOperationHandle operationHandle)
    - {
    - this();
    - this.operationHandle = operationHandle;
    - }
    -
    - /**
    - * Performs a deep copy on <i>other</i>.
    - */
    - public TCancelOperationReq(TCancelOperationReq other) {
    - if (other.isSetOperationHandle()) {
    - this.operationHandle = new TOperationHandle(other.operationHandle);
    - }
    - }
    -
    - public TCancelOperationReq deepCopy() {
    - return new TCancelOperationReq(this);
    - }
    -
    - @Override
    - public void clear() {
    - this.operationHandle = null;
    - }
    -
    - public TOperationHandle getOperationHandle() {
    - return this.operationHandle;
    - }
    -
    - public void setOperationHandle(TOperationHandle operationHandle) {
    - this.operationHandle = operationHandle;
    - }
    -
    - public void unsetOperationHandle() {
    - this.operationHandle = null;
    - }
    -
    - /** Returns true if field operationHandle is set (has been assigned a value) and false otherwise */
    - public boolean isSetOperationHandle() {
    - return this.operationHandle != null;
    - }
    -
    - public void setOperationHandleIsSet(boolean value) {
    - if (!value) {
    - this.operationHandle = null;
    - }
    - }
    -
    - public void setFieldValue(_Fields field, Object value) {
    - switch (field) {
    - case OPERATION_HANDLE:
    - if (value == null) {
    - unsetOperationHandle();
    - } else {
    - setOperationHandle((TOperationHandle)value);
    - }
    - break;
    -
    - }
    - }
    -
    - public Object getFieldValue(_Fields field) {
    - switch (field) {
    - case OPERATION_HANDLE:
    - return getOperationHandle();
    -
    - }
    - throw new IllegalStateException();
    - }
    -
    - /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
    - public boolean isSet(_Fields field) {
    - if (field == null) {
    - throw new IllegalArgumentException();
    - }
    -
    - switch (field) {
    - case OPERATION_HANDLE:
    - return isSetOperationHandle();
    - }
    - throw new IllegalStateException();
    - }
    -
    - @Override
    - public boolean equals(Object that) {
    - if (that == null)
    - return false;
    - if (that instanceof TCancelOperationReq)
    - return this.equals((TCancelOperationReq)that);
    - return false;
    - }
    -
    - public boolean equals(TCancelOperationReq that) {
    - if (that == null)
    - return false;
    -
    - boolean this_present_operationHandle = true && this.isSetOperationHandle();
    - boolean that_present_operationHandle = true && that.isSetOperationHandle();
    - if (this_present_operationHandle || that_present_operationHandle) {
    - if (!(this_present_operationHandle && that_present_operationHandle))
    - return false;
    - if (!this.operationHandle.equals(that.operationHandle))
    - return false;
    - }
    -
    - return true;
    - }
    -
    - @Override
    - public int hashCode() {
    - List<Object> list = new ArrayList<Object>();
    -
    - boolean present_operationHandle = true && (isSetOperationHandle());
    - list.add(present_operationHandle);
    - if (present_operationHandle)
    - list.add(operationHandle);
    -
    - return list.hashCode();
    - }
    -
    - @Override
    - public int compareTo(TCancelOperationReq other) {
    - if (!getClass().equals(other.getClass())) {
    - return getClass().getName().compareTo(other.getClass().getName());
    - }
    -
    - int lastComparison = 0;
    -
    - lastComparison = Boolean.valueOf(isSetOperationHandle()).compareTo(other.isSetOperationHandle());
    - if (lastComparison != 0) {
    - return lastComparison;
    - }
    - if (isSetOperationHandle()) {
    - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.operationHandle, other.operationHandle);
    - if (lastComparison != 0) {
    - return lastComparison;
    - }
    - }
    - return 0;
    - }
    -
    - public _Fields fieldForId(int fieldId) {
    - return _Fields.findByThriftId(fieldId);
    - }
    -
    - public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
    - schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
    - }
    -
    - public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
    - schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
    - }
    -
    - @Override
    - public String toString() {
    - StringBuilder sb = new StringBuilder("TCancelOperationReq(");
    - boolean first = true;
    -
    - sb.append("operationHandle:");
    - if (this.operationHandle == null) {
    - sb.append("null");
    - } else {
    - sb.append(this.operationHandle);
    - }
    - first = false;
    - sb.append(")");
    - return sb.toString();
    - }
    -
    - public void validate() throws org.apache.thrift.TException {
    - // check for required fields
    - if (!isSetOperationHandle()) {
    - throw new org.apache.thrift.protocol.TProtocolException("Required field 'operationHandle' is unset! Struct:" + toString());
    - }
    -
    - // check for sub-struct validity
    - if (operationHandle != null) {
    - operationHandle.validate();
    - }
    - }
    -
    - private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
    - try {
    - write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
    - } catch (org.apache.thrift.TException te) {
    - throw new java.io.IOException(te);
    - }
    - }
    -
    - private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
    - try {
    - read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
    - } catch (org.apache.thrift.TException te) {
    - throw new java.io.IOException(te);
    - }
    - }
    -
    - private static class TCancelOperationReqStandardSchemeFactory implements SchemeFactory {
    - public TCancelOperationReqStandardScheme getScheme() {
    - return new TCancelOperationReqStandardScheme();
    - }
    - }
    -
    - private static class TCancelOperationReqStandardScheme extends StandardScheme<TCancelOperationReq> {
    -
    - public void read(org.apache.thrift.protocol.TProtocol iprot, TCancelOperationReq struct) throws org.apache.thrift.TException {
    - org.apache.thrift.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: // OPERATION_HANDLE
    - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
    - struct.operationHandle = new TOperationHandle();
    - struct.operationHandle.read(iprot);
    - struct.setOperationHandleIsSet(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.readStructEnd();
    - struct.validate();
    - }
    -
    - public void write(org.apache.thrift.protocol.TProtocol oprot, TCancelOperationReq struct) throws org.apache.thrift.TException {
    - struct.validate();
    -
    - oprot.writeStructBegin(STRUCT_DESC);
    - if (struct.operationHandle != null) {
    - oprot.writeFieldBegin(OPERATION_HANDLE_FIELD_DESC);
    - struct.operationHandle.write(oprot);
    - oprot.writeFieldEnd();
    - }
    - oprot.writeFieldStop();
    - oprot.writeStructEnd();
    - }
    -
    - }
    -
    - private static class TCancelOperationReqTupleSchemeFactory implements SchemeFactory {
    - public TCancelOperationReqTupleScheme getScheme() {
    - return new TCancelOperationReqTupleScheme();
    - }
    - }
    -
    - private static class TCancelOperationReqTupleScheme extends TupleScheme<TCancelOperationReq> {
    -
    - @Override
    - public void write(org.apache.thrift.protocol.TProtocol prot, TCancelOperationReq struct) throws org.apache.thrift.TException {
    - TTupleProtocol oprot = (TTupleProtocol) prot;
    - struct.operationHandle.write(oprot);
    - }
    -
    - @Override
    - public void read(org.apache.thrift.protocol.TProtocol prot, TCancelOperationReq struct) throws org.apache.thrift.TException {
    - TTupleProtocol iprot = (TTupleProtocol) prot;
    - struct.operationHandle = new TOperationHandle();
    - struct.operationHandle.read(iprot);
    - struct.setOperationHandleIsSet(true);
    - }
    - }
    -
    -}
    -

    http://git-wip-us.apache.org/repos/asf/hive/blob/2542f5cc/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TCancelOperationResp.java
    ----------------------------------------------------------------------
    diff --git a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TCancelOperationResp.java b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TCancelOperationResp.java
    deleted file mode 100644
    index f7f8325..0000000
    --- a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TCancelOperationResp.java
    +++ /dev/null
    @@ -1,394 +0,0 @@
    -/**
    - * Autogenerated by Thrift Compiler (0.9.3)
    - *
    - * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
    - * @generated
    - */
    -package org.apache.hive.service.cli.thrift;
    -
    -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"})
    -@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)")
    -public class TCancelOperationResp implements org.apache.thrift.TBase<TCancelOperationResp, TCancelOperationResp._Fields>, java.io.Serializable, Cloneable, Comparable<TCancelOperationResp> {
    - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TCancelOperationResp");
    -
    - private static final org.apache.thrift.protocol.TField STATUS_FIELD_DESC = new org.apache.thrift.protocol.TField("status", org.apache.thrift.protocol.TType.STRUCT, (short)1);
    -
    - private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
    - static {
    - schemes.put(StandardScheme.class, new TCancelOperationRespStandardSchemeFactory());
    - schemes.put(TupleScheme.class, new TCancelOperationRespTupleSchemeFactory());
    - }
    -
    - private TStatus status; // required
    -
    - /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
    - public enum _Fields implements org.apache.thrift.TFieldIdEnum {
    - STATUS((short)1, "status");
    -
    - private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
    -
    - static {
    - for (_Fields field : EnumSet.allOf(_Fields.class)) {
    - byName.put(field.getFieldName(), field);
    - }
    - }
    -
    - /**
    - * Find the _Fields constant that matches fieldId, or null if its not found.
    - */
    - public static _Fields findByThriftId(int fieldId) {
    - switch(fieldId) {
    - case 1: // STATUS
    - return STATUS;
    - default:
    - return null;
    - }
    - }
    -
    - /**
    - * Find the _Fields constant that matches fieldId, throwing an exception
    - * if it is not found.
    - */
    - public static _Fields findByThriftIdOrThrow(int fieldId) {
    - _Fields fields = findByThriftId(fieldId);
    - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
    - return fields;
    - }
    -
    - /**
    - * Find the _Fields constant that matches name, or null if its not found.
    - */
    - public static _Fields findByName(String name) {
    - return byName.get(name);
    - }
    -
    - private final short _thriftId;
    - private final String _fieldName;
    -
    - _Fields(short thriftId, String fieldName) {
    - _thriftId = thriftId;
    - _fieldName = fieldName;
    - }
    -
    - public short getThriftFieldId() {
    - return _thriftId;
    - }
    -
    - public String getFieldName() {
    - return _fieldName;
    - }
    - }
    -
    - // isset id assignments
    - public static final 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);
    - tmpMap.put(_Fields.STATUS, new org.apache.thrift.meta_data.FieldMetaData("status", org.apache.thrift.TFieldRequirementType.REQUIRED,
    - new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TStatus.class)));
    - metaDataMap = Collections.unmodifiableMap(tmpMap);
    - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(TCancelOperationResp.class, metaDataMap);
    - }
    -
    - public TCancelOperationResp() {
    - }
    -
    - public TCancelOperationResp(
    - TStatus status)
    - {
    - this();
    - this.status = status;
    - }
    -
    - /**
    - * Performs a deep copy on <i>other</i>.
    - */
    - public TCancelOperationResp(TCancelOperationResp other) {
    - if (other.isSetStatus()) {
    - this.status = new TStatus(other.status);
    - }
    - }
    -
    - public TCancelOperationResp deepCopy() {
    - return new TCancelOperationResp(this);
    - }
    -
    - @Override
    - public void clear() {
    - this.status = null;
    - }
    -
    - public TStatus getStatus() {
    - return this.status;
    - }
    -
    - public void setStatus(TStatus status) {
    - this.status = status;
    - }
    -
    - public void unsetStatus() {
    - this.status = null;
    - }
    -
    - /** Returns true if field status is set (has been assigned a value) and false otherwise */
    - public boolean isSetStatus() {
    - return this.status != null;
    - }
    -
    - public void setStatusIsSet(boolean value) {
    - if (!value) {
    - this.status = null;
    - }
    - }
    -
    - public void setFieldValue(_Fields field, Object value) {
    - switch (field) {
    - case STATUS:
    - if (value == null) {
    - unsetStatus();
    - } else {
    - setStatus((TStatus)value);
    - }
    - break;
    -
    - }
    - }
    -
    - public Object getFieldValue(_Fields field) {
    - switch (field) {
    - case STATUS:
    - return getStatus();
    -
    - }
    - throw new IllegalStateException();
    - }
    -
    - /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
    - public boolean isSet(_Fields field) {
    - if (field == null) {
    - throw new IllegalArgumentException();
    - }
    -
    - switch (field) {
    - case STATUS:
    - return isSetStatus();
    - }
    - throw new IllegalStateException();
    - }
    -
    - @Override
    - public boolean equals(Object that) {
    - if (that == null)
    - return false;
    - if (that instanceof TCancelOperationResp)
    - return this.equals((TCancelOperationResp)that);
    - return false;
    - }
    -
    - public boolean equals(TCancelOperationResp that) {
    - if (that == null)
    - return false;
    -
    - boolean this_present_status = true && this.isSetStatus();
    - boolean that_present_status = true && that.isSetStatus();
    - if (this_present_status || that_present_status) {
    - if (!(this_present_status && that_present_status))
    - return false;
    - if (!this.status.equals(that.status))
    - return false;
    - }
    -
    - return true;
    - }
    -
    - @Override
    - public int hashCode() {
    - List<Object> list = new ArrayList<Object>();
    -
    - boolean present_status = true && (isSetStatus());
    - list.add(present_status);
    - if (present_status)
    - list.add(status);
    -
    - return list.hashCode();
    - }
    -
    - @Override
    - public int compareTo(TCancelOperationResp other) {
    - if (!getClass().equals(other.getClass())) {
    - return getClass().getName().compareTo(other.getClass().getName());
    - }
    -
    - int lastComparison = 0;
    -
    - lastComparison = Boolean.valueOf(isSetStatus()).compareTo(other.isSetStatus());
    - if (lastComparison != 0) {
    - return lastComparison;
    - }
    - if (isSetStatus()) {
    - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.status, other.status);
    - if (lastComparison != 0) {
    - return lastComparison;
    - }
    - }
    - return 0;
    - }
    -
    - public _Fields fieldForId(int fieldId) {
    - return _Fields.findByThriftId(fieldId);
    - }
    -
    - public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
    - schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
    - }
    -
    - public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
    - schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
    - }
    -
    - @Override
    - public String toString() {
    - StringBuilder sb = new StringBuilder("TCancelOperationResp(");
    - boolean first = true;
    -
    - sb.append("status:");
    - if (this.status == null) {
    - sb.append("null");
    - } else {
    - sb.append(this.status);
    - }
    - first = false;
    - sb.append(")");
    - return sb.toString();
    - }
    -
    - public void validate() throws org.apache.thrift.TException {
    - // check for required fields
    - if (!isSetStatus()) {
    - throw new org.apache.thrift.protocol.TProtocolException("Required field 'status' is unset! Struct:" + toString());
    - }
    -
    - // check for sub-struct validity
    - if (status != null) {
    - status.validate();
    - }
    - }
    -
    - private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
    - try {
    - write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
    - } catch (org.apache.thrift.TException te) {
    - throw new java.io.IOException(te);
    - }
    - }
    -
    - private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
    - try {
    - read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
    - } catch (org.apache.thrift.TException te) {
    - throw new java.io.IOException(te);
    - }
    - }
    -
    - private static class TCancelOperationRespStandardSchemeFactory implements SchemeFactory {
    - public TCancelOperationRespStandardScheme getScheme() {
    - return new TCancelOperationRespStandardScheme();
    - }
    - }
    -
    - private static class TCancelOperationRespStandardScheme extends StandardScheme<TCancelOperationResp> {
    -
    - public void read(org.apache.thrift.protocol.TProtocol iprot, TCancelOperationResp struct) throws org.apache.thrift.TException {
    - org.apache.thrift.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.STRUCT) {
    - struct.status = new TStatus();
    - struct.status.read(iprot);
    - struct.setStatusIsSet(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.readStructEnd();
    - struct.validate();
    - }
    -
    - public void write(org.apache.thrift.protocol.TProtocol oprot, TCancelOperationResp struct) throws org.apache.thrift.TException {
    - struct.validate();
    -
    - oprot.writeStructBegin(STRUCT_DESC);
    - if (struct.status != null) {
    - oprot.writeFieldBegin(STATUS_FIELD_DESC);
    - struct.status.write(oprot);
    - oprot.writeFieldEnd();
    - }
    - oprot.writeFieldStop();
    - oprot.writeStructEnd();
    - }
    -
    - }
    -
    - private static class TCancelOperationRespTupleSchemeFactory implements SchemeFactory {
    - public TCancelOperationRespTupleScheme getScheme() {
    - return new TCancelOperationRespTupleScheme();
    - }
    - }
    -
    - private static class TCancelOperationRespTupleScheme extends TupleScheme<TCancelOperationResp> {
    -
    - @Override
    - public void write(org.apache.thrift.protocol.TProtocol prot, TCancelOperationResp struct) throws org.apache.thrift.TException {
    - TTupleProtocol oprot = (TTupleProtocol) prot;
    - struct.status.write(oprot);
    - }
    -
    - @Override
    - public void read(org.apache.thrift.protocol.TProtocol prot, TCancelOperationResp struct) throws org.apache.thrift.TException {
    - TTupleProtocol iprot = (TTupleProtocol) prot;
    - struct.status = new TStatus();
    - struct.status.read(iprot);
    - struct.setStatusIsSet(true);
    - }
    - }
    -
    -}
    -

    http://git-wip-us.apache.org/repos/asf/hive/blob/2542f5cc/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TCloseOperationReq.java
    ----------------------------------------------------------------------
    diff --git a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TCloseOperationReq.java b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TCloseOperationReq.java
    deleted file mode 100644
    index c0c2c2c..0000000
    --- a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TCloseOperationReq.java
    +++ /dev/null
    @@ -1,394 +0,0 @@
    -/**
    - * Autogenerated by Thrift Compiler (0.9.3)
    - *
    - * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
    - * @generated
    - */
    -package org.apache.hive.service.cli.thrift;
    -
    -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"})
    -@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)")
    -public class TCloseOperationReq implements org.apache.thrift.TBase<TCloseOperationReq, TCloseOperationReq._Fields>, java.io.Serializable, Cloneable, Comparable<TCloseOperationReq> {
    - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TCloseOperationReq");
    -
    - private static final org.apache.thrift.protocol.TField OPERATION_HANDLE_FIELD_DESC = new org.apache.thrift.protocol.TField("operationHandle", org.apache.thrift.protocol.TType.STRUCT, (short)1);
    -
    - private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
    - static {
    - schemes.put(StandardScheme.class, new TCloseOperationReqStandardSchemeFactory());
    - schemes.put(TupleScheme.class, new TCloseOperationReqTupleSchemeFactory());
    - }
    -
    - private TOperationHandle operationHandle; // required
    -
    - /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
    - public enum _Fields implements org.apache.thrift.TFieldIdEnum {
    - OPERATION_HANDLE((short)1, "operationHandle");
    -
    - private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
    -
    - static {
    - for (_Fields field : EnumSet.allOf(_Fields.class)) {
    - byName.put(field.getFieldName(), field);
    - }
    - }
    -
    - /**
    - * Find the _Fields constant that matches fieldId, or null if its not found.
    - */
    - public static _Fields findByThriftId(int fieldId) {
    - switch(fieldId) {
    - case 1: // OPERATION_HANDLE
    - return OPERATION_HANDLE;
    - default:
    - return null;
    - }
    - }
    -
    - /**
    - * Find the _Fields constant that matches fieldId, throwing an exception
    - * if it is not found.
    - */
    - public static _Fields findByThriftIdOrThrow(int fieldId) {
    - _Fields fields = findByThriftId(fieldId);
    - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
    - return fields;
    - }
    -
    - /**
    - * Find the _Fields constant that matches name, or null if its not found.
    - */
    - public static _Fields findByName(String name) {
    - return byName.get(name);
    - }
    -
    - private final short _thriftId;
    - private final String _fieldName;
    -
    - _Fields(short thriftId, String fieldName) {
    - _thriftId = thriftId;
    - _fieldName = fieldName;
    - }
    -
    - public short getThriftFieldId() {
    - return _thriftId;
    - }
    -
    - public String getFieldName() {
    - return _fieldName;
    - }
    - }
    -
    - // isset id assignments
    - public static final 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);
    - tmpMap.put(_Fields.OPERATION_HANDLE, new org.apache.thrift.meta_data.FieldMetaData("operationHandle", org.apache.thrift.TFieldRequirementType.REQUIRED,
    - new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TOperationHandle.class)));
    - metaDataMap = Collections.unmodifiableMap(tmpMap);
    - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(TCloseOperationReq.class, metaDataMap);
    - }
    -
    - public TCloseOperationReq() {
    - }
    -
    - public TCloseOperationReq(
    - TOperationHandle operationHandle)
    - {
    - this();
    - this.operationHandle = operationHandle;
    - }
    -
    - /**
    - * Performs a deep copy on <i>other</i>.
    - */
    - public TCloseOperationReq(TCloseOperationReq other) {
    - if (other.isSetOperationHandle()) {
    - this.operationHandle = new TOperationHandle(other.operationHandle);
    - }
    - }
    -
    - public TCloseOperationReq deepCopy() {
    - return new TCloseOperationReq(this);
    - }
    -
    - @Override
    - public void clear() {
    - this.operationHandle = null;
    - }
    -
    - public TOperationHandle getOperationHandle() {
    - return this.operationHandle;
    - }
    -
    - public void setOperationHandle(TOperationHandle operationHandle) {
    - this.operationHandle = operationHandle;
    - }
    -
    - public void unsetOperationHandle() {
    - this.operationHandle = null;
    - }
    -
    - /** Returns true if field operationHandle is set (has been assigned a value) and false otherwise */
    - public boolean isSetOperationHandle() {
    - return this.operationHandle != null;
    - }
    -
    - public void setOperationHandleIsSet(boolean value) {
    - if (!value) {
    - this.operationHandle = null;
    - }
    - }
    -
    - public void setFieldValue(_Fields field, Object value) {
    - switch (field) {
    - case OPERATION_HANDLE:
    - if (value == null) {
    - unsetOperationHandle();
    - } else {
    - setOperationHandle((TOperationHandle)value);
    - }
    - break;
    -
    - }
    - }
    -
    - public Object getFieldValue(_Fields field) {
    - switch (field) {
    - case OPERATION_HANDLE:
    - return getOperationHandle();
    -
    - }
    - throw new IllegalStateException();
    - }
    -
    - /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
    - public boolean isSet(_Fields field) {
    - if (field == null) {
    - throw new IllegalArgumentException();
    - }
    -
    - switch (field) {
    - case OPERATION_HANDLE:
    - return isSetOperationHandle();
    - }
    - throw new IllegalStateException();
    - }
    -
    - @Override
    - public boolean equals(Object that) {
    - if (that == null)
    - return false;
    - if (that instanceof TCloseOperationReq)
    - return this.equals((TCloseOperationReq)that);
    - return false;
    - }
    -
    - public boolean equals(TCloseOperationReq that) {
    - if (that == null)
    - return false;
    -
    - boolean this_present_operationHandle = true && this.isSetOperationHandle();
    - boolean that_present_operationHandle = true && that.isSetOperationHandle();
    - if (this_present_operationHandle || that_present_operationHandle) {
    - if (!(this_present_operationHandle && that_present_operationHandle))
    - return false;
    - if (!this.operationHandle.equals(that.operationHandle))
    - return false;
    - }
    -
    - return true;
    - }
    -
    - @Override
    - public int hashCode() {
    - List<Object> list = new ArrayList<Object>();
    -
    - boolean present_operationHandle = true && (isSetOperationHandle());
    - list.add(present_operationHandle);
    - if (present_operationHandle)
    - list.add(operationHandle);
    -
    - return list.hashCode();
    - }
    -
    - @Override
    - public int compareTo(TCloseOperationReq other) {
    - if (!getClass().equals(other.getClass())) {
    - return getClass().getName().compareTo(other.getClass().getName());
    - }
    -
    - int lastComparison = 0;
    -
    - lastComparison = Boolean.valueOf(isSetOperationHandle()).compareTo(other.isSetOperationHandle());
    - if (lastComparison != 0) {
    - return lastComparison;
    - }
    - if (isSetOperationHandle()) {
    - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.operationHandle, other.operationHandle);
    - if (lastComparison != 0) {
    - return lastComparison;
    - }
    - }
    - return 0;
    - }
    -
    - public _Fields fieldForId(int fieldId) {
    - return _Fields.findByThriftId(fieldId);
    - }
    -
    - public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
    - schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
    - }
    -
    - public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
    - schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
    - }
    -
    - @Override
    - public String toString() {
    - StringBuilder sb = new StringBuilder("TCloseOperationReq(");
    - boolean first = true;
    -
    - sb.append("operationHandle:");
    - if (this.operationHandle == null) {
    - sb.append("null");
    - } else {
    - sb.append(this.operationHandle);
    - }
    - first = false;
    - sb.append(")");
    - return sb.toString();
    - }
    -
    - public void validate() throws org.apache.thrift.TException {
    - // check for required fields
    - if (!isSetOperationHandle()) {
    - throw new org.apache.thrift.protocol.TProtocolException("Required field 'operationHandle' is unset! Struct:" + toString());
    - }
    -
    - // check for sub-struct validity
    - if (operationHandle != null) {
    - operationHandle.validate();
    - }
    - }
    -
    - private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
    - try {
    - write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
    - } catch (org.apache.thrift.TException te) {
    - throw new java.io.IOException(te);
    - }
    - }
    -
    - private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
    - try {
    - read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
    - } catch (org.apache.thrift.TException te) {
    - throw new java.io.IOException(te);
    - }
    - }
    -
    - private static class TCloseOperationReqStandardSchemeFactory implements SchemeFactory {
    - public TCloseOperationReqStandardScheme getScheme() {
    - return new TCloseOperationReqStandardScheme();
    - }
    - }
    -
    - private static class TCloseOperationReqStandardScheme extends StandardScheme<TCloseOperationReq> {
    -
    - public void read(org.apache.thrift.protocol.TProtocol iprot, TCloseOperationReq struct) throws org.apache.thrift.TException {
    - org.apache.thrift.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: // OPERATION_HANDLE
    - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
    - struct.operationHandle = new TOperationHandle();
    - struct.operationHandle.read(iprot);
    - struct.setOperationHandleIsSet(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.readStructEnd();
    - struct.validate();
    - }
    -
    - public void write(org.apache.thrift.protocol.TProtocol oprot, TCloseOperationReq struct) throws org.apache.thrift.TException {
    - struct.validate();
    -
    - oprot.writeStructBegin(STRUCT_DESC);
    - if (struct.operationHandle != null) {
    - oprot.writeFieldBegin(OPERATION_HANDLE_FIELD_DESC);
    - struct.operationHandle.write(oprot);
    - oprot.writeFieldEnd();
    - }
    - oprot.writeFieldStop();
    - oprot.writeStructEnd();
    - }
    -
    - }
    -
    - private static class TCloseOperationReqTupleSchemeFactory implements SchemeFactory {
    - public TCloseOperationReqTupleScheme getScheme() {
    - return new TCloseOperationReqTupleScheme();
    - }
    - }
    -
    - private static class TCloseOperationReqTupleScheme extends TupleScheme<TCloseOperationReq> {
    -
    - @Override
    - public void write(org.apache.thrift.protocol.TProtocol prot, TCloseOperationReq struct) throws org.apache.thrift.TException {
    - TTupleProtocol oprot = (TTupleProtocol) prot;
    - struct.operationHandle.write(oprot);
    - }
    -
    - @Override
    - public void read(org.apache.thrift.protocol.TProtocol prot, TCloseOperationReq struct) throws org.apache.thrift.TException {
    - TTupleProtocol iprot = (TTupleProtocol) prot;
    - struct.operationHandle = new TOperationHandle();
    - struct.operationHandle.read(iprot);
    - struct.setOperationHandleIsSet(true);
    - }
    - }
    -
    -}
    -
  • Vgumashta at Jan 8, 2016 at 12:19 am
    http://git-wip-us.apache.org/repos/asf/hive/blob/2542f5cc/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TCloseOperationResp.java
    ----------------------------------------------------------------------
    diff --git a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TCloseOperationResp.java b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TCloseOperationResp.java
    deleted file mode 100644
    index 83bcd03..0000000
    --- a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TCloseOperationResp.java
    +++ /dev/null
    @@ -1,394 +0,0 @@
    -/**
    - * Autogenerated by Thrift Compiler (0.9.3)
    - *
    - * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
    - * @generated
    - */
    -package org.apache.hive.service.cli.thrift;
    -
    -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"})
    -@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)")
    -public class TCloseOperationResp implements org.apache.thrift.TBase<TCloseOperationResp, TCloseOperationResp._Fields>, java.io.Serializable, Cloneable, Comparable<TCloseOperationResp> {
    - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TCloseOperationResp");
    -
    - private static final org.apache.thrift.protocol.TField STATUS_FIELD_DESC = new org.apache.thrift.protocol.TField("status", org.apache.thrift.protocol.TType.STRUCT, (short)1);
    -
    - private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
    - static {
    - schemes.put(StandardScheme.class, new TCloseOperationRespStandardSchemeFactory());
    - schemes.put(TupleScheme.class, new TCloseOperationRespTupleSchemeFactory());
    - }
    -
    - private TStatus status; // required
    -
    - /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
    - public enum _Fields implements org.apache.thrift.TFieldIdEnum {
    - STATUS((short)1, "status");
    -
    - private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
    -
    - static {
    - for (_Fields field : EnumSet.allOf(_Fields.class)) {
    - byName.put(field.getFieldName(), field);
    - }
    - }
    -
    - /**
    - * Find the _Fields constant that matches fieldId, or null if its not found.
    - */
    - public static _Fields findByThriftId(int fieldId) {
    - switch(fieldId) {
    - case 1: // STATUS
    - return STATUS;
    - default:
    - return null;
    - }
    - }
    -
    - /**
    - * Find the _Fields constant that matches fieldId, throwing an exception
    - * if it is not found.
    - */
    - public static _Fields findByThriftIdOrThrow(int fieldId) {
    - _Fields fields = findByThriftId(fieldId);
    - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
    - return fields;
    - }
    -
    - /**
    - * Find the _Fields constant that matches name, or null if its not found.
    - */
    - public static _Fields findByName(String name) {
    - return byName.get(name);
    - }
    -
    - private final short _thriftId;
    - private final String _fieldName;
    -
    - _Fields(short thriftId, String fieldName) {
    - _thriftId = thriftId;
    - _fieldName = fieldName;
    - }
    -
    - public short getThriftFieldId() {
    - return _thriftId;
    - }
    -
    - public String getFieldName() {
    - return _fieldName;
    - }
    - }
    -
    - // isset id assignments
    - public static final 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);
    - tmpMap.put(_Fields.STATUS, new org.apache.thrift.meta_data.FieldMetaData("status", org.apache.thrift.TFieldRequirementType.REQUIRED,
    - new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TStatus.class)));
    - metaDataMap = Collections.unmodifiableMap(tmpMap);
    - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(TCloseOperationResp.class, metaDataMap);
    - }
    -
    - public TCloseOperationResp() {
    - }
    -
    - public TCloseOperationResp(
    - TStatus status)
    - {
    - this();
    - this.status = status;
    - }
    -
    - /**
    - * Performs a deep copy on <i>other</i>.
    - */
    - public TCloseOperationResp(TCloseOperationResp other) {
    - if (other.isSetStatus()) {
    - this.status = new TStatus(other.status);
    - }
    - }
    -
    - public TCloseOperationResp deepCopy() {
    - return new TCloseOperationResp(this);
    - }
    -
    - @Override
    - public void clear() {
    - this.status = null;
    - }
    -
    - public TStatus getStatus() {
    - return this.status;
    - }
    -
    - public void setStatus(TStatus status) {
    - this.status = status;
    - }
    -
    - public void unsetStatus() {
    - this.status = null;
    - }
    -
    - /** Returns true if field status is set (has been assigned a value) and false otherwise */
    - public boolean isSetStatus() {
    - return this.status != null;
    - }
    -
    - public void setStatusIsSet(boolean value) {
    - if (!value) {
    - this.status = null;
    - }
    - }
    -
    - public void setFieldValue(_Fields field, Object value) {
    - switch (field) {
    - case STATUS:
    - if (value == null) {
    - unsetStatus();
    - } else {
    - setStatus((TStatus)value);
    - }
    - break;
    -
    - }
    - }
    -
    - public Object getFieldValue(_Fields field) {
    - switch (field) {
    - case STATUS:
    - return getStatus();
    -
    - }
    - throw new IllegalStateException();
    - }
    -
    - /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
    - public boolean isSet(_Fields field) {
    - if (field == null) {
    - throw new IllegalArgumentException();
    - }
    -
    - switch (field) {
    - case STATUS:
    - return isSetStatus();
    - }
    - throw new IllegalStateException();
    - }
    -
    - @Override
    - public boolean equals(Object that) {
    - if (that == null)
    - return false;
    - if (that instanceof TCloseOperationResp)
    - return this.equals((TCloseOperationResp)that);
    - return false;
    - }
    -
    - public boolean equals(TCloseOperationResp that) {
    - if (that == null)
    - return false;
    -
    - boolean this_present_status = true && this.isSetStatus();
    - boolean that_present_status = true && that.isSetStatus();
    - if (this_present_status || that_present_status) {
    - if (!(this_present_status && that_present_status))
    - return false;
    - if (!this.status.equals(that.status))
    - return false;
    - }
    -
    - return true;
    - }
    -
    - @Override
    - public int hashCode() {
    - List<Object> list = new ArrayList<Object>();
    -
    - boolean present_status = true && (isSetStatus());
    - list.add(present_status);
    - if (present_status)
    - list.add(status);
    -
    - return list.hashCode();
    - }
    -
    - @Override
    - public int compareTo(TCloseOperationResp other) {
    - if (!getClass().equals(other.getClass())) {
    - return getClass().getName().compareTo(other.getClass().getName());
    - }
    -
    - int lastComparison = 0;
    -
    - lastComparison = Boolean.valueOf(isSetStatus()).compareTo(other.isSetStatus());
    - if (lastComparison != 0) {
    - return lastComparison;
    - }
    - if (isSetStatus()) {
    - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.status, other.status);
    - if (lastComparison != 0) {
    - return lastComparison;
    - }
    - }
    - return 0;
    - }
    -
    - public _Fields fieldForId(int fieldId) {
    - return _Fields.findByThriftId(fieldId);
    - }
    -
    - public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
    - schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
    - }
    -
    - public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
    - schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
    - }
    -
    - @Override
    - public String toString() {
    - StringBuilder sb = new StringBuilder("TCloseOperationResp(");
    - boolean first = true;
    -
    - sb.append("status:");
    - if (this.status == null) {
    - sb.append("null");
    - } else {
    - sb.append(this.status);
    - }
    - first = false;
    - sb.append(")");
    - return sb.toString();
    - }
    -
    - public void validate() throws org.apache.thrift.TException {
    - // check for required fields
    - if (!isSetStatus()) {
    - throw new org.apache.thrift.protocol.TProtocolException("Required field 'status' is unset! Struct:" + toString());
    - }
    -
    - // check for sub-struct validity
    - if (status != null) {
    - status.validate();
    - }
    - }
    -
    - private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
    - try {
    - write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
    - } catch (org.apache.thrift.TException te) {
    - throw new java.io.IOException(te);
    - }
    - }
    -
    - private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
    - try {
    - read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
    - } catch (org.apache.thrift.TException te) {
    - throw new java.io.IOException(te);
    - }
    - }
    -
    - private static class TCloseOperationRespStandardSchemeFactory implements SchemeFactory {
    - public TCloseOperationRespStandardScheme getScheme() {
    - return new TCloseOperationRespStandardScheme();
    - }
    - }
    -
    - private static class TCloseOperationRespStandardScheme extends StandardScheme<TCloseOperationResp> {
    -
    - public void read(org.apache.thrift.protocol.TProtocol iprot, TCloseOperationResp struct) throws org.apache.thrift.TException {
    - org.apache.thrift.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.STRUCT) {
    - struct.status = new TStatus();
    - struct.status.read(iprot);
    - struct.setStatusIsSet(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.readStructEnd();
    - struct.validate();
    - }
    -
    - public void write(org.apache.thrift.protocol.TProtocol oprot, TCloseOperationResp struct) throws org.apache.thrift.TException {
    - struct.validate();
    -
    - oprot.writeStructBegin(STRUCT_DESC);
    - if (struct.status != null) {
    - oprot.writeFieldBegin(STATUS_FIELD_DESC);
    - struct.status.write(oprot);
    - oprot.writeFieldEnd();
    - }
    - oprot.writeFieldStop();
    - oprot.writeStructEnd();
    - }
    -
    - }
    -
    - private static class TCloseOperationRespTupleSchemeFactory implements SchemeFactory {
    - public TCloseOperationRespTupleScheme getScheme() {
    - return new TCloseOperationRespTupleScheme();
    - }
    - }
    -
    - private static class TCloseOperationRespTupleScheme extends TupleScheme<TCloseOperationResp> {
    -
    - @Override
    - public void write(org.apache.thrift.protocol.TProtocol prot, TCloseOperationResp struct) throws org.apache.thrift.TException {
    - TTupleProtocol oprot = (TTupleProtocol) prot;
    - struct.status.write(oprot);
    - }
    -
    - @Override
    - public void read(org.apache.thrift.protocol.TProtocol prot, TCloseOperationResp struct) throws org.apache.thrift.TException {
    - TTupleProtocol iprot = (TTupleProtocol) prot;
    - struct.status = new TStatus();
    - struct.status.read(iprot);
    - struct.setStatusIsSet(true);
    - }
    - }
    -
    -}
    -

    http://git-wip-us.apache.org/repos/asf/hive/blob/2542f5cc/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TCloseSessionReq.java
    ----------------------------------------------------------------------
    diff --git a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TCloseSessionReq.java b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TCloseSessionReq.java
    deleted file mode 100644
    index d9c989a..0000000
    --- a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TCloseSessionReq.java
    +++ /dev/null
    @@ -1,394 +0,0 @@
    -/**
    - * Autogenerated by Thrift Compiler (0.9.3)
    - *
    - * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
    - * @generated
    - */
    -package org.apache.hive.service.cli.thrift;
    -
    -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"})
    -@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)")
    -public class TCloseSessionReq implements org.apache.thrift.TBase<TCloseSessionReq, TCloseSessionReq._Fields>, java.io.Serializable, Cloneable, Comparable<TCloseSessionReq> {
    - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TCloseSessionReq");
    -
    - private static final org.apache.thrift.protocol.TField SESSION_HANDLE_FIELD_DESC = new org.apache.thrift.protocol.TField("sessionHandle", org.apache.thrift.protocol.TType.STRUCT, (short)1);
    -
    - private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
    - static {
    - schemes.put(StandardScheme.class, new TCloseSessionReqStandardSchemeFactory());
    - schemes.put(TupleScheme.class, new TCloseSessionReqTupleSchemeFactory());
    - }
    -
    - private TSessionHandle sessionHandle; // required
    -
    - /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
    - public enum _Fields implements org.apache.thrift.TFieldIdEnum {
    - SESSION_HANDLE((short)1, "sessionHandle");
    -
    - private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
    -
    - static {
    - for (_Fields field : EnumSet.allOf(_Fields.class)) {
    - byName.put(field.getFieldName(), field);
    - }
    - }
    -
    - /**
    - * Find the _Fields constant that matches fieldId, or null if its not found.
    - */
    - public static _Fields findByThriftId(int fieldId) {
    - switch(fieldId) {
    - case 1: // SESSION_HANDLE
    - return SESSION_HANDLE;
    - default:
    - return null;
    - }
    - }
    -
    - /**
    - * Find the _Fields constant that matches fieldId, throwing an exception
    - * if it is not found.
    - */
    - public static _Fields findByThriftIdOrThrow(int fieldId) {
    - _Fields fields = findByThriftId(fieldId);
    - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
    - return fields;
    - }
    -
    - /**
    - * Find the _Fields constant that matches name, or null if its not found.
    - */
    - public static _Fields findByName(String name) {
    - return byName.get(name);
    - }
    -
    - private final short _thriftId;
    - private final String _fieldName;
    -
    - _Fields(short thriftId, String fieldName) {
    - _thriftId = thriftId;
    - _fieldName = fieldName;
    - }
    -
    - public short getThriftFieldId() {
    - return _thriftId;
    - }
    -
    - public String getFieldName() {
    - return _fieldName;
    - }
    - }
    -
    - // isset id assignments
    - public static final 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);
    - tmpMap.put(_Fields.SESSION_HANDLE, new org.apache.thrift.meta_data.FieldMetaData("sessionHandle", org.apache.thrift.TFieldRequirementType.REQUIRED,
    - new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TSessionHandle.class)));
    - metaDataMap = Collections.unmodifiableMap(tmpMap);
    - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(TCloseSessionReq.class, metaDataMap);
    - }
    -
    - public TCloseSessionReq() {
    - }
    -
    - public TCloseSessionReq(
    - TSessionHandle sessionHandle)
    - {
    - this();
    - this.sessionHandle = sessionHandle;
    - }
    -
    - /**
    - * Performs a deep copy on <i>other</i>.
    - */
    - public TCloseSessionReq(TCloseSessionReq other) {
    - if (other.isSetSessionHandle()) {
    - this.sessionHandle = new TSessionHandle(other.sessionHandle);
    - }
    - }
    -
    - public TCloseSessionReq deepCopy() {
    - return new TCloseSessionReq(this);
    - }
    -
    - @Override
    - public void clear() {
    - this.sessionHandle = null;
    - }
    -
    - public TSessionHandle getSessionHandle() {
    - return this.sessionHandle;
    - }
    -
    - public void setSessionHandle(TSessionHandle sessionHandle) {
    - this.sessionHandle = sessionHandle;
    - }
    -
    - public void unsetSessionHandle() {
    - this.sessionHandle = null;
    - }
    -
    - /** Returns true if field sessionHandle is set (has been assigned a value) and false otherwise */
    - public boolean isSetSessionHandle() {
    - return this.sessionHandle != null;
    - }
    -
    - public void setSessionHandleIsSet(boolean value) {
    - if (!value) {
    - this.sessionHandle = null;
    - }
    - }
    -
    - public void setFieldValue(_Fields field, Object value) {
    - switch (field) {
    - case SESSION_HANDLE:
    - if (value == null) {
    - unsetSessionHandle();
    - } else {
    - setSessionHandle((TSessionHandle)value);
    - }
    - break;
    -
    - }
    - }
    -
    - public Object getFieldValue(_Fields field) {
    - switch (field) {
    - case SESSION_HANDLE:
    - return getSessionHandle();
    -
    - }
    - throw new IllegalStateException();
    - }
    -
    - /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
    - public boolean isSet(_Fields field) {
    - if (field == null) {
    - throw new IllegalArgumentException();
    - }
    -
    - switch (field) {
    - case SESSION_HANDLE:
    - return isSetSessionHandle();
    - }
    - throw new IllegalStateException();
    - }
    -
    - @Override
    - public boolean equals(Object that) {
    - if (that == null)
    - return false;
    - if (that instanceof TCloseSessionReq)
    - return this.equals((TCloseSessionReq)that);
    - return false;
    - }
    -
    - public boolean equals(TCloseSessionReq that) {
    - if (that == null)
    - return false;
    -
    - boolean this_present_sessionHandle = true && this.isSetSessionHandle();
    - boolean that_present_sessionHandle = true && that.isSetSessionHandle();
    - if (this_present_sessionHandle || that_present_sessionHandle) {
    - if (!(this_present_sessionHandle && that_present_sessionHandle))
    - return false;
    - if (!this.sessionHandle.equals(that.sessionHandle))
    - return false;
    - }
    -
    - return true;
    - }
    -
    - @Override
    - public int hashCode() {
    - List<Object> list = new ArrayList<Object>();
    -
    - boolean present_sessionHandle = true && (isSetSessionHandle());
    - list.add(present_sessionHandle);
    - if (present_sessionHandle)
    - list.add(sessionHandle);
    -
    - return list.hashCode();
    - }
    -
    - @Override
    - public int compareTo(TCloseSessionReq other) {
    - if (!getClass().equals(other.getClass())) {
    - return getClass().getName().compareTo(other.getClass().getName());
    - }
    -
    - int lastComparison = 0;
    -
    - lastComparison = Boolean.valueOf(isSetSessionHandle()).compareTo(other.isSetSessionHandle());
    - if (lastComparison != 0) {
    - return lastComparison;
    - }
    - if (isSetSessionHandle()) {
    - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.sessionHandle, other.sessionHandle);
    - if (lastComparison != 0) {
    - return lastComparison;
    - }
    - }
    - return 0;
    - }
    -
    - public _Fields fieldForId(int fieldId) {
    - return _Fields.findByThriftId(fieldId);
    - }
    -
    - public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
    - schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
    - }
    -
    - public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
    - schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
    - }
    -
    - @Override
    - public String toString() {
    - StringBuilder sb = new StringBuilder("TCloseSessionReq(");
    - boolean first = true;
    -
    - sb.append("sessionHandle:");
    - if (this.sessionHandle == null) {
    - sb.append("null");
    - } else {
    - sb.append(this.sessionHandle);
    - }
    - first = false;
    - sb.append(")");
    - return sb.toString();
    - }
    -
    - public void validate() throws org.apache.thrift.TException {
    - // check for required fields
    - if (!isSetSessionHandle()) {
    - throw new org.apache.thrift.protocol.TProtocolException("Required field 'sessionHandle' is unset! Struct:" + toString());
    - }
    -
    - // check for sub-struct validity
    - if (sessionHandle != null) {
    - sessionHandle.validate();
    - }
    - }
    -
    - private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
    - try {
    - write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
    - } catch (org.apache.thrift.TException te) {
    - throw new java.io.IOException(te);
    - }
    - }
    -
    - private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
    - try {
    - read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
    - } catch (org.apache.thrift.TException te) {
    - throw new java.io.IOException(te);
    - }
    - }
    -
    - private static class TCloseSessionReqStandardSchemeFactory implements SchemeFactory {
    - public TCloseSessionReqStandardScheme getScheme() {
    - return new TCloseSessionReqStandardScheme();
    - }
    - }
    -
    - private static class TCloseSessionReqStandardScheme extends StandardScheme<TCloseSessionReq> {
    -
    - public void read(org.apache.thrift.protocol.TProtocol iprot, TCloseSessionReq struct) throws org.apache.thrift.TException {
    - org.apache.thrift.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_HANDLE
    - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
    - struct.sessionHandle = new TSessionHandle();
    - struct.sessionHandle.read(iprot);
    - struct.setSessionHandleIsSet(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.readStructEnd();
    - struct.validate();
    - }
    -
    - public void write(org.apache.thrift.protocol.TProtocol oprot, TCloseSessionReq struct) throws org.apache.thrift.TException {
    - struct.validate();
    -
    - oprot.writeStructBegin(STRUCT_DESC);
    - if (struct.sessionHandle != null) {
    - oprot.writeFieldBegin(SESSION_HANDLE_FIELD_DESC);
    - struct.sessionHandle.write(oprot);
    - oprot.writeFieldEnd();
    - }
    - oprot.writeFieldStop();
    - oprot.writeStructEnd();
    - }
    -
    - }
    -
    - private static class TCloseSessionReqTupleSchemeFactory implements SchemeFactory {
    - public TCloseSessionReqTupleScheme getScheme() {
    - return new TCloseSessionReqTupleScheme();
    - }
    - }
    -
    - private static class TCloseSessionReqTupleScheme extends TupleScheme<TCloseSessionReq> {
    -
    - @Override
    - public void write(org.apache.thrift.protocol.TProtocol prot, TCloseSessionReq struct) throws org.apache.thrift.TException {
    - TTupleProtocol oprot = (TTupleProtocol) prot;
    - struct.sessionHandle.write(oprot);
    - }
    -
    - @Override
    - public void read(org.apache.thrift.protocol.TProtocol prot, TCloseSessionReq struct) throws org.apache.thrift.TException {
    - TTupleProtocol iprot = (TTupleProtocol) prot;
    - struct.sessionHandle = new TSessionHandle();
    - struct.sessionHandle.read(iprot);
    - struct.setSessionHandleIsSet(true);
    - }
    - }
    -
    -}
    -

    http://git-wip-us.apache.org/repos/asf/hive/blob/2542f5cc/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TCloseSessionResp.java
    ----------------------------------------------------------------------
    diff --git a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TCloseSessionResp.java b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TCloseSessionResp.java
    deleted file mode 100644
    index 7c64d4d..0000000
    --- a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TCloseSessionResp.java
    +++ /dev/null
    @@ -1,394 +0,0 @@
    -/**
    - * Autogenerated by Thrift Compiler (0.9.3)
    - *
    - * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
    - * @generated
    - */
    -package org.apache.hive.service.cli.thrift;
    -
    -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"})
    -@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)")
    -public class TCloseSessionResp implements org.apache.thrift.TBase<TCloseSessionResp, TCloseSessionResp._Fields>, java.io.Serializable, Cloneable, Comparable<TCloseSessionResp> {
    - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TCloseSessionResp");
    -
    - private static final org.apache.thrift.protocol.TField STATUS_FIELD_DESC = new org.apache.thrift.protocol.TField("status", org.apache.thrift.protocol.TType.STRUCT, (short)1);
    -
    - private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
    - static {
    - schemes.put(StandardScheme.class, new TCloseSessionRespStandardSchemeFactory());
    - schemes.put(TupleScheme.class, new TCloseSessionRespTupleSchemeFactory());
    - }
    -
    - private TStatus status; // required
    -
    - /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
    - public enum _Fields implements org.apache.thrift.TFieldIdEnum {
    - STATUS((short)1, "status");
    -
    - private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
    -
    - static {
    - for (_Fields field : EnumSet.allOf(_Fields.class)) {
    - byName.put(field.getFieldName(), field);
    - }
    - }
    -
    - /**
    - * Find the _Fields constant that matches fieldId, or null if its not found.
    - */
    - public static _Fields findByThriftId(int fieldId) {
    - switch(fieldId) {
    - case 1: // STATUS
    - return STATUS;
    - default:
    - return null;
    - }
    - }
    -
    - /**
    - * Find the _Fields constant that matches fieldId, throwing an exception
    - * if it is not found.
    - */
    - public static _Fields findByThriftIdOrThrow(int fieldId) {
    - _Fields fields = findByThriftId(fieldId);
    - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
    - return fields;
    - }
    -
    - /**
    - * Find the _Fields constant that matches name, or null if its not found.
    - */
    - public static _Fields findByName(String name) {
    - return byName.get(name);
    - }
    -
    - private final short _thriftId;
    - private final String _fieldName;
    -
    - _Fields(short thriftId, String fieldName) {
    - _thriftId = thriftId;
    - _fieldName = fieldName;
    - }
    -
    - public short getThriftFieldId() {
    - return _thriftId;
    - }
    -
    - public String getFieldName() {
    - return _fieldName;
    - }
    - }
    -
    - // isset id assignments
    - public static final 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);
    - tmpMap.put(_Fields.STATUS, new org.apache.thrift.meta_data.FieldMetaData("status", org.apache.thrift.TFieldRequirementType.REQUIRED,
    - new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TStatus.class)));
    - metaDataMap = Collections.unmodifiableMap(tmpMap);
    - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(TCloseSessionResp.class, metaDataMap);
    - }
    -
    - public TCloseSessionResp() {
    - }
    -
    - public TCloseSessionResp(
    - TStatus status)
    - {
    - this();
    - this.status = status;
    - }
    -
    - /**
    - * Performs a deep copy on <i>other</i>.
    - */
    - public TCloseSessionResp(TCloseSessionResp other) {
    - if (other.isSetStatus()) {
    - this.status = new TStatus(other.status);
    - }
    - }
    -
    - public TCloseSessionResp deepCopy() {
    - return new TCloseSessionResp(this);
    - }
    -
    - @Override
    - public void clear() {
    - this.status = null;
    - }
    -
    - public TStatus getStatus() {
    - return this.status;
    - }
    -
    - public void setStatus(TStatus status) {
    - this.status = status;
    - }
    -
    - public void unsetStatus() {
    - this.status = null;
    - }
    -
    - /** Returns true if field status is set (has been assigned a value) and false otherwise */
    - public boolean isSetStatus() {
    - return this.status != null;
    - }
    -
    - public void setStatusIsSet(boolean value) {
    - if (!value) {
    - this.status = null;
    - }
    - }
    -
    - public void setFieldValue(_Fields field, Object value) {
    - switch (field) {
    - case STATUS:
    - if (value == null) {
    - unsetStatus();
    - } else {
    - setStatus((TStatus)value);
    - }
    - break;
    -
    - }
    - }
    -
    - public Object getFieldValue(_Fields field) {
    - switch (field) {
    - case STATUS:
    - return getStatus();
    -
    - }
    - throw new IllegalStateException();
    - }
    -
    - /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
    - public boolean isSet(_Fields field) {
    - if (field == null) {
    - throw new IllegalArgumentException();
    - }
    -
    - switch (field) {
    - case STATUS:
    - return isSetStatus();
    - }
    - throw new IllegalStateException();
    - }
    -
    - @Override
    - public boolean equals(Object that) {
    - if (that == null)
    - return false;
    - if (that instanceof TCloseSessionResp)
    - return this.equals((TCloseSessionResp)that);
    - return false;
    - }
    -
    - public boolean equals(TCloseSessionResp that) {
    - if (that == null)
    - return false;
    -
    - boolean this_present_status = true && this.isSetStatus();
    - boolean that_present_status = true && that.isSetStatus();
    - if (this_present_status || that_present_status) {
    - if (!(this_present_status && that_present_status))
    - return false;
    - if (!this.status.equals(that.status))
    - return false;
    - }
    -
    - return true;
    - }
    -
    - @Override
    - public int hashCode() {
    - List<Object> list = new ArrayList<Object>();
    -
    - boolean present_status = true && (isSetStatus());
    - list.add(present_status);
    - if (present_status)
    - list.add(status);
    -
    - return list.hashCode();
    - }
    -
    - @Override
    - public int compareTo(TCloseSessionResp other) {
    - if (!getClass().equals(other.getClass())) {
    - return getClass().getName().compareTo(other.getClass().getName());
    - }
    -
    - int lastComparison = 0;
    -
    - lastComparison = Boolean.valueOf(isSetStatus()).compareTo(other.isSetStatus());
    - if (lastComparison != 0) {
    - return lastComparison;
    - }
    - if (isSetStatus()) {
    - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.status, other.status);
    - if (lastComparison != 0) {
    - return lastComparison;
    - }
    - }
    - return 0;
    - }
    -
    - public _Fields fieldForId(int fieldId) {
    - return _Fields.findByThriftId(fieldId);
    - }
    -
    - public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
    - schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
    - }
    -
    - public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
    - schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
    - }
    -
    - @Override
    - public String toString() {
    - StringBuilder sb = new StringBuilder("TCloseSessionResp(");
    - boolean first = true;
    -
    - sb.append("status:");
    - if (this.status == null) {
    - sb.append("null");
    - } else {
    - sb.append(this.status);
    - }
    - first = false;
    - sb.append(")");
    - return sb.toString();
    - }
    -
    - public void validate() throws org.apache.thrift.TException {
    - // check for required fields
    - if (!isSetStatus()) {
    - throw new org.apache.thrift.protocol.TProtocolException("Required field 'status' is unset! Struct:" + toString());
    - }
    -
    - // check for sub-struct validity
    - if (status != null) {
    - status.validate();
    - }
    - }
    -
    - private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
    - try {
    - write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
    - } catch (org.apache.thrift.TException te) {
    - throw new java.io.IOException(te);
    - }
    - }
    -
    - private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
    - try {
    - read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
    - } catch (org.apache.thrift.TException te) {
    - throw new java.io.IOException(te);
    - }
    - }
    -
    - private static class TCloseSessionRespStandardSchemeFactory implements SchemeFactory {
    - public TCloseSessionRespStandardScheme getScheme() {
    - return new TCloseSessionRespStandardScheme();
    - }
    - }
    -
    - private static class TCloseSessionRespStandardScheme extends StandardScheme<TCloseSessionResp> {
    -
    - public void read(org.apache.thrift.protocol.TProtocol iprot, TCloseSessionResp struct) throws org.apache.thrift.TException {
    - org.apache.thrift.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.STRUCT) {
    - struct.status = new TStatus();
    - struct.status.read(iprot);
    - struct.setStatusIsSet(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.readStructEnd();
    - struct.validate();
    - }
    -
    - public void write(org.apache.thrift.protocol.TProtocol oprot, TCloseSessionResp struct) throws org.apache.thrift.TException {
    - struct.validate();
    -
    - oprot.writeStructBegin(STRUCT_DESC);
    - if (struct.status != null) {
    - oprot.writeFieldBegin(STATUS_FIELD_DESC);
    - struct.status.write(oprot);
    - oprot.writeFieldEnd();
    - }
    - oprot.writeFieldStop();
    - oprot.writeStructEnd();
    - }
    -
    - }
    -
    - private static class TCloseSessionRespTupleSchemeFactory implements SchemeFactory {
    - public TCloseSessionRespTupleScheme getScheme() {
    - return new TCloseSessionRespTupleScheme();
    - }
    - }
    -
    - private static class TCloseSessionRespTupleScheme extends TupleScheme<TCloseSessionResp> {
    -
    - @Override
    - public void write(org.apache.thrift.protocol.TProtocol prot, TCloseSessionResp struct) throws org.apache.thrift.TException {
    - TTupleProtocol oprot = (TTupleProtocol) prot;
    - struct.status.write(oprot);
    - }
    -
    - @Override
    - public void read(org.apache.thrift.protocol.TProtocol prot, TCloseSessionResp struct) throws org.apache.thrift.TException {
    - TTupleProtocol iprot = (TTupleProtocol) prot;
    - struct.status = new TStatus();
    - struct.status.read(iprot);
    - struct.setStatusIsSet(true);
    - }
    - }
    -
    -}
    -

    http://git-wip-us.apache.org/repos/asf/hive/blob/2542f5cc/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TColumn.java
    ----------------------------------------------------------------------
    diff --git a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TColumn.java b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TColumn.java
    deleted file mode 100644
    index 082b9b4..0000000
    --- a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TColumn.java
    +++ /dev/null
    @@ -1,736 +0,0 @@
    -/**
    - * Autogenerated by Thrift Compiler (0.9.3)
    - *
    - * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
    - * @generated
    - */
    -package org.apache.hive.service.cli.thrift;
    -
    -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"})
    -public class TColumn extends org.apache.thrift.TUnion<TColumn, TColumn._Fields> {
    - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TColumn");
    - private static final org.apache.thrift.protocol.TField BOOL_VAL_FIELD_DESC = new org.apache.thrift.protocol.TField("boolVal", org.apache.thrift.protocol.TType.STRUCT, (short)1);
    - private static final org.apache.thrift.protocol.TField BYTE_VAL_FIELD_DESC = new org.apache.thrift.protocol.TField("byteVal", org.apache.thrift.protocol.TType.STRUCT, (short)2);
    - private static final org.apache.thrift.protocol.TField I16_VAL_FIELD_DESC = new org.apache.thrift.protocol.TField("i16Val", org.apache.thrift.protocol.TType.STRUCT, (short)3);
    - private static final org.apache.thrift.protocol.TField I32_VAL_FIELD_DESC = new org.apache.thrift.protocol.TField("i32Val", org.apache.thrift.protocol.TType.STRUCT, (short)4);
    - private static final org.apache.thrift.protocol.TField I64_VAL_FIELD_DESC = new org.apache.thrift.protocol.TField("i64Val", org.apache.thrift.protocol.TType.STRUCT, (short)5);
    - private static final org.apache.thrift.protocol.TField DOUBLE_VAL_FIELD_DESC = new org.apache.thrift.protocol.TField("doubleVal", org.apache.thrift.protocol.TType.STRUCT, (short)6);
    - private static final org.apache.thrift.protocol.TField STRING_VAL_FIELD_DESC = new org.apache.thrift.protocol.TField("stringVal", org.apache.thrift.protocol.TType.STRUCT, (short)7);
    - private static final org.apache.thrift.protocol.TField BINARY_VAL_FIELD_DESC = new org.apache.thrift.protocol.TField("binaryVal", org.apache.thrift.protocol.TType.STRUCT, (short)8);
    -
    - /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
    - public enum _Fields implements org.apache.thrift.TFieldIdEnum {
    - BOOL_VAL((short)1, "boolVal"),
    - BYTE_VAL((short)2, "byteVal"),
    - I16_VAL((short)3, "i16Val"),
    - I32_VAL((short)4, "i32Val"),
    - I64_VAL((short)5, "i64Val"),
    - DOUBLE_VAL((short)6, "doubleVal"),
    - STRING_VAL((short)7, "stringVal"),
    - BINARY_VAL((short)8, "binaryVal");
    -
    - private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
    -
    - static {
    - for (_Fields field : EnumSet.allOf(_Fields.class)) {
    - byName.put(field.getFieldName(), field);
    - }
    - }
    -
    - /**
    - * Find the _Fields constant that matches fieldId, or null if its not found.
    - */
    - public static _Fields findByThriftId(int fieldId) {
    - switch(fieldId) {
    - case 1: // BOOL_VAL
    - return BOOL_VAL;
    - case 2: // BYTE_VAL
    - return BYTE_VAL;
    - case 3: // I16_VAL
    - return I16_VAL;
    - case 4: // I32_VAL
    - return I32_VAL;
    - case 5: // I64_VAL
    - return I64_VAL;
    - case 6: // DOUBLE_VAL
    - return DOUBLE_VAL;
    - case 7: // STRING_VAL
    - return STRING_VAL;
    - case 8: // BINARY_VAL
    - return BINARY_VAL;
    - default:
    - return null;
    - }
    - }
    -
    - /**
    - * Find the _Fields constant that matches fieldId, throwing an exception
    - * if it is not found.
    - */
    - public static _Fields findByThriftIdOrThrow(int fieldId) {
    - _Fields fields = findByThriftId(fieldId);
    - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
    - return fields;
    - }
    -
    - /**
    - * Find the _Fields constant that matches name, or null if its not found.
    - */
    - public static _Fields findByName(String name) {
    - return byName.get(name);
    - }
    -
    - private final short _thriftId;
    - private final String _fieldName;
    -
    - _Fields(short thriftId, String fieldName) {
    - _thriftId = thriftId;
    - _fieldName = fieldName;
    - }
    -
    - public short getThriftFieldId() {
    - return _thriftId;
    - }
    -
    - public String getFieldName() {
    - return _fieldName;
    - }
    - }
    -
    - public static final 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);
    - tmpMap.put(_Fields.BOOL_VAL, new org.apache.thrift.meta_data.FieldMetaData("boolVal", org.apache.thrift.TFieldRequirementType.DEFAULT,
    - new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TBoolColumn.class)));
    - tmpMap.put(_Fields.BYTE_VAL, new org.apache.thrift.meta_data.FieldMetaData("byteVal", org.apache.thrift.TFieldRequirementType.DEFAULT,
    - new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TByteColumn.class)));
    - tmpMap.put(_Fields.I16_VAL, new org.apache.thrift.meta_data.FieldMetaData("i16Val", org.apache.thrift.TFieldRequirementType.DEFAULT,
    - new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TI16Column.class)));
    - tmpMap.put(_Fields.I32_VAL, new org.apache.thrift.meta_data.FieldMetaData("i32Val", org.apache.thrift.TFieldRequirementType.DEFAULT,
    - new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TI32Column.class)));
    - tmpMap.put(_Fields.I64_VAL, new org.apache.thrift.meta_data.FieldMetaData("i64Val", org.apache.thrift.TFieldRequirementType.DEFAULT,
    - new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TI64Column.class)));
    - tmpMap.put(_Fields.DOUBLE_VAL, new org.apache.thrift.meta_data.FieldMetaData("doubleVal", org.apache.thrift.TFieldRequirementType.DEFAULT,
    - new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TDoubleColumn.class)));
    - tmpMap.put(_Fields.STRING_VAL, new org.apache.thrift.meta_data.FieldMetaData("stringVal", org.apache.thrift.TFieldRequirementType.DEFAULT,
    - new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TStringColumn.class)));
    - tmpMap.put(_Fields.BINARY_VAL, new org.apache.thrift.meta_data.FieldMetaData("binaryVal", org.apache.thrift.TFieldRequirementType.DEFAULT,
    - new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TBinaryColumn.class)));
    - metaDataMap = Collections.unmodifiableMap(tmpMap);
    - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(TColumn.class, metaDataMap);
    - }
    -
    - public TColumn() {
    - super();
    - }
    -
    - public TColumn(_Fields setField, Object value) {
    - super(setField, value);
    - }
    -
    - public TColumn(TColumn other) {
    - super(other);
    - }
    - public TColumn deepCopy() {
    - return new TColumn(this);
    - }
    -
    - public static TColumn boolVal(TBoolColumn value) {
    - TColumn x = new TColumn();
    - x.setBoolVal(value);
    - return x;
    - }
    -
    - public static TColumn byteVal(TByteColumn value) {
    - TColumn x = new TColumn();
    - x.setByteVal(value);
    - return x;
    - }
    -
    - public static TColumn i16Val(TI16Column value) {
    - TColumn x = new TColumn();
    - x.setI16Val(value);
    - return x;
    - }
    -
    - public static TColumn i32Val(TI32Column value) {
    - TColumn x = new TColumn();
    - x.setI32Val(value);
    - return x;
    - }
    -
    - public static TColumn i64Val(TI64Column value) {
    - TColumn x = new TColumn();
    - x.setI64Val(value);
    - return x;
    - }
    -
    - public static TColumn doubleVal(TDoubleColumn value) {
    - TColumn x = new TColumn();
    - x.setDoubleVal(value);
    - return x;
    - }
    -
    - public static TColumn stringVal(TStringColumn value) {
    - TColumn x = new TColumn();
    - x.setStringVal(value);
    - return x;
    - }
    -
    - public static TColumn binaryVal(TBinaryColumn value) {
    - TColumn x = new TColumn();
    - x.setBinaryVal(value);
    - return x;
    - }
    -
    -
    - @Override
    - protected void checkType(_Fields setField, Object value) throws ClassCastException {
    - switch (setField) {
    - case BOOL_VAL:
    - if (value instanceof TBoolColumn) {
    - break;
    - }
    - throw new ClassCastException("Was expecting value of type TBoolColumn for field 'boolVal', but got " + value.getClass().getSimpleName());
    - case BYTE_VAL:
    - if (value instanceof TByteColumn) {
    - break;
    - }
    - throw new ClassCastException("Was expecting value of type TByteColumn for field 'byteVal', but got " + value.getClass().getSimpleName());
    - case I16_VAL:
    - if (value instanceof TI16Column) {
    - break;
    - }
    - throw new ClassCastException("Was expecting value of type TI16Column for field 'i16Val', but got " + value.getClass().getSimpleName());
    - case I32_VAL:
    - if (value instanceof TI32Column) {
    - break;
    - }
    - throw new ClassCastException("Was expecting value of type TI32Column for field 'i32Val', but got " + value.getClass().getSimpleName());
    - case I64_VAL:
    - if (value instanceof TI64Column) {
    - break;
    - }
    - throw new ClassCastException("Was expecting value of type TI64Column for field 'i64Val', but got " + value.getClass().getSimpleName());
    - case DOUBLE_VAL:
    - if (value instanceof TDoubleColumn) {
    - break;
    - }
    - throw new ClassCastException("Was expecting value of type TDoubleColumn for field 'doubleVal', but got " + value.getClass().getSimpleName());
    - case STRING_VAL:
    - if (value instanceof TStringColumn) {
    - break;
    - }
    - throw new ClassCastException("Was expecting value of type TStringColumn for field 'stringVal', but got " + value.getClass().getSimpleName());
    - case BINARY_VAL:
    - if (value instanceof TBinaryColumn) {
    - break;
    - }
    - throw new ClassCastException("Was expecting value of type TBinaryColumn for field 'binaryVal', but got " + value.getClass().getSimpleName());
    - default:
    - throw new IllegalArgumentException("Unknown field id " + setField);
    - }
    - }
    -
    - @Override
    - protected Object standardSchemeReadValue(org.apache.thrift.protocol.TProtocol iprot, org.apache.thrift.protocol.TField field) throws org.apache.thrift.TException {
    - _Fields setField = _Fields.findByThriftId(field.id);
    - if (setField != null) {
    - switch (setField) {
    - case BOOL_VAL:
    - if (field.type == BOOL_VAL_FIELD_DESC.type) {
    - TBoolColumn boolVal;
    - boolVal = new TBoolColumn();
    - boolVal.read(iprot);
    - return boolVal;
    - } else {
    - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
    - return null;
    - }
    - case BYTE_VAL:
    - if (field.type == BYTE_VAL_FIELD_DESC.type) {
    - TByteColumn byteVal;
    - byteVal = new TByteColumn();
    - byteVal.read(iprot);
    - return byteVal;
    - } else {
    - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
    - return null;
    - }
    - case I16_VAL:
    - if (field.type == I16_VAL_FIELD_DESC.type) {
    - TI16Column i16Val;
    - i16Val = new TI16Column();
    - i16Val.read(iprot);
    - return i16Val;
    - } else {
    - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
    - return null;
    - }
    - case I32_VAL:
    - if (field.type == I32_VAL_FIELD_DESC.type) {
    - TI32Column i32Val;
    - i32Val = new TI32Column();
    - i32Val.read(iprot);
    - return i32Val;
    - } else {
    - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
    - return null;
    - }
    - case I64_VAL:
    - if (field.type == I64_VAL_FIELD_DESC.type) {
    - TI64Column i64Val;
    - i64Val = new TI64Column();
    - i64Val.read(iprot);
    - return i64Val;
    - } else {
    - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
    - return null;
    - }
    - case DOUBLE_VAL:
    - if (field.type == DOUBLE_VAL_FIELD_DESC.type) {
    - TDoubleColumn doubleVal;
    - doubleVal = new TDoubleColumn();
    - doubleVal.read(iprot);
    - return doubleVal;
    - } else {
    - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
    - return null;
    - }
    - case STRING_VAL:
    - if (field.type == STRING_VAL_FIELD_DESC.type) {
    - TStringColumn stringVal;
    - stringVal = new TStringColumn();
    - stringVal.read(iprot);
    - return stringVal;
    - } else {
    - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
    - return null;
    - }
    - case BINARY_VAL:
    - if (field.type == BINARY_VAL_FIELD_DESC.type) {
    - TBinaryColumn binaryVal;
    - binaryVal = new TBinaryColumn();
    - binaryVal.read(iprot);
    - return binaryVal;
    - } else {
    - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
    - return null;
    - }
    - default:
    - throw new IllegalStateException("setField wasn't null, but didn't match any of the case statements!");
    - }
    - } else {
    - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
    - return null;
    - }
    - }
    -
    - @Override
    - protected void standardSchemeWriteValue(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
    - switch (setField_) {
    - case BOOL_VAL:
    - TBoolColumn boolVal = (TBoolColumn)value_;
    - boolVal.write(oprot);
    - return;
    - case BYTE_VAL:
    - TByteColumn byteVal = (TByteColumn)value_;
    - byteVal.write(oprot);
    - return;
    - case I16_VAL:
    - TI16Column i16Val = (TI16Column)value_;
    - i16Val.write(oprot);
    - return;
    - case I32_VAL:
    - TI32Column i32Val = (TI32Column)value_;
    - i32Val.write(oprot);
    - return;
    - case I64_VAL:
    - TI64Column i64Val = (TI64Column)value_;
    - i64Val.write(oprot);
    - return;
    - case DOUBLE_VAL:
    - TDoubleColumn doubleVal = (TDoubleColumn)value_;
    - doubleVal.write(oprot);
    - return;
    - case STRING_VAL:
    - TStringColumn stringVal = (TStringColumn)value_;
    - stringVal.write(oprot);
    - return;
    - case BINARY_VAL:
    - TBinaryColumn binaryVal = (TBinaryColumn)value_;
    - binaryVal.write(oprot);
    - return;
    - default:
    - throw new IllegalStateException("Cannot write union with unknown field " + setField_);
    - }
    - }
    -
    - @Override
    - protected Object tupleSchemeReadValue(org.apache.thrift.protocol.TProtocol iprot, short fieldID) throws org.apache.thrift.TException {
    - _Fields setField = _Fields.findByThriftId(fieldID);
    - if (setField != null) {
    - switch (setField) {
    - case BOOL_VAL:
    - TBoolColumn boolVal;
    - boolVal = new TBoolColumn();
    - boolVal.read(iprot);
    - return boolVal;
    - case BYTE_VAL:
    - TByteColumn byteVal;
    - byteVal = new TByteColumn();
    - byteVal.read(iprot);
    - return byteVal;
    - case I16_VAL:
    - TI16Column i16Val;
    - i16Val = new TI16Column();
    - i16Val.read(iprot);
    - return i16Val;
    - case I32_VAL:
    - TI32Column i32Val;
    - i32Val = new TI32Column();
    - i32Val.read(iprot);
    - return i32Val;
    - case I64_VAL:
    - TI64Column i64Val;
    - i64Val = new TI64Column();
    - i64Val.read(iprot);
    - return i64Val;
    - case DOUBLE_VAL:
    - TDoubleColumn doubleVal;
    - doubleVal = new TDoubleColumn();
    - doubleVal.read(iprot);
    - return doubleVal;
    - case STRING_VAL:
    - TStringColumn stringVal;
    - stringVal = new TStringColumn();
    - stringVal.read(iprot);
    - return stringVal;
    - case BINARY_VAL:
    - TBinaryColumn binaryVal;
    - binaryVal = new TBinaryColumn();
    - binaryVal.read(iprot);
    - return binaryVal;
    - default:
    - throw new IllegalStateException("setField wasn't null, but didn't match any of the case statements!");
    - }
    - } else {
    - throw new TProtocolException("Couldn't find a field with field id " + fieldID);
    - }
    - }
    -
    - @Override
    - protected void tupleSchemeWriteValue(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
    - switch (setField_) {
    - case BOOL_VAL:
    - TBoolColumn boolVal = (TBoolColumn)value_;
    - boolVal.write(oprot);
    - return;
    - case BYTE_VAL:
    - TByteColumn byteVal = (TByteColumn)value_;
    - byteVal.write(oprot);
    - return;
    - case I16_VAL:
    - TI16Column i16Val = (TI16Column)value_;
    - i16Val.write(oprot);
    - return;
    - case I32_VAL:
    - TI32Column i32Val = (TI32Column)value_;
    - i32Val.write(oprot);
    - return;
    - case I64_VAL:
    - TI64Column i64Val = (TI64Column)value_;
    - i64Val.write(oprot);
    - return;
    - case DOUBLE_VAL:
    - TDoubleColumn doubleVal = (TDoubleColumn)value_;
    - doubleVal.write(oprot);
    - return;
    - case STRING_VAL:
    - TStringColumn stringVal = (TStringColumn)value_;
    - stringVal.write(oprot);
    - return;
    - case BINARY_VAL:
    - TBinaryColumn binaryVal = (TBinaryColumn)value_;
    - binaryVal.write(oprot);
    - return;
    - default:
    - throw new IllegalStateException("Cannot write union with unknown field " + setField_);
    - }
    - }
    -
    - @Override
    - protected org.apache.thrift.protocol.TField getFieldDesc(_Fields setField) {
    - switch (setField) {
    - case BOOL_VAL:
    - return BOOL_VAL_FIELD_DESC;
    - case BYTE_VAL:
    - return BYTE_VAL_FIELD_DESC;
    - case I16_VAL:
    - return I16_VAL_FIELD_DESC;
    - case I32_VAL:
    - return I32_VAL_FIELD_DESC;
    - case I64_VAL:
    - return I64_VAL_FIELD_DESC;
    - case DOUBLE_VAL:
    - return DOUBLE_VAL_FIELD_DESC;
    - case STRING_VAL:
    - return STRING_VAL_FIELD_DESC;
    - case BINARY_VAL:
    - return BINARY_VAL_FIELD_DESC;
    - default:
    - throw new IllegalArgumentException("Unknown field id " + setField);
    - }
    - }
    -
    - @Override
    - protected org.apache.thrift.protocol.TStruct getStructDesc() {
    - return STRUCT_DESC;
    - }
    -
    - @Override
    - protected _Fields enumForId(short id) {
    - return _Fields.findByThriftIdOrThrow(id);
    - }
    -
    - public _Fields fieldForId(int fieldId) {
    - return _Fields.findByThriftId(fieldId);
    - }
    -
    -
    - public TBoolColumn getBoolVal() {
    - if (getSetField() == _Fields.BOOL_VAL) {
    - return (TBoolColumn)getFieldValue();
    - } else {
    - throw new RuntimeException("Cannot get field 'boolVal' because union is currently set to " + getFieldDesc(getSetField()).name);
    - }
    - }
    -
    - public void setBoolVal(TBoolColumn value) {
    - if (value == null) throw new NullPointerException();
    - setField_ = _Fields.BOOL_VAL;
    - value_ = value;
    - }
    -
    - public TByteColumn getByteVal() {
    - if (getSetField() == _Fields.BYTE_VAL) {
    - return (TByteColumn)getFieldValue();
    - } else {
    - throw new RuntimeException("Cannot get field 'byteVal' because union is currently set to " + getFieldDesc(getSetField()).name);
    - }
    - }
    -
    - public void setByteVal(TByteColumn value) {
    - if (value == null) throw new NullPointerException();
    - setField_ = _Fields.BYTE_VAL;
    - value_ = value;
    - }
    -
    - public TI16Column getI16Val() {
    - if (getSetField() == _Fields.I16_VAL) {
    - return (TI16Column)getFieldValue();
    - } else {
    - throw new RuntimeException("Cannot get field 'i16Val' because union is currently set to " + getFieldDesc(getSetField()).name);
    - }
    - }
    -
    - public void setI16Val(TI16Column value) {
    - if (value == null) throw new NullPointerException();
    - setField_ = _Fields.I16_VAL;
    - value_ = value;
    - }
    -
    - public TI32Column getI32Val() {
    - if (getSetField() == _Fields.I32_VAL) {
    - return (TI32Column)getFieldValue();
    - } else {
    - throw new RuntimeException("Cannot get field 'i32Val' because union is currently set to " + getFieldDesc(getSetField()).name);
    - }
    - }
    -
    - public void setI32Val(TI32Column value) {
    - if (value == null) throw new NullPointerException();
    - setField_ = _Fields.I32_VAL;
    - value_ = value;
    - }
    -
    - public TI64Column getI64Val() {
    - if (getSetField() == _Fields.I64_VAL) {
    - return (TI64Column)getFieldValue();
    - } else {
    - throw new RuntimeException("Cannot get field 'i64Val' because union is currently set to " + getFieldDesc(getSetField()).name);
    - }
    - }
    -
    - public void setI64Val(TI64Column value) {
    - if (value == null) throw new NullPointerException();
    - setField_ = _Fields.I64_VAL;
    - value_ = value;
    - }
    -
    - public TDoubleColumn getDoubleVal() {
    - if (getSetField() == _Fields.DOUBLE_VAL) {
    - return (TDoubleColumn)getFieldValue();
    - } else {
    - throw new RuntimeException("Cannot get field 'doubleVal' because union is currently set to " + getFieldDesc(getSetField()).name);
    - }
    - }
    -
    - public void setDoubleVal(TDoubleColumn value) {
    - if (value == null) throw new NullPointerException();
    - setField_ = _Fields.DOUBLE_VAL;
    - value_ = value;
    - }
    -
    - public TStringColumn getStringVal() {
    - if (getSetField() == _Fields.STRING_VAL) {
    - return (TStringColumn)getFieldValue();
    - } else {
    - throw new RuntimeException("Cannot get field 'stringVal' because union is currently set to " + getFieldDesc(getSetField()).name);
    - }
    - }
    -
    - public void setStringVal(TStringColumn value) {
    - if (value == null) throw new NullPointerException();
    - setField_ = _Fields.STRING_VAL;
    - value_ = value;
    - }
    -
    - public TBinaryColumn getBinaryVal() {
    - if (getSetField() == _Fields.BINARY_VAL) {
    - return (TBinaryColumn)getFieldValue();
    - } else {
    - throw new RuntimeException("Cannot get field 'binaryVal' because union is currently set to " + getFieldDesc(getSetField()).name);
    - }
    - }
    -
    - public void setBinaryVal(TBinaryColumn value) {
    - if (value == null) throw new NullPointerException();
    - setField_ = _Fields.BINARY_VAL;
    - value_ = value;
    - }
    -
    - public boolean isSetBoolVal() {
    - return setField_ == _Fields.BOOL_VAL;
    - }
    -
    -
    - public boolean isSetByteVal() {
    - return setField_ == _Fields.BYTE_VAL;
    - }
    -
    -
    - public boolean isSetI16Val() {
    - return setField_ == _Fields.I16_VAL;
    - }
    -
    -
    - public boolean isSetI32Val() {
    - return setField_ == _Fields.I32_VAL;
    - }
    -
    -
    - public boolean isSetI64Val() {
    - return setField_ == _Fields.I64_VAL;
    - }
    -
    -
    - public boolean isSetDoubleVal() {
    - return setField_ == _Fields.DOUBLE_VAL;
    - }
    -
    -
    - public boolean isSetStringVal() {
    - return setField_ == _Fields.STRING_VAL;
    - }
    -
    -
    - public boolean isSetBinaryVal() {
    - return setField_ == _Fields.BINARY_VAL;
    - }
    -
    -
    - public boolean equals(Object other) {
    - if (other instanceof TColumn) {
    - return equals((TColumn)other);
    - } else {
    - return false;
    - }
    - }
    -
    - public boolean equals(TColumn other) {
    - return other != null && getSetField() == other.getSetField() && getFieldValue().equals(other.getFieldValue());
    - }
    -
    - @Override
    - public int compareTo(TColumn other) {
    - int lastComparison = org.apache.thrift.TBaseHelper.compareTo(getSetField(), other.getSetField());
    - if (lastComparison == 0) {
    - return org.apache.thrift.TBaseHelper.compareTo(getFieldValue(), other.getFieldValue());
    - }
    - return lastComparison;
    - }
    -
    -
    - @Override
    - public int hashCode() {
    - List<Object> list = new ArrayList<Object>();
    - list.add(this.getClass().getName());
    - org.apache.thrift.TFieldIdEnum setField = getSetField();
    - if (setField != null) {
    - list.add(setField.getThriftFieldId());
    - Object value = getFieldValue();
    - if (value instanceof org.apache.thrift.TEnum) {
    - list.add(((org.apache.thrift.TEnum)getFieldValue()).getValue());
    - } else {
    - list.add(value);
    - }
    - }
    - return list.hashCode();
    - }
    - private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
    - try {
    - write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
    - } catch (org.apache.thrift.TException te) {
    - throw new java.io.IOException(te);
    - }
    - }
    -
    -
    - private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
    - try {
    - read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
    - } catch (org.apache.thrift.TException te) {
    - throw new java.io.IOException(te);
    - }
    - }
    -
    -
    -}

    http://git-wip-us.apache.org/repos/asf/hive/blob/2542f5cc/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TColumnDesc.java
    ----------------------------------------------------------------------
    diff --git a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TColumnDesc.java b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TColumnDesc.java
    deleted file mode 100644
    index b01fadb..0000000
    --- a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TColumnDesc.java
    +++ /dev/null
    @@ -1,704 +0,0 @@
    -/**
    - * Autogenerated by Thrift Compiler (0.9.3)
    - *
    - * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
    - * @generated
    - */
    -package org.apache.hive.service.cli.thrift;
    -
    -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"})
    -@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)")
    -public class TColumnDesc implements org.apache.thrift.TBase<TColumnDesc, TColumnDesc._Fields>, java.io.Serializable, Cloneable, Comparable<TColumnDesc> {
    - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TColumnDesc");
    -
    - private static final org.apache.thrift.protocol.TField COLUMN_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("columnName", org.apache.thrift.protocol.TType.STRING, (short)1);
    - private static final org.apache.thrift.protocol.TField TYPE_DESC_FIELD_DESC = new org.apache.thrift.protocol.TField("typeDesc", org.apache.thrift.protocol.TType.STRUCT, (short)2);
    - private static final org.apache.thrift.protocol.TField POSITION_FIELD_DESC = new org.apache.thrift.protocol.TField("position", org.apache.thrift.protocol.TType.I32, (short)3);
    - private static final org.apache.thrift.protocol.TField COMMENT_FIELD_DESC = new org.apache.thrift.protocol.TField("comment", org.apache.thrift.protocol.TType.STRING, (short)4);
    -
    - private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
    - static {
    - schemes.put(StandardScheme.class, new TColumnDescStandardSchemeFactory());
    - schemes.put(TupleScheme.class, new TColumnDescTupleSchemeFactory());
    - }
    -
    - private String columnName; // required
    - private TTypeDesc typeDesc; // required
    - private int position; // required
    - private String comment; // 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 {
    - COLUMN_NAME((short)1, "columnName"),
    - TYPE_DESC((short)2, "typeDesc"),
    - POSITION((short)3, "position"),
    - COMMENT((short)4, "comment");
    -
    - private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
    -
    - static {
    - for (_Fields field : EnumSet.allOf(_Fields.class)) {
    - byName.put(field.getFieldName(), field);
    - }
    - }
    -
    - /**
    - * Find the _Fields constant that matches fieldId, or null if its not found.
    - */
    - public static _Fields findByThriftId(int fieldId) {
    - switch(fieldId) {
    - case 1: // COLUMN_NAME
    - return COLUMN_NAME;
    - case 2: // TYPE_DESC
    - return TYPE_DESC;
    - case 3: // POSITION
    - return POSITION;
    - case 4: // COMMENT
    - return COMMENT;
    - default:
    - return null;
    - }
    - }
    -
    - /**
    - * Find the _Fields constant that matches fieldId, throwing an exception
    - * if it is not found.
    - */
    - public static _Fields findByThriftIdOrThrow(int fieldId) {
    - _Fields fields = findByThriftId(fieldId);
    - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
    - return fields;
    - }
    -
    - /**
    - * Find the _Fields constant that matches name, or null if its not found.
    - */
    - public static _Fields findByName(String name) {
    - return byName.get(name);
    - }
    -
    - private final short _thriftId;
    - private final String _fieldName;
    -
    - _Fields(short thriftId, String fieldName) {
    - _thriftId = thriftId;
    - _fieldName = fieldName;
    - }
    -
    - public short getThriftFieldId() {
    - return _thriftId;
    - }
    -
    - public String getFieldName() {
    - return _fieldName;
    - }
    - }
    -
    - // isset id assignments
    - private static final int __POSITION_ISSET_ID = 0;
    - private byte __isset_bitfield = 0;
    - private static final _Fields optionals[] = {_Fields.COMMENT};
    - public static final 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);
    - tmpMap.put(_Fields.COLUMN_NAME, new org.apache.thrift.meta_data.FieldMetaData("columnName", org.apache.thrift.TFieldRequirementType.REQUIRED,
    - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
    - tmpMap.put(_Fields.TYPE_DESC, new org.apache.thrift.meta_data.FieldMetaData("typeDesc", org.apache.thrift.TFieldRequirementType.REQUIRED,
    - new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TTypeDesc.class)));
    - tmpMap.put(_Fields.POSITION, new org.apache.thrift.meta_data.FieldMetaData("position", org.apache.thrift.TFieldRequirementType.REQUIRED,
    - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
    - tmpMap.put(_Fields.COMMENT, new org.apache.thrift.meta_data.FieldMetaData("comment", org.apache.thrift.TFieldRequirementType.OPTIONAL,
    - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
    - metaDataMap = Collections.unmodifiableMap(tmpMap);
    - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(TColumnDesc.class, metaDataMap);
    - }
    -
    - public TColumnDesc() {
    - }
    -
    - public TColumnDesc(
    - String columnName,
    - TTypeDesc typeDesc,
    - int position)
    - {
    - this();
    - this.columnName = columnName;
    - this.typeDesc = typeDesc;
    - this.position = position;
    - setPositionIsSet(true);
    - }
    -
    - /**
    - * Performs a deep copy on <i>other</i>.
    - */
    - public TColumnDesc(TColumnDesc other) {
    - __isset_bitfield = other.__isset_bitfield;
    - if (other.isSetColumnName()) {
    - this.columnName = other.columnName;
    - }
    - if (other.isSetTypeDesc()) {
    - this.typeDesc = new TTypeDesc(other.typeDesc);
    - }
    - this.position = other.position;
    - if (other.isSetComment()) {
    - this.comment = other.comment;
    - }
    - }
    -
    - public TColumnDesc deepCopy() {
    - return new TColumnDesc(this);
    - }
    -
    - @Override
    - public void clear() {
    - this.columnName = null;
    - this.typeDesc = null;
    - setPositionIsSet(false);
    - this.position = 0;
    - this.comment = null;
    - }
    -
    - public String getColumnName() {
    - return this.columnName;
    - }
    -
    - public void setColumnName(String columnName) {
    - this.columnName = columnName;
    - }
    -
    - public void unsetColumnName() {
    - this.columnName = null;
    - }
    -
    - /** Returns true if field columnName is set (has been assigned a value) and false otherwise */
    - public boolean isSetColumnName() {
    - return this.columnName != null;
    - }
    -
    - public void setColumnNameIsSet(boolean value) {
    - if (!value) {
    - this.columnName = null;
    - }
    - }
    -
    - public TTypeDesc getTypeDesc() {
    - return this.typeDesc;
    - }
    -
    - public void setTypeDesc(TTypeDesc typeDesc) {
    - this.typeDesc = typeDesc;
    - }
    -
    - public void unsetTypeDesc() {
    - this.typeDesc = null;
    - }
    -
    - /** Returns true if field typeDesc is set (has been assigned a value) and false otherwise */
    - public boolean isSetTypeDesc() {
    - return this.typeDesc != null;
    - }
    -
    - public void setTypeDescIsSet(boolean value) {
    - if (!value) {
    - this.typeDesc = null;
    - }
    - }
    -
    - public int getPosition() {
    - return this.position;
    - }
    -
    - public void setPosition(int position) {
    - this.position = position;
    - setPositionIsSet(true);
    - }
    -
    - public void unsetPosition() {
    - __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __POSITION_ISSET_ID);
    - }
    -
    - /** Returns true if field position is set (has been assigned a value) and false otherwise */
    - public boolean isSetPosition() {
    - return EncodingUtils.testBit(__isset_bitfield, __POSITION_ISSET_ID);
    - }
    -
    - public void setPositionIsSet(boolean value) {
    - __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __POSITION_ISSET_ID, value);
    - }
    -
    - public String getComment() {
    - return this.comment;
    - }
    -
    - public void setComment(String comment) {
    - this.comment = comment;
    - }
    -
    - public void unsetComment() {
    - this.comment = null;
    - }
    -
    - /** Returns true if field comment is set (has been assigned a value) and false otherwise */
    - public boolean isSetComment() {
    - return this.comment != null;
    - }
    -
    - public void setCommentIsSet(boolean value) {
    - if (!value) {
    - this.comment = null;
    - }
    - }
    -
    - public void setFieldValue(_Fields field, Object value) {
    - switch (field) {
    - case COLUMN_NAME:
    - if (value == null) {
    - unsetColumnName();
    - } else {
    - setColumnName((String)value);
    - }
    - break;
    -
    - case TYPE_DESC:
    - if (value == null) {
    - unsetTypeDesc();
    - } else {
    - setTypeDesc((TTypeDesc)value);
    - }
    - break;
    -
    - case POSITION:
    - if (value == null) {
    - unsetPosition();
    - } else {
    - setPosition((Integer)value);
    - }
    - break;
    -
    - case COMMENT:
    - if (value == null) {
    - unsetComment();
    - } else {
    - setComment((String)value);
    - }
    - break;
    -
    - }
    - }
    -
    - public Object getFieldValue(_Fields field) {
    - switch (field) {
    - case COLUMN_NAME:
    - return getColumnName();
    -
    - case TYPE_DESC:
    - return getTypeDesc();
    -
    - case POSITION:
    - return getPosition();
    -
    - case COMMENT:
    - return getComment();
    -
    - }
    - throw new IllegalStateException();
    - }
    -
    - /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
    - public boolean isSet(_Fields field) {
    - if (field == null) {
    - throw new IllegalArgumentException();
    - }
    -
    - switch (field) {
    - case COLUMN_NAME:
    - return isSetColumnName();
    - case TYPE_DESC:
    - return isSetTypeDesc();
    - case POSITION:
    - return isSetPosition();
    - case COMMENT:
    - return isSetComment();
    - }
    - throw new IllegalStateException();
    - }
    -
    - @Override
    - public boolean equals(Object that) {
    - if (that == null)
    - return false;
    - if (that instanceof TColumnDesc)
    - return this.equals((TColumnDesc)that);
    - return false;
    - }
    -
    - public boolean equals(TColumnDesc that) {
    - if (that == null)
    - return false;
    -
    - boolean this_present_columnName = true && this.isSetColumnName();
    - boolean that_present_columnName = true && that.isSetColumnName();
    - if (this_present_columnName || that_present_columnName) {
    - if (!(this_present_columnName && that_present_columnName))
    - return false;
    - if (!this.columnName.equals(that.columnName))
    - return false;
    - }
    -
    - boolean this_present_typeDesc = true && this.isSetTypeDesc();
    - boolean that_present_typeDesc = true && that.isSetTypeDesc();
    - if (this_present_typeDesc || that_present_typeDesc) {
    - if (!(this_present_typeDesc && that_present_typeDesc))
    - return false;
    - if (!this.typeDesc.equals(that.typeDesc))
    - return false;
    - }
    -
    - boolean this_present_position = true;
    - boolean that_present_position = true;
    - if (this_present_position || that_present_position) {
    - if (!(this_present_position && that_present_position))
    - return false;
    - if (this.position != that.position)
    - return false;
    - }
    -
    - boolean this_present_comment = true && this.isSetComment();
    - boolean that_present_comment = true && that.isSetComment();
    - if (this_present_comment || that_present_comment) {
    - if (!(this_present_comment && that_present_comment))
    - return false;
    - if (!this.comment.equals(that.comment))
    - return false;
    - }
    -
    - return true;
    - }
    -
    - @Override
    - public int hashCode() {
    - List<Object> list = new ArrayList<Object>();
    -
    - boolean present_columnName = true && (isSetColumnName());
    - list.add(present_columnName);
    - if (present_columnName)
    - list.add(columnName);
    -
    - boolean present_typeDesc = true && (isSetTypeDesc());
    - list.add(present_typeDesc);
    - if (present_typeDesc)
    - list.add(typeDesc);
    -
    - boolean present_position = true;
    - list.add(present_position);
    - if (present_position)
    - list.add(position);
    -
    - boolean present_comment = true && (isSetComment());
    - list.add(present_comment);
    - if (present_comment)
    - list.add(comment);
    -
    - return list.hashCode();
    - }
    -
    - @Override
    - public int compareTo(TColumnDesc other) {
    - if (!getClass().equals(other.getClass())) {
    - return getClass().getName().compareTo(other.getClass().getName());
    - }
    -
    - int lastComparison = 0;
    -
    - lastComparison = Boolean.valueOf(isSetColumnName()).compareTo(other.isSetColumnName());
    - if (lastComparison != 0) {
    - return lastComparison;
    - }
    - if (isSetColumnName()) {
    - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.columnName, other.columnName);
    - if (lastComparison != 0) {
    - return lastComparison;
    - }
    - }
    - lastComparison = Boolean.valueOf(isSetTypeDesc()).compareTo(other.isSetTypeDesc());
    - if (lastComparison != 0) {
    - return lastComparison;
    - }
    - if (isSetTypeDesc()) {
    - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.typeDesc, other.typeDesc);
    - if (lastComparison != 0) {
    - return lastComparison;
    - }
    - }
    - lastComparison = Boolean.valueOf(isSetPosition()).compareTo(other.isSetPosition());
    - if (lastComparison != 0) {
    - return lastComparison;
    - }
    - if (isSetPosition()) {
    - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.position, other.position);
    - if (lastComparison != 0) {
    - return lastComparison;
    - }
    - }
    - lastComparison = Boolean.valueOf(isSetComment()).compareTo(other.isSetComment());
    - if (lastComparison != 0) {
    - return lastComparison;
    - }
    - if (isSetComment()) {
    - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.comment, other.comment);
    - if (lastComparison != 0) {
    - return lastComparison;
    - }
    - }
    - return 0;
    - }
    -
    - public _Fields fieldForId(int fieldId) {
    - return _Fields.findByThriftId(fieldId);
    - }
    -
    - public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
    - schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
    - }
    -
    - public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
    - schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
    - }
    -
    - @Override
    - public String toString() {
    - StringBuilder sb = new StringBuilder("TColumnDesc(");
    - boolean first = true;
    -
    - sb.append("columnName:");
    - if (this.columnName == null) {
    - sb.append("null");
    - } else {
    - sb.append(this.columnName);
    - }
    - first = false;
    - if (!first) sb.append(", ");
    - sb.append("typeDesc:");
    - if (this.typeDesc == null) {
    - sb.append("null");
    - } else {
    - sb.append(this.typeDesc);
    - }
    - first = false;
    - if (!first) sb.append(", ");
    - sb.append("position:");
    - sb.append(this.position);
    - first = false;
    - if (isSetComment()) {
    - if (!first) sb.append(", ");
    - sb.append("comment:");
    - if (this.comment == null) {
    - sb.append("null");
    - } else {
    - sb.append(this.comment);
    - }
    - first = false;
    - }
    - sb.append(")");
    - return sb.toString();
    - }
    -
    - public void validate() throws org.apache.thrift.TException {
    - // check for required fields
    - if (!isSetColumnName()) {
    - throw new org.apache.thrift.protocol.TProtocolException("Required field 'columnName' is unset! Struct:" + toString());
    - }
    -
    - if (!isSetTypeDesc()) {
    - throw new org.apache.thrift.protocol.TProtocolException("Required field 'typeDesc' is unset! Struct:" + toString());
    - }
    -
    - if (!isSetPosition()) {
    - throw new org.apache.thrift.protocol.TProtocolException("Required field 'position' is unset! Struct:" + toString());
    - }
    -
    - // check for sub-struct validity
    - if (typeDesc != null) {
    - typeDesc.validate();
    - }
    - }
    -
    - private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
    - try {
    - write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
    - } catch (org.apache.thrift.TException te) {
    - throw new java.io.IOException(te);
    - }
    - }
    -
    - private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
    - try {
    - // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
    - __isset_bitfield = 0;
    - read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
    - } catch (org.apache.thrift.TException te) {
    - throw new java.io.IOException(te);
    - }
    - }
    -
    - private static class TColumnDescStandardSchemeFactory implements SchemeFactory {
    - public TColumnDescStandardScheme getScheme() {
    - return new TColumnDescStandardScheme();
    - }
    - }
    -
    - private static class TColumnDescStandardScheme extends StandardScheme<TColumnDesc> {
    -
    - public void read(org.apache.thrift.protocol.TProtocol iprot, TColumnDesc struct) throws org.apache.thrift.TException {
    - org.apache.thrift.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_NAME
    - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
    - struct.columnName = iprot.readString();
    - struct.setColumnNameIsSet(true);
    - } else {
    - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
    - }
    - break;
    - case 2: // TYPE_DESC
    - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
    - struct.typeDesc = new TTypeDesc();
    - struct.typeDesc.read(iprot);
    - struct.setTypeDescIsSet(true);
    - } else {
    - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
    - }
    - break;
    - case 3: // POSITION
    - if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
    - struct.position = iprot.readI32();
    - struct.setPositionIsSet(true);
    - } else {
    - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
    - }
    - break;
    - case 4: // COMMENT
    - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
    - struct.comment = iprot.readString();
    - struct.setCommentIsSet(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.readStructEnd();
    - struct.validate();
    - }
    -
    - public void write(org.apache.thrift.protocol.TProtocol oprot, TColumnDesc struct) throws org.apache.thrift.TException {
    - struct.validate();
    -
    - oprot.writeStructBegin(STRUCT_DESC);
    - if (struct.columnName != null) {
    - oprot.writeFieldBegin(COLUMN_NAME_FIELD_DESC);
    - oprot.writeString(struct.columnName);
    - oprot.writeFieldEnd();
    - }
    - if (struct.typeDesc != null) {
    - oprot.writeFieldBegin(TYPE_DESC_FIELD_DESC);
    - struct.typeDesc.write(oprot);
    - oprot.writeFieldEnd();
    - }
    - oprot.writeFieldBegin(POSITION_FIELD_DESC);
    - oprot.writeI32(struct.position);
    - oprot.writeFieldEnd();
    - if (struct.comment != null) {
    - if (struct.isSetComment()) {
    - oprot.writeFieldBegin(COMMENT_FIELD_DESC);
    - oprot.writeString(struct.comment);
    - oprot.writeFieldEnd();
    - }
    - }
    - oprot.writeFieldStop();
    - oprot.writeStructEnd();
    - }
    -
    - }
    -
    - private static class TColumnDescTupleSchemeFactory implements SchemeFactory {
    - public TColumnDescTupleScheme getScheme() {
    - return new TColumnDescTupleScheme();
    - }
    - }
    -
    - private static class TColumnDescTupleScheme extends TupleScheme<TColumnDesc> {
    -
    - @Override
    - public void write(org.apache.thrift.protocol.TProtocol prot, TColumnDesc struct) throws org.apache.thrift.TException {
    - TTupleProtocol oprot = (TTupleProtocol) prot;
    - oprot.writeString(struct.columnName);
    - struct.typeDesc.write(oprot);
    - oprot.writeI32(struct.position);
    - BitSet optionals = new BitSet();
    - if (struct.isSetComment()) {
    - optionals.set(0);
    - }
    - oprot.writeBitSet(optionals, 1);
    - if (struct.isSetComment()) {
    - oprot.writeString(struct.comment);
    - }
    - }
    -
    - @Override
    - public void read(org.apache.thrift.protocol.TProtocol prot, TColumnDesc struct) throws org.apache.thrift.TException {
    - TTupleProtocol iprot = (TTupleProtocol) prot;
    - struct.columnName = iprot.readString();
    - struct.setColumnNameIsSet(true);
    - struct.typeDesc = new TTypeDesc();
    - struct.typeDesc.read(iprot);
    - struct.setTypeDescIsSet(true);
    - struct.position = iprot.readI32();
    - struct.setPositionIsSet(true);
    - BitSet incoming = iprot.readBitSet(1);
    - if (incoming.get(0)) {
    - struct.comment = iprot.readString();
    - struct.setCommentIsSet(true);
    - }
    - }
    - }
    -
    -}
    -
  • Vgumashta at Jan 8, 2016 at 12:19 am
    http://git-wip-us.apache.org/repos/asf/hive/blob/2542f5cc/service-rpc/src/gen/thrift/gen-javabean/org/apache/hive/service/rpc/thrift/TStatus.java
    ----------------------------------------------------------------------
    diff --git a/service-rpc/src/gen/thrift/gen-javabean/org/apache/hive/service/rpc/thrift/TStatus.java b/service-rpc/src/gen/thrift/gen-javabean/org/apache/hive/service/rpc/thrift/TStatus.java
    new file mode 100644
    index 0000000..d99d783
    --- /dev/null
    +++ b/service-rpc/src/gen/thrift/gen-javabean/org/apache/hive/service/rpc/thrift/TStatus.java
    @@ -0,0 +1,875 @@
    +/**
    + * Autogenerated by Thrift Compiler (0.9.2)
    + *
    + * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
    + * @generated
    + */
    +package org.apache.hive.service.rpc.thrift;
    +
    +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"})
    +@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-12-14")
    +public class TStatus implements org.apache.thrift.TBase<TStatus, TStatus._Fields>, java.io.Serializable, Cloneable, Comparable<TStatus> {
    + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TStatus");
    +
    + private static final org.apache.thrift.protocol.TField STATUS_CODE_FIELD_DESC = new org.apache.thrift.protocol.TField("statusCode", org.apache.thrift.protocol.TType.I32, (short)1);
    + private static final org.apache.thrift.protocol.TField INFO_MESSAGES_FIELD_DESC = new org.apache.thrift.protocol.TField("infoMessages", org.apache.thrift.protocol.TType.LIST, (short)2);
    + private static final org.apache.thrift.protocol.TField SQL_STATE_FIELD_DESC = new org.apache.thrift.protocol.TField("sqlState", org.apache.thrift.protocol.TType.STRING, (short)3);
    + private static final org.apache.thrift.protocol.TField ERROR_CODE_FIELD_DESC = new org.apache.thrift.protocol.TField("errorCode", org.apache.thrift.protocol.TType.I32, (short)4);
    + private static final org.apache.thrift.protocol.TField ERROR_MESSAGE_FIELD_DESC = new org.apache.thrift.protocol.TField("errorMessage", org.apache.thrift.protocol.TType.STRING, (short)5);
    +
    + private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
    + static {
    + schemes.put(StandardScheme.class, new TStatusStandardSchemeFactory());
    + schemes.put(TupleScheme.class, new TStatusTupleSchemeFactory());
    + }
    +
    + private TStatusCode statusCode; // required
    + private List<String> infoMessages; // optional
    + private String sqlState; // optional
    + private int errorCode; // optional
    + private String errorMessage; // 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 {
    + /**
    + *
    + * @see TStatusCode
    + */
    + STATUS_CODE((short)1, "statusCode"),
    + INFO_MESSAGES((short)2, "infoMessages"),
    + SQL_STATE((short)3, "sqlState"),
    + ERROR_CODE((short)4, "errorCode"),
    + ERROR_MESSAGE((short)5, "errorMessage");
    +
    + private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
    +
    + static {
    + for (_Fields field : EnumSet.allOf(_Fields.class)) {
    + byName.put(field.getFieldName(), field);
    + }
    + }
    +
    + /**
    + * Find the _Fields constant that matches fieldId, or null if its not found.
    + */
    + public static _Fields findByThriftId(int fieldId) {
    + switch(fieldId) {
    + case 1: // STATUS_CODE
    + return STATUS_CODE;
    + case 2: // INFO_MESSAGES
    + return INFO_MESSAGES;
    + case 3: // SQL_STATE
    + return SQL_STATE;
    + case 4: // ERROR_CODE
    + return ERROR_CODE;
    + case 5: // ERROR_MESSAGE
    + return ERROR_MESSAGE;
    + default:
    + return null;
    + }
    + }
    +
    + /**
    + * Find the _Fields constant that matches fieldId, throwing an exception
    + * if it is not found.
    + */
    + public static _Fields findByThriftIdOrThrow(int fieldId) {
    + _Fields fields = findByThriftId(fieldId);
    + if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
    + return fields;
    + }
    +
    + /**
    + * Find the _Fields constant that matches name, or null if its not found.
    + */
    + public static _Fields findByName(String name) {
    + return byName.get(name);
    + }
    +
    + private final short _thriftId;
    + private final String _fieldName;
    +
    + _Fields(short thriftId, String fieldName) {
    + _thriftId = thriftId;
    + _fieldName = fieldName;
    + }
    +
    + public short getThriftFieldId() {
    + return _thriftId;
    + }
    +
    + public String getFieldName() {
    + return _fieldName;
    + }
    + }
    +
    + // isset id assignments
    + private static final int __ERRORCODE_ISSET_ID = 0;
    + private byte __isset_bitfield = 0;
    + private static final _Fields optionals[] = {_Fields.INFO_MESSAGES,_Fields.SQL_STATE,_Fields.ERROR_CODE,_Fields.ERROR_MESSAGE};
    + public static final 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);
    + tmpMap.put(_Fields.STATUS_CODE, new org.apache.thrift.meta_data.FieldMetaData("statusCode", org.apache.thrift.TFieldRequirementType.REQUIRED,
    + new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, TStatusCode.class)));
    + tmpMap.put(_Fields.INFO_MESSAGES, new org.apache.thrift.meta_data.FieldMetaData("infoMessages", org.apache.thrift.TFieldRequirementType.OPTIONAL,
    + 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))));
    + tmpMap.put(_Fields.SQL_STATE, new org.apache.thrift.meta_data.FieldMetaData("sqlState", org.apache.thrift.TFieldRequirementType.OPTIONAL,
    + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
    + tmpMap.put(_Fields.ERROR_CODE, new org.apache.thrift.meta_data.FieldMetaData("errorCode", org.apache.thrift.TFieldRequirementType.OPTIONAL,
    + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
    + tmpMap.put(_Fields.ERROR_MESSAGE, new org.apache.thrift.meta_data.FieldMetaData("errorMessage", org.apache.thrift.TFieldRequirementType.OPTIONAL,
    + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
    + metaDataMap = Collections.unmodifiableMap(tmpMap);
    + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(TStatus.class, metaDataMap);
    + }
    +
    + public TStatus() {
    + }
    +
    + public TStatus(
    + TStatusCode statusCode)
    + {
    + this();
    + this.statusCode = statusCode;
    + }
    +
    + /**
    + * Performs a deep copy on <i>other</i>.
    + */
    + public TStatus(TStatus other) {
    + __isset_bitfield = other.__isset_bitfield;
    + if (other.isSetStatusCode()) {
    + this.statusCode = other.statusCode;
    + }
    + if (other.isSetInfoMessages()) {
    + List<String> __this__infoMessages = new ArrayList<String>(other.infoMessages);
    + this.infoMessages = __this__infoMessages;
    + }
    + if (other.isSetSqlState()) {
    + this.sqlState = other.sqlState;
    + }
    + this.errorCode = other.errorCode;
    + if (other.isSetErrorMessage()) {
    + this.errorMessage = other.errorMessage;
    + }
    + }
    +
    + public TStatus deepCopy() {
    + return new TStatus(this);
    + }
    +
    + @Override
    + public void clear() {
    + this.statusCode = null;
    + this.infoMessages = null;
    + this.sqlState = null;
    + setErrorCodeIsSet(false);
    + this.errorCode = 0;
    + this.errorMessage = null;
    + }
    +
    + /**
    + *
    + * @see TStatusCode
    + */
    + public TStatusCode getStatusCode() {
    + return this.statusCode;
    + }
    +
    + /**
    + *
    + * @see TStatusCode
    + */
    + public void setStatusCode(TStatusCode statusCode) {
    + this.statusCode = statusCode;
    + }
    +
    + public void unsetStatusCode() {
    + this.statusCode = null;
    + }
    +
    + /** Returns true if field statusCode is set (has been assigned a value) and false otherwise */
    + public boolean isSetStatusCode() {
    + return this.statusCode != null;
    + }
    +
    + public void setStatusCodeIsSet(boolean value) {
    + if (!value) {
    + this.statusCode = null;
    + }
    + }
    +
    + public int getInfoMessagesSize() {
    + return (this.infoMessages == null) ? 0 : this.infoMessages.size();
    + }
    +
    + public java.util.Iterator<String> getInfoMessagesIterator() {
    + return (this.infoMessages == null) ? null : this.infoMessages.iterator();
    + }
    +
    + public void addToInfoMessages(String elem) {
    + if (this.infoMessages == null) {
    + this.infoMessages = new ArrayList<String>();
    + }
    + this.infoMessages.add(elem);
    + }
    +
    + public List<String> getInfoMessages() {
    + return this.infoMessages;
    + }
    +
    + public void setInfoMessages(List<String> infoMessages) {
    + this.infoMessages = infoMessages;
    + }
    +
    + public void unsetInfoMessages() {
    + this.infoMessages = null;
    + }
    +
    + /** Returns true if field infoMessages is set (has been assigned a value) and false otherwise */
    + public boolean isSetInfoMessages() {
    + return this.infoMessages != null;
    + }
    +
    + public void setInfoMessagesIsSet(boolean value) {
    + if (!value) {
    + this.infoMessages = null;
    + }
    + }
    +
    + public String getSqlState() {
    + return this.sqlState;
    + }
    +
    + public void setSqlState(String sqlState) {
    + this.sqlState = sqlState;
    + }
    +
    + public void unsetSqlState() {
    + this.sqlState = null;
    + }
    +
    + /** Returns true if field sqlState is set (has been assigned a value) and false otherwise */
    + public boolean isSetSqlState() {
    + return this.sqlState != null;
    + }
    +
    + public void setSqlStateIsSet(boolean value) {
    + if (!value) {
    + this.sqlState = null;
    + }
    + }
    +
    + public int getErrorCode() {
    + return this.errorCode;
    + }
    +
    + public void setErrorCode(int errorCode) {
    + this.errorCode = errorCode;
    + setErrorCodeIsSet(true);
    + }
    +
    + public void unsetErrorCode() {
    + __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __ERRORCODE_ISSET_ID);
    + }
    +
    + /** Returns true if field errorCode is set (has been assigned a value) and false otherwise */
    + public boolean isSetErrorCode() {
    + return EncodingUtils.testBit(__isset_bitfield, __ERRORCODE_ISSET_ID);
    + }
    +
    + public void setErrorCodeIsSet(boolean value) {
    + __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __ERRORCODE_ISSET_ID, value);
    + }
    +
    + public String getErrorMessage() {
    + return this.errorMessage;
    + }
    +
    + public void setErrorMessage(String errorMessage) {
    + this.errorMessage = errorMessage;
    + }
    +
    + public void unsetErrorMessage() {
    + this.errorMessage = null;
    + }
    +
    + /** Returns true if field errorMessage is set (has been assigned a value) and false otherwise */
    + public boolean isSetErrorMessage() {
    + return this.errorMessage != null;
    + }
    +
    + public void setErrorMessageIsSet(boolean value) {
    + if (!value) {
    + this.errorMessage = null;
    + }
    + }
    +
    + public void setFieldValue(_Fields field, Object value) {
    + switch (field) {
    + case STATUS_CODE:
    + if (value == null) {
    + unsetStatusCode();
    + } else {
    + setStatusCode((TStatusCode)value);
    + }
    + break;
    +
    + case INFO_MESSAGES:
    + if (value == null) {
    + unsetInfoMessages();
    + } else {
    + setInfoMessages((List<String>)value);
    + }
    + break;
    +
    + case SQL_STATE:
    + if (value == null) {
    + unsetSqlState();
    + } else {
    + setSqlState((String)value);
    + }
    + break;
    +
    + case ERROR_CODE:
    + if (value == null) {
    + unsetErrorCode();
    + } else {
    + setErrorCode((Integer)value);
    + }
    + break;
    +
    + case ERROR_MESSAGE:
    + if (value == null) {
    + unsetErrorMessage();
    + } else {
    + setErrorMessage((String)value);
    + }
    + break;
    +
    + }
    + }
    +
    + public Object getFieldValue(_Fields field) {
    + switch (field) {
    + case STATUS_CODE:
    + return getStatusCode();
    +
    + case INFO_MESSAGES:
    + return getInfoMessages();
    +
    + case SQL_STATE:
    + return getSqlState();
    +
    + case ERROR_CODE:
    + return Integer.valueOf(getErrorCode());
    +
    + case ERROR_MESSAGE:
    + return getErrorMessage();
    +
    + }
    + throw new IllegalStateException();
    + }
    +
    + /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
    + public boolean isSet(_Fields field) {
    + if (field == null) {
    + throw new IllegalArgumentException();
    + }
    +
    + switch (field) {
    + case STATUS_CODE:
    + return isSetStatusCode();
    + case INFO_MESSAGES:
    + return isSetInfoMessages();
    + case SQL_STATE:
    + return isSetSqlState();
    + case ERROR_CODE:
    + return isSetErrorCode();
    + case ERROR_MESSAGE:
    + return isSetErrorMessage();
    + }
    + throw new IllegalStateException();
    + }
    +
    + @Override
    + public boolean equals(Object that) {
    + if (that == null)
    + return false;
    + if (that instanceof TStatus)
    + return this.equals((TStatus)that);
    + return false;
    + }
    +
    + public boolean equals(TStatus that) {
    + if (that == null)
    + return false;
    +
    + boolean this_present_statusCode = true && this.isSetStatusCode();
    + boolean that_present_statusCode = true && that.isSetStatusCode();
    + if (this_present_statusCode || that_present_statusCode) {
    + if (!(this_present_statusCode && that_present_statusCode))
    + return false;
    + if (!this.statusCode.equals(that.statusCode))
    + return false;
    + }
    +
    + boolean this_present_infoMessages = true && this.isSetInfoMessages();
    + boolean that_present_infoMessages = true && that.isSetInfoMessages();
    + if (this_present_infoMessages || that_present_infoMessages) {
    + if (!(this_present_infoMessages && that_present_infoMessages))
    + return false;
    + if (!this.infoMessages.equals(that.infoMessages))
    + return false;
    + }
    +
    + boolean this_present_sqlState = true && this.isSetSqlState();
    + boolean that_present_sqlState = true && that.isSetSqlState();
    + if (this_present_sqlState || that_present_sqlState) {
    + if (!(this_present_sqlState && that_present_sqlState))
    + return false;
    + if (!this.sqlState.equals(that.sqlState))
    + return false;
    + }
    +
    + boolean this_present_errorCode = true && this.isSetErrorCode();
    + boolean that_present_errorCode = true && that.isSetErrorCode();
    + if (this_present_errorCode || that_present_errorCode) {
    + if (!(this_present_errorCode && that_present_errorCode))
    + return false;
    + if (this.errorCode != that.errorCode)
    + return false;
    + }
    +
    + boolean this_present_errorMessage = true && this.isSetErrorMessage();
    + boolean that_present_errorMessage = true && that.isSetErrorMessage();
    + if (this_present_errorMessage || that_present_errorMessage) {
    + if (!(this_present_errorMessage && that_present_errorMessage))
    + return false;
    + if (!this.errorMessage.equals(that.errorMessage))
    + return false;
    + }
    +
    + return true;
    + }
    +
    + @Override
    + public int hashCode() {
    + List<Object> list = new ArrayList<Object>();
    +
    + boolean present_statusCode = true && (isSetStatusCode());
    + list.add(present_statusCode);
    + if (present_statusCode)
    + list.add(statusCode.getValue());
    +
    + boolean present_infoMessages = true && (isSetInfoMessages());
    + list.add(present_infoMessages);
    + if (present_infoMessages)
    + list.add(infoMessages);
    +
    + boolean present_sqlState = true && (isSetSqlState());
    + list.add(present_sqlState);
    + if (present_sqlState)
    + list.add(sqlState);
    +
    + boolean present_errorCode = true && (isSetErrorCode());
    + list.add(present_errorCode);
    + if (present_errorCode)
    + list.add(errorCode);
    +
    + boolean present_errorMessage = true && (isSetErrorMessage());
    + list.add(present_errorMessage);
    + if (present_errorMessage)
    + list.add(errorMessage);
    +
    + return list.hashCode();
    + }
    +
    + @Override
    + public int compareTo(TStatus other) {
    + if (!getClass().equals(other.getClass())) {
    + return getClass().getName().compareTo(other.getClass().getName());
    + }
    +
    + int lastComparison = 0;
    +
    + lastComparison = Boolean.valueOf(isSetStatusCode()).compareTo(other.isSetStatusCode());
    + if (lastComparison != 0) {
    + return lastComparison;
    + }
    + if (isSetStatusCode()) {
    + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.statusCode, other.statusCode);
    + if (lastComparison != 0) {
    + return lastComparison;
    + }
    + }
    + lastComparison = Boolean.valueOf(isSetInfoMessages()).compareTo(other.isSetInfoMessages());
    + if (lastComparison != 0) {
    + return lastComparison;
    + }
    + if (isSetInfoMessages()) {
    + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.infoMessages, other.infoMessages);
    + if (lastComparison != 0) {
    + return lastComparison;
    + }
    + }
    + lastComparison = Boolean.valueOf(isSetSqlState()).compareTo(other.isSetSqlState());
    + if (lastComparison != 0) {
    + return lastComparison;
    + }
    + if (isSetSqlState()) {
    + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.sqlState, other.sqlState);
    + if (lastComparison != 0) {
    + return lastComparison;
    + }
    + }
    + lastComparison = Boolean.valueOf(isSetErrorCode()).compareTo(other.isSetErrorCode());
    + if (lastComparison != 0) {
    + return lastComparison;
    + }
    + if (isSetErrorCode()) {
    + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.errorCode, other.errorCode);
    + if (lastComparison != 0) {
    + return lastComparison;
    + }
    + }
    + lastComparison = Boolean.valueOf(isSetErrorMessage()).compareTo(other.isSetErrorMessage());
    + if (lastComparison != 0) {
    + return lastComparison;
    + }
    + if (isSetErrorMessage()) {
    + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.errorMessage, other.errorMessage);
    + if (lastComparison != 0) {
    + return lastComparison;
    + }
    + }
    + return 0;
    + }
    +
    + public _Fields fieldForId(int fieldId) {
    + return _Fields.findByThriftId(fieldId);
    + }
    +
    + public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
    + schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
    + }
    +
    + public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
    + schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
    + }
    +
    + @Override
    + public String toString() {
    + StringBuilder sb = new StringBuilder("TStatus(");
    + boolean first = true;
    +
    + sb.append("statusCode:");
    + if (this.statusCode == null) {
    + sb.append("null");
    + } else {
    + sb.append(this.statusCode);
    + }
    + first = false;
    + if (isSetInfoMessages()) {
    + if (!first) sb.append(", ");
    + sb.append("infoMessages:");
    + if (this.infoMessages == null) {
    + sb.append("null");
    + } else {
    + sb.append(this.infoMessages);
    + }
    + first = false;
    + }
    + if (isSetSqlState()) {
    + if (!first) sb.append(", ");
    + sb.append("sqlState:");
    + if (this.sqlState == null) {
    + sb.append("null");
    + } else {
    + sb.append(this.sqlState);
    + }
    + first = false;
    + }
    + if (isSetErrorCode()) {
    + if (!first) sb.append(", ");
    + sb.append("errorCode:");
    + sb.append(this.errorCode);
    + first = false;
    + }
    + if (isSetErrorMessage()) {
    + if (!first) sb.append(", ");
    + sb.append("errorMessage:");
    + if (this.errorMessage == null) {
    + sb.append("null");
    + } else {
    + sb.append(this.errorMessage);
    + }
    + first = false;
    + }
    + sb.append(")");
    + return sb.toString();
    + }
    +
    + public void validate() throws org.apache.thrift.TException {
    + // check for required fields
    + if (!isSetStatusCode()) {
    + throw new org.apache.thrift.protocol.TProtocolException("Required field 'statusCode' is unset! Struct:" + toString());
    + }
    +
    + // check for sub-struct validity
    + }
    +
    + private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
    + try {
    + write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
    + } catch (org.apache.thrift.TException te) {
    + throw new java.io.IOException(te);
    + }
    + }
    +
    + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
    + try {
    + // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
    + __isset_bitfield = 0;
    + read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
    + } catch (org.apache.thrift.TException te) {
    + throw new java.io.IOException(te);
    + }
    + }
    +
    + private static class TStatusStandardSchemeFactory implements SchemeFactory {
    + public TStatusStandardScheme getScheme() {
    + return new TStatusStandardScheme();
    + }
    + }
    +
    + private static class TStatusStandardScheme extends StandardScheme<TStatus> {
    +
    + public void read(org.apache.thrift.protocol.TProtocol iprot, TStatus struct) throws org.apache.thrift.TException {
    + org.apache.thrift.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_CODE
    + if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
    + struct.statusCode = org.apache.hive.service.rpc.thrift.TStatusCode.findByValue(iprot.readI32());
    + struct.setStatusCodeIsSet(true);
    + } else {
    + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
    + }
    + break;
    + case 2: // INFO_MESSAGES
    + if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
    + {
    + org.apache.thrift.protocol.TList _list134 = iprot.readListBegin();
    + struct.infoMessages = new ArrayList<String>(_list134.size);
    + String _elem135;
    + for (int _i136 = 0; _i136 < _list134.size; ++_i136)
    + {
    + _elem135 = iprot.readString();
    + struct.infoMessages.add(_elem135);
    + }
    + iprot.readListEnd();
    + }
    + struct.setInfoMessagesIsSet(true);
    + } else {
    + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
    + }
    + break;
    + case 3: // SQL_STATE
    + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
    + struct.sqlState = iprot.readString();
    + struct.setSqlStateIsSet(true);
    + } else {
    + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
    + }
    + break;
    + case 4: // ERROR_CODE
    + if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
    + struct.errorCode = iprot.readI32();
    + struct.setErrorCodeIsSet(true);
    + } else {
    + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
    + }
    + break;
    + case 5: // ERROR_MESSAGE
    + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
    + struct.errorMessage = iprot.readString();
    + struct.setErrorMessageIsSet(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.readStructEnd();
    + struct.validate();
    + }
    +
    + public void write(org.apache.thrift.protocol.TProtocol oprot, TStatus struct) throws org.apache.thrift.TException {
    + struct.validate();
    +
    + oprot.writeStructBegin(STRUCT_DESC);
    + if (struct.statusCode != null) {
    + oprot.writeFieldBegin(STATUS_CODE_FIELD_DESC);
    + oprot.writeI32(struct.statusCode.getValue());
    + oprot.writeFieldEnd();
    + }
    + if (struct.infoMessages != null) {
    + if (struct.isSetInfoMessages()) {
    + oprot.writeFieldBegin(INFO_MESSAGES_FIELD_DESC);
    + {
    + oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.infoMessages.size()));
    + for (String _iter137 : struct.infoMessages)
    + {
    + oprot.writeString(_iter137);
    + }
    + oprot.writeListEnd();
    + }
    + oprot.writeFieldEnd();
    + }
    + }
    + if (struct.sqlState != null) {
    + if (struct.isSetSqlState()) {
    + oprot.writeFieldBegin(SQL_STATE_FIELD_DESC);
    + oprot.writeString(struct.sqlState);
    + oprot.writeFieldEnd();
    + }
    + }
    + if (struct.isSetErrorCode()) {
    + oprot.writeFieldBegin(ERROR_CODE_FIELD_DESC);
    + oprot.writeI32(struct.errorCode);
    + oprot.writeFieldEnd();
    + }
    + if (struct.errorMessage != null) {
    + if (struct.isSetErrorMessage()) {
    + oprot.writeFieldBegin(ERROR_MESSAGE_FIELD_DESC);
    + oprot.writeString(struct.errorMessage);
    + oprot.writeFieldEnd();
    + }
    + }
    + oprot.writeFieldStop();
    + oprot.writeStructEnd();
    + }
    +
    + }
    +
    + private static class TStatusTupleSchemeFactory implements SchemeFactory {
    + public TStatusTupleScheme getScheme() {
    + return new TStatusTupleScheme();
    + }
    + }
    +
    + private static class TStatusTupleScheme extends TupleScheme<TStatus> {
    +
    + @Override
    + public void write(org.apache.thrift.protocol.TProtocol prot, TStatus struct) throws org.apache.thrift.TException {
    + TTupleProtocol oprot = (TTupleProtocol) prot;
    + oprot.writeI32(struct.statusCode.getValue());
    + BitSet optionals = new BitSet();
    + if (struct.isSetInfoMessages()) {
    + optionals.set(0);
    + }
    + if (struct.isSetSqlState()) {
    + optionals.set(1);
    + }
    + if (struct.isSetErrorCode()) {
    + optionals.set(2);
    + }
    + if (struct.isSetErrorMessage()) {
    + optionals.set(3);
    + }
    + oprot.writeBitSet(optionals, 4);
    + if (struct.isSetInfoMessages()) {
    + {
    + oprot.writeI32(struct.infoMessages.size());
    + for (String _iter138 : struct.infoMessages)
    + {
    + oprot.writeString(_iter138);
    + }
    + }
    + }
    + if (struct.isSetSqlState()) {
    + oprot.writeString(struct.sqlState);
    + }
    + if (struct.isSetErrorCode()) {
    + oprot.writeI32(struct.errorCode);
    + }
    + if (struct.isSetErrorMessage()) {
    + oprot.writeString(struct.errorMessage);
    + }
    + }
    +
    + @Override
    + public void read(org.apache.thrift.protocol.TProtocol prot, TStatus struct) throws org.apache.thrift.TException {
    + TTupleProtocol iprot = (TTupleProtocol) prot;
    + struct.statusCode = org.apache.hive.service.rpc.thrift.TStatusCode.findByValue(iprot.readI32());
    + struct.setStatusCodeIsSet(true);
    + BitSet incoming = iprot.readBitSet(4);
    + if (incoming.get(0)) {
    + {
    + org.apache.thrift.protocol.TList _list139 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32());
    + struct.infoMessages = new ArrayList<String>(_list139.size);
    + String _elem140;
    + for (int _i141 = 0; _i141 < _list139.size; ++_i141)
    + {
    + _elem140 = iprot.readString();
    + struct.infoMessages.add(_elem140);
    + }
    + }
    + struct.setInfoMessagesIsSet(true);
    + }
    + if (incoming.get(1)) {
    + struct.sqlState = iprot.readString();
    + struct.setSqlStateIsSet(true);
    + }
    + if (incoming.get(2)) {
    + struct.errorCode = iprot.readI32();
    + struct.setErrorCodeIsSet(true);
    + }
    + if (incoming.get(3)) {
    + struct.errorMessage = iprot.readString();
    + struct.setErrorMessageIsSet(true);
    + }
    + }
    + }
    +
    +}
    +

    http://git-wip-us.apache.org/repos/asf/hive/blob/2542f5cc/service-rpc/src/gen/thrift/gen-javabean/org/apache/hive/service/rpc/thrift/TStatusCode.java
    ----------------------------------------------------------------------
    diff --git a/service-rpc/src/gen/thrift/gen-javabean/org/apache/hive/service/rpc/thrift/TStatusCode.java b/service-rpc/src/gen/thrift/gen-javabean/org/apache/hive/service/rpc/thrift/TStatusCode.java
    new file mode 100644
    index 0000000..002d640
    --- /dev/null
    +++ b/service-rpc/src/gen/thrift/gen-javabean/org/apache/hive/service/rpc/thrift/TStatusCode.java
    @@ -0,0 +1,54 @@
    +/**
    + * Autogenerated by Thrift Compiler (0.9.2)
    + *
    + * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
    + * @generated
    + */
    +package org.apache.hive.service.rpc.thrift;
    +
    +
    +import java.util.Map;
    +import java.util.HashMap;
    +import org.apache.thrift.TEnum;
    +
    +public enum TStatusCode implements org.apache.thrift.TEnum {
    + SUCCESS_STATUS(0),
    + SUCCESS_WITH_INFO_STATUS(1),
    + STILL_EXECUTING_STATUS(2),
    + ERROR_STATUS(3),
    + INVALID_HANDLE_STATUS(4);
    +
    + private final int value;
    +
    + private TStatusCode(int value) {
    + this.value = value;
    + }
    +
    + /**
    + * Get the integer value of this enum value, as defined in the Thrift IDL.
    + */
    + public int getValue() {
    + return value;
    + }
    +
    + /**
    + * Find a the enum type by its integer value, as defined in the Thrift IDL.
    + * @return null if the value is not found.
    + */
    + public static TStatusCode findByValue(int value) {
    + switch (value) {
    + case 0:
    + return SUCCESS_STATUS;
    + case 1:
    + return SUCCESS_WITH_INFO_STATUS;
    + case 2:
    + return STILL_EXECUTING_STATUS;
    + case 3:
    + return ERROR_STATUS;
    + case 4:
    + return INVALID_HANDLE_STATUS;
    + default:
    + return null;
    + }
    + }
    +}

    http://git-wip-us.apache.org/repos/asf/hive/blob/2542f5cc/service-rpc/src/gen/thrift/gen-javabean/org/apache/hive/service/rpc/thrift/TStringColumn.java
    ----------------------------------------------------------------------
    diff --git a/service-rpc/src/gen/thrift/gen-javabean/org/apache/hive/service/rpc/thrift/TStringColumn.java b/service-rpc/src/gen/thrift/gen-javabean/org/apache/hive/service/rpc/thrift/TStringColumn.java
    new file mode 100644
    index 0000000..14cc223
    --- /dev/null
    +++ b/service-rpc/src/gen/thrift/gen-javabean/org/apache/hive/service/rpc/thrift/TStringColumn.java
    @@ -0,0 +1,548 @@
    +/**
    + * Autogenerated by Thrift Compiler (0.9.2)
    + *
    + * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
    + * @generated
    + */
    +package org.apache.hive.service.rpc.thrift;
    +
    +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"})
    +@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-12-14")
    +public class TStringColumn implements org.apache.thrift.TBase<TStringColumn, TStringColumn._Fields>, java.io.Serializable, Cloneable, Comparable<TStringColumn> {
    + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TStringColumn");
    +
    + private static final org.apache.thrift.protocol.TField VALUES_FIELD_DESC = new org.apache.thrift.protocol.TField("values", org.apache.thrift.protocol.TType.LIST, (short)1);
    + private static final org.apache.thrift.protocol.TField NULLS_FIELD_DESC = new org.apache.thrift.protocol.TField("nulls", org.apache.thrift.protocol.TType.STRING, (short)2);
    +
    + private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
    + static {
    + schemes.put(StandardScheme.class, new TStringColumnStandardSchemeFactory());
    + schemes.put(TupleScheme.class, new TStringColumnTupleSchemeFactory());
    + }
    +
    + private List<String> values; // required
    + private ByteBuffer nulls; // required
    +
    + /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
    + public enum _Fields implements org.apache.thrift.TFieldIdEnum {
    + VALUES((short)1, "values"),
    + NULLS((short)2, "nulls");
    +
    + private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
    +
    + static {
    + for (_Fields field : EnumSet.allOf(_Fields.class)) {
    + byName.put(field.getFieldName(), field);
    + }
    + }
    +
    + /**
    + * Find the _Fields constant that matches fieldId, or null if its not found.
    + */
    + public static _Fields findByThriftId(int fieldId) {
    + switch(fieldId) {
    + case 1: // VALUES
    + return VALUES;
    + case 2: // NULLS
    + return NULLS;
    + default:
    + return null;
    + }
    + }
    +
    + /**
    + * Find the _Fields constant that matches fieldId, throwing an exception
    + * if it is not found.
    + */
    + public static _Fields findByThriftIdOrThrow(int fieldId) {
    + _Fields fields = findByThriftId(fieldId);
    + if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
    + return fields;
    + }
    +
    + /**
    + * Find the _Fields constant that matches name, or null if its not found.
    + */
    + public static _Fields findByName(String name) {
    + return byName.get(name);
    + }
    +
    + private final short _thriftId;
    + private final String _fieldName;
    +
    + _Fields(short thriftId, String fieldName) {
    + _thriftId = thriftId;
    + _fieldName = fieldName;
    + }
    +
    + public short getThriftFieldId() {
    + return _thriftId;
    + }
    +
    + public String getFieldName() {
    + return _fieldName;
    + }
    + }
    +
    + // isset id assignments
    + public static final 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);
    + tmpMap.put(_Fields.VALUES, new org.apache.thrift.meta_data.FieldMetaData("values", org.apache.thrift.TFieldRequirementType.REQUIRED,
    + 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))));
    + tmpMap.put(_Fields.NULLS, new org.apache.thrift.meta_data.FieldMetaData("nulls", org.apache.thrift.TFieldRequirementType.REQUIRED,
    + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , true)));
    + metaDataMap = Collections.unmodifiableMap(tmpMap);
    + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(TStringColumn.class, metaDataMap);
    + }
    +
    + public TStringColumn() {
    + }
    +
    + public TStringColumn(
    + List<String> values,
    + ByteBuffer nulls)
    + {
    + this();
    + this.values = values;
    + this.nulls = org.apache.thrift.TBaseHelper.copyBinary(nulls);
    + }
    +
    + /**
    + * Performs a deep copy on <i>other</i>.
    + */
    + public TStringColumn(TStringColumn other) {
    + if (other.isSetValues()) {
    + List<String> __this__values = new ArrayList<String>(other.values);
    + this.values = __this__values;
    + }
    + if (other.isSetNulls()) {
    + this.nulls = org.apache.thrift.TBaseHelper.copyBinary(other.nulls);
    + }
    + }
    +
    + public TStringColumn deepCopy() {
    + return new TStringColumn(this);
    + }
    +
    + @Override
    + public void clear() {
    + this.values = null;
    + this.nulls = null;
    + }
    +
    + public int getValuesSize() {
    + return (this.values == null) ? 0 : this.values.size();
    + }
    +
    + public java.util.Iterator<String> getValuesIterator() {
    + return (this.values == null) ? null : this.values.iterator();
    + }
    +
    + public void addToValues(String elem) {
    + if (this.values == null) {
    + this.values = new ArrayList<String>();
    + }
    + this.values.add(elem);
    + }
    +
    + public List<String> getValues() {
    + return this.values;
    + }
    +
    + public void setValues(List<String> values) {
    + this.values = values;
    + }
    +
    + public void unsetValues() {
    + this.values = null;
    + }
    +
    + /** Returns true if field values is set (has been assigned a value) and false otherwise */
    + public boolean isSetValues() {
    + return this.values != null;
    + }
    +
    + public void setValuesIsSet(boolean value) {
    + if (!value) {
    + this.values = null;
    + }
    + }
    +
    + public byte[] getNulls() {
    + setNulls(org.apache.thrift.TBaseHelper.rightSize(nulls));
    + return nulls == null ? null : nulls.array();
    + }
    +
    + public ByteBuffer bufferForNulls() {
    + return org.apache.thrift.TBaseHelper.copyBinary(nulls);
    + }
    +
    + public void setNulls(byte[] nulls) {
    + this.nulls = nulls == null ? (ByteBuffer)null : ByteBuffer.wrap(Arrays.copyOf(nulls, nulls.length));
    + }
    +
    + public void setNulls(ByteBuffer nulls) {
    + this.nulls = org.apache.thrift.TBaseHelper.copyBinary(nulls);
    + }
    +
    + public void unsetNulls() {
    + this.nulls = null;
    + }
    +
    + /** Returns true if field nulls is set (has been assigned a value) and false otherwise */
    + public boolean isSetNulls() {
    + return this.nulls != null;
    + }
    +
    + public void setNullsIsSet(boolean value) {
    + if (!value) {
    + this.nulls = null;
    + }
    + }
    +
    + public void setFieldValue(_Fields field, Object value) {
    + switch (field) {
    + case VALUES:
    + if (value == null) {
    + unsetValues();
    + } else {
    + setValues((List<String>)value);
    + }
    + break;
    +
    + case NULLS:
    + if (value == null) {
    + unsetNulls();
    + } else {
    + setNulls((ByteBuffer)value);
    + }
    + break;
    +
    + }
    + }
    +
    + public Object getFieldValue(_Fields field) {
    + switch (field) {
    + case VALUES:
    + return getValues();
    +
    + case NULLS:
    + return getNulls();
    +
    + }
    + throw new IllegalStateException();
    + }
    +
    + /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
    + public boolean isSet(_Fields field) {
    + if (field == null) {
    + throw new IllegalArgumentException();
    + }
    +
    + switch (field) {
    + case VALUES:
    + return isSetValues();
    + case NULLS:
    + return isSetNulls();
    + }
    + throw new IllegalStateException();
    + }
    +
    + @Override
    + public boolean equals(Object that) {
    + if (that == null)
    + return false;
    + if (that instanceof TStringColumn)
    + return this.equals((TStringColumn)that);
    + return false;
    + }
    +
    + public boolean equals(TStringColumn that) {
    + if (that == null)
    + return false;
    +
    + boolean this_present_values = true && this.isSetValues();
    + boolean that_present_values = true && that.isSetValues();
    + if (this_present_values || that_present_values) {
    + if (!(this_present_values && that_present_values))
    + return false;
    + if (!this.values.equals(that.values))
    + return false;
    + }
    +
    + boolean this_present_nulls = true && this.isSetNulls();
    + boolean that_present_nulls = true && that.isSetNulls();
    + if (this_present_nulls || that_present_nulls) {
    + if (!(this_present_nulls && that_present_nulls))
    + return false;
    + if (!this.nulls.equals(that.nulls))
    + return false;
    + }
    +
    + return true;
    + }
    +
    + @Override
    + public int hashCode() {
    + List<Object> list = new ArrayList<Object>();
    +
    + boolean present_values = true && (isSetValues());
    + list.add(present_values);
    + if (present_values)
    + list.add(values);
    +
    + boolean present_nulls = true && (isSetNulls());
    + list.add(present_nulls);
    + if (present_nulls)
    + list.add(nulls);
    +
    + return list.hashCode();
    + }
    +
    + @Override
    + public int compareTo(TStringColumn other) {
    + if (!getClass().equals(other.getClass())) {
    + return getClass().getName().compareTo(other.getClass().getName());
    + }
    +
    + int lastComparison = 0;
    +
    + lastComparison = Boolean.valueOf(isSetValues()).compareTo(other.isSetValues());
    + if (lastComparison != 0) {
    + return lastComparison;
    + }
    + if (isSetValues()) {
    + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.values, other.values);
    + if (lastComparison != 0) {
    + return lastComparison;
    + }
    + }
    + lastComparison = Boolean.valueOf(isSetNulls()).compareTo(other.isSetNulls());
    + if (lastComparison != 0) {
    + return lastComparison;
    + }
    + if (isSetNulls()) {
    + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.nulls, other.nulls);
    + if (lastComparison != 0) {
    + return lastComparison;
    + }
    + }
    + return 0;
    + }
    +
    + public _Fields fieldForId(int fieldId) {
    + return _Fields.findByThriftId(fieldId);
    + }
    +
    + public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
    + schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
    + }
    +
    + public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
    + schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
    + }
    +
    + @Override
    + public String toString() {
    + StringBuilder sb = new StringBuilder("TStringColumn(");
    + boolean first = true;
    +
    + sb.append("values:");
    + if (this.values == null) {
    + sb.append("null");
    + } else {
    + sb.append(this.values);
    + }
    + first = false;
    + if (!first) sb.append(", ");
    + sb.append("nulls:");
    + if (this.nulls == null) {
    + sb.append("null");
    + } else {
    + org.apache.thrift.TBaseHelper.toString(this.nulls, sb);
    + }
    + first = false;
    + sb.append(")");
    + return sb.toString();
    + }
    +
    + public void validate() throws org.apache.thrift.TException {
    + // check for required fields
    + if (!isSetValues()) {
    + throw new org.apache.thrift.protocol.TProtocolException("Required field 'values' is unset! Struct:" + toString());
    + }
    +
    + if (!isSetNulls()) {
    + throw new org.apache.thrift.protocol.TProtocolException("Required field 'nulls' is unset! Struct:" + toString());
    + }
    +
    + // check for sub-struct validity
    + }
    +
    + private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
    + try {
    + write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
    + } catch (org.apache.thrift.TException te) {
    + throw new java.io.IOException(te);
    + }
    + }
    +
    + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
    + try {
    + read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
    + } catch (org.apache.thrift.TException te) {
    + throw new java.io.IOException(te);
    + }
    + }
    +
    + private static class TStringColumnStandardSchemeFactory implements SchemeFactory {
    + public TStringColumnStandardScheme getScheme() {
    + return new TStringColumnStandardScheme();
    + }
    + }
    +
    + private static class TStringColumnStandardScheme extends StandardScheme<TStringColumn> {
    +
    + public void read(org.apache.thrift.protocol.TProtocol iprot, TStringColumn struct) throws org.apache.thrift.TException {
    + org.apache.thrift.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: // VALUES
    + if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
    + {
    + org.apache.thrift.protocol.TList _list102 = iprot.readListBegin();
    + struct.values = new ArrayList<String>(_list102.size);
    + String _elem103;
    + for (int _i104 = 0; _i104 < _list102.size; ++_i104)
    + {
    + _elem103 = iprot.readString();
    + struct.values.add(_elem103);
    + }
    + iprot.readListEnd();
    + }
    + struct.setValuesIsSet(true);
    + } else {
    + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
    + }
    + break;
    + case 2: // NULLS
    + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
    + struct.nulls = iprot.readBinary();
    + struct.setNullsIsSet(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.readStructEnd();
    + struct.validate();
    + }
    +
    + public void write(org.apache.thrift.protocol.TProtocol oprot, TStringColumn struct) throws org.apache.thrift.TException {
    + struct.validate();
    +
    + oprot.writeStructBegin(STRUCT_DESC);
    + if (struct.values != null) {
    + oprot.writeFieldBegin(VALUES_FIELD_DESC);
    + {
    + oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.values.size()));
    + for (String _iter105 : struct.values)
    + {
    + oprot.writeString(_iter105);
    + }
    + oprot.writeListEnd();
    + }
    + oprot.writeFieldEnd();
    + }
    + if (struct.nulls != null) {
    + oprot.writeFieldBegin(NULLS_FIELD_DESC);
    + oprot.writeBinary(struct.nulls);
    + oprot.writeFieldEnd();
    + }
    + oprot.writeFieldStop();
    + oprot.writeStructEnd();
    + }
    +
    + }
    +
    + private static class TStringColumnTupleSchemeFactory implements SchemeFactory {
    + public TStringColumnTupleScheme getScheme() {
    + return new TStringColumnTupleScheme();
    + }
    + }
    +
    + private static class TStringColumnTupleScheme extends TupleScheme<TStringColumn> {
    +
    + @Override
    + public void write(org.apache.thrift.protocol.TProtocol prot, TStringColumn struct) throws org.apache.thrift.TException {
    + TTupleProtocol oprot = (TTupleProtocol) prot;
    + {
    + oprot.writeI32(struct.values.size());
    + for (String _iter106 : struct.values)
    + {
    + oprot.writeString(_iter106);
    + }
    + }
    + oprot.writeBinary(struct.nulls);
    + }
    +
    + @Override
    + public void read(org.apache.thrift.protocol.TProtocol prot, TStringColumn struct) throws org.apache.thrift.TException {
    + TTupleProtocol iprot = (TTupleProtocol) prot;
    + {
    + org.apache.thrift.protocol.TList _list107 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32());
    + struct.values = new ArrayList<String>(_list107.size);
    + String _elem108;
    + for (int _i109 = 0; _i109 < _list107.size; ++_i109)
    + {
    + _elem108 = iprot.readString();
    + struct.values.add(_elem108);
    + }
    + }
    + struct.setValuesIsSet(true);
    + struct.nulls = iprot.readBinary();
    + struct.setNullsIsSet(true);
    + }
    + }
    +
    +}
    +

    http://git-wip-us.apache.org/repos/asf/hive/blob/2542f5cc/service-rpc/src/gen/thrift/gen-javabean/org/apache/hive/service/rpc/thrift/TStringValue.java
    ----------------------------------------------------------------------
    diff --git a/service-rpc/src/gen/thrift/gen-javabean/org/apache/hive/service/rpc/thrift/TStringValue.java b/service-rpc/src/gen/thrift/gen-javabean/org/apache/hive/service/rpc/thrift/TStringValue.java
    new file mode 100644
    index 0000000..f764561
    --- /dev/null
    +++ b/service-rpc/src/gen/thrift/gen-javabean/org/apache/hive/service/rpc/thrift/TStringValue.java
    @@ -0,0 +1,393 @@
    +/**
    + * Autogenerated by Thrift Compiler (0.9.2)
    + *
    + * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
    + * @generated
    + */
    +package org.apache.hive.service.rpc.thrift;
    +
    +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"})
    +@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-12-14")
    +public class TStringValue implements org.apache.thrift.TBase<TStringValue, TStringValue._Fields>, java.io.Serializable, Cloneable, Comparable<TStringValue> {
    + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TStringValue");
    +
    + private static final org.apache.thrift.protocol.TField VALUE_FIELD_DESC = new org.apache.thrift.protocol.TField("value", org.apache.thrift.protocol.TType.STRING, (short)1);
    +
    + private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
    + static {
    + schemes.put(StandardScheme.class, new TStringValueStandardSchemeFactory());
    + schemes.put(TupleScheme.class, new TStringValueTupleSchemeFactory());
    + }
    +
    + private String value; // 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 {
    + VALUE((short)1, "value");
    +
    + private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
    +
    + static {
    + for (_Fields field : EnumSet.allOf(_Fields.class)) {
    + byName.put(field.getFieldName(), field);
    + }
    + }
    +
    + /**
    + * Find the _Fields constant that matches fieldId, or null if its not found.
    + */
    + public static _Fields findByThriftId(int fieldId) {
    + switch(fieldId) {
    + case 1: // VALUE
    + return VALUE;
    + default:
    + return null;
    + }
    + }
    +
    + /**
    + * Find the _Fields constant that matches fieldId, throwing an exception
    + * if it is not found.
    + */
    + public static _Fields findByThriftIdOrThrow(int fieldId) {
    + _Fields fields = findByThriftId(fieldId);
    + if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
    + return fields;
    + }
    +
    + /**
    + * Find the _Fields constant that matches name, or null if its not found.
    + */
    + public static _Fields findByName(String name) {
    + return byName.get(name);
    + }
    +
    + private final short _thriftId;
    + private final String _fieldName;
    +
    + _Fields(short thriftId, String fieldName) {
    + _thriftId = thriftId;
    + _fieldName = fieldName;
    + }
    +
    + public short getThriftFieldId() {
    + return _thriftId;
    + }
    +
    + public String getFieldName() {
    + return _fieldName;
    + }
    + }
    +
    + // isset id assignments
    + private static final _Fields optionals[] = {_Fields.VALUE};
    + public static final 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);
    + tmpMap.put(_Fields.VALUE, new org.apache.thrift.meta_data.FieldMetaData("value", org.apache.thrift.TFieldRequirementType.OPTIONAL,
    + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
    + metaDataMap = Collections.unmodifiableMap(tmpMap);
    + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(TStringValue.class, metaDataMap);
    + }
    +
    + public TStringValue() {
    + }
    +
    + /**
    + * Performs a deep copy on <i>other</i>.
    + */
    + public TStringValue(TStringValue other) {
    + if (other.isSetValue()) {
    + this.value = other.value;
    + }
    + }
    +
    + public TStringValue deepCopy() {
    + return new TStringValue(this);
    + }
    +
    + @Override
    + public void clear() {
    + this.value = null;
    + }
    +
    + public String getValue() {
    + return this.value;
    + }
    +
    + public void setValue(String value) {
    + this.value = value;
    + }
    +
    + public void unsetValue() {
    + this.value = null;
    + }
    +
    + /** Returns true if field value is set (has been assigned a value) and false otherwise */
    + public boolean isSetValue() {
    + return this.value != null;
    + }
    +
    + public void setValueIsSet(boolean value) {
    + if (!value) {
    + this.value = null;
    + }
    + }
    +
    + public void setFieldValue(_Fields field, Object value) {
    + switch (field) {
    + case VALUE:
    + if (value == null) {
    + unsetValue();
    + } else {
    + setValue((String)value);
    + }
    + break;
    +
    + }
    + }
    +
    + public Object getFieldValue(_Fields field) {
    + switch (field) {
    + case VALUE:
    + return getValue();
    +
    + }
    + throw new IllegalStateException();
    + }
    +
    + /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
    + public boolean isSet(_Fields field) {
    + if (field == null) {
    + throw new IllegalArgumentException();
    + }
    +
    + switch (field) {
    + case VALUE:
    + return isSetValue();
    + }
    + throw new IllegalStateException();
    + }
    +
    + @Override
    + public boolean equals(Object that) {
    + if (that == null)
    + return false;
    + if (that instanceof TStringValue)
    + return this.equals((TStringValue)that);
    + return false;
    + }
    +
    + public boolean equals(TStringValue that) {
    + if (that == null)
    + return false;
    +
    + boolean this_present_value = true && this.isSetValue();
    + boolean that_present_value = true && that.isSetValue();
    + if (this_present_value || that_present_value) {
    + if (!(this_present_value && that_present_value))
    + return false;
    + if (!this.value.equals(that.value))
    + return false;
    + }
    +
    + return true;
    + }
    +
    + @Override
    + public int hashCode() {
    + List<Object> list = new ArrayList<Object>();
    +
    + boolean present_value = true && (isSetValue());
    + list.add(present_value);
    + if (present_value)
    + list.add(value);
    +
    + return list.hashCode();
    + }
    +
    + @Override
    + public int compareTo(TStringValue other) {
    + if (!getClass().equals(other.getClass())) {
    + return getClass().getName().compareTo(other.getClass().getName());
    + }
    +
    + int lastComparison = 0;
    +
    + lastComparison = Boolean.valueOf(isSetValue()).compareTo(other.isSetValue());
    + if (lastComparison != 0) {
    + return lastComparison;
    + }
    + if (isSetValue()) {
    + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.value, other.value);
    + if (lastComparison != 0) {
    + return lastComparison;
    + }
    + }
    + return 0;
    + }
    +
    + public _Fields fieldForId(int fieldId) {
    + return _Fields.findByThriftId(fieldId);
    + }
    +
    + public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
    + schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
    + }
    +
    + public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
    + schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
    + }
    +
    + @Override
    + public String toString() {
    + StringBuilder sb = new StringBuilder("TStringValue(");
    + boolean first = true;
    +
    + if (isSetValue()) {
    + sb.append("value:");
    + if (this.value == null) {
    + sb.append("null");
    + } else {
    + sb.append(this.value);
    + }
    + first = false;
    + }
    + sb.append(")");
    + return sb.toString();
    + }
    +
    + public void validate() throws org.apache.thrift.TException {
    + // check for required fields
    + // check for sub-struct validity
    + }
    +
    + private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
    + try {
    + write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
    + } catch (org.apache.thrift.TException te) {
    + throw new java.io.IOException(te);
    + }
    + }
    +
    + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
    + try {
    + read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
    + } catch (org.apache.thrift.TException te) {
    + throw new java.io.IOException(te);
    + }
    + }
    +
    + private static class TStringValueStandardSchemeFactory implements SchemeFactory {
    + public TStringValueStandardScheme getScheme() {
    + return new TStringValueStandardScheme();
    + }
    + }
    +
    + private static class TStringValueStandardScheme extends StandardScheme<TStringValue> {
    +
    + public void read(org.apache.thrift.protocol.TProtocol iprot, TStringValue struct) throws org.apache.thrift.TException {
    + org.apache.thrift.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);
    + }
    + break;
    + default:
    + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
    + }
    + iprot.readFieldEnd();
    + }
    + iprot.readStructEnd();
    + struct.validate();
    + }
    +
    + public void write(org.apache.thrift.protocol.TProtocol oprot, TStringValue struct) throws org.apache.thrift.TException {
    + struct.validate();
    +
    + oprot.writeStructBegin(STRUCT_DESC);
    + if (struct.value != null) {
    + if (struct.isSetValue()) {
    + oprot.writeFieldBegin(VALUE_FIELD_DESC);
    + oprot.writeString(struct.value);
    + oprot.writeFieldEnd();
    + }
    + }
    + oprot.writeFieldStop();
    + oprot.writeStructEnd();
    + }
    +
    + }
    +
    + private static class TStringValueTupleSchemeFactory implements SchemeFactory {
    + public TStringValueTupleScheme getScheme() {
    + return new TStringValueTupleScheme();
    + }
    + }
    +
    + private static class TStringValueTupleScheme extends TupleScheme<TStringValue> {
    +
    + @Override
    + public void write(org.apache.thrift.protocol.TProtocol prot, TStringValue struct) throws org.apache.thrift.TException {
    + TTupleProtocol oprot = (TTupleProtocol) prot;
    + BitSet optionals = new BitSet();
    + if (struct.isSetValue()) {
    + optionals.set(0);
    + }
    + oprot.writeBitSet(optionals, 1);
    + if (struct.isSetValue()) {
    + oprot.writeString(struct.value);
    + }
    + }
    +
    + @Override
    + public void read(org.apache.thrift.protocol.TProtocol prot, TStringValue struct) throws org.apache.thrift.TException {
    + TTupleProtocol iprot = (TTupleProtocol) prot;
    + BitSet incoming = iprot.readBitSet(1);
    + if (incoming.get(0)) {
    + struct.value = iprot.readString();
    + struct.setValueIsSet(true);
    + }
    + }
    + }
    +
    +}
    +

    http://git-wip-us.apache.org/repos/asf/hive/blob/2542f5cc/service-rpc/src/gen/thrift/gen-javabean/org/apache/hive/service/rpc/thrift/TStructTypeEntry.java
    ----------------------------------------------------------------------
    diff --git a/service-rpc/src/gen/thrift/gen-javabean/org/apache/hive/service/rpc/thrift/TStructTypeEntry.java b/service-rpc/src/gen/thrift/gen-javabean/org/apache/hive/service/rpc/thrift/TStructTypeEntry.java
    new file mode 100644
    index 0000000..f9a9bc3
    --- /dev/null
    +++ b/service-rpc/src/gen/thrift/gen-javabean/org/apache/hive/service/rpc/thrift/TStructTypeEntry.java
    @@ -0,0 +1,452 @@
    +/**
    + * Autogenerated by Thrift Compiler (0.9.2)
    + *
    + * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
    + * @generated
    + */
    +package org.apache.hive.service.rpc.thrift;
    +
    +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"})
    +@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-12-14")
    +public class TStructTypeEntry implements org.apache.thrift.TBase<TStructTypeEntry, TStructTypeEntry._Fields>, java.io.Serializable, Cloneable, Comparable<TStructTypeEntry> {
    + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TStructTypeEntry");
    +
    + private static final org.apache.thrift.protocol.TField NAME_TO_TYPE_PTR_FIELD_DESC = new org.apache.thrift.protocol.TField("nameToTypePtr", org.apache.thrift.protocol.TType.MAP, (short)1);
    +
    + private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
    + static {
    + schemes.put(StandardScheme.class, new TStructTypeEntryStandardSchemeFactory());
    + schemes.put(TupleScheme.class, new TStructTypeEntryTupleSchemeFactory());
    + }
    +
    + private Map<String,Integer> nameToTypePtr; // required
    +
    + /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
    + public enum _Fields implements org.apache.thrift.TFieldIdEnum {
    + NAME_TO_TYPE_PTR((short)1, "nameToTypePtr");
    +
    + private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
    +
    + static {
    + for (_Fields field : EnumSet.allOf(_Fields.class)) {
    + byName.put(field.getFieldName(), field);
    + }
    + }
    +
    + /**
    + * Find the _Fields constant that matches fieldId, or null if its not found.
    + */
    + public static _Fields findByThriftId(int fieldId) {
    + switch(fieldId) {
    + case 1: // NAME_TO_TYPE_PTR
    + return NAME_TO_TYPE_PTR;
    + default:
    + return null;
    + }
    + }
    +
    + /**
    + * Find the _Fields constant that matches fieldId, throwing an exception
    + * if it is not found.
    + */
    + public static _Fields findByThriftIdOrThrow(int fieldId) {
    + _Fields fields = findByThriftId(fieldId);
    + if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
    + return fields;
    + }
    +
    + /**
    + * Find the _Fields constant that matches name, or null if its not found.
    + */
    + public static _Fields findByName(String name) {
    + return byName.get(name);
    + }
    +
    + private final short _thriftId;
    + private final String _fieldName;
    +
    + _Fields(short thriftId, String fieldName) {
    + _thriftId = thriftId;
    + _fieldName = fieldName;
    + }
    +
    + public short getThriftFieldId() {
    + return _thriftId;
    + }
    +
    + public String getFieldName() {
    + return _fieldName;
    + }
    + }
    +
    + // isset id assignments
    + public static final 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);
    + tmpMap.put(_Fields.NAME_TO_TYPE_PTR, new org.apache.thrift.meta_data.FieldMetaData("nameToTypePtr", org.apache.thrift.TFieldRequirementType.REQUIRED,
    + new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP,
    + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING),
    + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32 , "TTypeEntryPtr"))));
    + metaDataMap = Collections.unmodifiableMap(tmpMap);
    + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(TStructTypeEntry.class, metaDataMap);
    + }
    +
    + public TStructTypeEntry() {
    + }
    +
    + public TStructTypeEntry(
    + Map<String,Integer> nameToTypePtr)
    + {
    + this();
    + this.nameToTypePtr = nameToTypePtr;
    + }
    +
    + /**
    + * Performs a deep copy on <i>other</i>.
    + */
    + public TStructTypeEntry(TStructTypeEntry other) {
    + if (other.isSetNameToTypePtr()) {
    + Map<String,Integer> __this__nameToTypePtr = new HashMap<String,Integer>(other.nameToTypePtr.size());
    + for (Map.Entry<String, Integer> other_element : other.nameToTypePtr.entrySet()) {
    +
    + String other_element_key = other_element.getKey();
    + Integer other_element_value = other_element.getValue();
    +
    + String __this__nameToTypePtr_copy_key = other_element_key;
    +
    + Integer __this__nameToTypePtr_copy_value = other_element_value;
    +
    + __this__nameToTypePtr.put(__this__nameToTypePtr_copy_key, __this__nameToTypePtr_copy_value);
    + }
    + this.nameToTypePtr = __this__nameToTypePtr;
    + }
    + }
    +
    + public TStructTypeEntry deepCopy() {
    + return new TStructTypeEntry(this);
    + }
    +
    + @Override
    + public void clear() {
    + this.nameToTypePtr = null;
    + }
    +
    + public int getNameToTypePtrSize() {
    + return (this.nameToTypePtr == null) ? 0 : this.nameToTypePtr.size();
    + }
    +
    + public void putToNameToTypePtr(String key, int val) {
    + if (this.nameToTypePtr == null) {
    + this.nameToTypePtr = new HashMap<String,Integer>();
    + }
    + this.nameToTypePtr.put(key, val);
    + }
    +
    + public Map<String,Integer> getNameToTypePtr() {
    + return this.nameToTypePtr;
    + }
    +
    + public void setNameToTypePtr(Map<String,Integer> nameToTypePtr) {
    + this.nameToTypePtr = nameToTypePtr;
    + }
    +
    + public void unsetNameToTypePtr() {
    + this.nameToTypePtr = null;
    + }
    +
    + /** Returns true if field nameToTypePtr is set (has been assigned a value) and false otherwise */
    + public boolean isSetNameToTypePtr() {
    + return this.nameToTypePtr != null;
    + }
    +
    + public void setNameToTypePtrIsSet(boolean value) {
    + if (!value) {
    + this.nameToTypePtr = null;
    + }
    + }
    +
    + public void setFieldValue(_Fields field, Object value) {
    + switch (field) {
    + case NAME_TO_TYPE_PTR:
    + if (value == null) {
    + unsetNameToTypePtr();
    + } else {
    + setNameToTypePtr((Map<String,Integer>)value);
    + }
    + break;
    +
    + }
    + }
    +
    + public Object getFieldValue(_Fields field) {
    + switch (field) {
    + case NAME_TO_TYPE_PTR:
    + return getNameToTypePtr();
    +
    + }
    + throw new IllegalStateException();
    + }
    +
    + /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
    + public boolean isSet(_Fields field) {
    + if (field == null) {
    + throw new IllegalArgumentException();
    + }
    +
    + switch (field) {
    + case NAME_TO_TYPE_PTR:
    + return isSetNameToTypePtr();
    + }
    + throw new IllegalStateException();
    + }
    +
    + @Override
    + public boolean equals(Object that) {
    + if (that == null)
    + return false;
    + if (that instanceof TStructTypeEntry)
    + return this.equals((TStructTypeEntry)that);
    + return false;
    + }
    +
    + public boolean equals(TStructTypeEntry that) {
    + if (that == null)
    + return false;
    +
    + boolean this_present_nameToTypePtr = true && this.isSetNameToTypePtr();
    + boolean that_present_nameToTypePtr = true && that.isSetNameToTypePtr();
    + if (this_present_nameToTypePtr || that_present_nameToTypePtr) {
    + if (!(this_present_nameToTypePtr && that_present_nameToTypePtr))
    + return false;
    + if (!this.nameToTypePtr.equals(that.nameToTypePtr))
    + return false;
    + }
    +
    + return true;
    + }
    +
    + @Override
    + public int hashCode() {
    + List<Object> list = new ArrayList<Object>();
    +
    + boolean present_nameToTypePtr = true && (isSetNameToTypePtr());
    + list.add(present_nameToTypePtr);
    + if (present_nameToTypePtr)
    + list.add(nameToTypePtr);
    +
    + return list.hashCode();
    + }
    +
    + @Override
    + public int compareTo(TStructTypeEntry other) {
    + if (!getClass().equals(other.getClass())) {
    + return getClass().getName().compareTo(other.getClass().getName());
    + }
    +
    + int lastComparison = 0;
    +
    + lastComparison = Boolean.valueOf(isSetNameToTypePtr()).compareTo(other.isSetNameToTypePtr());
    + if (lastComparison != 0) {
    + return lastComparison;
    + }
    + if (isSetNameToTypePtr()) {
    + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.nameToTypePtr, other.nameToTypePtr);
    + if (lastComparison != 0) {
    + return lastComparison;
    + }
    + }
    + return 0;
    + }
    +
    + public _Fields fieldForId(int fieldId) {
    + return _Fields.findByThriftId(fieldId);
    + }
    +
    + public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
    + schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
    + }
    +
    + public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
    + schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
    + }
    +
    + @Override
    + public String toString() {
    + StringBuilder sb = new StringBuilder("TStructTypeEntry(");
    + boolean first = true;
    +
    + sb.append("nameToTypePtr:");
    + if (this.nameToTypePtr == null) {
    + sb.append("null");
    + } else {
    + sb.append(this.nameToTypePtr);
    + }
    + first = false;
    + sb.append(")");
    + return sb.toString();
    + }
    +
    + public void validate() throws org.apache.thrift.TException {
    + // check for required fields
    + if (!isSetNameToTypePtr()) {
    + throw new org.apache.thrift.protocol.TProtocolException("Required field 'nameToTypePtr' is unset! Struct:" + toString());
    + }
    +
    + // check for sub-struct validity
    + }
    +
    + private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
    + try {
    + write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
    + } catch (org.apache.thrift.TException te) {
    + throw new java.io.IOException(te);
    + }
    + }
    +
    + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
    + try {
    + read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
    + } catch (org.apache.thrift.TException te) {
    + throw new java.io.IOException(te);
    + }
    + }
    +
    + private static class TStructTypeEntryStandardSchemeFactory implements SchemeFactory {
    + public TStructTypeEntryStandardScheme getScheme() {
    + return new TStructTypeEntryStandardScheme();
    + }
    + }
    +
    + private static class TStructTypeEntryStandardScheme extends StandardScheme<TStructTypeEntry> {
    +
    + public void read(org.apache.thrift.protocol.TProtocol iprot, TStructTypeEntry struct) throws org.apache.thrift.TException {
    + org.apache.thrift.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: // NAME_TO_TYPE_PTR
    + if (schemeField.type == org.apache.thrift.protocol.TType.MAP) {
    + {
    + org.apache.thrift.protocol.TMap _map10 = iprot.readMapBegin();
    + struct.nameToTypePtr = new HashMap<String,Integer>(2*_map10.size);
    + String _key11;
    + int _val12;
    + for (int _i13 = 0; _i13 < _map10.size; ++_i13)
    + {
    + _key11 = iprot.readString();
    + _val12 = iprot.readI32();
    + struct.nameToTypePtr.put(_key11, _val12);
    + }
    + iprot.readMapEnd();
    + }
    + struct.setNameToTypePtrIsSet(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.readStructEnd();
    + struct.validate();
    + }
    +
    + public void write(org.apache.thrift.protocol.TProtocol oprot, TStructTypeEntry struct) throws org.apache.thrift.TException {
    + struct.validate();
    +
    + oprot.writeStructBegin(STRUCT_DESC);
    + if (struct.nameToTypePtr != null) {
    + oprot.writeFieldBegin(NAME_TO_TYPE_PTR_FIELD_DESC);
    + {
    + oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.I32, struct.nameToTypePtr.size()));
    + for (Map.Entry<String, Integer> _iter14 : struct.nameToTypePtr.entrySet())
    + {
    + oprot.writeString(_iter14.getKey());
    + oprot.writeI32(_iter14.getValue());
    + }
    + oprot.writeMapEnd();
    + }
    + oprot.writeFieldEnd();
    + }
    + oprot.writeFieldStop();
    + oprot.writeStructEnd();
    + }
    +
    + }
    +
    + private static class TStructTypeEntryTupleSchemeFactory implements SchemeFactory {
    + public TStructTypeEntryTupleScheme getScheme() {
    + return new TStructTypeEntryTupleScheme();
    + }
    + }
    +
    + private static class TStructTypeEntryTupleScheme extends TupleScheme<TStructTypeEntry> {
    +
    + @Override
    + public void write(org.apache.thrift.protocol.TProtocol prot, TStructTypeEntry struct) throws org.apache.thrift.TException {
    + TTupleProtocol oprot = (TTupleProtocol) prot;
    + {
    + oprot.writeI32(struct.nameToTypePtr.size());
    + for (Map.Entry<String, Integer> _iter15 : struct.nameToTypePtr.entrySet())
    + {
    + oprot.writeString(_iter15.getKey());
    + oprot.writeI32(_iter15.getValue());
    + }
    + }
    + }
    +
    + @Override
    + public void read(org.apache.thrift.protocol.TProtocol prot, TStructTypeEntry struct) throws org.apache.thrift.TException {
    + TTupleProtocol iprot = (TTupleProtocol) prot;
    + {
    + org.apache.thrift.protocol.TMap _map16 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.I32, iprot.readI32());
    + struct.nameToTypePtr = new HashMap<String,Integer>(2*_map16.size);
    + String _key17;
    + int _val18;
    + for (int _i19 = 0; _i19 < _map16.size; ++_i19)
    + {
    + _key17 = iprot.readString();
    + _val18 = iprot.readI32();
    + struct.nameToTypePtr.put(_key17, _val18);
    + }
    + }
    + struct.setNameToTypePtrIsSet(true);
    + }
    + }
    +
    +}
    +
  • Vgumashta at Jan 8, 2016 at 12:19 am
    http://git-wip-us.apache.org/repos/asf/hive/blob/2542f5cc/service-rpc/src/gen/thrift/gen-py/TCLIService/ttypes.py
    ----------------------------------------------------------------------
    diff --git a/service-rpc/src/gen/thrift/gen-py/TCLIService/ttypes.py b/service-rpc/src/gen/thrift/gen-py/TCLIService/ttypes.py
    new file mode 100644
    index 0000000..efee8ef
    --- /dev/null
    +++ b/service-rpc/src/gen/thrift/gen-py/TCLIService/ttypes.py
    @@ -0,0 +1,6857 @@
    +#
    +# Autogenerated by Thrift Compiler (0.9.2)
    +#
    +# DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
    +#
    +# options string: py
    +#
    +
    +from thrift.Thrift import TType, TMessageType, TException, TApplicationException
    +
    +from thrift.transport import TTransport
    +from thrift.protocol import TBinaryProtocol, TProtocol
    +try:
    + from thrift.protocol import fastbinary
    +except:
    + fastbinary = None
    +
    +
    +class TProtocolVersion:
    + HIVE_CLI_SERVICE_PROTOCOL_V1 = 0
    + HIVE_CLI_SERVICE_PROTOCOL_V2 = 1
    + HIVE_CLI_SERVICE_PROTOCOL_V3 = 2
    + HIVE_CLI_SERVICE_PROTOCOL_V4 = 3
    + HIVE_CLI_SERVICE_PROTOCOL_V5 = 4
    + HIVE_CLI_SERVICE_PROTOCOL_V6 = 5
    + HIVE_CLI_SERVICE_PROTOCOL_V7 = 6
    + HIVE_CLI_SERVICE_PROTOCOL_V8 = 7
    +
    + _VALUES_TO_NAMES = {
    + 0: "HIVE_CLI_SERVICE_PROTOCOL_V1",
    + 1: "HIVE_CLI_SERVICE_PROTOCOL_V2",
    + 2: "HIVE_CLI_SERVICE_PROTOCOL_V3",
    + 3: "HIVE_CLI_SERVICE_PROTOCOL_V4",
    + 4: "HIVE_CLI_SERVICE_PROTOCOL_V5",
    + 5: "HIVE_CLI_SERVICE_PROTOCOL_V6",
    + 6: "HIVE_CLI_SERVICE_PROTOCOL_V7",
    + 7: "HIVE_CLI_SERVICE_PROTOCOL_V8",
    + }
    +
    + _NAMES_TO_VALUES = {
    + "HIVE_CLI_SERVICE_PROTOCOL_V1": 0,
    + "HIVE_CLI_SERVICE_PROTOCOL_V2": 1,
    + "HIVE_CLI_SERVICE_PROTOCOL_V3": 2,
    + "HIVE_CLI_SERVICE_PROTOCOL_V4": 3,
    + "HIVE_CLI_SERVICE_PROTOCOL_V5": 4,
    + "HIVE_CLI_SERVICE_PROTOCOL_V6": 5,
    + "HIVE_CLI_SERVICE_PROTOCOL_V7": 6,
    + "HIVE_CLI_SERVICE_PROTOCOL_V8": 7,
    + }
    +
    +class TTypeId:
    + BOOLEAN_TYPE = 0
    + TINYINT_TYPE = 1
    + SMALLINT_TYPE = 2
    + INT_TYPE = 3
    + BIGINT_TYPE = 4
    + FLOAT_TYPE = 5
    + DOUBLE_TYPE = 6
    + STRING_TYPE = 7
    + TIMESTAMP_TYPE = 8
    + BINARY_TYPE = 9
    + ARRAY_TYPE = 10
    + MAP_TYPE = 11
    + STRUCT_TYPE = 12
    + UNION_TYPE = 13
    + USER_DEFINED_TYPE = 14
    + DECIMAL_TYPE = 15
    + NULL_TYPE = 16
    + DATE_TYPE = 17
    + VARCHAR_TYPE = 18
    + CHAR_TYPE = 19
    + INTERVAL_YEAR_MONTH_TYPE = 20
    + INTERVAL_DAY_TIME_TYPE = 21
    +
    + _VALUES_TO_NAMES = {
    + 0: "BOOLEAN_TYPE",
    + 1: "TINYINT_TYPE",
    + 2: "SMALLINT_TYPE",
    + 3: "INT_TYPE",
    + 4: "BIGINT_TYPE",
    + 5: "FLOAT_TYPE",
    + 6: "DOUBLE_TYPE",
    + 7: "STRING_TYPE",
    + 8: "TIMESTAMP_TYPE",
    + 9: "BINARY_TYPE",
    + 10: "ARRAY_TYPE",
    + 11: "MAP_TYPE",
    + 12: "STRUCT_TYPE",
    + 13: "UNION_TYPE",
    + 14: "USER_DEFINED_TYPE",
    + 15: "DECIMAL_TYPE",
    + 16: "NULL_TYPE",
    + 17: "DATE_TYPE",
    + 18: "VARCHAR_TYPE",
    + 19: "CHAR_TYPE",
    + 20: "INTERVAL_YEAR_MONTH_TYPE",
    + 21: "INTERVAL_DAY_TIME_TYPE",
    + }
    +
    + _NAMES_TO_VALUES = {
    + "BOOLEAN_TYPE": 0,
    + "TINYINT_TYPE": 1,
    + "SMALLINT_TYPE": 2,
    + "INT_TYPE": 3,
    + "BIGINT_TYPE": 4,
    + "FLOAT_TYPE": 5,
    + "DOUBLE_TYPE": 6,
    + "STRING_TYPE": 7,
    + "TIMESTAMP_TYPE": 8,
    + "BINARY_TYPE": 9,
    + "ARRAY_TYPE": 10,
    + "MAP_TYPE": 11,
    + "STRUCT_TYPE": 12,
    + "UNION_TYPE": 13,
    + "USER_DEFINED_TYPE": 14,
    + "DECIMAL_TYPE": 15,
    + "NULL_TYPE": 16,
    + "DATE_TYPE": 17,
    + "VARCHAR_TYPE": 18,
    + "CHAR_TYPE": 19,
    + "INTERVAL_YEAR_MONTH_TYPE": 20,
    + "INTERVAL_DAY_TIME_TYPE": 21,
    + }
    +
    +class TStatusCode:
    + SUCCESS_STATUS = 0
    + SUCCESS_WITH_INFO_STATUS = 1
    + STILL_EXECUTING_STATUS = 2
    + ERROR_STATUS = 3
    + INVALID_HANDLE_STATUS = 4
    +
    + _VALUES_TO_NAMES = {
    + 0: "SUCCESS_STATUS",
    + 1: "SUCCESS_WITH_INFO_STATUS",
    + 2: "STILL_EXECUTING_STATUS",
    + 3: "ERROR_STATUS",
    + 4: "INVALID_HANDLE_STATUS",
    + }
    +
    + _NAMES_TO_VALUES = {
    + "SUCCESS_STATUS": 0,
    + "SUCCESS_WITH_INFO_STATUS": 1,
    + "STILL_EXECUTING_STATUS": 2,
    + "ERROR_STATUS": 3,
    + "INVALID_HANDLE_STATUS": 4,
    + }
    +
    +class TOperationState:
    + INITIALIZED_STATE = 0
    + RUNNING_STATE = 1
    + FINISHED_STATE = 2
    + CANCELED_STATE = 3
    + CLOSED_STATE = 4
    + ERROR_STATE = 5
    + UKNOWN_STATE = 6
    + PENDING_STATE = 7
    +
    + _VALUES_TO_NAMES = {
    + 0: "INITIALIZED_STATE",
    + 1: "RUNNING_STATE",
    + 2: "FINISHED_STATE",
    + 3: "CANCELED_STATE",
    + 4: "CLOSED_STATE",
    + 5: "ERROR_STATE",
    + 6: "UKNOWN_STATE",
    + 7: "PENDING_STATE",
    + }
    +
    + _NAMES_TO_VALUES = {
    + "INITIALIZED_STATE": 0,
    + "RUNNING_STATE": 1,
    + "FINISHED_STATE": 2,
    + "CANCELED_STATE": 3,
    + "CLOSED_STATE": 4,
    + "ERROR_STATE": 5,
    + "UKNOWN_STATE": 6,
    + "PENDING_STATE": 7,
    + }
    +
    +class TOperationType:
    + EXECUTE_STATEMENT = 0
    + GET_TYPE_INFO = 1
    + GET_CATALOGS = 2
    + GET_SCHEMAS = 3
    + GET_TABLES = 4
    + GET_TABLE_TYPES = 5
    + GET_COLUMNS = 6
    + GET_FUNCTIONS = 7
    + UNKNOWN = 8
    +
    + _VALUES_TO_NAMES = {
    + 0: "EXECUTE_STATEMENT",
    + 1: "GET_TYPE_INFO",
    + 2: "GET_CATALOGS",
    + 3: "GET_SCHEMAS",
    + 4: "GET_TABLES",
    + 5: "GET_TABLE_TYPES",
    + 6: "GET_COLUMNS",
    + 7: "GET_FUNCTIONS",
    + 8: "UNKNOWN",
    + }
    +
    + _NAMES_TO_VALUES = {
    + "EXECUTE_STATEMENT": 0,
    + "GET_TYPE_INFO": 1,
    + "GET_CATALOGS": 2,
    + "GET_SCHEMAS": 3,
    + "GET_TABLES": 4,
    + "GET_TABLE_TYPES": 5,
    + "GET_COLUMNS": 6,
    + "GET_FUNCTIONS": 7,
    + "UNKNOWN": 8,
    + }
    +
    +class TGetInfoType:
    + CLI_MAX_DRIVER_CONNECTIONS = 0
    + CLI_MAX_CONCURRENT_ACTIVITIES = 1
    + CLI_DATA_SOURCE_NAME = 2
    + CLI_FETCH_DIRECTION = 8
    + CLI_SERVER_NAME = 13
    + CLI_SEARCH_PATTERN_ESCAPE = 14
    + CLI_DBMS_NAME = 17
    + CLI_DBMS_VER = 18
    + CLI_ACCESSIBLE_TABLES = 19
    + CLI_ACCESSIBLE_PROCEDURES = 20
    + CLI_CURSOR_COMMIT_BEHAVIOR = 23
    + CLI_DATA_SOURCE_READ_ONLY = 25
    + CLI_DEFAULT_TXN_ISOLATION = 26
    + CLI_IDENTIFIER_CASE = 28
    + CLI_IDENTIFIER_QUOTE_CHAR = 29
    + CLI_MAX_COLUMN_NAME_LEN = 30
    + CLI_MAX_CURSOR_NAME_LEN = 31
    + CLI_MAX_SCHEMA_NAME_LEN = 32
    + CLI_MAX_CATALOG_NAME_LEN = 34
    + CLI_MAX_TABLE_NAME_LEN = 35
    + CLI_SCROLL_CONCURRENCY = 43
    + CLI_TXN_CAPABLE = 46
    + CLI_USER_NAME = 47
    + CLI_TXN_ISOLATION_OPTION = 72
    + CLI_INTEGRITY = 73
    + CLI_GETDATA_EXTENSIONS = 81
    + CLI_NULL_COLLATION = 85
    + CLI_ALTER_TABLE = 86
    + CLI_ORDER_BY_COLUMNS_IN_SELECT = 90
    + CLI_SPECIAL_CHARACTERS = 94
    + CLI_MAX_COLUMNS_IN_GROUP_BY = 97
    + CLI_MAX_COLUMNS_IN_INDEX = 98
    + CLI_MAX_COLUMNS_IN_ORDER_BY = 99
    + CLI_MAX_COLUMNS_IN_SELECT = 100
    + CLI_MAX_COLUMNS_IN_TABLE = 101
    + CLI_MAX_INDEX_SIZE = 102
    + CLI_MAX_ROW_SIZE = 104
    + CLI_MAX_STATEMENT_LEN = 105
    + CLI_MAX_TABLES_IN_SELECT = 106
    + CLI_MAX_USER_NAME_LEN = 107
    + CLI_OJ_CAPABILITIES = 115
    + CLI_XOPEN_CLI_YEAR = 10000
    + CLI_CURSOR_SENSITIVITY = 10001
    + CLI_DESCRIBE_PARAMETER = 10002
    + CLI_CATALOG_NAME = 10003
    + CLI_COLLATION_SEQ = 10004
    + CLI_MAX_IDENTIFIER_LEN = 10005
    +
    + _VALUES_TO_NAMES = {
    + 0: "CLI_MAX_DRIVER_CONNECTIONS",
    + 1: "CLI_MAX_CONCURRENT_ACTIVITIES",
    + 2: "CLI_DATA_SOURCE_NAME",
    + 8: "CLI_FETCH_DIRECTION",
    + 13: "CLI_SERVER_NAME",
    + 14: "CLI_SEARCH_PATTERN_ESCAPE",
    + 17: "CLI_DBMS_NAME",
    + 18: "CLI_DBMS_VER",
    + 19: "CLI_ACCESSIBLE_TABLES",
    + 20: "CLI_ACCESSIBLE_PROCEDURES",
    + 23: "CLI_CURSOR_COMMIT_BEHAVIOR",
    + 25: "CLI_DATA_SOURCE_READ_ONLY",
    + 26: "CLI_DEFAULT_TXN_ISOLATION",
    + 28: "CLI_IDENTIFIER_CASE",
    + 29: "CLI_IDENTIFIER_QUOTE_CHAR",
    + 30: "CLI_MAX_COLUMN_NAME_LEN",
    + 31: "CLI_MAX_CURSOR_NAME_LEN",
    + 32: "CLI_MAX_SCHEMA_NAME_LEN",
    + 34: "CLI_MAX_CATALOG_NAME_LEN",
    + 35: "CLI_MAX_TABLE_NAME_LEN",
    + 43: "CLI_SCROLL_CONCURRENCY",
    + 46: "CLI_TXN_CAPABLE",
    + 47: "CLI_USER_NAME",
    + 72: "CLI_TXN_ISOLATION_OPTION",
    + 73: "CLI_INTEGRITY",
    + 81: "CLI_GETDATA_EXTENSIONS",
    + 85: "CLI_NULL_COLLATION",
    + 86: "CLI_ALTER_TABLE",
    + 90: "CLI_ORDER_BY_COLUMNS_IN_SELECT",
    + 94: "CLI_SPECIAL_CHARACTERS",
    + 97: "CLI_MAX_COLUMNS_IN_GROUP_BY",
    + 98: "CLI_MAX_COLUMNS_IN_INDEX",
    + 99: "CLI_MAX_COLUMNS_IN_ORDER_BY",
    + 100: "CLI_MAX_COLUMNS_IN_SELECT",
    + 101: "CLI_MAX_COLUMNS_IN_TABLE",
    + 102: "CLI_MAX_INDEX_SIZE",
    + 104: "CLI_MAX_ROW_SIZE",
    + 105: "CLI_MAX_STATEMENT_LEN",
    + 106: "CLI_MAX_TABLES_IN_SELECT",
    + 107: "CLI_MAX_USER_NAME_LEN",
    + 115: "CLI_OJ_CAPABILITIES",
    + 10000: "CLI_XOPEN_CLI_YEAR",
    + 10001: "CLI_CURSOR_SENSITIVITY",
    + 10002: "CLI_DESCRIBE_PARAMETER",
    + 10003: "CLI_CATALOG_NAME",
    + 10004: "CLI_COLLATION_SEQ",
    + 10005: "CLI_MAX_IDENTIFIER_LEN",
    + }
    +
    + _NAMES_TO_VALUES = {
    + "CLI_MAX_DRIVER_CONNECTIONS": 0,
    + "CLI_MAX_CONCURRENT_ACTIVITIES": 1,
    + "CLI_DATA_SOURCE_NAME": 2,
    + "CLI_FETCH_DIRECTION": 8,
    + "CLI_SERVER_NAME": 13,
    + "CLI_SEARCH_PATTERN_ESCAPE": 14,
    + "CLI_DBMS_NAME": 17,
    + "CLI_DBMS_VER": 18,
    + "CLI_ACCESSIBLE_TABLES": 19,
    + "CLI_ACCESSIBLE_PROCEDURES": 20,
    + "CLI_CURSOR_COMMIT_BEHAVIOR": 23,
    + "CLI_DATA_SOURCE_READ_ONLY": 25,
    + "CLI_DEFAULT_TXN_ISOLATION": 26,
    + "CLI_IDENTIFIER_CASE": 28,
    + "CLI_IDENTIFIER_QUOTE_CHAR": 29,
    + "CLI_MAX_COLUMN_NAME_LEN": 30,
    + "CLI_MAX_CURSOR_NAME_LEN": 31,
    + "CLI_MAX_SCHEMA_NAME_LEN": 32,
    + "CLI_MAX_CATALOG_NAME_LEN": 34,
    + "CLI_MAX_TABLE_NAME_LEN": 35,
    + "CLI_SCROLL_CONCURRENCY": 43,
    + "CLI_TXN_CAPABLE": 46,
    + "CLI_USER_NAME": 47,
    + "CLI_TXN_ISOLATION_OPTION": 72,
    + "CLI_INTEGRITY": 73,
    + "CLI_GETDATA_EXTENSIONS": 81,
    + "CLI_NULL_COLLATION": 85,
    + "CLI_ALTER_TABLE": 86,
    + "CLI_ORDER_BY_COLUMNS_IN_SELECT": 90,
    + "CLI_SPECIAL_CHARACTERS": 94,
    + "CLI_MAX_COLUMNS_IN_GROUP_BY": 97,
    + "CLI_MAX_COLUMNS_IN_INDEX": 98,
    + "CLI_MAX_COLUMNS_IN_ORDER_BY": 99,
    + "CLI_MAX_COLUMNS_IN_SELECT": 100,
    + "CLI_MAX_COLUMNS_IN_TABLE": 101,
    + "CLI_MAX_INDEX_SIZE": 102,
    + "CLI_MAX_ROW_SIZE": 104,
    + "CLI_MAX_STATEMENT_LEN": 105,
    + "CLI_MAX_TABLES_IN_SELECT": 106,
    + "CLI_MAX_USER_NAME_LEN": 107,
    + "CLI_OJ_CAPABILITIES": 115,
    + "CLI_XOPEN_CLI_YEAR": 10000,
    + "CLI_CURSOR_SENSITIVITY": 10001,
    + "CLI_DESCRIBE_PARAMETER": 10002,
    + "CLI_CATALOG_NAME": 10003,
    + "CLI_COLLATION_SEQ": 10004,
    + "CLI_MAX_IDENTIFIER_LEN": 10005,
    + }
    +
    +class TFetchOrientation:
    + FETCH_NEXT = 0
    + FETCH_PRIOR = 1
    + FETCH_RELATIVE = 2
    + FETCH_ABSOLUTE = 3
    + FETCH_FIRST = 4
    + FETCH_LAST = 5
    +
    + _VALUES_TO_NAMES = {
    + 0: "FETCH_NEXT",
    + 1: "FETCH_PRIOR",
    + 2: "FETCH_RELATIVE",
    + 3: "FETCH_ABSOLUTE",
    + 4: "FETCH_FIRST",
    + 5: "FETCH_LAST",
    + }
    +
    + _NAMES_TO_VALUES = {
    + "FETCH_NEXT": 0,
    + "FETCH_PRIOR": 1,
    + "FETCH_RELATIVE": 2,
    + "FETCH_ABSOLUTE": 3,
    + "FETCH_FIRST": 4,
    + "FETCH_LAST": 5,
    + }
    +
    +
    +class TTypeQualifierValue:
    + """
    + Attributes:
    + - i32Value
    + - stringValue
    + """
    +
    + thrift_spec = (
    + None, # 0
    + (1, TType.I32, 'i32Value', None, None, ), # 1
    + (2, TType.STRING, 'stringValue', None, None, ), # 2
    + )
    +
    + def __init__(self, i32Value=None, stringValue=None,):
    + self.i32Value = i32Value
    + self.stringValue = stringValue
    +
    + def read(self, iprot):
    + if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
    + fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
    + return
    + iprot.readStructBegin()
    + while True:
    + (fname, ftype, fid) = iprot.readFieldBegin()
    + if ftype == TType.STOP:
    + break
    + if fid == 1:
    + if ftype == TType.I32:
    + self.i32Value = iprot.readI32();
    + else:
    + iprot.skip(ftype)
    + elif fid == 2:
    + if ftype == TType.STRING:
    + self.stringValue = iprot.readString();
    + else:
    + iprot.skip(ftype)
    + else:
    + iprot.skip(ftype)
    + iprot.readFieldEnd()
    + iprot.readStructEnd()
    +
    + def write(self, oprot):
    + if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
    + oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
    + return
    + oprot.writeStructBegin('TTypeQualifierValue')
    + if self.i32Value is not None:
    + oprot.writeFieldBegin('i32Value', TType.I32, 1)
    + oprot.writeI32(self.i32Value)
    + oprot.writeFieldEnd()
    + if self.stringValue is not None:
    + oprot.writeFieldBegin('stringValue', TType.STRING, 2)
    + oprot.writeString(self.stringValue)
    + oprot.writeFieldEnd()
    + oprot.writeFieldStop()
    + oprot.writeStructEnd()
    +
    + def validate(self):
    + return
    +
    +
    + def __hash__(self):
    + value = 17
    + value = (value * 31) ^ hash(self.i32Value)
    + value = (value * 31) ^ hash(self.stringValue)
    + return value
    +
    + def __repr__(self):
    + L = ['%s=%r' % (key, value)
    + for key, value in self.__dict__.iteritems()]
    + return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
    +
    + def __eq__(self, other):
    + return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
    +
    + def __ne__(self, other):
    + return not (self == other)
    +
    +class TTypeQualifiers:
    + """
    + Attributes:
    + - qualifiers
    + """
    +
    + thrift_spec = (
    + None, # 0
    + (1, TType.MAP, 'qualifiers', (TType.STRING,None,TType.STRUCT,(TTypeQualifierValue, TTypeQualifierValue.thrift_spec)), None, ), # 1
    + )
    +
    + def __init__(self, qualifiers=None,):
    + self.qualifiers = qualifiers
    +
    + def read(self, iprot):
    + if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
    + fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
    + return
    + iprot.readStructBegin()
    + while True:
    + (fname, ftype, fid) = iprot.readFieldBegin()
    + if ftype == TType.STOP:
    + break
    + if fid == 1:
    + if ftype == TType.MAP:
    + self.qualifiers = {}
    + (_ktype1, _vtype2, _size0 ) = iprot.readMapBegin()
    + for _i4 in xrange(_size0):
    + _key5 = iprot.readString();
    + _val6 = TTypeQualifierValue()
    + _val6.read(iprot)
    + self.qualifiers[_key5] = _val6
    + iprot.readMapEnd()
    + else:
    + iprot.skip(ftype)
    + else:
    + iprot.skip(ftype)
    + iprot.readFieldEnd()
    + iprot.readStructEnd()
    +
    + def write(self, oprot):
    + if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
    + oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
    + return
    + oprot.writeStructBegin('TTypeQualifiers')
    + if self.qualifiers is not None:
    + oprot.writeFieldBegin('qualifiers', TType.MAP, 1)
    + oprot.writeMapBegin(TType.STRING, TType.STRUCT, len(self.qualifiers))
    + for kiter7,viter8 in self.qualifiers.items():
    + oprot.writeString(kiter7)
    + viter8.write(oprot)
    + oprot.writeMapEnd()
    + oprot.writeFieldEnd()
    + oprot.writeFieldStop()
    + oprot.writeStructEnd()
    +
    + def validate(self):
    + if self.qualifiers is None:
    + raise TProtocol.TProtocolException(message='Required field qualifiers is unset!')
    + return
    +
    +
    + def __hash__(self):
    + value = 17
    + value = (value * 31) ^ hash(self.qualifiers)
    + return value
    +
    + def __repr__(self):
    + L = ['%s=%r' % (key, value)
    + for key, value in self.__dict__.iteritems()]
    + return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
    +
    + def __eq__(self, other):
    + return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
    +
    + def __ne__(self, other):
    + return not (self == other)
    +
    +class TPrimitiveTypeEntry:
    + """
    + Attributes:
    + - type
    + - typeQualifiers
    + """
    +
    + thrift_spec = (
    + None, # 0
    + (1, TType.I32, 'type', None, None, ), # 1
    + (2, TType.STRUCT, 'typeQualifiers', (TTypeQualifiers, TTypeQualifiers.thrift_spec), None, ), # 2
    + )
    +
    + def __init__(self, type=None, typeQualifiers=None,):
    + self.type = type
    + self.typeQualifiers = typeQualifiers
    +
    + def read(self, iprot):
    + if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
    + fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
    + return
    + iprot.readStructBegin()
    + while True:
    + (fname, ftype, fid) = iprot.readFieldBegin()
    + if ftype == TType.STOP:
    + break
    + if fid == 1:
    + if ftype == TType.I32:
    + self.type = iprot.readI32();
    + else:
    + iprot.skip(ftype)
    + elif fid == 2:
    + if ftype == TType.STRUCT:
    + self.typeQualifiers = TTypeQualifiers()
    + self.typeQualifiers.read(iprot)
    + else:
    + iprot.skip(ftype)
    + else:
    + iprot.skip(ftype)
    + iprot.readFieldEnd()
    + iprot.readStructEnd()
    +
    + def write(self, oprot):
    + if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
    + oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
    + return
    + oprot.writeStructBegin('TPrimitiveTypeEntry')
    + if self.type is not None:
    + oprot.writeFieldBegin('type', TType.I32, 1)
    + oprot.writeI32(self.type)
    + oprot.writeFieldEnd()
    + if self.typeQualifiers is not None:
    + oprot.writeFieldBegin('typeQualifiers', TType.STRUCT, 2)
    + self.typeQualifiers.write(oprot)
    + oprot.writeFieldEnd()
    + oprot.writeFieldStop()
    + oprot.writeStructEnd()
    +
    + def validate(self):
    + if self.type is None:
    + raise TProtocol.TProtocolException(message='Required field type is unset!')
    + return
    +
    +
    + def __hash__(self):
    + value = 17
    + value = (value * 31) ^ hash(self.type)
    + value = (value * 31) ^ hash(self.typeQualifiers)
    + return value
    +
    + def __repr__(self):
    + L = ['%s=%r' % (key, value)
    + for key, value in self.__dict__.iteritems()]
    + return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
    +
    + def __eq__(self, other):
    + return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
    +
    + def __ne__(self, other):
    + return not (self == other)
    +
    +class TArrayTypeEntry:
    + """
    + Attributes:
    + - objectTypePtr
    + """
    +
    + thrift_spec = (
    + None, # 0
    + (1, TType.I32, 'objectTypePtr', None, None, ), # 1
    + )
    +
    + def __init__(self, objectTypePtr=None,):
    + self.objectTypePtr = objectTypePtr
    +
    + def read(self, iprot):
    + if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
    + fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
    + return
    + iprot.readStructBegin()
    + while True:
    + (fname, ftype, fid) = iprot.readFieldBegin()
    + if ftype == TType.STOP:
    + break
    + if fid == 1:
    + if ftype == TType.I32:
    + self.objectTypePtr = iprot.readI32();
    + else:
    + iprot.skip(ftype)
    + else:
    + iprot.skip(ftype)
    + iprot.readFieldEnd()
    + iprot.readStructEnd()
    +
    + def write(self, oprot):
    + if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
    + oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
    + return
    + oprot.writeStructBegin('TArrayTypeEntry')
    + if self.objectTypePtr is not None:
    + oprot.writeFieldBegin('objectTypePtr', TType.I32, 1)
    + oprot.writeI32(self.objectTypePtr)
    + oprot.writeFieldEnd()
    + oprot.writeFieldStop()
    + oprot.writeStructEnd()
    +
    + def validate(self):
    + if self.objectTypePtr is None:
    + raise TProtocol.TProtocolException(message='Required field objectTypePtr is unset!')
    + return
    +
    +
    + def __hash__(self):
    + value = 17
    + value = (value * 31) ^ hash(self.objectTypePtr)
    + return value
    +
    + def __repr__(self):
    + L = ['%s=%r' % (key, value)
    + for key, value in self.__dict__.iteritems()]
    + return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
    +
    + def __eq__(self, other):
    + return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
    +
    + def __ne__(self, other):
    + return not (self == other)
    +
    +class TMapTypeEntry:
    + """
    + Attributes:
    + - keyTypePtr
    + - valueTypePtr
    + """
    +
    + thrift_spec = (
    + None, # 0
    + (1, TType.I32, 'keyTypePtr', None, None, ), # 1
    + (2, TType.I32, 'valueTypePtr', None, None, ), # 2
    + )
    +
    + def __init__(self, keyTypePtr=None, valueTypePtr=None,):
    + self.keyTypePtr = keyTypePtr
    + self.valueTypePtr = valueTypePtr
    +
    + def read(self, iprot):
    + if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
    + fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
    + return
    + iprot.readStructBegin()
    + while True:
    + (fname, ftype, fid) = iprot.readFieldBegin()
    + if ftype == TType.STOP:
    + break
    + if fid == 1:
    + if ftype == TType.I32:
    + self.keyTypePtr = iprot.readI32();
    + else:
    + iprot.skip(ftype)
    + elif fid == 2:
    + if ftype == TType.I32:
    + self.valueTypePtr = iprot.readI32();
    + else:
    + iprot.skip(ftype)
    + else:
    + iprot.skip(ftype)
    + iprot.readFieldEnd()
    + iprot.readStructEnd()
    +
    + def write(self, oprot):
    + if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
    + oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
    + return
    + oprot.writeStructBegin('TMapTypeEntry')
    + if self.keyTypePtr is not None:
    + oprot.writeFieldBegin('keyTypePtr', TType.I32, 1)
    + oprot.writeI32(self.keyTypePtr)
    + oprot.writeFieldEnd()
    + if self.valueTypePtr is not None:
    + oprot.writeFieldBegin('valueTypePtr', TType.I32, 2)
    + oprot.writeI32(self.valueTypePtr)
    + oprot.writeFieldEnd()
    + oprot.writeFieldStop()
    + oprot.writeStructEnd()
    +
    + def validate(self):
    + if self.keyTypePtr is None:
    + raise TProtocol.TProtocolException(message='Required field keyTypePtr is unset!')
    + if self.valueTypePtr is None:
    + raise TProtocol.TProtocolException(message='Required field valueTypePtr is unset!')
    + return
    +
    +
    + def __hash__(self):
    + value = 17
    + value = (value * 31) ^ hash(self.keyTypePtr)
    + value = (value * 31) ^ hash(self.valueTypePtr)
    + return value
    +
    + def __repr__(self):
    + L = ['%s=%r' % (key, value)
    + for key, value in self.__dict__.iteritems()]
    + return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
    +
    + def __eq__(self, other):
    + return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
    +
    + def __ne__(self, other):
    + return not (self == other)
    +
    +class TStructTypeEntry:
    + """
    + Attributes:
    + - nameToTypePtr
    + """
    +
    + thrift_spec = (
    + None, # 0
    + (1, TType.MAP, 'nameToTypePtr', (TType.STRING,None,TType.I32,None), None, ), # 1
    + )
    +
    + def __init__(self, nameToTypePtr=None,):
    + self.nameToTypePtr = nameToTypePtr
    +
    + def read(self, iprot):
    + if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
    + fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
    + return
    + iprot.readStructBegin()
    + while True:
    + (fname, ftype, fid) = iprot.readFieldBegin()
    + if ftype == TType.STOP:
    + break
    + if fid == 1:
    + if ftype == TType.MAP:
    + self.nameToTypePtr = {}
    + (_ktype10, _vtype11, _size9 ) = iprot.readMapBegin()
    + for _i13 in xrange(_size9):
    + _key14 = iprot.readString();
    + _val15 = iprot.readI32();
    + self.nameToTypePtr[_key14] = _val15
    + iprot.readMapEnd()
    + else:
    + iprot.skip(ftype)
    + else:
    + iprot.skip(ftype)
    + iprot.readFieldEnd()
    + iprot.readStructEnd()
    +
    + def write(self, oprot):
    + if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
    + oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
    + return
    + oprot.writeStructBegin('TStructTypeEntry')
    + if self.nameToTypePtr is not None:
    + oprot.writeFieldBegin('nameToTypePtr', TType.MAP, 1)
    + oprot.writeMapBegin(TType.STRING, TType.I32, len(self.nameToTypePtr))
    + for kiter16,viter17 in self.nameToTypePtr.items():
    + oprot.writeString(kiter16)
    + oprot.writeI32(viter17)
    + oprot.writeMapEnd()
    + oprot.writeFieldEnd()
    + oprot.writeFieldStop()
    + oprot.writeStructEnd()
    +
    + def validate(self):
    + if self.nameToTypePtr is None:
    + raise TProtocol.TProtocolException(message='Required field nameToTypePtr is unset!')
    + return
    +
    +
    + def __hash__(self):
    + value = 17
    + value = (value * 31) ^ hash(self.nameToTypePtr)
    + return value
    +
    + def __repr__(self):
    + L = ['%s=%r' % (key, value)
    + for key, value in self.__dict__.iteritems()]
    + return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
    +
    + def __eq__(self, other):
    + return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
    +
    + def __ne__(self, other):
    + return not (self == other)
    +
    +class TUnionTypeEntry:
    + """
    + Attributes:
    + - nameToTypePtr
    + """
    +
    + thrift_spec = (
    + None, # 0
    + (1, TType.MAP, 'nameToTypePtr', (TType.STRING,None,TType.I32,None), None, ), # 1
    + )
    +
    + def __init__(self, nameToTypePtr=None,):
    + self.nameToTypePtr = nameToTypePtr
    +
    + def read(self, iprot):
    + if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
    + fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
    + return
    + iprot.readStructBegin()
    + while True:
    + (fname, ftype, fid) = iprot.readFieldBegin()
    + if ftype == TType.STOP:
    + break
    + if fid == 1:
    + if ftype == TType.MAP:
    + self.nameToTypePtr = {}
    + (_ktype19, _vtype20, _size18 ) = iprot.readMapBegin()
    + for _i22 in xrange(_size18):
    + _key23 = iprot.readString();
    + _val24 = iprot.readI32();
    + self.nameToTypePtr[_key23] = _val24
    + iprot.readMapEnd()
    + else:
    + iprot.skip(ftype)
    + else:
    + iprot.skip(ftype)
    + iprot.readFieldEnd()
    + iprot.readStructEnd()
    +
    + def write(self, oprot):
    + if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
    + oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
    + return
    + oprot.writeStructBegin('TUnionTypeEntry')
    + if self.nameToTypePtr is not None:
    + oprot.writeFieldBegin('nameToTypePtr', TType.MAP, 1)
    + oprot.writeMapBegin(TType.STRING, TType.I32, len(self.nameToTypePtr))
    + for kiter25,viter26 in self.nameToTypePtr.items():
    + oprot.writeString(kiter25)
    + oprot.writeI32(viter26)
    + oprot.writeMapEnd()
    + oprot.writeFieldEnd()
    + oprot.writeFieldStop()
    + oprot.writeStructEnd()
    +
    + def validate(self):
    + if self.nameToTypePtr is None:
    + raise TProtocol.TProtocolException(message='Required field nameToTypePtr is unset!')
    + return
    +
    +
    + def __hash__(self):
    + value = 17
    + value = (value * 31) ^ hash(self.nameToTypePtr)
    + return value
    +
    + def __repr__(self):
    + L = ['%s=%r' % (key, value)
    + for key, value in self.__dict__.iteritems()]
    + return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
    +
    + def __eq__(self, other):
    + return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
    +
    + def __ne__(self, other):
    + return not (self == other)
    +
    +class TUserDefinedTypeEntry:
    + """
    + Attributes:
    + - typeClassName
    + """
    +
    + thrift_spec = (
    + None, # 0
    + (1, TType.STRING, 'typeClassName', None, None, ), # 1
    + )
    +
    + def __init__(self, typeClassName=None,):
    + self.typeClassName = typeClassName
    +
    + def read(self, iprot):
    + if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
    + fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
    + return
    + iprot.readStructBegin()
    + while True:
    + (fname, ftype, fid) = iprot.readFieldBegin()
    + if ftype == TType.STOP:
    + break
    + if fid == 1:
    + if ftype == TType.STRING:
    + self.typeClassName = iprot.readString();
    + else:
    + iprot.skip(ftype)
    + else:
    + iprot.skip(ftype)
    + iprot.readFieldEnd()
    + iprot.readStructEnd()
    +
    + def write(self, oprot):
    + if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
    + oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
    + return
    + oprot.writeStructBegin('TUserDefinedTypeEntry')
    + if self.typeClassName is not None:
    + oprot.writeFieldBegin('typeClassName', TType.STRING, 1)
    + oprot.writeString(self.typeClassName)
    + oprot.writeFieldEnd()
    + oprot.writeFieldStop()
    + oprot.writeStructEnd()
    +
    + def validate(self):
    + if self.typeClassName is None:
    + raise TProtocol.TProtocolException(message='Required field typeClassName is unset!')
    + return
    +
    +
    + def __hash__(self):
    + value = 17
    + value = (value * 31) ^ hash(self.typeClassName)
    + return value
    +
    + def __repr__(self):
    + L = ['%s=%r' % (key, value)
    + for key, value in self.__dict__.iteritems()]
    + return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
    +
    + def __eq__(self, other):
    + return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
    +
    + def __ne__(self, other):
    + return not (self == other)
    +
    +class TTypeEntry:
    + """
    + Attributes:
    + - primitiveEntry
    + - arrayEntry
    + - mapEntry
    + - structEntry
    + - unionEntry
    + - userDefinedTypeEntry
    + """
    +
    + thrift_spec = (
    + None, # 0
    + (1, TType.STRUCT, 'primitiveEntry', (TPrimitiveTypeEntry, TPrimitiveTypeEntry.thrift_spec), None, ), # 1
    + (2, TType.STRUCT, 'arrayEntry', (TArrayTypeEntry, TArrayTypeEntry.thrift_spec), None, ), # 2
    + (3, TType.STRUCT, 'mapEntry', (TMapTypeEntry, TMapTypeEntry.thrift_spec), None, ), # 3
    + (4, TType.STRUCT, 'structEntry', (TStructTypeEntry, TStructTypeEntry.thrift_spec), None, ), # 4
    + (5, TType.STRUCT, 'unionEntry', (TUnionTypeEntry, TUnionTypeEntry.thrift_spec), None, ), # 5
    + (6, TType.STRUCT, 'userDefinedTypeEntry', (TUserDefinedTypeEntry, TUserDefinedTypeEntry.thrift_spec), None, ), # 6
    + )
    +
    + def __init__(self, primitiveEntry=None, arrayEntry=None, mapEntry=None, structEntry=None, unionEntry=None, userDefinedTypeEntry=None,):
    + self.primitiveEntry = primitiveEntry
    + self.arrayEntry = arrayEntry
    + self.mapEntry = mapEntry
    + self.structEntry = structEntry
    + self.unionEntry = unionEntry
    + self.userDefinedTypeEntry = userDefinedTypeEntry
    +
    + def read(self, iprot):
    + if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
    + fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
    + return
    + iprot.readStructBegin()
    + while True:
    + (fname, ftype, fid) = iprot.readFieldBegin()
    + if ftype == TType.STOP:
    + break
    + if fid == 1:
    + if ftype == TType.STRUCT:
    + self.primitiveEntry = TPrimitiveTypeEntry()
    + self.primitiveEntry.read(iprot)
    + else:
    + iprot.skip(ftype)
    + elif fid == 2:
    + if ftype == TType.STRUCT:
    + self.arrayEntry = TArrayTypeEntry()
    + self.arrayEntry.read(iprot)
    + else:
    + iprot.skip(ftype)
    + elif fid == 3:
    + if ftype == TType.STRUCT:
    + self.mapEntry = TMapTypeEntry()
    + self.mapEntry.read(iprot)
    + else:
    + iprot.skip(ftype)
    + elif fid == 4:
    + if ftype == TType.STRUCT:
    + self.structEntry = TStructTypeEntry()
    + self.structEntry.read(iprot)
    + else:
    + iprot.skip(ftype)
    + elif fid == 5:
    + if ftype == TType.STRUCT:
    + self.unionEntry = TUnionTypeEntry()
    + self.unionEntry.read(iprot)
    + else:
    + iprot.skip(ftype)
    + elif fid == 6:
    + if ftype == TType.STRUCT:
    + self.userDefinedTypeEntry = TUserDefinedTypeEntry()
    + self.userDefinedTypeEntry.read(iprot)
    + else:
    + iprot.skip(ftype)
    + else:
    + iprot.skip(ftype)
    + iprot.readFieldEnd()
    + iprot.readStructEnd()
    +
    + def write(self, oprot):
    + if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
    + oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
    + return
    + oprot.writeStructBegin('TTypeEntry')
    + if self.primitiveEntry is not None:
    + oprot.writeFieldBegin('primitiveEntry', TType.STRUCT, 1)
    + self.primitiveEntry.write(oprot)
    + oprot.writeFieldEnd()
    + if self.arrayEntry is not None:
    + oprot.writeFieldBegin('arrayEntry', TType.STRUCT, 2)
    + self.arrayEntry.write(oprot)
    + oprot.writeFieldEnd()
    + if self.mapEntry is not None:
    + oprot.writeFieldBegin('mapEntry', TType.STRUCT, 3)
    + self.mapEntry.write(oprot)
    + oprot.writeFieldEnd()
    + if self.structEntry is not None:
    + oprot.writeFieldBegin('structEntry', TType.STRUCT, 4)
    + self.structEntry.write(oprot)
    + oprot.writeFieldEnd()
    + if self.unionEntry is not None:
    + oprot.writeFieldBegin('unionEntry', TType.STRUCT, 5)
    + self.unionEntry.write(oprot)
    + oprot.writeFieldEnd()
    + if self.userDefinedTypeEntry is not None:
    + oprot.writeFieldBegin('userDefinedTypeEntry', TType.STRUCT, 6)
    + self.userDefinedTypeEntry.write(oprot)
    + oprot.writeFieldEnd()
    + oprot.writeFieldStop()
    + oprot.writeStructEnd()
    +
    + def validate(self):
    + return
    +
    +
    + def __hash__(self):
    + value = 17
    + value = (value * 31) ^ hash(self.primitiveEntry)
    + value = (value * 31) ^ hash(self.arrayEntry)
    + value = (value * 31) ^ hash(self.mapEntry)
    + value = (value * 31) ^ hash(self.structEntry)
    + value = (value * 31) ^ hash(self.unionEntry)
    + value = (value * 31) ^ hash(self.userDefinedTypeEntry)
    + return value
    +
    + def __repr__(self):
    + L = ['%s=%r' % (key, value)
    + for key, value in self.__dict__.iteritems()]
    + return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
    +
    + def __eq__(self, other):
    + return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
    +
    + def __ne__(self, other):
    + return not (self == other)
    +
    +class TTypeDesc:
    + """
    + Attributes:
    + - types
    + """
    +
    + thrift_spec = (
    + None, # 0
    + (1, TType.LIST, 'types', (TType.STRUCT,(TTypeEntry, TTypeEntry.thrift_spec)), None, ), # 1
    + )
    +
    + def __init__(self, types=None,):
    + self.types = types
    +
    + def read(self, iprot):
    + if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
    + fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
    + return
    + iprot.readStructBegin()
    + while True:
    + (fname, ftype, fid) = iprot.readFieldBegin()
    + if ftype == TType.STOP:
    + break
    + if fid == 1:
    + if ftype == TType.LIST:
    + self.types = []
    + (_etype30, _size27) = iprot.readListBegin()
    + for _i31 in xrange(_size27):
    + _elem32 = TTypeEntry()
    + _elem32.read(iprot)
    + self.types.append(_elem32)
    + iprot.readListEnd()
    + else:
    + iprot.skip(ftype)
    + else:
    + iprot.skip(ftype)
    + iprot.readFieldEnd()
    + iprot.readStructEnd()
    +
    + def write(self, oprot):
    + if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
    + oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
    + return
    + oprot.writeStructBegin('TTypeDesc')
    + if self.types is not None:
    + oprot.writeFieldBegin('types', TType.LIST, 1)
    + oprot.writeListBegin(TType.STRUCT, len(self.types))
    + for iter33 in self.types:
    + iter33.write(oprot)
    + oprot.writeListEnd()
    + oprot.writeFieldEnd()
    + oprot.writeFieldStop()
    + oprot.writeStructEnd()
    +
    + def validate(self):
    + if self.types is None:
    + raise TProtocol.TProtocolException(message='Required field types is unset!')
    + return
    +
    +
    + def __hash__(self):
    + value = 17
    + value = (value * 31) ^ hash(self.types)
    + return value
    +
    + def __repr__(self):
    + L = ['%s=%r' % (key, value)
    + for key, value in self.__dict__.iteritems()]
    + return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
    +
    + def __eq__(self, other):
    + return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
    +
    + def __ne__(self, other):
    + return not (self == other)
    +
    +class TColumnDesc:
    + """
    + Attributes:
    + - columnName
    + - typeDesc
    + - position
    + - comment
    + """
    +
    + thrift_spec = (
    + None, # 0
    + (1, TType.STRING, 'columnName', None, None, ), # 1
    + (2, TType.STRUCT, 'typeDesc', (TTypeDesc, TTypeDesc.thrift_spec), None, ), # 2
    + (3, TType.I32, 'position', None, None, ), # 3
    + (4, TType.STRING, 'comment', None, None, ), # 4
    + )
    +
    + def __init__(self, columnName=None, typeDesc=None, position=None, comment=None,):
    + self.columnName = columnName
    + self.typeDesc = typeDesc
    + self.position = position
    + self.comment = comment
    +
    + def read(self, iprot):
    + if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
    + fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
    + return
    + iprot.readStructBegin()
    + while True:
    + (fname, ftype, fid) = iprot.readFieldBegin()
    + if ftype == TType.STOP:
    + break
    + if fid == 1:
    + if ftype == TType.STRING:
    + self.columnName = iprot.readString();
    + else:
    + iprot.skip(ftype)
    + elif fid == 2:
    + if ftype == TType.STRUCT:
    + self.typeDesc = TTypeDesc()
    + self.typeDesc.read(iprot)
    + else:
    + iprot.skip(ftype)
    + elif fid == 3:
    + if ftype == TType.I32:
    + self.position = iprot.readI32();
    + else:
    + iprot.skip(ftype)
    + elif fid == 4:
    + if ftype == TType.STRING:
    + self.comment = iprot.readString();
    + else:
    + iprot.skip(ftype)
    + else:
    + iprot.skip(ftype)
    + iprot.readFieldEnd()
    + iprot.readStructEnd()
    +
    + def write(self, oprot):
    + if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
    + oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
    + return
    + oprot.writeStructBegin('TColumnDesc')
    + if self.columnName is not None:
    + oprot.writeFieldBegin('columnName', TType.STRING, 1)
    + oprot.writeString(self.columnName)
    + oprot.writeFieldEnd()
    + if self.typeDesc is not None:
    + oprot.writeFieldBegin('typeDesc', TType.STRUCT, 2)
    + self.typeDesc.write(oprot)
    + oprot.writeFieldEnd()
    + if self.position is not None:
    + oprot.writeFieldBegin('position', TType.I32, 3)
    + oprot.writeI32(self.position)
    + oprot.writeFieldEnd()
    + if self.comment is not None:
    + oprot.writeFieldBegin('comment', TType.STRING, 4)
    + oprot.writeString(self.comment)
    + oprot.writeFieldEnd()
    + oprot.writeFieldStop()
    + oprot.writeStructEnd()
    +
    + def validate(self):
    + if self.columnName is None:
    + raise TProtocol.TProtocolException(message='Required field columnName is unset!')
    + if self.typeDesc is None:
    + raise TProtocol.TProtocolException(message='Required field typeDesc is unset!')
    + if self.position is None:
    + raise TProtocol.TProtocolException(message='Required field position is unset!')
    + return
    +
    +
    + def __hash__(self):
    + value = 17
    + value = (value * 31) ^ hash(self.columnName)
    + value = (value * 31) ^ hash(self.typeDesc)
    + value = (value * 31) ^ hash(self.position)
    + value = (value * 31) ^ hash(self.comment)
    + return value
    +
    + def __repr__(self):
    + L = ['%s=%r' % (key, value)
    + for key, value in self.__dict__.iteritems()]
    + return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
    +
    + def __eq__(self, other):
    + return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
    +
    + def __ne__(self, other):
    + return not (self == other)
    +
    +class TTableSchema:
    + """
    + Attributes:
    + - columns
    + """
    +
    + thrift_spec = (
    + None, # 0
    + (1, TType.LIST, 'columns', (TType.STRUCT,(TColumnDesc, TColumnDesc.thrift_spec)), None, ), # 1
    + )
    +
    + def __init__(self, columns=None,):
    + self.columns = columns
    +
    + def read(self, iprot):
    + if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
    + fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
    + return
    + iprot.readStructBegin()
    + while True:
    + (fname, ftype, fid) = iprot.readFieldBegin()
    + if ftype == TType.STOP:
    + break
    + if fid == 1:
    + if ftype == TType.LIST:
    + self.columns = []
    + (_etype37, _size34) = iprot.readListBegin()
    + for _i38 in xrange(_size34):
    + _elem39 = TColumnDesc()
    + _elem39.read(iprot)
    + self.columns.append(_elem39)
    + iprot.readListEnd()
    + else:
    + iprot.skip(ftype)
    + else:
    + iprot.skip(ftype)
    + iprot.readFieldEnd()
    + iprot.readStructEnd()
    +
    + def write(self, oprot):
    + if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
    + oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
    + return
    + oprot.writeStructBegin('TTableSchema')
    + if self.columns is not None:
    + oprot.writeFieldBegin('columns', TType.LIST, 1)
    + oprot.writeListBegin(TType.STRUCT, len(self.columns))
    + for iter40 in self.columns:
    + iter40.write(oprot)
    + oprot.writeListEnd()
    + oprot.writeFieldEnd()
    + oprot.writeFieldStop()
    + oprot.writeStructEnd()
    +
    + def validate(self):
    + if self.columns is None:
    + raise TProtocol.TProtocolException(message='Required field columns is unset!')
    + return
    +
    +
    + def __hash__(self):
    + value = 17
    + value = (value * 31) ^ hash(self.columns)
    + return value
    +
    + def __repr__(self):
    + L = ['%s=%r' % (key, value)
    + for key, value in self.__dict__.iteritems()]
    + return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
    +
    + def __eq__(self, other):
    + return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
    +
    + def __ne__(self, other):
    + return not (self == other)
    +
    +class TBoolValue:
    + """
    + Attributes:
    + - value
    + """
    +
    + thrift_spec = (
    + None, # 0
    + (1, TType.BOOL, 'value', None, None, ), # 1
    + )
    +
    + def __init__(self, value=None,):
    + self.value = value
    +
    + def read(self, iprot):
    + if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
    + fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
    + return
    + iprot.readStructBegin()
    + while True:
    + (fname, ftype, fid) = iprot.readFieldBegin()
    + if ftype == TType.STOP:
    + break
    + if fid == 1:
    + if ftype == TType.BOOL:
    + self.value = iprot.readBool();
    + else:
    + iprot.skip(ftype)
    + else:
    + iprot.skip(ftype)
    + iprot.readFieldEnd()
    + iprot.readStructEnd()
    +
    + def write(self, oprot):
    + if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
    + oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
    + return
    + oprot.writeStructBegin('TBoolValue')
    + if self.value is not None:
    + oprot.writeFieldBegin('value', TType.BOOL, 1)
    + oprot.writeBool(self.value)
    + oprot.writeFieldEnd()
    + oprot.writeFieldStop()
    + oprot.writeStructEnd()
    +
    + def validate(self):
    + return
    +
    +
    + def __hash__(self):
    + value = 17
    + value = (value * 31) ^ hash(self.value)
    + return value
    +
    + def __repr__(self):
    + L = ['%s=%r' % (key, value)
    + for key, value in self.__dict__.iteritems()]
    + return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
    +
    + def __eq__(self, other):
    + return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
    +
    + def __ne__(self, other):
    + return not (self == other)
    +
    +class TByteValue:
    + """
    + Attributes:
    + - value
    + """
    +
    + thrift_spec = (
    + None, # 0
    + (1, TType.BYTE, 'value', None, None, ), # 1
    + )
    +
    + def __init__(self, value=None,):
    + self.value = value
    +
    + def read(self, iprot):
    + if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
    + fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
    + return
    + iprot.readStructBegin()
    + while True:
    + (fname, ftype, fid) = iprot.readFieldBegin()
    + if ftype == TType.STOP:
    + break
    + if fid == 1:
    + if ftype == TType.BYTE:
    + self.value = iprot.readByte();
    + else:
    + iprot.skip(ftype)
    + else:
    + iprot.skip(ftype)
    + iprot.readFieldEnd()
    + iprot.readStructEnd()
    +
    + def write(self, oprot):
    + if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
    + oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
    + return
    + oprot.writeStructBegin('TByteValue')
    + if self.value is not None:
    + oprot.writeFieldBegin('value', TType.BYTE, 1)
    + oprot.writeByte(self.value)
    + oprot.writeFieldEnd()
    + oprot.writeFieldStop()
    + oprot.writeStructEnd()
    +
    + def validate(self):
    + return
    +
    +
    + def __hash__(self):
    + value = 17
    + value = (value * 31) ^ hash(self.value)
    + return value
    +
    + def __repr__(self):
    + L = ['%s=%r' % (key, value)
    + for key, value in self.__dict__.iteritems()]
    + return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
    +
    + def __eq__(self, other):
    + return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
    +
    + def __ne__(self, other):
    + return not (self == other)
    +
    +class TI16Value:
    + """
    + Attributes:
    + - value
    + """
    +
    + thrift_spec = (
    + None, # 0
    + (1, TType.I16, 'value', None, None, ), # 1
    + )
    +
    + def __init__(self, value=None,):
    + self.value = value
    +
    + def read(self, iprot):
    + if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
    + fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
    + return
    + iprot.readStructBegin()
    + while True:
    + (fname, ftype, fid) = iprot.readFieldBegin()
    + if ftype == TType.STOP:
    + break
    + if fid == 1:
    + if ftype == TType.I16:
    + self.value = iprot.readI16();
    + else:
    + iprot.skip(ftype)
    + else:
    + iprot.skip(ftype)
    + iprot.readFieldEnd()
    + iprot.readStructEnd()
    +
    + def write(self, oprot):
    + if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
    + oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
    + return
    + oprot.writeStructBegin('TI16Value')
    + if self.value is not None:
    + oprot.writeFieldBegin('value', TType.I16, 1)
    + oprot.writeI16(self.value)
    + oprot.writeFieldEnd()
    + oprot.writeFieldStop()
    + oprot.writeStructEnd()
    +
    + def validate(self):
    + return
    +
    +
    + def __hash__(self):
    + value = 17
    + value = (value * 31) ^ hash(self.value)
    + return value
    +
    + def __repr__(self):
    + L = ['%s=%r' % (key, value)
    + for key, value in self.__dict__.iteritems()]
    + return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
    +
    + def __eq__(self, other):
    + return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
    +
    + def __ne__(self, other):
    + return not (self == other)
    +
    +class TI32Value:
    + """
    + Attributes:
    + - value
    + """
    +
    + thrift_spec = (
    + None, # 0
    + (1, TType.I32, 'value', None, None, ), # 1
    + )
    +
    + def __init__(self, value=None,):
    + self.value = value
    +
    + def read(self, iprot):
    + if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
    + fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
    + return
    + iprot.readStructBegin()
    + while True:
    + (fname, ftype, fid) = iprot.readFieldBegin()
    + if ftype == TType.STOP:
    + break
    + if fid == 1:
    + if ftype == TType.I32:
    + self.value = iprot.readI32();
    + else:
    + iprot.skip(ftype)
    + else:
    + iprot.skip(ftype)
    + iprot.readFieldEnd()
    + iprot.readStructEnd()
    +
    + def write(self, oprot):
    + if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
    + oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
    + return
    + oprot.writeStructBegin('TI32Value')
    + if self.value is not None:
    + oprot.writeFieldBegin('value', TType.I32, 1)
    + oprot.writeI32(self.value)
    + oprot.writeFieldEnd()
    + oprot.writeFieldStop()
    + oprot.writeStructEnd()
    +
    + def validate(self):
    + return
    +
    +
    + def __hash__(self):
    + value = 17
    + value = (value * 31) ^ hash(self.value)
    + return value
    +
    + def __repr__(self):
    + L = ['%s=%r' % (key, value)
    + for key, value in self.__dict__.iteritems()]
    + return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
    +
    + def __eq__(self, other):
    + return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
    +
    + def __ne__(self, other):
    + return not (self == other)
    +
    +class TI64Value:
    + """
    + Attributes:
    + - value
    + """
    +
    + thrift_spec = (
    + None, # 0
    + (1, TType.I64, 'value', None, None, ), # 1
    + )
    +
    + def __init__(self, value=None,):
    + self.value = value
    +
    + def read(self, iprot):
    + if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
    + fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
    + return
    + iprot.readStructBegin()
    + while True:
    + (fname, ftype, fid) = iprot.readFieldBegin()
    + if ftype == TType.STOP:
    + break
    + if fid == 1:
    + if ftype == TType.I64:
    + self.value = iprot.readI64();
    + else:
    + iprot.skip(ftype)
    + else:
    + iprot.skip(ftype)
    + iprot.readFieldEnd()
    + iprot.readStructEnd()
    +
    + def write(self, oprot):
    + if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
    + oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
    + return
    + oprot.writeStructBegin('TI64Value')
    + if self.value is not None:
    + oprot.writeFieldBegin('value', TType.I64, 1)
    + oprot.writeI64(self.value)
    + oprot.writeFieldEnd()
    + oprot.writeFieldStop()
    + oprot.writeStructEnd()
    +
    + def validate(self):
    + return
    +
    +
    + def __hash__(self):
    + value = 17
    + value = (value * 31) ^ hash(self.value)
    + return value
    +
    + def __repr__(self):
    + L = ['%s=%r' % (key, value)
    + for key, value in self.__dict__.iteritems()]
    + return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
    +
    + def __eq__(self, other):
    + return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
    +
    + def __ne__(self, other):
    + return not (self == other)
    +
    +class TDoubleValue:
    + """
    + Attributes:
    + - value
    + """
    +
    + thrift_spec = (
    + None, # 0
    + (1, TType.DOUBLE, 'value', None, None, ), # 1
    + )
    +
    + def __init__(self, value=None,):
    + self.value = value
    +
    + def read(self, iprot):
    + if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
    + fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
    + return
    + iprot.readStructBegin()
    + while True:
    + (fname, ftype, fid) = iprot.readFieldBegin()
    + if ftype == TType.STOP:
    + break
    + if fid == 1:
    + if ftype == TType.DOUBLE:
    + self.value = iprot.readDouble();
    + else:
    + iprot.skip(ftype)
    + else:
    + iprot.skip(ftype)
    + iprot.readFieldEnd()
    + iprot.readStructEnd()
    +
    + def write(self, oprot):
    + if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
    + oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
    + return
    + oprot.writeStructBegin('TDoubleValue')
    + if self.value is not None:
    + oprot.writeFieldBegin('value', TType.DOUBLE, 1)
    + oprot.writeDouble(self.value)
    + oprot.writeFieldEnd()
    + oprot.writeFieldStop()
    + oprot.writeStructEnd()
    +
    + def validate(self):
    + return
    +
    +
    + def __hash__(self):
    + value = 17
    + value = (value * 31) ^ hash(self.value)
    + return value
    +
    + def __repr__(self):
    + L = ['%s=%r' % (key, value)
    + for key, value in self.__dict__.iteritems()]
    + return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
    +
    + def __eq__(self, other):
    + return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
    +
    + def __ne__(self, other):
    + return not (self == other)
    +
    +class TStringValue:
    + """
    + Attributes:
    + - value
    + """
    +
    + thrift_spec = (
    + None, # 0
    + (1, TType.STRING, 'value', None, None, ), # 1
    + )
    +
    + def __init__(self, value=None,):
    + self.value = value
    +
    + def read(self, iprot):
    + if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
    + fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
    + return
    + iprot.readStructBegin()
    + while True:
    + (fname, ftype, fid) = iprot.readFieldBegin()
    + if ftype == TType.STOP:
    + break
    + if fid == 1:
    + if ftype == TType.STRING:
    + self.value = iprot.readString();
    + else:
    + iprot.skip(ftype)
    + else:
    + iprot.skip(ftype)
    + iprot.readFieldEnd()
    + iprot.readStructEnd()
    +
    + def write(self, oprot):
    + if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
    + oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
    + return
    + oprot.writeStructBegin('TStringValue')
    + if self.value is not None:
    + oprot.writeFieldBegin('value', TType.STRING, 1)
    + oprot.writeString(self.value)
    + oprot.writeFieldEnd()
    + oprot.writeFieldStop()
    + oprot.writeStructEnd()
    +
    + def validate(self):
    + return
    +
    +
    + def __hash__(self):
    + value = 17
    + value = (value * 31) ^ hash(self.value)
    + return value
    +
    + def __repr__(self):
    + L = ['%s=%r' % (key, value)
    + for key, value in self.__dict__.iteritems()]
    + return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
    +
    + def __eq__(self, other):
    + return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
    +
    + def __ne__(self, other):
    + return not (self == other)
    +
    +class TColumnValue:
    + """
    + Attributes:
    + - boolVal
    + - byteVal
    + - i16Val
    + - i32Val
    + - i64Val
    + - doubleVal
    + - stringVal
    + """
    +
    + thrift_spec = (
    + None, # 0
    + (1, TType.STRUCT, 'boolVal', (TBoolValue, TBoolValue.thrift_spec), None, ), # 1
    + (2, TType.STRUCT, 'byteVal', (TByteValue, TByteValue.thrift_spec), None, ), # 2
    + (3, TType.STRUCT, 'i16Val', (TI16Value, TI16Value.thrift_spec), None, ), # 3
    + (4, TType.STRUCT, 'i32Val', (TI32Value, TI32Value.thrift_spec), None, ), # 4
    + (5, TType.STRUCT, 'i64Val', (TI64Value, TI64Value.thrift_spec), None, ), # 5
    + (6, TType.STRUCT, 'doubleVal', (TDoubleValue, TDoubleValue.thrift_spec), None, ), # 6
    + (7, TType.STRUCT, 'stringVal', (TStringValue, TStringValue.thrift_spec), None, ), # 7
    + )
    +
    + def __init__(self, boolVal=None, byteVal=None, i16Val=None, i32Val=None, i64Val=None, doubleVal=None, stringVal=None,):
    + self.boolVal = boolVal
    + self.byteVal = byteVal
    + self.i16Val = i16Val
    + self.i32Val = i32Val
    + self.i64Val = i64Val
    + self.doubleVal = doubleVal
    + self.stringVal = stringVal
    +
    + def read(self, iprot):
    + if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
    + fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
    + return
    + iprot.readStructBegin()
    + while True:
    + (fname, ftype, fid) = iprot.readFieldBegin()
    + if ftype == TType.STOP:
    + break
    + if fid == 1:
    + if ftype == TType.STRUCT:
    + self.boolVal = TBoolValue()
    + self.boolVal.read(iprot)
    + else:
    + iprot.skip(ftype)
    + elif fid == 2:
    + if ftype == TType.STRUCT:
    + self.byteVal = TByteValue()
    + self.byteVal.read(iprot)
    + else:
    + iprot.skip(ftype)
    + elif fid == 3:
    + if ftype == TType.STRUCT:
    + self.i16Val = TI16Value()
    + self.i16Val.read(iprot)
    + else:
    + iprot.skip(ftype)
    + elif fid == 4:
    + if ftype == TType.STRUCT:
    + self.i32Val = TI32Value()
    + self.i32Val.read(iprot)
    + else:
    + iprot.skip(ftype)
    + elif fid == 5:
    + if ftype == TType.STRUCT:
    + self.i64Val = TI64Value()
    + self.i64Val.read(iprot)
    + else:
    + iprot.skip(ftype)
    + elif fid == 6:
    + if ftype == TType.STRUCT:
    + self.doubleVal = TDoubleValue()
    + self.doubleVal.read(iprot)
    + else:
    + iprot.skip(ftype)
    + elif fid == 7:
    + if ftype == TType.STRUCT:
    + self.stringVal = TStringValue()
    + self.stringVal.read(iprot)
    + else:
    + iprot.skip(ftype)
    + else:
    + iprot.skip(ftype)
    + iprot.readFieldEnd()
    + iprot.readStructEnd()
    +
    + def write(self, oprot):
    + if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
    + oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
    + return
    + oprot.writeStructBegin('TColumnValue')
    + if self.boolVal is not None:
    + oprot.writeFieldBegin('boolVal', TType.STRUCT, 1)
    + self.boolVal.write(oprot)
    + oprot.writeFieldEnd()
    + if self.byteVal is not None:
    + oprot.writeFieldBegin('byteVal', TType.STRUCT, 2)
    + self.byteVal.write(oprot)
    + oprot.writeFieldEnd()
    + if self.i16Val is not None:
    + oprot.writeFieldBegin('i16Val', TType.STRUCT, 3)
    + self.i16Val.write(oprot)
    + oprot.writeFieldEnd()
    + if self.i32Val is not None:
    + oprot.writeFieldBegin('i32Val', TType.STRUCT, 4)
    + self.i32Val.write(oprot)
    + oprot.writeFieldEnd()
    + if self.i64Val is not None:
    + oprot.writeFieldBegin('i64Val', TType.STRUCT, 5)
    + self.i64Val.write(oprot)
    + oprot.writeFieldEnd()
    + if self.doubleVal is not None:
    + oprot.writeFieldBegin('doubleVal', TType.STRUCT, 6)
    + self.doubleVal.write(oprot)
    + oprot.writeFieldEnd()
    + if self.stringVal is not None:
    + oprot.writeFieldBegin('stringVal', TType.STRUCT, 7)
    + self.stringVal.write(oprot)
    + oprot.writeFieldEnd()
    + oprot.writeFieldStop()
    + oprot.writeStructEnd()
    +
    + def validate(self):
    + return
    +
    +
    + def __hash__(self):
    + value = 17
    + value = (value * 31) ^ hash(self.boolVal)
    + value = (value * 31) ^ hash(self.byteVal)
    + value = (value * 31) ^ hash(self.i16Val)
    + value = (value * 31) ^ hash(self.i32Val)
    + value = (value * 31) ^ hash(self.i64Val)
    + value = (value * 31) ^ hash(self.doubleVal)
    + value = (value * 31) ^ hash(self.stringVal)
    + return value
    +
    + def __repr__(self):
    + L = ['%s=%r' % (key, value)
    + for key, value in self.__dict__.iteritems()]
    + return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
    +
    + def __eq__(self, other):
    + return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
    +
    + def __ne__(self, other):
    + return not (self == other)
    +
    +class TRow:
    + """
    + Attributes:
    + - colVals
    + """
    +
    + thrift_spec = (
    + None, # 0
    + (1, TType.LIST, 'colVals', (TType.STRUCT,(TColumnValue, TColumnValue.thrift_spec)), None, ), # 1
    + )
    +
    + def __init__(self, colVals=None,):
    + self.colVals = colVals
    +
    + def read(self, iprot):
    + if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
    + fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
    + return
    + iprot.readStructBegin()
    + while True:
    + (fname, ftype, fid) = iprot.readFieldBegin()
    + if ftype == TType.STOP:
    + break
    + if fid == 1:
    + if ftype == TType.LIST:
    + self.colVals = []
    + (_etype44, _size41) = iprot.readListBegin()
    + for _i45 in xrange(_size41):
    + _elem46 = TColumnValue()
    + _elem46.read(iprot)
    + self.colVals.append(_elem46)
    + iprot.readListEnd()
    + else:
    + iprot.skip(ftype)
    + else:
    + iprot.skip(ftype)
    + iprot.readFieldEnd()
    + iprot.readStructEnd()
    +
    + def write(self, oprot):
    + if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
    + oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
    + return
    + oprot.writeStructBegin('TRow')
    + if self.colVals is not None:
    + oprot.writeFieldBegin('colVals', TType.LIST, 1)
    + oprot.writeListBegin(TType.STRUCT, len(self.colVals))
    + for iter47 in self.colVals:
    + iter47.write(oprot)
    + oprot.writeListEnd()
    + oprot.writeFieldEnd()
    + oprot.writeFieldStop()
    + oprot.writeStructEnd()
    +
    + def validate(self):
    + if self.colVals is None:
    + raise TProtocol.TProtocolException(message='Required field colVals is unset!')
    + return
    +
    +
    + def __hash__(self):
    + value = 17
    + value = (value * 31) ^ hash(self.colVals)
    + return value
    +
    + def __repr__(self):
    + L = ['%s=%r' % (key, value)
    + for key, value in self.__dict__.iteritems()]
    + return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
    +
    + def __eq__(self, other):
    + return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
    +
    + def __ne__(self, other):
    + return not (self == other)
    +
    +class TBoolColumn:
    + """
    + Attributes:
    + - values
    + - nulls
    + """
    +
    + thrift_spec = (
    + None, # 0
    + (1, TType.LIST, 'values', (TType.BOOL,None), None, ), # 1
    + (2, TType.STRING, 'nulls', None, None, ), # 2
    + )
    +
    + def __init__(self, values=None, nulls=None,):
    + self.values = values
    + self.nulls = nulls
    +
    + def read(self, iprot):
    + if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
    + fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
    + return
    + iprot.readStructBegin()
    + while True:
    + (fname, ftype, fid) = iprot.readFieldBegin()
    + if ftype == TType.STOP:
    + break
    + if fid == 1:
    + if ftype == TType.LIST:
    + self.values = []
    + (_etype51, _size48) = iprot.readListBegin()
    + for _i52 in xrange(_size48):
    + _elem53 = iprot.readBool();
    + self.values.append(_elem53)
    + iprot.readListEnd()
    + else:
    + iprot.skip(ftype)
    + elif fid == 2:
    + if ftype == TType.STRING:
    + self.nulls = iprot.readString();
    + else:
    + iprot.skip(ftype)
    + else:
    + iprot.skip(ftype)
    + iprot.readFieldEnd()
    + iprot.readStructEnd()
    +
    + def write(self, oprot):
    + if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
    + oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
    + return
    + oprot.writeStructBegin('TBoolColumn')
    + if self.values is not None:
    + oprot.writeFieldBegin('values', TType.LIST, 1)
    + oprot.writeListBegin(TType.BOOL, len(self.values))
    + for iter54 in self.values:
    + oprot.writeBool(iter54)
    + oprot.writeListEnd()
    + oprot.writeFieldEnd()
    + if self.nulls is not None:
    + oprot.writeFieldBegin('nulls', TType.STRING, 2)
    + oprot.writeString(self.nulls)
    + oprot.writeFieldEnd()
    + oprot.writeFieldStop()
    + oprot.writeStructEnd()
    +
    + def validate(self):
    + if self.values is None:
    + raise TProtocol.TProtocolException(message='Required field values is unset!')
    + if self.nulls is None:
    + raise TProtocol.TProtocolException(message='Required field nulls is unset!')
    + return
    +
    +
    + def __hash__(self):
    + value = 17
    + value = (value * 31) ^ hash(self.values)
    + value = (value * 31) ^ hash(self.nulls)
    + return value
    +
    + def __repr__(self):
    + L = ['%s=%r' % (key, value)
    + for key, value in self.__dict__.iteritems()]
    + return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
    +
    + def __eq__(self, other):
    + return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
    +
    + def __ne__(self, other):
    + return not (self == other)
    +
    +class TByteColumn:
    + """
    + Attributes:
    + - values
    + - nulls
    + """
    +
    + thrift_spec = (
    + None, # 0
    + (1, TType.LIST, 'values', (TType.BYTE,None), None, ), # 1
    + (2, TType.STRING, 'nulls', None, None, ), # 2
    + )
    +
    + def __init__(self, values=None, nulls=None,):
    + self.values = values
    + self.nulls = nulls
    +
    + def read(self, iprot):
    + if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
    + fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
    + return
    + iprot.readStructBegin()
    + while True:
    + (fname, ftype, fid) = iprot.readFieldBegin()
    + if ftype == TType.STOP:
    + break
    + if fid == 1:
    + if ftype == TType.LIST:
    + self.values = []
    + (_etype58, _size55) = iprot.readListBegin()
    + for _i59 in xrange(_size55):
    + _elem60 = iprot.readByte();
    + self.values.append(_elem60)
    + iprot.readListEnd()
    + else:
    + iprot.skip(ftype)
    + elif fid == 2:
    + if ftype == TType.STRING:
    + self.nulls = iprot.readString();
    + else:
    + iprot.skip(ftype)
    + else:
    + iprot.skip(ftype)
    + iprot.readFieldEnd()
    + iprot.readStructEnd()
    +
    + def write(self, oprot):
    + if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
    + oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
    + return
    + oprot.writeStructBegin('TByteColumn')
    + if self.values is not None:
    + oprot.writeFieldBegin('values', TType.LIST, 1)
    + oprot.writeListBegin(TType.BYTE, len(self.values))
    + for iter61 in self.values:
    + oprot.writeByte(iter61)
    + oprot.writeListEnd()
    + oprot.writeFieldEnd()
    + if self.nulls is not None:
    + oprot.writeFieldBegin('nulls', TType.STRING, 2)
    + oprot.writeString(self.nulls)
    + oprot.writeFieldEnd()
    + oprot.writeFieldStop()
    + oprot.writeStructEnd()
    +
    + def validate(self):
    + if self.values is None:
    + raise TProtocol.TProtocolException(message='Required field values is unset!')
    + if self.nulls is None:
    + raise TProtocol.TProtocolException(message='Required field nulls is unset!')
    + return
    +
    +
    + def __hash__(self):
    + value = 17
    + value = (value * 31) ^ hash(self.values)
    + value = (value * 31) ^ hash(self.nulls)
    + return value
    +
    + def __repr__(self):
    + L = ['%s=%r' % (key, value)
    + for key, value in self.__dict__.iteritems()]
    + return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
    +
    + def __eq__(self, other):
    + return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
    +
    + def __ne__(self, other):
    + return not (self == other)
    +
    +class TI16Column:
    + """
    + Attributes:
    + - values
    + - nulls
    + """
    +
    + thrift_spec = (
    + None, # 0
    + (1, TType.LIST, 'values', (TType.I16,None), None, ), # 1
    + (2, TType.STRING, 'nulls', None, None, ), # 2
    + )
    +
    + def __init__(self, values=None, nulls=None,):
    + self.values = values
    + self.nulls = nulls
    +
    + def read(self, iprot):
    + if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
    + fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
    + return
    + iprot.readStructBegin()
    + while True:
    + (fname, ftype, fid) = iprot.readFieldBegin()
    + if ftype == TType.STOP:
    + break
    + if fid == 1:
    + if ftype == TType.LIST:
    + self.values = []
    + (_etype65, _size62) = iprot.readListBegin()
    + for _i66 in xrange(_size62):
    + _elem67 = iprot.readI16();
    + self.values.append(_elem67)
    + iprot.readListEnd()
    + else:
    + iprot.skip(ftype)
    + elif fid == 2:
    + if ftype == TType.STRING:
    + self.nulls = iprot.readString();
    + else:
    + iprot.skip(ftype)
    + else:
    + iprot.skip(ftype)
    + iprot.readFieldEnd()
    + iprot.readStructEnd()
    +
    + def write(self, oprot):
    + if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
    + oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
    + return
    + oprot.writeStructBegin('TI16Column')
    + if self.values is not None:
    + oprot.writeFieldBegin('values', TType.LIST, 1)
    + oprot.writeListBegin(TType.I16, len(self.values))
    + for iter68 in self.values:
    + oprot.writeI16(iter68)
    + oprot.writeListEnd()
    + oprot.writeFieldEnd()
    + if self.nulls is not None:
    + oprot.writeFieldBegin('nulls', TType.STRING, 2)
    + oprot.writeString(self.nulls)
    + oprot.writeFieldEnd()
    + oprot.writeFieldStop()
    + oprot.writeStructEnd()
    +
    + def validate(self):
    + if self.values is None:
    + raise TProtocol.TProtocolException(message='Required field values is unset!')
    + if self.nulls is None:
    + raise TProtocol.TProtocolException(message='Required field nulls is unset!')
    + return
    +
    +
    + def __hash__(self):
    + value = 17
    + value = (value * 31) ^ hash(self.values)
    + value = (value * 31) ^ hash(self.nulls)
    + return value
    +
    + def __repr__(self):
    + L = ['%s=%r' % (key, value)
    + for key, value in self.__dict__.iteritems()]
    + return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
    +
    + def __eq__(self, other):
    + return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
    +
    + def __ne__(self, other):
    + return not (self == other)
    +
    +class TI32Column:
    + """
    + Attributes:
    + - values
    + - nulls
    + """
    +
    + thrift_spec = (
    + None, # 0
    + (1, TType.LIST, 'values', (TType.I32,None), None, ), # 1
    + (2, TType.STRING, 'nulls', None, None, ), # 2
    + )
    +
    + def __init__(self, values=None, nulls=None,):
    + self.values = values
    + self.nulls = nulls
    +
    + def read(self, iprot):
    + if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
    + fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
    + return
    + iprot.readStructBegin()
    + while True:
    + (fname, ftype, fid) = iprot.readFieldBegin()
    + if ftype == TType.STOP:
    + break
    + if fid == 1:
    + if ftype == TType.LIST:
    + self.values = []
    + (_etype72, _size69) = iprot.readListBegin()
    + for _i73 in xrange(_size69):
    + _elem74 = iprot.readI32();
    + self.values.append(_elem74)
    + iprot.readListEnd()
    + else:
    + iprot.skip(ftype)
    + elif fid == 2:
    + if ftype == TType.STRING:
    + self.nulls = iprot.readString();
    + else:
    + iprot.skip(ftype)
    + else:
    + iprot.skip(ftype)
    + iprot.readFieldEnd()
    + iprot.readStructEnd()
    +
    + def write(self, oprot):
    + if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
    + oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
    + return
    + oprot.writeStructBegin('TI32Column')
    + if self.values is not None:
    + oprot.writeFieldBegin('values', TType.LIST, 1)
    + oprot.writeListBegin(TType.I32, len(self.values))
    + for iter75 in self.values:
    + oprot.writeI32(iter75)
    + oprot.writeListEnd()
    + oprot.writeFieldEnd()
    + if self.nulls is not None:
    + oprot.writeFieldBegin('nulls', TType.STRING, 2)
    + oprot.writeString(self.nulls)
    + oprot.writeFieldEnd()
    + oprot.writeFieldStop()
    + oprot.writeStructEnd()
    +
    + def validate(self):
    + if self.values is None:
    + raise TProtocol.TProtocolException(message='Required field values is unset!')
    + if self.nulls is None:
    + raise TProtocol.TProtocolException(message='Required field nulls is unset!')
    + return
    +
    +
    + def __hash__(self):
    + value = 17
    + value = (value * 31) ^ hash(self.values)
    + value = (value * 31) ^ hash(self.nulls)
    + return value
    +
    + def __repr__(self):
    + L = ['%s=%r' % (key, value)
    + for key, value in self.__dict__.iteritems()]
    + return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
    +
    + def __eq__(self, other):
    + return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
    +
    + def __ne__(self, other):
    + return not (self == other)
    +
    +class TI64Column:
    + """
    + Attributes:
    + - values
    + - nulls
    + """
    +
    + thrift_spec = (
    + None, # 0
    + (1, TType.LIST, 'values', (TType.I64,None), None, ), # 1
    + (2, TType.STRING, 'nulls', None, None, ), # 2
    + )
    +
    + def __init__(self, values=None, nulls=None,):
    + self.values = values
    + self.nulls = nulls
    +
    + def read(self, iprot):
    + if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
    + fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
    + return
    + iprot.readStructBegin()
    + while True:
    + (fname, ftype, fid) = iprot.readFieldBegin()
    + if ftype == TType.STOP:
    + break
    + if fid == 1:
    + if ftype == TType.LIST:
    + self.values = []
    + (_etype79, _size76) = iprot.readListBegin()
    + for _i80 in xrange(_size76):
    + _elem81 = iprot.readI64();
    + self.values.append(_elem81)
    + iprot.readListEnd()
    + else:
    + iprot.skip(ftype)
    + elif fid == 2:
    + if ftype == TType.STRING:
    + self.nulls = iprot.readString();
    + else:
    + iprot.skip(ftype)
    + else:
    + iprot.skip(ftype)
    + iprot.readFieldEnd()
    + iprot.readStructEnd()
    +
    + def write(self, oprot):
    + if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
    + oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
    + return
    + oprot.writeStructBegin('TI64Column')
    + if self.values is not None:
    + oprot.writeFieldBegin('values', TType.LIST, 1)
    + oprot.writeListBegin(TType.I64, len(self.values))
    + for iter82 in self.values:
    + oprot.writeI64(iter82)
    + oprot.writeListEnd()
    + oprot.writeFieldEnd()
    + if self.nulls is not None:
    + oprot.writeFieldBegin('nulls', TType.STRING, 2)
    + oprot.writeString(self.nulls)
    + oprot.writeFieldEnd()
    + oprot.writeFieldStop()
    + oprot.writeStructEnd()
    +
    + def validate(self):
    + if self.values is None:
    + raise TProtocol.TProtocolException(message='Required field values is unset!')
    + if self.nulls is None:
    + raise TProtocol.TProtocolException(message='Required field nulls is unset!')
    + return
    +
    +
    + def __hash__(self):
    + value = 17
    + value = (value * 31) ^ hash(self.values)
    + value = (value * 31) ^ hash(self.nulls)
    + return value
    +
    + def __repr__(self):
    + L = ['%s=%r' % (key, value)
    + for key, value in self.__dict__.iteritems()]
    + return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
    +
    + def __eq__(self, other):
    + return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
    +
    + def __ne__(self, other):
    + return not (self == other)
    +
    +class TDoubleColumn:
    + """
    + Attributes:
    + - values
    + - nulls
    + """
    +
    + thrift_spec = (
    + None, # 0
    + (1, TType.LIST, 'values', (TType.DOUBLE,None), None, ), # 1
    + (2, TType.STRING, 'nulls', None, None, ), # 2
    + )
    +
    + def __init__(self, values=None, nulls=None,):
    + self.values = values
    + self.nulls = nulls
    +
    + def read(self, iprot):
    + if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
    + fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
    + return
    + iprot.readStructBegin()
    + while True:
    + (fname, ftype, fid) = iprot.readFieldBegin()
    + if ftype == TType.STOP:
    + break
    + if fid == 1:
    + if ftype == TType.LIST:
    + self.values = []
    + (_etype86, _size83) = iprot.readListBegin()
    + for _i87 in xrange(_size83):
    + _elem88 = iprot.readDouble();
    + self.values.append(_elem88)
    + iprot.readListEnd()
    + else:
    + iprot.skip(ftype)
    + elif fid == 2:
    + if ftype == TType.STRING:
    + self.nulls = iprot.readString();
    + else:
    + iprot.skip(ftype)
    + else:
    + iprot.skip(ftype)
    + iprot.readFieldEnd()
    + iprot.readStructEnd()
    +
    + def write(self, oprot):
    + if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
    + oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
    + return
    + oprot.writeStructBegin('TDoubleColumn')
    + if self.values is not None:
    + oprot.writeFieldBegin('values', TType.LIST, 1)
    + oprot.writeListBegin(TType.DOUBLE, len(self.values))
    + for iter89 in self.values:
    + oprot.writeDouble(iter89)
    + oprot.writeListEnd()
    + oprot.writeFieldEnd()
    + if self.nulls is not None:
    + oprot.writeFieldBegin('nulls', TType.STRING, 2)
    + oprot.writeString(self.nulls)
    + oprot.writeFieldEnd()
    + oprot.writeFieldStop()
    + oprot.writeStructEnd()
    +
    + def validate(self):
    + if self.values is None:
    + raise TProtocol.TProtocolException(message='Required field values is unset!')
    + if self.nulls is None:
    + raise TProtocol.TProtocolException(message='Required field nulls is unset!')
    + return
    +
    +
    + def __hash__(self):
    + value = 17
    + value = (value * 31) ^ hash(self.values)
    + value = (value * 31) ^ hash(self.nulls)
    + return value
    +
    + def __repr__(self):
    + L = ['%s=%r' % (key, value)
    + for key, value in self.__dict__.iteritems()]
    + return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
    +
    + def __eq__(self, other):
    + return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
    +
    + def __ne__(self, other):
    + return not (self == other)
    +
    +class TStringColumn:
    + """
    + Attributes:
    + - values
    + - nulls
    + """
    +
    + thrift_spec = (
    + None, # 0
    + (1, TType.LIST, 'values', (TType.STRING,None), None, ), # 1
    + (2, TType.STRING, 'nulls', None, None, ), # 2
    + )
    +
    + def __init__(self, values=None, nulls=None,):
    + self.values = values
    + self.nulls = nulls
    +
    + def read(self, iprot):
    + if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
    + fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
    + return
    + iprot.readStructBegin()
    + while True:
    + (fname, ftype, fid) = iprot.readFieldBegin()
    + if ftype == TType.STOP:
    + break
    + if fid == 1:
    + if ftype == TType.LIST:
    + self.values = []
    + (_etype93, _size90) = iprot.readListBegin()
    + for _i94 in xrange(_size90):
    + _elem95 = iprot.readString();
    + self.values.append(_elem95)
    + iprot.readListEnd()
    + else:
    + iprot.skip(ftype)
    + elif fid == 2:
    + if ftype == TType.STRING:
    + self.nulls = iprot.readString();
    + else:
    + iprot.skip(ftype)
    + else:
    + iprot.skip(ftype)
    + iprot.readFieldEnd()
    + iprot.readStructEnd()
    +
    + def write(self, oprot):
    + if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
    + oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
    + return
    + oprot.writeStructBegin('TStringColumn')
    + if self.values is not None:
    + oprot.writeFieldBegin('values', TType.LIST, 1)
    + oprot.writeListBegin(TType.STRING, len(self.values))
    + for iter96 in self.values:
    + oprot.writeString(iter96)
    + oprot.writeListEnd()
    + oprot.writeFieldEnd()
    + if self.nulls is not None:
    + oprot.writeFieldBegin('nulls', TType.STRING, 2)
    + oprot.writeString(self.nulls)
    + oprot.writeFieldEnd()
    + oprot.writeFieldStop()
    + oprot.writeStructEnd()
    +
    + def validate(self):
    + if self.values is None:
    + raise TProtocol.TProtocolException(message='Required field values is unset!')
    + if self.nulls is None:
    + raise TProtocol.TProtocolException(message='Required field nulls is unset!')
    + return
    +
    +
    + def __hash__(self):
    + value = 17
    + value = (value * 31) ^ hash(self.values)
    + value = (value * 31) ^ hash(self.nulls)
    + return value
    +
    + def __repr__(self):
    + L = ['%s=%r' % (key, value)
    + for key, value in self.__dict__.iteritems()]
    + return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
    +
    + def __eq__(self, other):
    + return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
    +
    + def __ne__(self, other):
    + return not (self == other)
    +
    +class TBinaryColumn:
    + """
    + Attributes:
    + - values
    + - nulls
    + """
    +
    + thrift_spec = (
    + None, # 0
    + (1, TType.LIST, 'values', (TType.STRING,None), None, ), # 1
    + (2, TType.STRING, 'nulls', None, None, ), # 2
    + )
    +
    + def __init__(self, values=None, nulls=None,):
    + self.values = values
    + self.nulls = nulls
    +
    + def read(self, iprot):
    + if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
    + fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
    + return
    + iprot.readStructBegin()
    + while True:
    + (fname, ftype, fid) = iprot.readFieldBegin()
    + if ftype == TType.STOP:
    + break
    + if fid == 1:
    + if ftype == TType.LIST:
    + self.values = []
    + (_etype100, _size97) = iprot.readListBegin()
    + for _i101 in xrange(_size97):
    + _elem102 = iprot.readString();
    + self.values.append(_elem102)
    + iprot.readListEnd()
    + else:
    + iprot.skip(ftype)
    + elif fid == 2:
    + if ftype == TType.STRING:
    + self.nulls = iprot.readString();
    + else:
    + iprot.skip(ftype)
    + else:
    + iprot.skip(ftype)
    + iprot.readFieldEnd()
    + iprot.readStructEnd()
    +
    + def write(self, oprot):
    + if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
    + oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
    + return
    + oprot.writeStructBegin('TBinaryColumn')
    + if self.values is not None:
    + oprot.writeFieldBegin('values', TType.LIST, 1)
    + oprot.writeListBegin(TType.STRING, len(self.values))
    + for iter103 in self.values:
    + oprot.writeString(iter103)
    + oprot.writeListEnd()
    + oprot.writeFieldEnd()
    + if self.nulls is not None:
    + oprot.writeFieldBegin('nulls', TType.STRING, 2)
    + oprot.writeString(self.nulls)
    + oprot.writeFieldEnd()
    + oprot.writeFieldStop()
    + oprot.writeStructEnd()
    +
    + def validate(self):
    + if self.values is None:
    + raise TProtocol.TProtocolException(message='Required field values is unset!')
    + if self.nulls is None:
    + raise TProtocol.TProtocolException(message='Required field nulls is unset!')
    + return
    +
    +
    + def __hash__(self):
    + value = 17
    + value = (value * 31) ^ hash(self.values)
    + value = (value * 31) ^ hash(self.nulls)
    + return value
    +
    + def __repr__(self):
    + L = ['%s=%r' % (key, value)
    + for key, value in self.__dict__.iteritems()]
    + return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
    +
    + def __eq__(self, other):
    + return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
    +
    + def __ne__(self, other):
    + return not (self == other)
    +
    +class TColumn:
    + """
    + Attributes:
    + - boolVal
    + - byteVal
    + - i16Val
    + - i32Val
    + - i64Val
    + - doubleVal
    + - stringVal
    + - binaryVal
    + """
    +
    + thrift_spec = (
    + None, # 0
    + (1, TType.STRUCT, 'boolVal', (TBoolColumn, TBoolColumn.thrift_spec), None, ), # 1
    + (2, TType.STRUCT, 'byteVal', (TByteColumn, TByteColumn.thrift_spec), None, ), # 2
    + (3, TType.STRUCT, 'i16Val', (TI16Column, TI16Column.thrift_spec), None, ), # 3
    + (4, TType.STRUCT, 'i32Val', (TI32Column, TI32Column.thrift_spec), None, ), # 4
    + (5, TType.STRUCT, 'i64Val', (TI64Column, TI64Column.thrift_spec), None, ), # 5
    + (6, TType.STRUCT, 'doubleVal', (TDoubleColumn, TDoubleColumn.thrift_spec), None, ), # 6
    + (7, TType.STRUCT, 'stringVal', (TStringColumn, TStringColumn.thrift_spec), None, ), # 7
    + (8, TType.STRUCT, 'binaryVal', (TBinaryColumn, TBinaryColumn.thrift_spec), None, ), # 8
    +

    <TRUNCATED>
  • Vgumashta at Jan 8, 2016 at 12:19 am
    http://git-wip-us.apache.org/repos/asf/hive/blob/2542f5cc/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TArrayTypeEntry.java
    ----------------------------------------------------------------------
    diff --git a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TArrayTypeEntry.java b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TArrayTypeEntry.java
    deleted file mode 100644
    index 0fb33c7..0000000
    --- a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TArrayTypeEntry.java
    +++ /dev/null
    @@ -1,387 +0,0 @@
    -/**
    - * Autogenerated by Thrift Compiler (0.9.3)
    - *
    - * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
    - * @generated
    - */
    -package org.apache.hive.service.cli.thrift;
    -
    -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"})
    -@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)")
    -public class TArrayTypeEntry implements org.apache.thrift.TBase<TArrayTypeEntry, TArrayTypeEntry._Fields>, java.io.Serializable, Cloneable, Comparable<TArrayTypeEntry> {
    - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TArrayTypeEntry");
    -
    - private static final org.apache.thrift.protocol.TField OBJECT_TYPE_PTR_FIELD_DESC = new org.apache.thrift.protocol.TField("objectTypePtr", org.apache.thrift.protocol.TType.I32, (short)1);
    -
    - private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
    - static {
    - schemes.put(StandardScheme.class, new TArrayTypeEntryStandardSchemeFactory());
    - schemes.put(TupleScheme.class, new TArrayTypeEntryTupleSchemeFactory());
    - }
    -
    - private int objectTypePtr; // required
    -
    - /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
    - public enum _Fields implements org.apache.thrift.TFieldIdEnum {
    - OBJECT_TYPE_PTR((short)1, "objectTypePtr");
    -
    - private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
    -
    - static {
    - for (_Fields field : EnumSet.allOf(_Fields.class)) {
    - byName.put(field.getFieldName(), field);
    - }
    - }
    -
    - /**
    - * Find the _Fields constant that matches fieldId, or null if its not found.
    - */
    - public static _Fields findByThriftId(int fieldId) {
    - switch(fieldId) {
    - case 1: // OBJECT_TYPE_PTR
    - return OBJECT_TYPE_PTR;
    - default:
    - return null;
    - }
    - }
    -
    - /**
    - * Find the _Fields constant that matches fieldId, throwing an exception
    - * if it is not found.
    - */
    - public static _Fields findByThriftIdOrThrow(int fieldId) {
    - _Fields fields = findByThriftId(fieldId);
    - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
    - return fields;
    - }
    -
    - /**
    - * Find the _Fields constant that matches name, or null if its not found.
    - */
    - public static _Fields findByName(String name) {
    - return byName.get(name);
    - }
    -
    - private final short _thriftId;
    - private final String _fieldName;
    -
    - _Fields(short thriftId, String fieldName) {
    - _thriftId = thriftId;
    - _fieldName = fieldName;
    - }
    -
    - public short getThriftFieldId() {
    - return _thriftId;
    - }
    -
    - public String getFieldName() {
    - return _fieldName;
    - }
    - }
    -
    - // isset id assignments
    - private static final int __OBJECTTYPEPTR_ISSET_ID = 0;
    - private byte __isset_bitfield = 0;
    - public static final 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);
    - tmpMap.put(_Fields.OBJECT_TYPE_PTR, new org.apache.thrift.meta_data.FieldMetaData("objectTypePtr", org.apache.thrift.TFieldRequirementType.REQUIRED,
    - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32 , "TTypeEntryPtr")));
    - metaDataMap = Collections.unmodifiableMap(tmpMap);
    - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(TArrayTypeEntry.class, metaDataMap);
    - }
    -
    - public TArrayTypeEntry() {
    - }
    -
    - public TArrayTypeEntry(
    - int objectTypePtr)
    - {
    - this();
    - this.objectTypePtr = objectTypePtr;
    - setObjectTypePtrIsSet(true);
    - }
    -
    - /**
    - * Performs a deep copy on <i>other</i>.
    - */
    - public TArrayTypeEntry(TArrayTypeEntry other) {
    - __isset_bitfield = other.__isset_bitfield;
    - this.objectTypePtr = other.objectTypePtr;
    - }
    -
    - public TArrayTypeEntry deepCopy() {
    - return new TArrayTypeEntry(this);
    - }
    -
    - @Override
    - public void clear() {
    - setObjectTypePtrIsSet(false);
    - this.objectTypePtr = 0;
    - }
    -
    - public int getObjectTypePtr() {
    - return this.objectTypePtr;
    - }
    -
    - public void setObjectTypePtr(int objectTypePtr) {
    - this.objectTypePtr = objectTypePtr;
    - setObjectTypePtrIsSet(true);
    - }
    -
    - public void unsetObjectTypePtr() {
    - __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __OBJECTTYPEPTR_ISSET_ID);
    - }
    -
    - /** Returns true if field objectTypePtr is set (has been assigned a value) and false otherwise */
    - public boolean isSetObjectTypePtr() {
    - return EncodingUtils.testBit(__isset_bitfield, __OBJECTTYPEPTR_ISSET_ID);
    - }
    -
    - public void setObjectTypePtrIsSet(boolean value) {
    - __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __OBJECTTYPEPTR_ISSET_ID, value);
    - }
    -
    - public void setFieldValue(_Fields field, Object value) {
    - switch (field) {
    - case OBJECT_TYPE_PTR:
    - if (value == null) {
    - unsetObjectTypePtr();
    - } else {
    - setObjectTypePtr((Integer)value);
    - }
    - break;
    -
    - }
    - }
    -
    - public Object getFieldValue(_Fields field) {
    - switch (field) {
    - case OBJECT_TYPE_PTR:
    - return getObjectTypePtr();
    -
    - }
    - throw new IllegalStateException();
    - }
    -
    - /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
    - public boolean isSet(_Fields field) {
    - if (field == null) {
    - throw new IllegalArgumentException();
    - }
    -
    - switch (field) {
    - case OBJECT_TYPE_PTR:
    - return isSetObjectTypePtr();
    - }
    - throw new IllegalStateException();
    - }
    -
    - @Override
    - public boolean equals(Object that) {
    - if (that == null)
    - return false;
    - if (that instanceof TArrayTypeEntry)
    - return this.equals((TArrayTypeEntry)that);
    - return false;
    - }
    -
    - public boolean equals(TArrayTypeEntry that) {
    - if (that == null)
    - return false;
    -
    - boolean this_present_objectTypePtr = true;
    - boolean that_present_objectTypePtr = true;
    - if (this_present_objectTypePtr || that_present_objectTypePtr) {
    - if (!(this_present_objectTypePtr && that_present_objectTypePtr))
    - return false;
    - if (this.objectTypePtr != that.objectTypePtr)
    - return false;
    - }
    -
    - return true;
    - }
    -
    - @Override
    - public int hashCode() {
    - List<Object> list = new ArrayList<Object>();
    -
    - boolean present_objectTypePtr = true;
    - list.add(present_objectTypePtr);
    - if (present_objectTypePtr)
    - list.add(objectTypePtr);
    -
    - return list.hashCode();
    - }
    -
    - @Override
    - public int compareTo(TArrayTypeEntry other) {
    - if (!getClass().equals(other.getClass())) {
    - return getClass().getName().compareTo(other.getClass().getName());
    - }
    -
    - int lastComparison = 0;
    -
    - lastComparison = Boolean.valueOf(isSetObjectTypePtr()).compareTo(other.isSetObjectTypePtr());
    - if (lastComparison != 0) {
    - return lastComparison;
    - }
    - if (isSetObjectTypePtr()) {
    - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.objectTypePtr, other.objectTypePtr);
    - if (lastComparison != 0) {
    - return lastComparison;
    - }
    - }
    - return 0;
    - }
    -
    - public _Fields fieldForId(int fieldId) {
    - return _Fields.findByThriftId(fieldId);
    - }
    -
    - public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
    - schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
    - }
    -
    - public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
    - schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
    - }
    -
    - @Override
    - public String toString() {
    - StringBuilder sb = new StringBuilder("TArrayTypeEntry(");
    - boolean first = true;
    -
    - sb.append("objectTypePtr:");
    - sb.append(this.objectTypePtr);
    - first = false;
    - sb.append(")");
    - return sb.toString();
    - }
    -
    - public void validate() throws org.apache.thrift.TException {
    - // check for required fields
    - if (!isSetObjectTypePtr()) {
    - throw new org.apache.thrift.protocol.TProtocolException("Required field 'objectTypePtr' is unset! Struct:" + toString());
    - }
    -
    - // check for sub-struct validity
    - }
    -
    - private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
    - try {
    - write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
    - } catch (org.apache.thrift.TException te) {
    - throw new java.io.IOException(te);
    - }
    - }
    -
    - private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
    - try {
    - // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
    - __isset_bitfield = 0;
    - read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
    - } catch (org.apache.thrift.TException te) {
    - throw new java.io.IOException(te);
    - }
    - }
    -
    - private static class TArrayTypeEntryStandardSchemeFactory implements SchemeFactory {
    - public TArrayTypeEntryStandardScheme getScheme() {
    - return new TArrayTypeEntryStandardScheme();
    - }
    - }
    -
    - private static class TArrayTypeEntryStandardScheme extends StandardScheme<TArrayTypeEntry> {
    -
    - public void read(org.apache.thrift.protocol.TProtocol iprot, TArrayTypeEntry struct) throws org.apache.thrift.TException {
    - org.apache.thrift.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: // OBJECT_TYPE_PTR
    - if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
    - struct.objectTypePtr = iprot.readI32();
    - struct.setObjectTypePtrIsSet(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.readStructEnd();
    - struct.validate();
    - }
    -
    - public void write(org.apache.thrift.protocol.TProtocol oprot, TArrayTypeEntry struct) throws org.apache.thrift.TException {
    - struct.validate();
    -
    - oprot.writeStructBegin(STRUCT_DESC);
    - oprot.writeFieldBegin(OBJECT_TYPE_PTR_FIELD_DESC);
    - oprot.writeI32(struct.objectTypePtr);
    - oprot.writeFieldEnd();
    - oprot.writeFieldStop();
    - oprot.writeStructEnd();
    - }
    -
    - }
    -
    - private static class TArrayTypeEntryTupleSchemeFactory implements SchemeFactory {
    - public TArrayTypeEntryTupleScheme getScheme() {
    - return new TArrayTypeEntryTupleScheme();
    - }
    - }
    -
    - private static class TArrayTypeEntryTupleScheme extends TupleScheme<TArrayTypeEntry> {
    -
    - @Override
    - public void write(org.apache.thrift.protocol.TProtocol prot, TArrayTypeEntry struct) throws org.apache.thrift.TException {
    - TTupleProtocol oprot = (TTupleProtocol) prot;
    - oprot.writeI32(struct.objectTypePtr);
    - }
    -
    - @Override
    - public void read(org.apache.thrift.protocol.TProtocol prot, TArrayTypeEntry struct) throws org.apache.thrift.TException {
    - TTupleProtocol iprot = (TTupleProtocol) prot;
    - struct.objectTypePtr = iprot.readI32();
    - struct.setObjectTypePtrIsSet(true);
    - }
    - }
    -
    -}
    -

    http://git-wip-us.apache.org/repos/asf/hive/blob/2542f5cc/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TBinaryColumn.java
    ----------------------------------------------------------------------
    diff --git a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TBinaryColumn.java b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TBinaryColumn.java
    deleted file mode 100644
    index 788bc89..0000000
    --- a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TBinaryColumn.java
    +++ /dev/null
    @@ -1,548 +0,0 @@
    -/**
    - * Autogenerated by Thrift Compiler (0.9.3)
    - *
    - * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
    - * @generated
    - */
    -package org.apache.hive.service.cli.thrift;
    -
    -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"})
    -@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)")
    -public class TBinaryColumn implements org.apache.thrift.TBase<TBinaryColumn, TBinaryColumn._Fields>, java.io.Serializable, Cloneable, Comparable<TBinaryColumn> {
    - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TBinaryColumn");
    -
    - private static final org.apache.thrift.protocol.TField VALUES_FIELD_DESC = new org.apache.thrift.protocol.TField("values", org.apache.thrift.protocol.TType.LIST, (short)1);
    - private static final org.apache.thrift.protocol.TField NULLS_FIELD_DESC = new org.apache.thrift.protocol.TField("nulls", org.apache.thrift.protocol.TType.STRING, (short)2);
    -
    - private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
    - static {
    - schemes.put(StandardScheme.class, new TBinaryColumnStandardSchemeFactory());
    - schemes.put(TupleScheme.class, new TBinaryColumnTupleSchemeFactory());
    - }
    -
    - private List<ByteBuffer> values; // required
    - private ByteBuffer nulls; // required
    -
    - /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
    - public enum _Fields implements org.apache.thrift.TFieldIdEnum {
    - VALUES((short)1, "values"),
    - NULLS((short)2, "nulls");
    -
    - private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
    -
    - static {
    - for (_Fields field : EnumSet.allOf(_Fields.class)) {
    - byName.put(field.getFieldName(), field);
    - }
    - }
    -
    - /**
    - * Find the _Fields constant that matches fieldId, or null if its not found.
    - */
    - public static _Fields findByThriftId(int fieldId) {
    - switch(fieldId) {
    - case 1: // VALUES
    - return VALUES;
    - case 2: // NULLS
    - return NULLS;
    - default:
    - return null;
    - }
    - }
    -
    - /**
    - * Find the _Fields constant that matches fieldId, throwing an exception
    - * if it is not found.
    - */
    - public static _Fields findByThriftIdOrThrow(int fieldId) {
    - _Fields fields = findByThriftId(fieldId);
    - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
    - return fields;
    - }
    -
    - /**
    - * Find the _Fields constant that matches name, or null if its not found.
    - */
    - public static _Fields findByName(String name) {
    - return byName.get(name);
    - }
    -
    - private final short _thriftId;
    - private final String _fieldName;
    -
    - _Fields(short thriftId, String fieldName) {
    - _thriftId = thriftId;
    - _fieldName = fieldName;
    - }
    -
    - public short getThriftFieldId() {
    - return _thriftId;
    - }
    -
    - public String getFieldName() {
    - return _fieldName;
    - }
    - }
    -
    - // isset id assignments
    - public static final 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);
    - tmpMap.put(_Fields.VALUES, new org.apache.thrift.meta_data.FieldMetaData("values", org.apache.thrift.TFieldRequirementType.REQUIRED,
    - 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 , true))));
    - tmpMap.put(_Fields.NULLS, new org.apache.thrift.meta_data.FieldMetaData("nulls", org.apache.thrift.TFieldRequirementType.REQUIRED,
    - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , true)));
    - metaDataMap = Collections.unmodifiableMap(tmpMap);
    - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(TBinaryColumn.class, metaDataMap);
    - }
    -
    - public TBinaryColumn() {
    - }
    -
    - public TBinaryColumn(
    - List<ByteBuffer> values,
    - ByteBuffer nulls)
    - {
    - this();
    - this.values = values;
    - this.nulls = org.apache.thrift.TBaseHelper.copyBinary(nulls);
    - }
    -
    - /**
    - * Performs a deep copy on <i>other</i>.
    - */
    - public TBinaryColumn(TBinaryColumn other) {
    - if (other.isSetValues()) {
    - List<ByteBuffer> __this__values = new ArrayList<ByteBuffer>(other.values);
    - this.values = __this__values;
    - }
    - if (other.isSetNulls()) {
    - this.nulls = org.apache.thrift.TBaseHelper.copyBinary(other.nulls);
    - }
    - }
    -
    - public TBinaryColumn deepCopy() {
    - return new TBinaryColumn(this);
    - }
    -
    - @Override
    - public void clear() {
    - this.values = null;
    - this.nulls = null;
    - }
    -
    - public int getValuesSize() {
    - return (this.values == null) ? 0 : this.values.size();
    - }
    -
    - public java.util.Iterator<ByteBuffer> getValuesIterator() {
    - return (this.values == null) ? null : this.values.iterator();
    - }
    -
    - public void addToValues(ByteBuffer elem) {
    - if (this.values == null) {
    - this.values = new ArrayList<ByteBuffer>();
    - }
    - this.values.add(elem);
    - }
    -
    - public List<ByteBuffer> getValues() {
    - return this.values;
    - }
    -
    - public void setValues(List<ByteBuffer> values) {
    - this.values = values;
    - }
    -
    - public void unsetValues() {
    - this.values = null;
    - }
    -
    - /** Returns true if field values is set (has been assigned a value) and false otherwise */
    - public boolean isSetValues() {
    - return this.values != null;
    - }
    -
    - public void setValuesIsSet(boolean value) {
    - if (!value) {
    - this.values = null;
    - }
    - }
    -
    - public byte[] getNulls() {
    - setNulls(org.apache.thrift.TBaseHelper.rightSize(nulls));
    - return nulls == null ? null : nulls.array();
    - }
    -
    - public ByteBuffer bufferForNulls() {
    - return org.apache.thrift.TBaseHelper.copyBinary(nulls);
    - }
    -
    - public void setNulls(byte[] nulls) {
    - this.nulls = nulls == null ? (ByteBuffer)null : ByteBuffer.wrap(Arrays.copyOf(nulls, nulls.length));
    - }
    -
    - public void setNulls(ByteBuffer nulls) {
    - this.nulls = org.apache.thrift.TBaseHelper.copyBinary(nulls);
    - }
    -
    - public void unsetNulls() {
    - this.nulls = null;
    - }
    -
    - /** Returns true if field nulls is set (has been assigned a value) and false otherwise */
    - public boolean isSetNulls() {
    - return this.nulls != null;
    - }
    -
    - public void setNullsIsSet(boolean value) {
    - if (!value) {
    - this.nulls = null;
    - }
    - }
    -
    - public void setFieldValue(_Fields field, Object value) {
    - switch (field) {
    - case VALUES:
    - if (value == null) {
    - unsetValues();
    - } else {
    - setValues((List<ByteBuffer>)value);
    - }
    - break;
    -
    - case NULLS:
    - if (value == null) {
    - unsetNulls();
    - } else {
    - setNulls((ByteBuffer)value);
    - }
    - break;
    -
    - }
    - }
    -
    - public Object getFieldValue(_Fields field) {
    - switch (field) {
    - case VALUES:
    - return getValues();
    -
    - case NULLS:
    - return getNulls();
    -
    - }
    - throw new IllegalStateException();
    - }
    -
    - /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
    - public boolean isSet(_Fields field) {
    - if (field == null) {
    - throw new IllegalArgumentException();
    - }
    -
    - switch (field) {
    - case VALUES:
    - return isSetValues();
    - case NULLS:
    - return isSetNulls();
    - }
    - throw new IllegalStateException();
    - }
    -
    - @Override
    - public boolean equals(Object that) {
    - if (that == null)
    - return false;
    - if (that instanceof TBinaryColumn)
    - return this.equals((TBinaryColumn)that);
    - return false;
    - }
    -
    - public boolean equals(TBinaryColumn that) {
    - if (that == null)
    - return false;
    -
    - boolean this_present_values = true && this.isSetValues();
    - boolean that_present_values = true && that.isSetValues();
    - if (this_present_values || that_present_values) {
    - if (!(this_present_values && that_present_values))
    - return false;
    - if (!this.values.equals(that.values))
    - return false;
    - }
    -
    - boolean this_present_nulls = true && this.isSetNulls();
    - boolean that_present_nulls = true && that.isSetNulls();
    - if (this_present_nulls || that_present_nulls) {
    - if (!(this_present_nulls && that_present_nulls))
    - return false;
    - if (!this.nulls.equals(that.nulls))
    - return false;
    - }
    -
    - return true;
    - }
    -
    - @Override
    - public int hashCode() {
    - List<Object> list = new ArrayList<Object>();
    -
    - boolean present_values = true && (isSetValues());
    - list.add(present_values);
    - if (present_values)
    - list.add(values);
    -
    - boolean present_nulls = true && (isSetNulls());
    - list.add(present_nulls);
    - if (present_nulls)
    - list.add(nulls);
    -
    - return list.hashCode();
    - }
    -
    - @Override
    - public int compareTo(TBinaryColumn other) {
    - if (!getClass().equals(other.getClass())) {
    - return getClass().getName().compareTo(other.getClass().getName());
    - }
    -
    - int lastComparison = 0;
    -
    - lastComparison = Boolean.valueOf(isSetValues()).compareTo(other.isSetValues());
    - if (lastComparison != 0) {
    - return lastComparison;
    - }
    - if (isSetValues()) {
    - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.values, other.values);
    - if (lastComparison != 0) {
    - return lastComparison;
    - }
    - }
    - lastComparison = Boolean.valueOf(isSetNulls()).compareTo(other.isSetNulls());
    - if (lastComparison != 0) {
    - return lastComparison;
    - }
    - if (isSetNulls()) {
    - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.nulls, other.nulls);
    - if (lastComparison != 0) {
    - return lastComparison;
    - }
    - }
    - return 0;
    - }
    -
    - public _Fields fieldForId(int fieldId) {
    - return _Fields.findByThriftId(fieldId);
    - }
    -
    - public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
    - schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
    - }
    -
    - public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
    - schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
    - }
    -
    - @Override
    - public String toString() {
    - StringBuilder sb = new StringBuilder("TBinaryColumn(");
    - boolean first = true;
    -
    - sb.append("values:");
    - if (this.values == null) {
    - sb.append("null");
    - } else {
    - org.apache.thrift.TBaseHelper.toString(this.values, sb);
    - }
    - first = false;
    - if (!first) sb.append(", ");
    - sb.append("nulls:");
    - if (this.nulls == null) {
    - sb.append("null");
    - } else {
    - org.apache.thrift.TBaseHelper.toString(this.nulls, sb);
    - }
    - first = false;
    - sb.append(")");
    - return sb.toString();
    - }
    -
    - public void validate() throws org.apache.thrift.TException {
    - // check for required fields
    - if (!isSetValues()) {
    - throw new org.apache.thrift.protocol.TProtocolException("Required field 'values' is unset! Struct:" + toString());
    - }
    -
    - if (!isSetNulls()) {
    - throw new org.apache.thrift.protocol.TProtocolException("Required field 'nulls' is unset! Struct:" + toString());
    - }
    -
    - // check for sub-struct validity
    - }
    -
    - private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
    - try {
    - write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
    - } catch (org.apache.thrift.TException te) {
    - throw new java.io.IOException(te);
    - }
    - }
    -
    - private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
    - try {
    - read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
    - } catch (org.apache.thrift.TException te) {
    - throw new java.io.IOException(te);
    - }
    - }
    -
    - private static class TBinaryColumnStandardSchemeFactory implements SchemeFactory {
    - public TBinaryColumnStandardScheme getScheme() {
    - return new TBinaryColumnStandardScheme();
    - }
    - }
    -
    - private static class TBinaryColumnStandardScheme extends StandardScheme<TBinaryColumn> {
    -
    - public void read(org.apache.thrift.protocol.TProtocol iprot, TBinaryColumn struct) throws org.apache.thrift.TException {
    - org.apache.thrift.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: // VALUES
    - if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
    - {
    - org.apache.thrift.protocol.TList _list110 = iprot.readListBegin();
    - struct.values = new ArrayList<ByteBuffer>(_list110.size);
    - ByteBuffer _elem111;
    - for (int _i112 = 0; _i112 < _list110.size; ++_i112)
    - {
    - _elem111 = iprot.readBinary();
    - struct.values.add(_elem111);
    - }
    - iprot.readListEnd();
    - }
    - struct.setValuesIsSet(true);
    - } else {
    - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
    - }
    - break;
    - case 2: // NULLS
    - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
    - struct.nulls = iprot.readBinary();
    - struct.setNullsIsSet(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.readStructEnd();
    - struct.validate();
    - }
    -
    - public void write(org.apache.thrift.protocol.TProtocol oprot, TBinaryColumn struct) throws org.apache.thrift.TException {
    - struct.validate();
    -
    - oprot.writeStructBegin(STRUCT_DESC);
    - if (struct.values != null) {
    - oprot.writeFieldBegin(VALUES_FIELD_DESC);
    - {
    - oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.values.size()));
    - for (ByteBuffer _iter113 : struct.values)
    - {
    - oprot.writeBinary(_iter113);
    - }
    - oprot.writeListEnd();
    - }
    - oprot.writeFieldEnd();
    - }
    - if (struct.nulls != null) {
    - oprot.writeFieldBegin(NULLS_FIELD_DESC);
    - oprot.writeBinary(struct.nulls);
    - oprot.writeFieldEnd();
    - }
    - oprot.writeFieldStop();
    - oprot.writeStructEnd();
    - }
    -
    - }
    -
    - private static class TBinaryColumnTupleSchemeFactory implements SchemeFactory {
    - public TBinaryColumnTupleScheme getScheme() {
    - return new TBinaryColumnTupleScheme();
    - }
    - }
    -
    - private static class TBinaryColumnTupleScheme extends TupleScheme<TBinaryColumn> {
    -
    - @Override
    - public void write(org.apache.thrift.protocol.TProtocol prot, TBinaryColumn struct) throws org.apache.thrift.TException {
    - TTupleProtocol oprot = (TTupleProtocol) prot;
    - {
    - oprot.writeI32(struct.values.size());
    - for (ByteBuffer _iter114 : struct.values)
    - {
    - oprot.writeBinary(_iter114);
    - }
    - }
    - oprot.writeBinary(struct.nulls);
    - }
    -
    - @Override
    - public void read(org.apache.thrift.protocol.TProtocol prot, TBinaryColumn struct) throws org.apache.thrift.TException {
    - TTupleProtocol iprot = (TTupleProtocol) prot;
    - {
    - org.apache.thrift.protocol.TList _list115 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32());
    - struct.values = new ArrayList<ByteBuffer>(_list115.size);
    - ByteBuffer _elem116;
    - for (int _i117 = 0; _i117 < _list115.size; ++_i117)
    - {
    - _elem116 = iprot.readBinary();
    - struct.values.add(_elem116);
    - }
    - }
    - struct.setValuesIsSet(true);
    - struct.nulls = iprot.readBinary();
    - struct.setNullsIsSet(true);
    - }
    - }
    -
    -}
    -

    http://git-wip-us.apache.org/repos/asf/hive/blob/2542f5cc/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TBoolColumn.java
    ----------------------------------------------------------------------
    diff --git a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TBoolColumn.java b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TBoolColumn.java
    deleted file mode 100644
    index c0c5cbe..0000000
    --- a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TBoolColumn.java
    +++ /dev/null
    @@ -1,548 +0,0 @@
    -/**
    - * Autogenerated by Thrift Compiler (0.9.3)
    - *
    - * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
    - * @generated
    - */
    -package org.apache.hive.service.cli.thrift;
    -
    -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"})
    -@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)")
    -public class TBoolColumn implements org.apache.thrift.TBase<TBoolColumn, TBoolColumn._Fields>, java.io.Serializable, Cloneable, Comparable<TBoolColumn> {
    - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TBoolColumn");
    -
    - private static final org.apache.thrift.protocol.TField VALUES_FIELD_DESC = new org.apache.thrift.protocol.TField("values", org.apache.thrift.protocol.TType.LIST, (short)1);
    - private static final org.apache.thrift.protocol.TField NULLS_FIELD_DESC = new org.apache.thrift.protocol.TField("nulls", org.apache.thrift.protocol.TType.STRING, (short)2);
    -
    - private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
    - static {
    - schemes.put(StandardScheme.class, new TBoolColumnStandardSchemeFactory());
    - schemes.put(TupleScheme.class, new TBoolColumnTupleSchemeFactory());
    - }
    -
    - private List<Boolean> values; // required
    - private ByteBuffer nulls; // required
    -
    - /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
    - public enum _Fields implements org.apache.thrift.TFieldIdEnum {
    - VALUES((short)1, "values"),
    - NULLS((short)2, "nulls");
    -
    - private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
    -
    - static {
    - for (_Fields field : EnumSet.allOf(_Fields.class)) {
    - byName.put(field.getFieldName(), field);
    - }
    - }
    -
    - /**
    - * Find the _Fields constant that matches fieldId, or null if its not found.
    - */
    - public static _Fields findByThriftId(int fieldId) {
    - switch(fieldId) {
    - case 1: // VALUES
    - return VALUES;
    - case 2: // NULLS
    - return NULLS;
    - default:
    - return null;
    - }
    - }
    -
    - /**
    - * Find the _Fields constant that matches fieldId, throwing an exception
    - * if it is not found.
    - */
    - public static _Fields findByThriftIdOrThrow(int fieldId) {
    - _Fields fields = findByThriftId(fieldId);
    - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
    - return fields;
    - }
    -
    - /**
    - * Find the _Fields constant that matches name, or null if its not found.
    - */
    - public static _Fields findByName(String name) {
    - return byName.get(name);
    - }
    -
    - private final short _thriftId;
    - private final String _fieldName;
    -
    - _Fields(short thriftId, String fieldName) {
    - _thriftId = thriftId;
    - _fieldName = fieldName;
    - }
    -
    - public short getThriftFieldId() {
    - return _thriftId;
    - }
    -
    - public String getFieldName() {
    - return _fieldName;
    - }
    - }
    -
    - // isset id assignments
    - public static final 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);
    - tmpMap.put(_Fields.VALUES, new org.apache.thrift.meta_data.FieldMetaData("values", org.apache.thrift.TFieldRequirementType.REQUIRED,
    - 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.BOOL))));
    - tmpMap.put(_Fields.NULLS, new org.apache.thrift.meta_data.FieldMetaData("nulls", org.apache.thrift.TFieldRequirementType.REQUIRED,
    - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , true)));
    - metaDataMap = Collections.unmodifiableMap(tmpMap);
    - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(TBoolColumn.class, metaDataMap);
    - }
    -
    - public TBoolColumn() {
    - }
    -
    - public TBoolColumn(
    - List<Boolean> values,
    - ByteBuffer nulls)
    - {
    - this();
    - this.values = values;
    - this.nulls = org.apache.thrift.TBaseHelper.copyBinary(nulls);
    - }
    -
    - /**
    - * Performs a deep copy on <i>other</i>.
    - */
    - public TBoolColumn(TBoolColumn other) {
    - if (other.isSetValues()) {
    - List<Boolean> __this__values = new ArrayList<Boolean>(other.values);
    - this.values = __this__values;
    - }
    - if (other.isSetNulls()) {
    - this.nulls = org.apache.thrift.TBaseHelper.copyBinary(other.nulls);
    - }
    - }
    -
    - public TBoolColumn deepCopy() {
    - return new TBoolColumn(this);
    - }
    -
    - @Override
    - public void clear() {
    - this.values = null;
    - this.nulls = null;
    - }
    -
    - public int getValuesSize() {
    - return (this.values == null) ? 0 : this.values.size();
    - }
    -
    - public java.util.Iterator<Boolean> getValuesIterator() {
    - return (this.values == null) ? null : this.values.iterator();
    - }
    -
    - public void addToValues(boolean elem) {
    - if (this.values == null) {
    - this.values = new ArrayList<Boolean>();
    - }
    - this.values.add(elem);
    - }
    -
    - public List<Boolean> getValues() {
    - return this.values;
    - }
    -
    - public void setValues(List<Boolean> values) {
    - this.values = values;
    - }
    -
    - public void unsetValues() {
    - this.values = null;
    - }
    -
    - /** Returns true if field values is set (has been assigned a value) and false otherwise */
    - public boolean isSetValues() {
    - return this.values != null;
    - }
    -
    - public void setValuesIsSet(boolean value) {
    - if (!value) {
    - this.values = null;
    - }
    - }
    -
    - public byte[] getNulls() {
    - setNulls(org.apache.thrift.TBaseHelper.rightSize(nulls));
    - return nulls == null ? null : nulls.array();
    - }
    -
    - public ByteBuffer bufferForNulls() {
    - return org.apache.thrift.TBaseHelper.copyBinary(nulls);
    - }
    -
    - public void setNulls(byte[] nulls) {
    - this.nulls = nulls == null ? (ByteBuffer)null : ByteBuffer.wrap(Arrays.copyOf(nulls, nulls.length));
    - }
    -
    - public void setNulls(ByteBuffer nulls) {
    - this.nulls = org.apache.thrift.TBaseHelper.copyBinary(nulls);
    - }
    -
    - public void unsetNulls() {
    - this.nulls = null;
    - }
    -
    - /** Returns true if field nulls is set (has been assigned a value) and false otherwise */
    - public boolean isSetNulls() {
    - return this.nulls != null;
    - }
    -
    - public void setNullsIsSet(boolean value) {
    - if (!value) {
    - this.nulls = null;
    - }
    - }
    -
    - public void setFieldValue(_Fields field, Object value) {
    - switch (field) {
    - case VALUES:
    - if (value == null) {
    - unsetValues();
    - } else {
    - setValues((List<Boolean>)value);
    - }
    - break;
    -
    - case NULLS:
    - if (value == null) {
    - unsetNulls();
    - } else {
    - setNulls((ByteBuffer)value);
    - }
    - break;
    -
    - }
    - }
    -
    - public Object getFieldValue(_Fields field) {
    - switch (field) {
    - case VALUES:
    - return getValues();
    -
    - case NULLS:
    - return getNulls();
    -
    - }
    - throw new IllegalStateException();
    - }
    -
    - /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
    - public boolean isSet(_Fields field) {
    - if (field == null) {
    - throw new IllegalArgumentException();
    - }
    -
    - switch (field) {
    - case VALUES:
    - return isSetValues();
    - case NULLS:
    - return isSetNulls();
    - }
    - throw new IllegalStateException();
    - }
    -
    - @Override
    - public boolean equals(Object that) {
    - if (that == null)
    - return false;
    - if (that instanceof TBoolColumn)
    - return this.equals((TBoolColumn)that);
    - return false;
    - }
    -
    - public boolean equals(TBoolColumn that) {
    - if (that == null)
    - return false;
    -
    - boolean this_present_values = true && this.isSetValues();
    - boolean that_present_values = true && that.isSetValues();
    - if (this_present_values || that_present_values) {
    - if (!(this_present_values && that_present_values))
    - return false;
    - if (!this.values.equals(that.values))
    - return false;
    - }
    -
    - boolean this_present_nulls = true && this.isSetNulls();
    - boolean that_present_nulls = true && that.isSetNulls();
    - if (this_present_nulls || that_present_nulls) {
    - if (!(this_present_nulls && that_present_nulls))
    - return false;
    - if (!this.nulls.equals(that.nulls))
    - return false;
    - }
    -
    - return true;
    - }
    -
    - @Override
    - public int hashCode() {
    - List<Object> list = new ArrayList<Object>();
    -
    - boolean present_values = true && (isSetValues());
    - list.add(present_values);
    - if (present_values)
    - list.add(values);
    -
    - boolean present_nulls = true && (isSetNulls());
    - list.add(present_nulls);
    - if (present_nulls)
    - list.add(nulls);
    -
    - return list.hashCode();
    - }
    -
    - @Override
    - public int compareTo(TBoolColumn other) {
    - if (!getClass().equals(other.getClass())) {
    - return getClass().getName().compareTo(other.getClass().getName());
    - }
    -
    - int lastComparison = 0;
    -
    - lastComparison = Boolean.valueOf(isSetValues()).compareTo(other.isSetValues());
    - if (lastComparison != 0) {
    - return lastComparison;
    - }
    - if (isSetValues()) {
    - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.values, other.values);
    - if (lastComparison != 0) {
    - return lastComparison;
    - }
    - }
    - lastComparison = Boolean.valueOf(isSetNulls()).compareTo(other.isSetNulls());
    - if (lastComparison != 0) {
    - return lastComparison;
    - }
    - if (isSetNulls()) {
    - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.nulls, other.nulls);
    - if (lastComparison != 0) {
    - return lastComparison;
    - }
    - }
    - return 0;
    - }
    -
    - public _Fields fieldForId(int fieldId) {
    - return _Fields.findByThriftId(fieldId);
    - }
    -
    - public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
    - schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
    - }
    -
    - public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
    - schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
    - }
    -
    - @Override
    - public String toString() {
    - StringBuilder sb = new StringBuilder("TBoolColumn(");
    - boolean first = true;
    -
    - sb.append("values:");
    - if (this.values == null) {
    - sb.append("null");
    - } else {
    - sb.append(this.values);
    - }
    - first = false;
    - if (!first) sb.append(", ");
    - sb.append("nulls:");
    - if (this.nulls == null) {
    - sb.append("null");
    - } else {
    - org.apache.thrift.TBaseHelper.toString(this.nulls, sb);
    - }
    - first = false;
    - sb.append(")");
    - return sb.toString();
    - }
    -
    - public void validate() throws org.apache.thrift.TException {
    - // check for required fields
    - if (!isSetValues()) {
    - throw new org.apache.thrift.protocol.TProtocolException("Required field 'values' is unset! Struct:" + toString());
    - }
    -
    - if (!isSetNulls()) {
    - throw new org.apache.thrift.protocol.TProtocolException("Required field 'nulls' is unset! Struct:" + toString());
    - }
    -
    - // check for sub-struct validity
    - }
    -
    - private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
    - try {
    - write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
    - } catch (org.apache.thrift.TException te) {
    - throw new java.io.IOException(te);
    - }
    - }
    -
    - private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
    - try {
    - read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
    - } catch (org.apache.thrift.TException te) {
    - throw new java.io.IOException(te);
    - }
    - }
    -
    - private static class TBoolColumnStandardSchemeFactory implements SchemeFactory {
    - public TBoolColumnStandardScheme getScheme() {
    - return new TBoolColumnStandardScheme();
    - }
    - }
    -
    - private static class TBoolColumnStandardScheme extends StandardScheme<TBoolColumn> {
    -
    - public void read(org.apache.thrift.protocol.TProtocol iprot, TBoolColumn struct) throws org.apache.thrift.TException {
    - org.apache.thrift.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: // VALUES
    - if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
    - {
    - org.apache.thrift.protocol.TList _list54 = iprot.readListBegin();
    - struct.values = new ArrayList<Boolean>(_list54.size);
    - boolean _elem55;
    - for (int _i56 = 0; _i56 < _list54.size; ++_i56)
    - {
    - _elem55 = iprot.readBool();
    - struct.values.add(_elem55);
    - }
    - iprot.readListEnd();
    - }
    - struct.setValuesIsSet(true);
    - } else {
    - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
    - }
    - break;
    - case 2: // NULLS
    - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
    - struct.nulls = iprot.readBinary();
    - struct.setNullsIsSet(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.readStructEnd();
    - struct.validate();
    - }
    -
    - public void write(org.apache.thrift.protocol.TProtocol oprot, TBoolColumn struct) throws org.apache.thrift.TException {
    - struct.validate();
    -
    - oprot.writeStructBegin(STRUCT_DESC);
    - if (struct.values != null) {
    - oprot.writeFieldBegin(VALUES_FIELD_DESC);
    - {
    - oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.BOOL, struct.values.size()));
    - for (boolean _iter57 : struct.values)
    - {
    - oprot.writeBool(_iter57);
    - }
    - oprot.writeListEnd();
    - }
    - oprot.writeFieldEnd();
    - }
    - if (struct.nulls != null) {
    - oprot.writeFieldBegin(NULLS_FIELD_DESC);
    - oprot.writeBinary(struct.nulls);
    - oprot.writeFieldEnd();
    - }
    - oprot.writeFieldStop();
    - oprot.writeStructEnd();
    - }
    -
    - }
    -
    - private static class TBoolColumnTupleSchemeFactory implements SchemeFactory {
    - public TBoolColumnTupleScheme getScheme() {
    - return new TBoolColumnTupleScheme();
    - }
    - }
    -
    - private static class TBoolColumnTupleScheme extends TupleScheme<TBoolColumn> {
    -
    - @Override
    - public void write(org.apache.thrift.protocol.TProtocol prot, TBoolColumn struct) throws org.apache.thrift.TException {
    - TTupleProtocol oprot = (TTupleProtocol) prot;
    - {
    - oprot.writeI32(struct.values.size());
    - for (boolean _iter58 : struct.values)
    - {
    - oprot.writeBool(_iter58);
    - }
    - }
    - oprot.writeBinary(struct.nulls);
    - }
    -
    - @Override
    - public void read(org.apache.thrift.protocol.TProtocol prot, TBoolColumn struct) throws org.apache.thrift.TException {
    - TTupleProtocol iprot = (TTupleProtocol) prot;
    - {
    - org.apache.thrift.protocol.TList _list59 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.BOOL, iprot.readI32());
    - struct.values = new ArrayList<Boolean>(_list59.size);
    - boolean _elem60;
    - for (int _i61 = 0; _i61 < _list59.size; ++_i61)
    - {
    - _elem60 = iprot.readBool();
    - struct.values.add(_elem60);
    - }
    - }
    - struct.setValuesIsSet(true);
    - struct.nulls = iprot.readBinary();
    - struct.setNullsIsSet(true);
    - }
    - }
    -
    -}
    -

    http://git-wip-us.apache.org/repos/asf/hive/blob/2542f5cc/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TBoolValue.java
    ----------------------------------------------------------------------
    diff --git a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TBoolValue.java b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TBoolValue.java
    deleted file mode 100644
    index 3670a1e..0000000
    --- a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TBoolValue.java
    +++ /dev/null
    @@ -1,390 +0,0 @@
    -/**
    - * Autogenerated by Thrift Compiler (0.9.3)
    - *
    - * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
    - * @generated
    - */
    -package org.apache.hive.service.cli.thrift;
    -
    -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"})
    -@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)")
    -public class TBoolValue implements org.apache.thrift.TBase<TBoolValue, TBoolValue._Fields>, java.io.Serializable, Cloneable, Comparable<TBoolValue> {
    - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TBoolValue");
    -
    - private static final org.apache.thrift.protocol.TField VALUE_FIELD_DESC = new org.apache.thrift.protocol.TField("value", org.apache.thrift.protocol.TType.BOOL, (short)1);
    -
    - private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
    - static {
    - schemes.put(StandardScheme.class, new TBoolValueStandardSchemeFactory());
    - schemes.put(TupleScheme.class, new TBoolValueTupleSchemeFactory());
    - }
    -
    - private boolean value; // 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 {
    - VALUE((short)1, "value");
    -
    - private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
    -
    - static {
    - for (_Fields field : EnumSet.allOf(_Fields.class)) {
    - byName.put(field.getFieldName(), field);
    - }
    - }
    -
    - /**
    - * Find the _Fields constant that matches fieldId, or null if its not found.
    - */
    - public static _Fields findByThriftId(int fieldId) {
    - switch(fieldId) {
    - case 1: // VALUE
    - return VALUE;
    - default:
    - return null;
    - }
    - }
    -
    - /**
    - * Find the _Fields constant that matches fieldId, throwing an exception
    - * if it is not found.
    - */
    - public static _Fields findByThriftIdOrThrow(int fieldId) {
    - _Fields fields = findByThriftId(fieldId);
    - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
    - return fields;
    - }
    -
    - /**
    - * Find the _Fields constant that matches name, or null if its not found.
    - */
    - public static _Fields findByName(String name) {
    - return byName.get(name);
    - }
    -
    - private final short _thriftId;
    - private final String _fieldName;
    -
    - _Fields(short thriftId, String fieldName) {
    - _thriftId = thriftId;
    - _fieldName = fieldName;
    - }
    -
    - public short getThriftFieldId() {
    - return _thriftId;
    - }
    -
    - public String getFieldName() {
    - return _fieldName;
    - }
    - }
    -
    - // isset id assignments
    - private static final int __VALUE_ISSET_ID = 0;
    - private byte __isset_bitfield = 0;
    - private static final _Fields optionals[] = {_Fields.VALUE};
    - public static final 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);
    - tmpMap.put(_Fields.VALUE, new org.apache.thrift.meta_data.FieldMetaData("value", org.apache.thrift.TFieldRequirementType.OPTIONAL,
    - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
    - metaDataMap = Collections.unmodifiableMap(tmpMap);
    - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(TBoolValue.class, metaDataMap);
    - }
    -
    - public TBoolValue() {
    - }
    -
    - /**
    - * Performs a deep copy on <i>other</i>.
    - */
    - public TBoolValue(TBoolValue other) {
    - __isset_bitfield = other.__isset_bitfield;
    - this.value = other.value;
    - }
    -
    - public TBoolValue deepCopy() {
    - return new TBoolValue(this);
    - }
    -
    - @Override
    - public void clear() {
    - setValueIsSet(false);
    - this.value = false;
    - }
    -
    - public boolean isValue() {
    - return this.value;
    - }
    -
    - public void setValue(boolean value) {
    - this.value = value;
    - setValueIsSet(true);
    - }
    -
    - public void unsetValue() {
    - __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __VALUE_ISSET_ID);
    - }
    -
    - /** Returns true if field value is set (has been assigned a value) and false otherwise */
    - public boolean isSetValue() {
    - return EncodingUtils.testBit(__isset_bitfield, __VALUE_ISSET_ID);
    - }
    -
    - public void setValueIsSet(boolean value) {
    - __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __VALUE_ISSET_ID, value);
    - }
    -
    - public void setFieldValue(_Fields field, Object value) {
    - switch (field) {
    - case VALUE:
    - if (value == null) {
    - unsetValue();
    - } else {
    - setValue((Boolean)value);
    - }
    - break;
    -
    - }
    - }
    -
    - public Object getFieldValue(_Fields field) {
    - switch (field) {
    - case VALUE:
    - return isValue();
    -
    - }
    - throw new IllegalStateException();
    - }
    -
    - /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
    - public boolean isSet(_Fields field) {
    - if (field == null) {
    - throw new IllegalArgumentException();
    - }
    -
    - switch (field) {
    - case VALUE:
    - return isSetValue();
    - }
    - throw new IllegalStateException();
    - }
    -
    - @Override
    - public boolean equals(Object that) {
    - if (that == null)
    - return false;
    - if (that instanceof TBoolValue)
    - return this.equals((TBoolValue)that);
    - return false;
    - }
    -
    - public boolean equals(TBoolValue that) {
    - if (that == null)
    - return false;
    -
    - boolean this_present_value = true && this.isSetValue();
    - boolean that_present_value = true && that.isSetValue();
    - if (this_present_value || that_present_value) {
    - if (!(this_present_value && that_present_value))
    - return false;
    - if (this.value != that.value)
    - return false;
    - }
    -
    - return true;
    - }
    -
    - @Override
    - public int hashCode() {
    - List<Object> list = new ArrayList<Object>();
    -
    - boolean present_value = true && (isSetValue());
    - list.add(present_value);
    - if (present_value)
    - list.add(value);
    -
    - return list.hashCode();
    - }
    -
    - @Override
    - public int compareTo(TBoolValue other) {
    - if (!getClass().equals(other.getClass())) {
    - return getClass().getName().compareTo(other.getClass().getName());
    - }
    -
    - int lastComparison = 0;
    -
    - lastComparison = Boolean.valueOf(isSetValue()).compareTo(other.isSetValue());
    - if (lastComparison != 0) {
    - return lastComparison;
    - }
    - if (isSetValue()) {
    - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.value, other.value);
    - if (lastComparison != 0) {
    - return lastComparison;
    - }
    - }
    - return 0;
    - }
    -
    - public _Fields fieldForId(int fieldId) {
    - return _Fields.findByThriftId(fieldId);
    - }
    -
    - public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
    - schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
    - }
    -
    - public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
    - schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
    - }
    -
    - @Override
    - public String toString() {
    - StringBuilder sb = new StringBuilder("TBoolValue(");
    - boolean first = true;
    -
    - if (isSetValue()) {
    - sb.append("value:");
    - sb.append(this.value);
    - first = false;
    - }
    - sb.append(")");
    - return sb.toString();
    - }
    -
    - public void validate() throws org.apache.thrift.TException {
    - // check for required fields
    - // check for sub-struct validity
    - }
    -
    - private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
    - try {
    - write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
    - } catch (org.apache.thrift.TException te) {
    - throw new java.io.IOException(te);
    - }
    - }
    -
    - private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
    - try {
    - // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
    - __isset_bitfield = 0;
    - read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
    - } catch (org.apache.thrift.TException te) {
    - throw new java.io.IOException(te);
    - }
    - }
    -
    - private static class TBoolValueStandardSchemeFactory implements SchemeFactory {
    - public TBoolValueStandardScheme getScheme() {
    - return new TBoolValueStandardScheme();
    - }
    - }
    -
    - private static class TBoolValueStandardScheme extends StandardScheme<TBoolValue> {
    -
    - public void read(org.apache.thrift.protocol.TProtocol iprot, TBoolValue struct) throws org.apache.thrift.TException {
    - org.apache.thrift.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.BOOL) {
    - struct.value = iprot.readBool();
    - 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.readStructEnd();
    - struct.validate();
    - }
    -
    - public void write(org.apache.thrift.protocol.TProtocol oprot, TBoolValue struct) throws org.apache.thrift.TException {
    - struct.validate();
    -
    - oprot.writeStructBegin(STRUCT_DESC);
    - if (struct.isSetValue()) {
    - oprot.writeFieldBegin(VALUE_FIELD_DESC);
    - oprot.writeBool(struct.value);
    - oprot.writeFieldEnd();
    - }
    - oprot.writeFieldStop();
    - oprot.writeStructEnd();
    - }
    -
    - }
    -
    - private static class TBoolValueTupleSchemeFactory implements SchemeFactory {
    - public TBoolValueTupleScheme getScheme() {
    - return new TBoolValueTupleScheme();
    - }
    - }
    -
    - private static class TBoolValueTupleScheme extends TupleScheme<TBoolValue> {
    -
    - @Override
    - public void write(org.apache.thrift.protocol.TProtocol prot, TBoolValue struct) throws org.apache.thrift.TException {
    - TTupleProtocol oprot = (TTupleProtocol) prot;
    - BitSet optionals = new BitSet();
    - if (struct.isSetValue()) {
    - optionals.set(0);
    - }
    - oprot.writeBitSet(optionals, 1);
    - if (struct.isSetValue()) {
    - oprot.writeBool(struct.value);
    - }
    - }
    -
    - @Override
    - public void read(org.apache.thrift.protocol.TProtocol prot, TBoolValue struct) throws org.apache.thrift.TException {
    - TTupleProtocol iprot = (TTupleProtocol) prot;
    - BitSet incoming = iprot.readBitSet(1);
    - if (incoming.get(0)) {
    - struct.value = iprot.readBool();
    - struct.setValueIsSet(true);
    - }
    - }
    - }
    -
    -}
    -

    http://git-wip-us.apache.org/repos/asf/hive/blob/2542f5cc/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TByteColumn.java
    ----------------------------------------------------------------------
    diff --git a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TByteColumn.java b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TByteColumn.java
    deleted file mode 100644
    index 85c881e..0000000
    --- a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TByteColumn.java
    +++ /dev/null
    @@ -1,548 +0,0 @@
    -/**
    - * Autogenerated by Thrift Compiler (0.9.3)
    - *
    - * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
    - * @generated
    - */
    -package org.apache.hive.service.cli.thrift;
    -
    -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"})
    -@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)")
    -public class TByteColumn implements org.apache.thrift.TBase<TByteColumn, TByteColumn._Fields>, java.io.Serializable, Cloneable, Comparable<TByteColumn> {
    - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TByteColumn");
    -
    - private static final org.apache.thrift.protocol.TField VALUES_FIELD_DESC = new org.apache.thrift.protocol.TField("values", org.apache.thrift.protocol.TType.LIST, (short)1);
    - private static final org.apache.thrift.protocol.TField NULLS_FIELD_DESC = new org.apache.thrift.protocol.TField("nulls", org.apache.thrift.protocol.TType.STRING, (short)2);
    -
    - private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
    - static {
    - schemes.put(StandardScheme.class, new TByteColumnStandardSchemeFactory());
    - schemes.put(TupleScheme.class, new TByteColumnTupleSchemeFactory());
    - }
    -
    - private List<Byte> values; // required
    - private ByteBuffer nulls; // required
    -
    - /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
    - public enum _Fields implements org.apache.thrift.TFieldIdEnum {
    - VALUES((short)1, "values"),
    - NULLS((short)2, "nulls");
    -
    - private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
    -
    - static {
    - for (_Fields field : EnumSet.allOf(_Fields.class)) {
    - byName.put(field.getFieldName(), field);
    - }
    - }
    -
    - /**
    - * Find the _Fields constant that matches fieldId, or null if its not found.
    - */
    - public static _Fields findByThriftId(int fieldId) {
    - switch(fieldId) {
    - case 1: // VALUES
    - return VALUES;
    - case 2: // NULLS
    - return NULLS;
    - default:
    - return null;
    - }
    - }
    -
    - /**
    - * Find the _Fields constant that matches fieldId, throwing an exception
    - * if it is not found.
    - */
    - public static _Fields findByThriftIdOrThrow(int fieldId) {
    - _Fields fields = findByThriftId(fieldId);
    - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
    - return fields;
    - }
    -
    - /**
    - * Find the _Fields constant that matches name, or null if its not found.
    - */
    - public static _Fields findByName(String name) {
    - return byName.get(name);
    - }
    -
    - private final short _thriftId;
    - private final String _fieldName;
    -
    - _Fields(short thriftId, String fieldName) {
    - _thriftId = thriftId;
    - _fieldName = fieldName;
    - }
    -
    - public short getThriftFieldId() {
    - return _thriftId;
    - }
    -
    - public String getFieldName() {
    - return _fieldName;
    - }
    - }
    -
    - // isset id assignments
    - public static final 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);
    - tmpMap.put(_Fields.VALUES, new org.apache.thrift.meta_data.FieldMetaData("values", org.apache.thrift.TFieldRequirementType.REQUIRED,
    - 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.BYTE))));
    - tmpMap.put(_Fields.NULLS, new org.apache.thrift.meta_data.FieldMetaData("nulls", org.apache.thrift.TFieldRequirementType.REQUIRED,
    - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , true)));
    - metaDataMap = Collections.unmodifiableMap(tmpMap);
    - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(TByteColumn.class, metaDataMap);
    - }
    -
    - public TByteColumn() {
    - }
    -
    - public TByteColumn(
    - List<Byte> values,
    - ByteBuffer nulls)
    - {
    - this();
    - this.values = values;
    - this.nulls = org.apache.thrift.TBaseHelper.copyBinary(nulls);
    - }
    -
    - /**
    - * Performs a deep copy on <i>other</i>.
    - */
    - public TByteColumn(TByteColumn other) {
    - if (other.isSetValues()) {
    - List<Byte> __this__values = new ArrayList<Byte>(other.values);
    - this.values = __this__values;
    - }
    - if (other.isSetNulls()) {
    - this.nulls = org.apache.thrift.TBaseHelper.copyBinary(other.nulls);
    - }
    - }
    -
    - public TByteColumn deepCopy() {
    - return new TByteColumn(this);
    - }
    -
    - @Override
    - public void clear() {
    - this.values = null;
    - this.nulls = null;
    - }
    -
    - public int getValuesSize() {
    - return (this.values == null) ? 0 : this.values.size();
    - }
    -
    - public java.util.Iterator<Byte> getValuesIterator() {
    - return (this.values == null) ? null : this.values.iterator();
    - }
    -
    - public void addToValues(byte elem) {
    - if (this.values == null) {
    - this.values = new ArrayList<Byte>();
    - }
    - this.values.add(elem);
    - }
    -
    - public List<Byte> getValues() {
    - return this.values;
    - }
    -
    - public void setValues(List<Byte> values) {
    - this.values = values;
    - }
    -
    - public void unsetValues() {
    - this.values = null;
    - }
    -
    - /** Returns true if field values is set (has been assigned a value) and false otherwise */
    - public boolean isSetValues() {
    - return this.values != null;
    - }
    -
    - public void setValuesIsSet(boolean value) {
    - if (!value) {
    - this.values = null;
    - }
    - }
    -
    - public byte[] getNulls() {
    - setNulls(org.apache.thrift.TBaseHelper.rightSize(nulls));
    - return nulls == null ? null : nulls.array();
    - }
    -
    - public ByteBuffer bufferForNulls() {
    - return org.apache.thrift.TBaseHelper.copyBinary(nulls);
    - }
    -
    - public void setNulls(byte[] nulls) {
    - this.nulls = nulls == null ? (ByteBuffer)null : ByteBuffer.wrap(Arrays.copyOf(nulls, nulls.length));
    - }
    -
    - public void setNulls(ByteBuffer nulls) {
    - this.nulls = org.apache.thrift.TBaseHelper.copyBinary(nulls);
    - }
    -
    - public void unsetNulls() {
    - this.nulls = null;
    - }
    -
    - /** Returns true if field nulls is set (has been assigned a value) and false otherwise */
    - public boolean isSetNulls() {
    - return this.nulls != null;
    - }
    -
    - public void setNullsIsSet(boolean value) {
    - if (!value) {
    - this.nulls = null;
    - }
    - }
    -
    - public void setFieldValue(_Fields field, Object value) {
    - switch (field) {
    - case VALUES:
    - if (value == null) {
    - unsetValues();
    - } else {
    - setValues((List<Byte>)value);
    - }
    - break;
    -
    - case NULLS:
    - if (value == null) {
    - unsetNulls();
    - } else {
    - setNulls((ByteBuffer)value);
    - }
    - break;
    -
    - }
    - }
    -
    - public Object getFieldValue(_Fields field) {
    - switch (field) {
    - case VALUES:
    - return getValues();
    -
    - case NULLS:
    - return getNulls();
    -
    - }
    - throw new IllegalStateException();
    - }
    -
    - /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
    - public boolean isSet(_Fields field) {
    - if (field == null) {
    - throw new IllegalArgumentException();
    - }
    -
    - switch (field) {
    - case VALUES:
    - return isSetValues();
    - case NULLS:
    - return isSetNulls();
    - }
    - throw new IllegalStateException();
    - }
    -
    - @Override
    - public boolean equals(Object that) {
    - if (that == null)
    - return false;
    - if (that instanceof TByteColumn)
    - return this.equals((TByteColumn)that);
    - return false;
    - }
    -
    - public boolean equals(TByteColumn that) {
    - if (that == null)
    - return false;
    -
    - boolean this_present_values = true && this.isSetValues();
    - boolean that_present_values = true && that.isSetValues();
    - if (this_present_values || that_present_values) {
    - if (!(this_present_values && that_present_values))
    - return false;
    - if (!this.values.equals(that.values))
    - return false;
    - }
    -
    - boolean this_present_nulls = true && this.isSetNulls();
    - boolean that_present_nulls = true && that.isSetNulls();
    - if (this_present_nulls || that_present_nulls) {
    - if (!(this_present_nulls && that_present_nulls))
    - return false;
    - if (!this.nulls.equals(that.nulls))
    - return false;
    - }
    -
    - return true;
    - }
    -
    - @Override
    - public int hashCode() {
    - List<Object> list = new ArrayList<Object>();
    -
    - boolean present_values = true && (isSetValues());
    - list.add(present_values);
    - if (present_values)
    - list.add(values);
    -
    - boolean present_nulls = true && (isSetNulls());
    - list.add(present_nulls);
    - if (present_nulls)
    - list.add(nulls);
    -
    - return list.hashCode();
    - }
    -
    - @Override
    - public int compareTo(TByteColumn other) {
    - if (!getClass().equals(other.getClass())) {
    - return getClass().getName().compareTo(other.getClass().getName());
    - }
    -
    - int lastComparison = 0;
    -
    - lastComparison = Boolean.valueOf(isSetValues()).compareTo(other.isSetValues());
    - if (lastComparison != 0) {
    - return lastComparison;
    - }
    - if (isSetValues()) {
    - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.values, other.values);
    - if (lastComparison != 0) {
    - return lastComparison;
    - }
    - }
    - lastComparison = Boolean.valueOf(isSetNulls()).compareTo(other.isSetNulls());
    - if (lastComparison != 0) {
    - return lastComparison;
    - }
    - if (isSetNulls()) {
    - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.nulls, other.nulls);
    - if (lastComparison != 0) {
    - return lastComparison;
    - }
    - }
    - return 0;
    - }
    -
    - public _Fields fieldForId(int fieldId) {
    - return _Fields.findByThriftId(fieldId);
    - }
    -
    - public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
    - schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
    - }
    -
    - public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
    - schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
    - }
    -
    - @Override
    - public String toString() {
    - StringBuilder sb = new StringBuilder("TByteColumn(");
    - boolean first = true;
    -
    - sb.append("values:");
    - if (this.values == null) {
    - sb.append("null");
    - } else {
    - sb.append(this.values);
    - }
    - first = false;
    - if (!first) sb.append(", ");
    - sb.append("nulls:");
    - if (this.nulls == null) {
    - sb.append("null");
    - } else {
    - org.apache.thrift.TBaseHelper.toString(this.nulls, sb);
    - }
    - first = false;
    - sb.append(")");
    - return sb.toString();
    - }
    -
    - public void validate() throws org.apache.thrift.TException {
    - // check for required fields
    - if (!isSetValues()) {
    - throw new org.apache.thrift.protocol.TProtocolException("Required field 'values' is unset! Struct:" + toString());
    - }
    -
    - if (!isSetNulls()) {
    - throw new org.apache.thrift.protocol.TProtocolException("Required field 'nulls' is unset! Struct:" + toString());
    - }
    -
    - // check for sub-struct validity
    - }
    -
    - private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
    - try {
    - write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
    - } catch (org.apache.thrift.TException te) {
    - throw new java.io.IOException(te);
    - }
    - }
    -
    - private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
    - try {
    - read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
    - } catch (org.apache.thrift.TException te) {
    - throw new java.io.IOException(te);
    - }
    - }
    -
    - private static class TByteColumnStandardSchemeFactory implements SchemeFactory {
    - public TByteColumnStandardScheme getScheme() {
    - return new TByteColumnStandardScheme();
    - }
    - }
    -
    - private static class TByteColumnStandardScheme extends StandardScheme<TByteColumn> {
    -
    - public void read(org.apache.thrift.protocol.TProtocol iprot, TByteColumn struct) throws org.apache.thrift.TException {
    - org.apache.thrift.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: // VALUES
    - if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
    - {
    - org.apache.thrift.protocol.TList _list62 = iprot.readListBegin();
    - struct.values = new ArrayList<Byte>(_list62.size);
    - byte _elem63;
    - for (int _i64 = 0; _i64 < _list62.size; ++_i64)
    - {
    - _elem63 = iprot.readByte();
    - struct.values.add(_elem63);
    - }
    - iprot.readListEnd();
    - }
    - struct.setValuesIsSet(true);
    - } else {
    - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
    - }
    - break;
    - case 2: // NULLS
    - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
    - struct.nulls = iprot.readBinary();
    - struct.setNullsIsSet(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.readStructEnd();
    - struct.validate();
    - }
    -
    - public void write(org.apache.thrift.protocol.TProtocol oprot, TByteColumn struct) throws org.apache.thrift.TException {
    - struct.validate();
    -
    - oprot.writeStructBegin(STRUCT_DESC);
    - if (struct.values != null) {
    - oprot.writeFieldBegin(VALUES_FIELD_DESC);
    - {
    - oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.BYTE, struct.values.size()));
    - for (byte _iter65 : struct.values)
    - {
    - oprot.writeByte(_iter65);
    - }
    - oprot.writeListEnd();
    - }
    - oprot.writeFieldEnd();
    - }
    - if (struct.nulls != null) {
    - oprot.writeFieldBegin(NULLS_FIELD_DESC);
    - oprot.writeBinary(struct.nulls);
    - oprot.writeFieldEnd();
    - }
    - oprot.writeFieldStop();
    - oprot.writeStructEnd();
    - }
    -
    - }
    -
    - private static class TByteColumnTupleSchemeFactory implements SchemeFactory {
    - public TByteColumnTupleScheme getScheme() {
    - return new TByteColumnTupleScheme();
    - }
    - }
    -
    - private static class TByteColumnTupleScheme extends TupleScheme<TByteColumn> {
    -
    - @Override
    - public void write(org.apache.thrift.protocol.TProtocol prot, TByteColumn struct) throws org.apache.thrift.TException {
    - TTupleProtocol oprot = (TTupleProtocol) prot;
    - {
    - oprot.writeI32(struct.values.size());
    - for (byte _iter66 : struct.values)
    - {
    - oprot.writeByte(_iter66);
    - }
    - }
    - oprot.writeBinary(struct.nulls);
    - }
    -
    - @Override
    - public void read(org.apache.thrift.protocol.TProtocol prot, TByteColumn struct) throws org.apache.thrift.TException {
    - TTupleProtocol iprot = (TTupleProtocol) prot;
    - {
    - org.apache.thrift.protocol.TList _list67 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.BYTE, iprot.readI32());
    - struct.values = new ArrayList<Byte>(_list67.size);
    - byte _elem68;
    - for (int _i69 = 0; _i69 < _list67.size; ++_i69)
    - {
    - _elem68 = iprot.readByte();
    - struct.values.add(_elem68);
    - }
    - }
    - struct.setValuesIsSet(true);
    - struct.nulls = iprot.readBinary();
    - struct.setNullsIsSet(true);
    - }
    - }
    -
    -}
    -
  • Vgumashta at Jan 8, 2016 at 12:19 am
    http://git-wip-us.apache.org/repos/asf/hive/blob/2542f5cc/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TCLIService.java
    ----------------------------------------------------------------------
    diff --git a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TCLIService.java b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TCLIService.java
    deleted file mode 100644
    index ded848f..0000000
    --- a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TCLIService.java
    +++ /dev/null
    @@ -1,16422 +0,0 @@
    -/**
    - * Autogenerated by Thrift Compiler (0.9.3)
    - *
    - * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
    - * @generated
    - */
    -package org.apache.hive.service.cli.thrift;
    -
    -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"})
    -@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)")
    -public class TCLIService {
    -
    - public interface Iface {
    -
    - public TOpenSessionResp OpenSession(TOpenSessionReq req) throws org.apache.thrift.TException;
    -
    - public TCloseSessionResp CloseSession(TCloseSessionReq req) throws org.apache.thrift.TException;
    -
    - public TGetInfoResp GetInfo(TGetInfoReq req) throws org.apache.thrift.TException;
    -
    - public TExecuteStatementResp ExecuteStatement(TExecuteStatementReq req) throws org.apache.thrift.TException;
    -
    - public TGetTypeInfoResp GetTypeInfo(TGetTypeInfoReq req) throws org.apache.thrift.TException;
    -
    - public TGetCatalogsResp GetCatalogs(TGetCatalogsReq req) throws org.apache.thrift.TException;
    -
    - public TGetSchemasResp GetSchemas(TGetSchemasReq req) throws org.apache.thrift.TException;
    -
    - public TGetTablesResp GetTables(TGetTablesReq req) throws org.apache.thrift.TException;
    -
    - public TGetTableTypesResp GetTableTypes(TGetTableTypesReq req) throws org.apache.thrift.TException;
    -
    - public TGetColumnsResp GetColumns(TGetColumnsReq req) throws org.apache.thrift.TException;
    -
    - public TGetFunctionsResp GetFunctions(TGetFunctionsReq req) throws org.apache.thrift.TException;
    -
    - public TGetOperationStatusResp GetOperationStatus(TGetOperationStatusReq req) throws org.apache.thrift.TException;
    -
    - public TCancelOperationResp CancelOperation(TCancelOperationReq req) throws org.apache.thrift.TException;
    -
    - public TCloseOperationResp CloseOperation(TCloseOperationReq req) throws org.apache.thrift.TException;
    -
    - public TGetResultSetMetadataResp GetResultSetMetadata(TGetResultSetMetadataReq req) throws org.apache.thrift.TException;
    -
    - public TFetchResultsResp FetchResults(TFetchResultsReq req) throws org.apache.thrift.TException;
    -
    - public TGetDelegationTokenResp GetDelegationToken(TGetDelegationTokenReq req) throws org.apache.thrift.TException;
    -
    - public TCancelDelegationTokenResp CancelDelegationToken(TCancelDelegationTokenReq req) throws org.apache.thrift.TException;
    -
    - public TRenewDelegationTokenResp RenewDelegationToken(TRenewDelegationTokenReq req) throws org.apache.thrift.TException;
    -
    - }
    -
    - public interface AsyncIface {
    -
    - public void OpenSession(TOpenSessionReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
    -
    - public void CloseSession(TCloseSessionReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
    -
    - public void GetInfo(TGetInfoReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
    -
    - public void ExecuteStatement(TExecuteStatementReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
    -
    - public void GetTypeInfo(TGetTypeInfoReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
    -
    - public void GetCatalogs(TGetCatalogsReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
    -
    - public void GetSchemas(TGetSchemasReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
    -
    - public void GetTables(TGetTablesReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
    -
    - public void GetTableTypes(TGetTableTypesReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
    -
    - public void GetColumns(TGetColumnsReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
    -
    - public void GetFunctions(TGetFunctionsReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
    -
    - public void GetOperationStatus(TGetOperationStatusReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
    -
    - public void CancelOperation(TCancelOperationReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
    -
    - public void CloseOperation(TCloseOperationReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
    -
    - public void GetResultSetMetadata(TGetResultSetMetadataReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
    -
    - public void FetchResults(TFetchResultsReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
    -
    - public void GetDelegationToken(TGetDelegationTokenReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
    -
    - public void CancelDelegationToken(TCancelDelegationTokenReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
    -
    - public void RenewDelegationToken(TRenewDelegationTokenReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
    -
    - }
    -
    - public static class Client extends org.apache.thrift.TServiceClient implements Iface {
    - public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
    - public Factory() {}
    - public Client getClient(org.apache.thrift.protocol.TProtocol prot) {
    - return new Client(prot);
    - }
    - public Client getClient(org.apache.thrift.protocol.TProtocol iprot, org.apache.thrift.protocol.TProtocol oprot) {
    - return new Client(iprot, oprot);
    - }
    - }
    -
    - public Client(org.apache.thrift.protocol.TProtocol prot)
    - {
    - super(prot, prot);
    - }
    -
    - public Client(org.apache.thrift.protocol.TProtocol iprot, org.apache.thrift.protocol.TProtocol oprot) {
    - super(iprot, oprot);
    - }
    -
    - public TOpenSessionResp OpenSession(TOpenSessionReq req) throws org.apache.thrift.TException
    - {
    - send_OpenSession(req);
    - return recv_OpenSession();
    - }
    -
    - public void send_OpenSession(TOpenSessionReq req) throws org.apache.thrift.TException
    - {
    - OpenSession_args args = new OpenSession_args();
    - args.setReq(req);
    - sendBase("OpenSession", args);
    - }
    -
    - public TOpenSessionResp recv_OpenSession() throws org.apache.thrift.TException
    - {
    - OpenSession_result result = new OpenSession_result();
    - receiveBase(result, "OpenSession");
    - if (result.isSetSuccess()) {
    - return result.success;
    - }
    - throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "OpenSession failed: unknown result");
    - }
    -
    - public TCloseSessionResp CloseSession(TCloseSessionReq req) throws org.apache.thrift.TException
    - {
    - send_CloseSession(req);
    - return recv_CloseSession();
    - }
    -
    - public void send_CloseSession(TCloseSessionReq req) throws org.apache.thrift.TException
    - {
    - CloseSession_args args = new CloseSession_args();
    - args.setReq(req);
    - sendBase("CloseSession", args);
    - }
    -
    - public TCloseSessionResp recv_CloseSession() throws org.apache.thrift.TException
    - {
    - CloseSession_result result = new CloseSession_result();
    - receiveBase(result, "CloseSession");
    - if (result.isSetSuccess()) {
    - return result.success;
    - }
    - throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "CloseSession failed: unknown result");
    - }
    -
    - public TGetInfoResp GetInfo(TGetInfoReq req) throws org.apache.thrift.TException
    - {
    - send_GetInfo(req);
    - return recv_GetInfo();
    - }
    -
    - public void send_GetInfo(TGetInfoReq req) throws org.apache.thrift.TException
    - {
    - GetInfo_args args = new GetInfo_args();
    - args.setReq(req);
    - sendBase("GetInfo", args);
    - }
    -
    - public TGetInfoResp recv_GetInfo() throws org.apache.thrift.TException
    - {
    - GetInfo_result result = new GetInfo_result();
    - receiveBase(result, "GetInfo");
    - if (result.isSetSuccess()) {
    - return result.success;
    - }
    - throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "GetInfo failed: unknown result");
    - }
    -
    - public TExecuteStatementResp ExecuteStatement(TExecuteStatementReq req) throws org.apache.thrift.TException
    - {
    - send_ExecuteStatement(req);
    - return recv_ExecuteStatement();
    - }
    -
    - public void send_ExecuteStatement(TExecuteStatementReq req) throws org.apache.thrift.TException
    - {
    - ExecuteStatement_args args = new ExecuteStatement_args();
    - args.setReq(req);
    - sendBase("ExecuteStatement", args);
    - }
    -
    - public TExecuteStatementResp recv_ExecuteStatement() throws org.apache.thrift.TException
    - {
    - ExecuteStatement_result result = new ExecuteStatement_result();
    - receiveBase(result, "ExecuteStatement");
    - if (result.isSetSuccess()) {
    - return result.success;
    - }
    - throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "ExecuteStatement failed: unknown result");
    - }
    -
    - public TGetTypeInfoResp GetTypeInfo(TGetTypeInfoReq req) throws org.apache.thrift.TException
    - {
    - send_GetTypeInfo(req);
    - return recv_GetTypeInfo();
    - }
    -
    - public void send_GetTypeInfo(TGetTypeInfoReq req) throws org.apache.thrift.TException
    - {
    - GetTypeInfo_args args = new GetTypeInfo_args();
    - args.setReq(req);
    - sendBase("GetTypeInfo", args);
    - }
    -
    - public TGetTypeInfoResp recv_GetTypeInfo() throws org.apache.thrift.TException
    - {
    - GetTypeInfo_result result = new GetTypeInfo_result();
    - receiveBase(result, "GetTypeInfo");
    - if (result.isSetSuccess()) {
    - return result.success;
    - }
    - throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "GetTypeInfo failed: unknown result");
    - }
    -
    - public TGetCatalogsResp GetCatalogs(TGetCatalogsReq req) throws org.apache.thrift.TException
    - {
    - send_GetCatalogs(req);
    - return recv_GetCatalogs();
    - }
    -
    - public void send_GetCatalogs(TGetCatalogsReq req) throws org.apache.thrift.TException
    - {
    - GetCatalogs_args args = new GetCatalogs_args();
    - args.setReq(req);
    - sendBase("GetCatalogs", args);
    - }
    -
    - public TGetCatalogsResp recv_GetCatalogs() throws org.apache.thrift.TException
    - {
    - GetCatalogs_result result = new GetCatalogs_result();
    - receiveBase(result, "GetCatalogs");
    - if (result.isSetSuccess()) {
    - return result.success;
    - }
    - throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "GetCatalogs failed: unknown result");
    - }
    -
    - public TGetSchemasResp GetSchemas(TGetSchemasReq req) throws org.apache.thrift.TException
    - {
    - send_GetSchemas(req);
    - return recv_GetSchemas();
    - }
    -
    - public void send_GetSchemas(TGetSchemasReq req) throws org.apache.thrift.TException
    - {
    - GetSchemas_args args = new GetSchemas_args();
    - args.setReq(req);
    - sendBase("GetSchemas", args);
    - }
    -
    - public TGetSchemasResp recv_GetSchemas() throws org.apache.thrift.TException
    - {
    - GetSchemas_result result = new GetSchemas_result();
    - receiveBase(result, "GetSchemas");
    - if (result.isSetSuccess()) {
    - return result.success;
    - }
    - throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "GetSchemas failed: unknown result");
    - }
    -
    - public TGetTablesResp GetTables(TGetTablesReq req) throws org.apache.thrift.TException
    - {
    - send_GetTables(req);
    - return recv_GetTables();
    - }
    -
    - public void send_GetTables(TGetTablesReq req) throws org.apache.thrift.TException
    - {
    - GetTables_args args = new GetTables_args();
    - args.setReq(req);
    - sendBase("GetTables", args);
    - }
    -
    - public TGetTablesResp recv_GetTables() throws org.apache.thrift.TException
    - {
    - GetTables_result result = new GetTables_result();
    - receiveBase(result, "GetTables");
    - if (result.isSetSuccess()) {
    - return result.success;
    - }
    - throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "GetTables failed: unknown result");
    - }
    -
    - public TGetTableTypesResp GetTableTypes(TGetTableTypesReq req) throws org.apache.thrift.TException
    - {
    - send_GetTableTypes(req);
    - return recv_GetTableTypes();
    - }
    -
    - public void send_GetTableTypes(TGetTableTypesReq req) throws org.apache.thrift.TException
    - {
    - GetTableTypes_args args = new GetTableTypes_args();
    - args.setReq(req);
    - sendBase("GetTableTypes", args);
    - }
    -
    - public TGetTableTypesResp recv_GetTableTypes() throws org.apache.thrift.TException
    - {
    - GetTableTypes_result result = new GetTableTypes_result();
    - receiveBase(result, "GetTableTypes");
    - if (result.isSetSuccess()) {
    - return result.success;
    - }
    - throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "GetTableTypes failed: unknown result");
    - }
    -
    - public TGetColumnsResp GetColumns(TGetColumnsReq req) throws org.apache.thrift.TException
    - {
    - send_GetColumns(req);
    - return recv_GetColumns();
    - }
    -
    - public void send_GetColumns(TGetColumnsReq req) throws org.apache.thrift.TException
    - {
    - GetColumns_args args = new GetColumns_args();
    - args.setReq(req);
    - sendBase("GetColumns", args);
    - }
    -
    - public TGetColumnsResp recv_GetColumns() throws org.apache.thrift.TException
    - {
    - GetColumns_result result = new GetColumns_result();
    - receiveBase(result, "GetColumns");
    - if (result.isSetSuccess()) {
    - return result.success;
    - }
    - throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "GetColumns failed: unknown result");
    - }
    -
    - public TGetFunctionsResp GetFunctions(TGetFunctionsReq req) throws org.apache.thrift.TException
    - {
    - send_GetFunctions(req);
    - return recv_GetFunctions();
    - }
    -
    - public void send_GetFunctions(TGetFunctionsReq req) throws org.apache.thrift.TException
    - {
    - GetFunctions_args args = new GetFunctions_args();
    - args.setReq(req);
    - sendBase("GetFunctions", args);
    - }
    -
    - public TGetFunctionsResp recv_GetFunctions() throws org.apache.thrift.TException
    - {
    - GetFunctions_result result = new GetFunctions_result();
    - receiveBase(result, "GetFunctions");
    - if (result.isSetSuccess()) {
    - return result.success;
    - }
    - throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "GetFunctions failed: unknown result");
    - }
    -
    - public TGetOperationStatusResp GetOperationStatus(TGetOperationStatusReq req) throws org.apache.thrift.TException
    - {
    - send_GetOperationStatus(req);
    - return recv_GetOperationStatus();
    - }
    -
    - public void send_GetOperationStatus(TGetOperationStatusReq req) throws org.apache.thrift.TException
    - {
    - GetOperationStatus_args args = new GetOperationStatus_args();
    - args.setReq(req);
    - sendBase("GetOperationStatus", args);
    - }
    -
    - public TGetOperationStatusResp recv_GetOperationStatus() throws org.apache.thrift.TException
    - {
    - GetOperationStatus_result result = new GetOperationStatus_result();
    - receiveBase(result, "GetOperationStatus");
    - if (result.isSetSuccess()) {
    - return result.success;
    - }
    - throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "GetOperationStatus failed: unknown result");
    - }
    -
    - public TCancelOperationResp CancelOperation(TCancelOperationReq req) throws org.apache.thrift.TException
    - {
    - send_CancelOperation(req);
    - return recv_CancelOperation();
    - }
    -
    - public void send_CancelOperation(TCancelOperationReq req) throws org.apache.thrift.TException
    - {
    - CancelOperation_args args = new CancelOperation_args();
    - args.setReq(req);
    - sendBase("CancelOperation", args);
    - }
    -
    - public TCancelOperationResp recv_CancelOperation() throws org.apache.thrift.TException
    - {
    - CancelOperation_result result = new CancelOperation_result();
    - receiveBase(result, "CancelOperation");
    - if (result.isSetSuccess()) {
    - return result.success;
    - }
    - throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "CancelOperation failed: unknown result");
    - }
    -
    - public TCloseOperationResp CloseOperation(TCloseOperationReq req) throws org.apache.thrift.TException
    - {
    - send_CloseOperation(req);
    - return recv_CloseOperation();
    - }
    -
    - public void send_CloseOperation(TCloseOperationReq req) throws org.apache.thrift.TException
    - {
    - CloseOperation_args args = new CloseOperation_args();
    - args.setReq(req);
    - sendBase("CloseOperation", args);
    - }
    -
    - public TCloseOperationResp recv_CloseOperation() throws org.apache.thrift.TException
    - {
    - CloseOperation_result result = new CloseOperation_result();
    - receiveBase(result, "CloseOperation");
    - if (result.isSetSuccess()) {
    - return result.success;
    - }
    - throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "CloseOperation failed: unknown result");
    - }
    -
    - public TGetResultSetMetadataResp GetResultSetMetadata(TGetResultSetMetadataReq req) throws org.apache.thrift.TException
    - {
    - send_GetResultSetMetadata(req);
    - return recv_GetResultSetMetadata();
    - }
    -
    - public void send_GetResultSetMetadata(TGetResultSetMetadataReq req) throws org.apache.thrift.TException
    - {
    - GetResultSetMetadata_args args = new GetResultSetMetadata_args();
    - args.setReq(req);
    - sendBase("GetResultSetMetadata", args);
    - }
    -
    - public TGetResultSetMetadataResp recv_GetResultSetMetadata() throws org.apache.thrift.TException
    - {
    - GetResultSetMetadata_result result = new GetResultSetMetadata_result();
    - receiveBase(result, "GetResultSetMetadata");
    - if (result.isSetSuccess()) {
    - return result.success;
    - }
    - throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "GetResultSetMetadata failed: unknown result");
    - }
    -
    - public TFetchResultsResp FetchResults(TFetchResultsReq req) throws org.apache.thrift.TException
    - {
    - send_FetchResults(req);
    - return recv_FetchResults();
    - }
    -
    - public void send_FetchResults(TFetchResultsReq req) throws org.apache.thrift.TException
    - {
    - FetchResults_args args = new FetchResults_args();
    - args.setReq(req);
    - sendBase("FetchResults", args);
    - }
    -
    - public TFetchResultsResp recv_FetchResults() throws org.apache.thrift.TException
    - {
    - FetchResults_result result = new FetchResults_result();
    - receiveBase(result, "FetchResults");
    - if (result.isSetSuccess()) {
    - return result.success;
    - }
    - throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "FetchResults failed: unknown result");
    - }
    -
    - public TGetDelegationTokenResp GetDelegationToken(TGetDelegationTokenReq req) throws org.apache.thrift.TException
    - {
    - send_GetDelegationToken(req);
    - return recv_GetDelegationToken();
    - }
    -
    - public void send_GetDelegationToken(TGetDelegationTokenReq req) throws org.apache.thrift.TException
    - {
    - GetDelegationToken_args args = new GetDelegationToken_args();
    - args.setReq(req);
    - sendBase("GetDelegationToken", args);
    - }
    -
    - public TGetDelegationTokenResp recv_GetDelegationToken() throws org.apache.thrift.TException
    - {
    - GetDelegationToken_result result = new GetDelegationToken_result();
    - receiveBase(result, "GetDelegationToken");
    - if (result.isSetSuccess()) {
    - return result.success;
    - }
    - throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "GetDelegationToken failed: unknown result");
    - }
    -
    - public TCancelDelegationTokenResp CancelDelegationToken(TCancelDelegationTokenReq req) throws org.apache.thrift.TException
    - {
    - send_CancelDelegationToken(req);
    - return recv_CancelDelegationToken();
    - }
    -
    - public void send_CancelDelegationToken(TCancelDelegationTokenReq req) throws org.apache.thrift.TException
    - {
    - CancelDelegationToken_args args = new CancelDelegationToken_args();
    - args.setReq(req);
    - sendBase("CancelDelegationToken", args);
    - }
    -
    - public TCancelDelegationTokenResp recv_CancelDelegationToken() throws org.apache.thrift.TException
    - {
    - CancelDelegationToken_result result = new CancelDelegationToken_result();
    - receiveBase(result, "CancelDelegationToken");
    - if (result.isSetSuccess()) {
    - return result.success;
    - }
    - throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "CancelDelegationToken failed: unknown result");
    - }
    -
    - public TRenewDelegationTokenResp RenewDelegationToken(TRenewDelegationTokenReq req) throws org.apache.thrift.TException
    - {
    - send_RenewDelegationToken(req);
    - return recv_RenewDelegationToken();
    - }
    -
    - public void send_RenewDelegationToken(TRenewDelegationTokenReq req) throws org.apache.thrift.TException
    - {
    - RenewDelegationToken_args args = new RenewDelegationToken_args();
    - args.setReq(req);
    - sendBase("RenewDelegationToken", args);
    - }
    -
    - public TRenewDelegationTokenResp recv_RenewDelegationToken() throws org.apache.thrift.TException
    - {
    - RenewDelegationToken_result result = new RenewDelegationToken_result();
    - receiveBase(result, "RenewDelegationToken");
    - if (result.isSetSuccess()) {
    - return result.success;
    - }
    - throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "RenewDelegationToken failed: unknown result");
    - }
    -
    - }
    - public static class AsyncClient extends org.apache.thrift.async.TAsyncClient implements AsyncIface {
    - public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
    - private org.apache.thrift.async.TAsyncClientManager clientManager;
    - private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
    - public Factory(org.apache.thrift.async.TAsyncClientManager clientManager, org.apache.thrift.protocol.TProtocolFactory protocolFactory) {
    - this.clientManager = clientManager;
    - this.protocolFactory = protocolFactory;
    - }
    - public AsyncClient getAsyncClient(org.apache.thrift.transport.TNonblockingTransport transport) {
    - return new AsyncClient(protocolFactory, clientManager, transport);
    - }
    - }
    -
    - public AsyncClient(org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.async.TAsyncClientManager clientManager, org.apache.thrift.transport.TNonblockingTransport transport) {
    - super(protocolFactory, clientManager, transport);
    - }
    -
    - public void OpenSession(TOpenSessionReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
    - checkReady();
    - OpenSession_call method_call = new OpenSession_call(req, resultHandler, this, ___protocolFactory, ___transport);
    - this.___currentMethod = method_call;
    - ___manager.call(method_call);
    - }
    -
    - public static class OpenSession_call extends org.apache.thrift.async.TAsyncMethodCall {
    - private TOpenSessionReq req;
    - public OpenSession_call(TOpenSessionReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
    - super(client, protocolFactory, transport, resultHandler, false);
    - this.req = req;
    - }
    -
    - public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
    - prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("OpenSession", org.apache.thrift.protocol.TMessageType.CALL, 0));
    - OpenSession_args args = new OpenSession_args();
    - args.setReq(req);
    - args.write(prot);
    - prot.writeMessageEnd();
    - }
    -
    - public TOpenSessionResp getResult() throws org.apache.thrift.TException {
    - if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
    - throw new IllegalStateException("Method call not finished!");
    - }
    - org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
    - org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
    - return (new Client(prot)).recv_OpenSession();
    - }
    - }
    -
    - public void CloseSession(TCloseSessionReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
    - checkReady();
    - CloseSession_call method_call = new CloseSession_call(req, resultHandler, this, ___protocolFactory, ___transport);
    - this.___currentMethod = method_call;
    - ___manager.call(method_call);
    - }
    -
    - public static class CloseSession_call extends org.apache.thrift.async.TAsyncMethodCall {
    - private TCloseSessionReq req;
    - public CloseSession_call(TCloseSessionReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
    - super(client, protocolFactory, transport, resultHandler, false);
    - this.req = req;
    - }
    -
    - public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
    - prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("CloseSession", org.apache.thrift.protocol.TMessageType.CALL, 0));
    - CloseSession_args args = new CloseSession_args();
    - args.setReq(req);
    - args.write(prot);
    - prot.writeMessageEnd();
    - }
    -
    - public TCloseSessionResp getResult() throws org.apache.thrift.TException {
    - if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
    - throw new IllegalStateException("Method call not finished!");
    - }
    - org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
    - org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
    - return (new Client(prot)).recv_CloseSession();
    - }
    - }
    -
    - public void GetInfo(TGetInfoReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
    - checkReady();
    - GetInfo_call method_call = new GetInfo_call(req, resultHandler, this, ___protocolFactory, ___transport);
    - this.___currentMethod = method_call;
    - ___manager.call(method_call);
    - }
    -
    - public static class GetInfo_call extends org.apache.thrift.async.TAsyncMethodCall {
    - private TGetInfoReq req;
    - public GetInfo_call(TGetInfoReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
    - super(client, protocolFactory, transport, resultHandler, false);
    - this.req = req;
    - }
    -
    - public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
    - prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("GetInfo", org.apache.thrift.protocol.TMessageType.CALL, 0));
    - GetInfo_args args = new GetInfo_args();
    - args.setReq(req);
    - args.write(prot);
    - prot.writeMessageEnd();
    - }
    -
    - public TGetInfoResp getResult() throws org.apache.thrift.TException {
    - if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
    - throw new IllegalStateException("Method call not finished!");
    - }
    - org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
    - org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
    - return (new Client(prot)).recv_GetInfo();
    - }
    - }
    -
    - public void ExecuteStatement(TExecuteStatementReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
    - checkReady();
    - ExecuteStatement_call method_call = new ExecuteStatement_call(req, resultHandler, this, ___protocolFactory, ___transport);
    - this.___currentMethod = method_call;
    - ___manager.call(method_call);
    - }
    -
    - public static class ExecuteStatement_call extends org.apache.thrift.async.TAsyncMethodCall {
    - private TExecuteStatementReq req;
    - public ExecuteStatement_call(TExecuteStatementReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
    - super(client, protocolFactory, transport, resultHandler, false);
    - this.req = req;
    - }
    -
    - public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
    - prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("ExecuteStatement", org.apache.thrift.protocol.TMessageType.CALL, 0));
    - ExecuteStatement_args args = new ExecuteStatement_args();
    - args.setReq(req);
    - args.write(prot);
    - prot.writeMessageEnd();
    - }
    -
    - public TExecuteStatementResp getResult() throws org.apache.thrift.TException {
    - if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
    - throw new IllegalStateException("Method call not finished!");
    - }
    - org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
    - org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
    - return (new Client(prot)).recv_ExecuteStatement();
    - }
    - }
    -
    - public void GetTypeInfo(TGetTypeInfoReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
    - checkReady();
    - GetTypeInfo_call method_call = new GetTypeInfo_call(req, resultHandler, this, ___protocolFactory, ___transport);
    - this.___currentMethod = method_call;
    - ___manager.call(method_call);
    - }
    -
    - public static class GetTypeInfo_call extends org.apache.thrift.async.TAsyncMethodCall {
    - private TGetTypeInfoReq req;
    - public GetTypeInfo_call(TGetTypeInfoReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
    - super(client, protocolFactory, transport, resultHandler, false);
    - this.req = req;
    - }
    -
    - public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
    - prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("GetTypeInfo", org.apache.thrift.protocol.TMessageType.CALL, 0));
    - GetTypeInfo_args args = new GetTypeInfo_args();
    - args.setReq(req);
    - args.write(prot);
    - prot.writeMessageEnd();
    - }
    -
    - public TGetTypeInfoResp getResult() throws org.apache.thrift.TException {
    - if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
    - throw new IllegalStateException("Method call not finished!");
    - }
    - org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
    - org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
    - return (new Client(prot)).recv_GetTypeInfo();
    - }
    - }
    -
    - public void GetCatalogs(TGetCatalogsReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
    - checkReady();
    - GetCatalogs_call method_call = new GetCatalogs_call(req, resultHandler, this, ___protocolFactory, ___transport);
    - this.___currentMethod = method_call;
    - ___manager.call(method_call);
    - }
    -
    - public static class GetCatalogs_call extends org.apache.thrift.async.TAsyncMethodCall {
    - private TGetCatalogsReq req;
    - public GetCatalogs_call(TGetCatalogsReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
    - super(client, protocolFactory, transport, resultHandler, false);
    - this.req = req;
    - }
    -
    - public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
    - prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("GetCatalogs", org.apache.thrift.protocol.TMessageType.CALL, 0));
    - GetCatalogs_args args = new GetCatalogs_args();
    - args.setReq(req);
    - args.write(prot);
    - prot.writeMessageEnd();
    - }
    -
    - public TGetCatalogsResp getResult() throws org.apache.thrift.TException {
    - if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
    - throw new IllegalStateException("Method call not finished!");
    - }
    - org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
    - org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
    - return (new Client(prot)).recv_GetCatalogs();
    - }
    - }
    -
    - public void GetSchemas(TGetSchemasReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
    - checkReady();
    - GetSchemas_call method_call = new GetSchemas_call(req, resultHandler, this, ___protocolFactory, ___transport);
    - this.___currentMethod = method_call;
    - ___manager.call(method_call);
    - }
    -
    - public static class GetSchemas_call extends org.apache.thrift.async.TAsyncMethodCall {
    - private TGetSchemasReq req;
    - public GetSchemas_call(TGetSchemasReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
    - super(client, protocolFactory, transport, resultHandler, false);
    - this.req = req;
    - }
    -
    - public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
    - prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("GetSchemas", org.apache.thrift.protocol.TMessageType.CALL, 0));
    - GetSchemas_args args = new GetSchemas_args();
    - args.setReq(req);
    - args.write(prot);
    - prot.writeMessageEnd();
    - }
    -
    - public TGetSchemasResp getResult() throws org.apache.thrift.TException {
    - if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
    - throw new IllegalStateException("Method call not finished!");
    - }
    - org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
    - org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
    - return (new Client(prot)).recv_GetSchemas();
    - }
    - }
    -
    - public void GetTables(TGetTablesReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
    - checkReady();
    - GetTables_call method_call = new GetTables_call(req, resultHandler, this, ___protocolFactory, ___transport);
    - this.___currentMethod = method_call;
    - ___manager.call(method_call);
    - }
    -
    - public static class GetTables_call extends org.apache.thrift.async.TAsyncMethodCall {
    - private TGetTablesReq req;
    - public GetTables_call(TGetTablesReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
    - super(client, protocolFactory, transport, resultHandler, false);
    - this.req = req;
    - }
    -
    - public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
    - prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("GetTables", org.apache.thrift.protocol.TMessageType.CALL, 0));
    - GetTables_args args = new GetTables_args();
    - args.setReq(req);
    - args.write(prot);
    - prot.writeMessageEnd();
    - }
    -
    - public TGetTablesResp getResult() throws org.apache.thrift.TException {
    - if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
    - throw new IllegalStateException("Method call not finished!");
    - }
    - org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
    - org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
    - return (new Client(prot)).recv_GetTables();
    - }
    - }
    -
    - public void GetTableTypes(TGetTableTypesReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
    - checkReady();
    - GetTableTypes_call method_call = new GetTableTypes_call(req, resultHandler, this, ___protocolFactory, ___transport);
    - this.___currentMethod = method_call;
    - ___manager.call(method_call);
    - }
    -
    - public static class GetTableTypes_call extends org.apache.thrift.async.TAsyncMethodCall {
    - private TGetTableTypesReq req;
    - public GetTableTypes_call(TGetTableTypesReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
    - super(client, protocolFactory, transport, resultHandler, false);
    - this.req = req;
    - }
    -
    - public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
    - prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("GetTableTypes", org.apache.thrift.protocol.TMessageType.CALL, 0));
    - GetTableTypes_args args = new GetTableTypes_args();
    - args.setReq(req);
    - args.write(prot);
    - prot.writeMessageEnd();
    - }
    -
    - public TGetTableTypesResp getResult() throws org.apache.thrift.TException {
    - if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
    - throw new IllegalStateException("Method call not finished!");
    - }
    - org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
    - org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
    - return (new Client(prot)).recv_GetTableTypes();
    - }
    - }
    -
    - public void GetColumns(TGetColumnsReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
    - checkReady();
    - GetColumns_call method_call = new GetColumns_call(req, resultHandler, this, ___protocolFactory, ___transport);
    - this.___currentMethod = method_call;
    - ___manager.call(method_call);
    - }
    -
    - public static class GetColumns_call extends org.apache.thrift.async.TAsyncMethodCall {
    - private TGetColumnsReq req;
    - public GetColumns_call(TGetColumnsReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
    - super(client, protocolFactory, transport, resultHandler, false);
    - this.req = req;
    - }
    -
    - public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
    - prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("GetColumns", org.apache.thrift.protocol.TMessageType.CALL, 0));
    - GetColumns_args args = new GetColumns_args();
    - args.setReq(req);
    - args.write(prot);
    - prot.writeMessageEnd();
    - }
    -
    - public TGetColumnsResp getResult() throws org.apache.thrift.TException {
    - if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
    - throw new IllegalStateException("Method call not finished!");
    - }
    - org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
    - org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
    - return (new Client(prot)).recv_GetColumns();
    - }
    - }
    -
    - public void GetFunctions(TGetFunctionsReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
    - checkReady();
    - GetFunctions_call method_call = new GetFunctions_call(req, resultHandler, this, ___protocolFactory, ___transport);
    - this.___currentMethod = method_call;
    - ___manager.call(method_call);
    - }
    -
    - public static class GetFunctions_call extends org.apache.thrift.async.TAsyncMethodCall {
    - private TGetFunctionsReq req;
    - public GetFunctions_call(TGetFunctionsReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
    - super(client, protocolFactory, transport, resultHandler, false);
    - this.req = req;
    - }
    -
    - public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
    - prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("GetFunctions", org.apache.thrift.protocol.TMessageType.CALL, 0));
    - GetFunctions_args args = new GetFunctions_args();
    - args.setReq(req);
    - args.write(prot);
    - prot.writeMessageEnd();
    - }
    -
    - public TGetFunctionsResp getResult() throws org.apache.thrift.TException {
    - if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
    - throw new IllegalStateException("Method call not finished!");
    - }
    - org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
    - org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
    - return (new Client(prot)).recv_GetFunctions();
    - }
    - }
    -
    - public void GetOperationStatus(TGetOperationStatusReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
    - checkReady();
    - GetOperationStatus_call method_call = new GetOperationStatus_call(req, resultHandler, this, ___protocolFactory, ___transport);
    - this.___currentMethod = method_call;
    - ___manager.call(method_call);
    - }
    -
    - public static class GetOperationStatus_call extends org.apache.thrift.async.TAsyncMethodCall {
    - private TGetOperationStatusReq req;
    - public GetOperationStatus_call(TGetOperationStatusReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
    - super(client, protocolFactory, transport, resultHandler, false);
    - this.req = req;
    - }
    -
    - public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
    - prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("GetOperationStatus", org.apache.thrift.protocol.TMessageType.CALL, 0));
    - GetOperationStatus_args args = new GetOperationStatus_args();
    - args.setReq(req);
    - args.write(prot);
    - prot.writeMessageEnd();
    - }
    -
    - public TGetOperationStatusResp getResult() throws org.apache.thrift.TException {
    - if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
    - throw new IllegalStateException("Method call not finished!");
    - }
    - org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
    - org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
    - return (new Client(prot)).recv_GetOperationStatus();
    - }
    - }
    -
    - public void CancelOperation(TCancelOperationReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
    - checkReady();
    - CancelOperation_call method_call = new CancelOperation_call(req, resultHandler, this, ___protocolFactory, ___transport);
    - this.___currentMethod = method_call;
    - ___manager.call(method_call);
    - }
    -
    - public static class CancelOperation_call extends org.apache.thrift.async.TAsyncMethodCall {
    - private TCancelOperationReq req;
    - public CancelOperation_call(TCancelOperationReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
    - super(client, protocolFactory, transport, resultHandler, false);
    - this.req = req;
    - }
    -
    - public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
    - prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("CancelOperation", org.apache.thrift.protocol.TMessageType.CALL, 0));
    - CancelOperation_args args = new CancelOperation_args();
    - args.setReq(req);
    - args.write(prot);
    - prot.writeMessageEnd();
    - }
    -
    - public TCancelOperationResp getResult() throws org.apache.thrift.TException {
    - if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
    - throw new IllegalStateException("Method call not finished!");
    - }
    - org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
    - org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
    - return (new Client(prot)).recv_CancelOperation();
    - }
    - }
    -
    - public void CloseOperation(TCloseOperationReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
    - checkReady();
    - CloseOperation_call method_call = new CloseOperation_call(req, resultHandler, this, ___protocolFactory, ___transport);
    - this.___currentMethod = method_call;
    - ___manager.call(method_call);
    - }
    -
    - public static class CloseOperation_call extends org.apache.thrift.async.TAsyncMethodCall {
    - private TCloseOperationReq req;
    - public CloseOperation_call(TCloseOperationReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
    - super(client, protocolFactory, transport, resultHandler, false);
    - this.req = req;
    - }
    -
    - public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
    - prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("CloseOperation", org.apache.thrift.protocol.TMessageType.CALL, 0));
    - CloseOperation_args args = new CloseOperation_args();
    - args.setReq(req);
    - args.write(prot);
    - prot.writeMessageEnd();
    - }
    -
    - public TCloseOperationResp getResult() throws org.apache.thrift.TException {
    - if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
    - throw new IllegalStateException("Method call not finished!");
    - }
    - org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
    - org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
    - return (new Client(prot)).recv_CloseOperation();
    - }
    - }
    -
    - public void GetResultSetMetadata(TGetResultSetMetadataReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
    - checkReady();
    - GetResultSetMetadata_call method_call = new GetResultSetMetadata_call(req, resultHandler, this, ___protocolFactory, ___transport);
    - this.___currentMethod = method_call;
    - ___manager.call(method_call);
    - }
    -
    - public static class GetResultSetMetadata_call extends org.apache.thrift.async.TAsyncMethodCall {
    - private TGetResultSetMetadataReq req;
    - public GetResultSetMetadata_call(TGetResultSetMetadataReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
    - super(client, protocolFactory, transport, resultHandler, false);
    - this.req = req;
    - }
    -
    - public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
    - prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("GetResultSetMetadata", org.apache.thrift.protocol.TMessageType.CALL, 0));
    - GetResultSetMetadata_args args = new GetResultSetMetadata_args();
    - args.setReq(req);
    - args.write(prot);
    - prot.writeMessageEnd();
    - }
    -
    - public TGetResultSetMetadataResp getResult() throws org.apache.thrift.TException {
    - if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
    - throw new IllegalStateException("Method call not finished!");
    - }
    - org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
    - org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
    - return (new Client(prot)).recv_GetResultSetMetadata();
    - }
    - }
    -
    - public void FetchResults(TFetchResultsReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
    - checkReady();
    - FetchResults_call method_call = new FetchResults_call(req, resultHandler, this, ___protocolFactory, ___transport);
    - this.___currentMethod = method_call;
    - ___manager.call(method_call);
    - }
    -
    - public static class FetchResults_call extends org.apache.thrift.async.TAsyncMethodCall {
    - private TFetchResultsReq req;
    - public FetchResults_call(TFetchResultsReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
    - super(client, protocolFactory, transport, resultHandler, false);
    - this.req = req;
    - }
    -
    - public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
    - prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("FetchResults", org.apache.thrift.protocol.TMessageType.CALL, 0));
    - FetchResults_args args = new FetchResults_args();
    - args.setReq(req);
    - args.write(prot);
    - prot.writeMessageEnd();
    - }
    -
    - public TFetchResultsResp getResult() throws org.apache.thrift.TException {
    - if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
    - throw new IllegalStateException("Method call not finished!");
    - }
    - org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
    - org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
    - return (new Client(prot)).recv_FetchResults();
    - }
    - }
    -
    - public void GetDelegationToken(TGetDelegationTokenReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
    - checkReady();
    - GetDelegationToken_call method_call = new GetDelegationToken_call(req, resultHandler, this, ___protocolFactory, ___transport);
    - this.___currentMethod = method_call;
    - ___manager.call(method_call);
    - }
    -
    - public static class GetDelegationToken_call extends org.apache.thrift.async.TAsyncMethodCall {
    - private TGetDelegationTokenReq req;
    - public GetDelegationToken_call(TGetDelegationTokenReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
    - super(client, protocolFactory, transport, resultHandler, false);
    - this.req = req;
    - }
    -
    - public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
    - prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("GetDelegationToken", org.apache.thrift.protocol.TMessageType.CALL, 0));
    - GetDelegationToken_args args = new GetDelegationToken_args();
    - args.setReq(req);
    - args.write(prot);
    - prot.writeMessageEnd();
    - }
    -
    - public TGetDelegationTokenResp getResult() throws org.apache.thrift.TException {
    - if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
    - throw new IllegalStateException("Method call not finished!");
    - }
    - org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
    - org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
    - return (new Client(prot)).recv_GetDelegationToken();
    - }
    - }
    -
    - public void CancelDelegationToken(TCancelDelegationTokenReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
    - checkReady();
    - CancelDelegationToken_call method_call = new CancelDelegationToken_call(req, resultHandler, this, ___protocolFactory, ___transport);
    - this.___currentMethod = method_call;
    - ___manager.call(method_call);
    - }
    -
    - public static class CancelDelegationToken_call extends org.apache.thrift.async.TAsyncMethodCall {
    - private TCancelDelegationTokenReq req;
    - public CancelDelegationToken_call(TCancelDelegationTokenReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
    - super(client, protocolFactory, transport, resultHandler, false);
    - this.req = req;
    - }
    -
    - public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
    - prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("CancelDelegationToken", org.apache.thrift.protocol.TMessageType.CALL, 0));
    - CancelDelegationToken_args args = new CancelDelegationToken_args();
    - args.setReq(req);
    - args.write(prot);
    - prot.writeMessageEnd();
    - }
    -
    - public TCancelDelegationTokenResp getResult() throws org.apache.thrift.TException {
    - if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
    - throw new IllegalStateException("Method call not finished!");
    - }
    - org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
    - org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
    - return (new Client(prot)).recv_CancelDelegationToken();
    - }
    - }
    -
    - public void RenewDelegationToken(TRenewDelegationTokenReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
    - checkReady();
    - RenewDelegationToken_call method_call = new RenewDelegationToken_call(req, resultHandler, this, ___protocolFactory, ___transport);
    - this.___currentMethod = method_call;
    - ___manager.call(method_call);
    - }
    -
    - public static class RenewDelegationToken_call extends org.apache.thrift.async.TAsyncMethodCall {
    - private TRenewDelegationTokenReq req;
    - public RenewDelegationToken_call(TRenewDelegationTokenReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
    - super(client, protocolFactory, transport, resultHandler, false);
    - this.req = req;
    - }
    -
    - public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
    - prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("RenewDelegationToken", org.apache.thrift.protocol.TMessageType.CALL, 0));
    - RenewDelegationToken_args args = new RenewDelegationToken_args();
    - args.setReq(req);
    - args.write(prot);
    - prot.writeMessageEnd();
    - }
    -
    - public TRenewDelegationTokenResp getResult() throws org.apache.thrift.TException {
    - if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
    - throw new IllegalStateException("Method call not finished!");
    - }
    - org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
    - org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
    - return (new Client(prot)).recv_RenewDelegationToken();
    - }
    - }
    -
    - }
    -
    - public static class Processor<I extends Iface> extends org.apache.thrift.TBaseProcessor<I> implements org.apache.thrift.TProcessor {
    - private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
    - public Processor(I iface) {
    - super(iface, getProcessMap(new HashMap<String, org.apache.thrift.ProcessFunction<I, ? extends org.apache.thrift.TBase>>()));
    - }
    -
    - protected Processor(I iface, Map<String, org.apache.thrift.ProcessFunction<I, ? extends org.apache.thrift.TBase>> processMap) {
    - super(iface, getProcessMap(processMap));
    - }
    -
    - private static <I extends Iface> Map<String, org.apache.thrift.ProcessFunction<I, ? extends org.apache.thrift.TBase>> getProcessMap(Map<String, org.apache.thrift.ProcessFunction<I, ? extends org.apache.thrift.TBase>> processMap) {
    - processMap.put("OpenSession", new OpenSession());
    - processMap.put("CloseSession", new CloseSession());
    - processMap.put("GetInfo", new GetInfo());
    - processMap.put("ExecuteStatement", new ExecuteStatement());
    - processMap.put("GetTypeInfo", new GetTypeInfo());
    - processMap.put("GetCatalogs", new GetCatalogs());
    - processMap.put("GetSchemas", new GetSchemas());
    - processMap.put("GetTables", new GetTables());
    - processMap.put("GetTableTypes", new GetTableTypes());
    - processMap.put("GetColumns", new GetColumns());
    - processMap.put("GetFunctions", new GetFunctions());
    - processMap.put("GetOperationStatus", new GetOperationStatus());
    - processMap.put("CancelOperation", new CancelOperation());
    - processMap.put("CloseOperation", new CloseOperation());
    - processMap.put("GetResultSetMetadata", new GetResultSetMetadata());
    - processMap.put("FetchResults", new FetchResults());
    - processMap.put("GetDelegationToken", new GetDelegationToken());
    - processMap.put("CancelDelegationToken", new CancelDelegationToken());
    - processMap.put("RenewDelegationToken", new RenewDelegationToken());
    - return processMap;
    - }
    -
    - public static class OpenSession<I extends Iface> extends org.apache.thrift.ProcessFunction<I, OpenSession_args> {
    - public OpenSession() {
    - super("OpenSession");
    - }
    -
    - public OpenSession_args getEmptyArgsInstance() {
    - return new OpenSession_args();
    - }
    -
    - protected boolean isOneway() {
    - return false;
    - }
    -
    - public OpenSession_result getResult(I iface, OpenSession_args args) throws org.apache.thrift.TException {
    - OpenSession_result result = new OpenSession_result();
    - result.success = iface.OpenSession(args.req);
    - return result;
    - }
    - }
    -
    - public static class CloseSession<I extends Iface> extends org.apache.thrift.ProcessFunction<I, CloseSession_args> {
    - public CloseSession() {
    - super("CloseSession");
    - }
    -
    - public CloseSession_args getEmptyArgsInstance() {
    - return new CloseSession_args();
    - }
    -
    - protected boolean isOneway() {
    - return false;
    - }
    -
    - public CloseSession_result getResult(I iface, CloseSession_args args) throws org.apache.thrift.TException {
    - CloseSession_result result = new CloseSession_result();
    - result.success = iface.CloseSession(args.req);
    - return result;
    - }
    - }
    -
    - public static class GetInfo<I extends Iface> extends org.apache.thrift.ProcessFunction<I, GetInfo_args> {
    - public GetInfo() {
    - super("GetInfo");
    - }
    -
    - public GetInfo_args getEmptyArgsInstance() {
    - return new GetInfo_args();
    - }
    -
    - protected boolean isOneway() {
    - return false;
    - }
    -
    - public GetInfo_result getResult(I iface, GetInfo_args args) throws org.apache.thrift.TException {
    - GetInfo_result result = new GetInfo_result();
    - result.success = iface.GetInfo(args.req);
    - return result;
    - }
    - }
    -
    - public static class ExecuteStatement<I extends Iface> extends org.apache.thrift.ProcessFunction<I, ExecuteStatement_args> {
    - public ExecuteStatement() {
    - super("ExecuteStatement");
    - }
    -
    - public ExecuteStatement_args getEmptyArgsInstance() {
    - return new ExecuteStatement_args();
    - }
    -
    - protected boolean isOneway() {
    - return false;
    - }
    -
    - public ExecuteStatement_result getResult(I iface, ExecuteStatement_args args) throws org.apache.thrift.TException {
    - ExecuteStatement_result result = new ExecuteStatement_result();
    - result.success = iface.ExecuteStatement(args.req);
    - return result;
    - }
    - }
    -
    - public static class GetTypeInfo<I extends Iface> extends org.apache.thrift.ProcessFunction<I, GetTypeInfo_args> {
    - public GetTypeInfo() {
    - super("GetTypeInfo");
    - }
    -
    - public GetTypeInfo_args getEmptyArgsInstance() {
    - return new GetTypeInfo_args();
    - }
    -
    - protected boolean isOneway() {
    - return false;
    - }
    -
    - public GetTypeInfo_result getResult(I iface, GetTypeInfo_args args) throws org.apache.thrift.TException {
    - GetTypeInfo_result result = new GetTypeInfo_result();
    - result.success = iface.GetTypeInfo(args.req);
    - return result;
    - }
    - }
    -
    - public static class GetCatalogs<I extends Iface> extends org.apache.thrift.ProcessFunction<I, GetCatalogs_args> {
    - public GetCatalogs() {
    - super("GetCatalogs");
    - }
    -
    - public GetCatalogs_args getEmptyArgsInstance() {
    - return new GetCatalogs_args();
    - }
    -
    - protected boolean isOneway() {
    - return false;
    - }
    -
    - public GetCatalogs_result getResult(I iface, GetCatalogs_args args) throws org.apache.thrift.TException {
    - GetCatalogs_result result = new GetCatalogs_result();
    - result.success = iface.GetCatalogs(args.req);
    - return result;
    - }
    - }
    -
    - public static class GetSchemas<I extends Iface> extends org.apache.thrift.ProcessFunction<I, GetSchemas_args> {
    - public GetSchemas() {
    - super("GetSchemas");
    - }
    -
    - public GetSchemas_args getEmptyArgsInstance() {
    - return new GetSchemas_args();
    - }
    -
    - protected boolean isOneway() {
    - return false;
    - }
    -
    - public GetSchemas_result getResult(I iface, GetSchemas_args args) throws org.apache.thrift.TException {
    - GetSchemas_result result = new GetSchemas_result();
    - result.success = iface.GetSchemas(args.req);
    - return result;
    - }
    - }
    -
    - public static class GetTables<I extends Iface> extends org.apache.thrift.ProcessFunction<I, GetTables_args> {
    - public GetTables() {
    - super("GetTables");
    - }
    -
    - public GetTables_args getEmptyArgsInstance() {
    - return new GetTables_args();
    - }
    -
    - protected boolean isOneway() {
    - return false;
    - }
    -
    - public GetTables_result getResult(I iface, GetTables_args args) throws org.apache.thrift.TException {
    - GetTables_result result = new GetTables_result();
    - result.success = iface.GetTables(args.req);
    - return result;
    - }
    - }
    -
    - public static class GetTableTypes<I extends Iface> extends org.apache.thrift.ProcessFunction<I, GetTableTypes_args> {
    - public GetTableTypes() {
    - super("GetTableTypes");
    - }
    -
    - public GetTableTypes_args getEmptyArgsInstance() {
    - return new GetTableTypes_args();
    - }
    -
    - protected boolean isOneway() {
    - return false;
    - }
    -
    - public GetTableTypes_result getResult(I iface, GetTableTypes_args args) throws org.apache.thrift.TException {
    - GetTableTypes_result result = new GetTableTypes_result();
    - result.success = iface.GetTableTypes(args.req);
    - return result;
    - }
    - }
    -
    - public static class GetColumns<I extends Iface> extends org.apache.thrift.ProcessFunction<I, GetColumns_args> {
    - public GetColumns() {
    - super("GetColumns");
    - }
    -
    - public GetColumns_args getEmptyArgsInstance() {
    - return new GetColumns_args();
    - }
    -
    - protected boolean isOneway() {
    - return false;
    - }
    -
    - public GetColumns_result getResult(I iface, GetColumns_args args) throws org.apache.thrift.TException {
    - GetColumns_result result = new GetColumns_result();
    - result.success = iface.GetColumns(args.req);
    - return result;
    - }
    - }
    -
    - public static class GetFunctions<I extends Iface> extends org.apache.thrift.ProcessFunction<I, GetFunctions_args> {
    - public GetFunctions() {
    - super("GetFunctions");
    - }
    -
    - public GetFunctions_args getEmptyArgsInstance() {
    - return new GetFunctions_args();
    - }
    -
    - protected boolean isOneway() {
    - return false;
    - }
    -
    - public GetFunctions_result getResult(I iface, GetFunctions_args args) throws org.apache.thrift.TException {
    - GetFunctions_result result = new GetFunctions_result();
    - result.success = iface.GetFunctions(args.req);
    - return result;
    - }
    - }
    -
    - public static class GetOperationStatus<I extends Iface> extends org.apache.thrift.ProcessFunction<I, GetOperationStatus_args> {
    - public GetOperationStatus() {
    - super("GetOperationStatus");
    - }
    -
    - public GetOperationStatus_args getEmptyArgsInstance() {
    - return new GetOperationStatus_args();
    - }
    -
    - protected boolean isOneway() {
    - return false;
    - }
    -
    - public GetOperationStatus_result getResult(I iface, GetOperationStatus_args args) throws org.apache.thrift.TException {
    - GetOperationStatus_result result = new GetOperationStatus_result();
    - result.success = iface.GetOperationStatus(args.req);
    - return result;
    - }
    - }
    -
    - public static class CancelOperation<I extends Iface> extends org.apache.thrift.ProcessFunction<I, CancelOperation_args> {
    - public CancelOperation() {
    - super("CancelOperation");
    - }
    -
    - public CancelOperation_args getEmptyArgsInstance() {
    - return new CancelOperation_args();
    - }
    -
    - protected boolean isOneway() {
    - return false;
    - }
    -
    - public CancelOperation_result getResult(I iface, CancelOperation_args args) throws org.apache.thrift.TException {
    - CancelOperation_result result = new CancelOperation_result();
    - result.success = iface.CancelOperation(args.req);
    - return result;
    - }
    - }
    -
    - public static class CloseOperation<I extends Iface> extends org.apache.thrift.ProcessFunction<I, CloseOperation_args> {
    - public CloseOperation() {
    - super("CloseOperation");
    - }
    -
    - public CloseOperation_args getEmptyArgsInstance() {
    - return new CloseOperation_args();
    - }
    -
    - protected boolean isOneway() {
    - return false;
    - }
    -
    - public CloseOperation_result getResult(I iface, CloseOperation_args args) throws org.apache.thrift.TException {
    - CloseOperation_result result = new CloseOperation_result();
    - result.success = iface.CloseOperation(args.req);
    - return result;
    - }
    - }
    -
    - public static class GetResultSetMetadata<I extends Iface> extends org.apache.thrift.ProcessFunction<I, GetResultSetMetadata_args> {
    - public GetResultSetMetadata() {
    - super("GetResultSetMetadata");
    - }
    -
    - public GetResultSetMetadata_args getEmptyArgsInstance() {
    - return new GetResultSetMetadata_args();
    - }
    -
    - protected boolean isOneway() {
    - return false;
    - }
    -
    - public GetResultSetMetadata_result getResult(I iface, GetResultSetMetadata_args args) throws org.apache.thrift.TException {
    - GetResultSetMetadata_result result = new GetResultSetMetadata_result();
    - result.success = iface.GetResultSetMetadata(args.req);
    - return result;
    - }
    - }
    -
    - public static class FetchResults<I extends Iface> extends org.apache.thrift.ProcessFunction<I, FetchResults_args> {
    - public FetchResults() {
    - super("FetchResults");
    - }
    -
    - public FetchResults_args getEmptyArgsInstance() {
    - return new FetchResults_args();
    - }
    -
    - protected boolean isOneway() {
    - return false;
    - }
    -
    - public FetchResults_result getResult(I iface, FetchResults_args args) throws org.apache.thrift.TException {
    - FetchResults_result result = new FetchResults_result();
    - result.success = iface.FetchResults(args.req);
    - return result;
    - }
    - }
    -
    - public static class GetDelegationToken<I extends Iface> extends org.apache.thrift.ProcessFunction<I, GetDelegationToken_args> {
    - public GetDelegationToken() {
    - super("GetDelegationToken");
    - }
    -
    - public GetDelegationToken_args getEmptyArgsInstance() {
    - return new GetDelegationToken_args();
    - }
    -
    - protected boolean isOneway() {
    - return false;
    - }
    -
    - public GetDelegationToken_result getResult(I iface, GetDelegationToken_args args) throws org.apache.thrift.TException {
    - GetDelegationToken_result result = new GetDelegationToken_result();
    - result.success = iface.GetDelegationToken(args.req);
    - return result;
    - }
    - }
    -
    - public static class CancelDelegationToken<I extends Iface> extends org.apache.thrift.ProcessFunction<I, CancelDelegationToken_args> {
    - public CancelDelegationToken() {
    - super("CancelDelegationToken");
    - }
    -
    - public CancelDelegationToken_args getEmptyArgsInstance() {
    - return new CancelDelegationToken_args();
    - }
    -
    - protected boolean isOneway() {
    - return false;
    - }
    -
    - public CancelDelegationToken_result getResult(I iface, CancelDelegationToken_args args) throws org.apache.thrift.TException {
    - CancelDelegationToken_result result = new CancelDelegationToken_result();
    - result.success = iface.CancelDelegationToken(args.req);
    - return result;
    - }
    - }
    -
    - public static class RenewDelegationToken<I extends Iface> extends org.apache.thrift.ProcessFunction<I, RenewDelegationToken_args> {
    - public RenewDelegationToken() {
    - super("RenewDelegationToken");
    - }
    -
    - public RenewDelegationToken_args getEmptyArgsInstance() {
    - return new RenewDelegationToken_args();
    - }
    -
    - protected boolean isOneway() {
    - return false;
    - }
    -
    - public RenewDelegationToken_result getResult(I iface, RenewDelegationToken_args args) throws org.apache.thrift.TException {
    - RenewDelegationToken_result result = new RenewDelegationToken_result();
    - result.success = iface.RenewDelegationToken(args.req);
    - return result;
    - }
    - }
    -
    - }
    -
    - public static class AsyncProcessor<I extends AsyncIface> extends org.apache.thrift.TBaseAsyncProcessor<I> {
    - private static final Logger LOGGER = LoggerFactory.getLogger(AsyncProcessor.class.getName());
    - public AsyncProcessor(I iface) {
    - super(iface, getProcessMap(new HashMap<String, org.apache.thrift.AsyncProcessFunction<I, ? extends org.apache.thrift.TBase, ?>>()));
    - }
    -
    - protected AsyncProcessor(I iface, Map<String, org.apache.thrift.AsyncProcessFunction<I, ? extends org.apache.thrift.TBase, ?>> processMap) {
    - super(iface, getProcessMap(processMap));
    - }
    -
    - private static <I extends AsyncIface> Map<String, org.apache.thrift.AsyncProcessFunction<I, ? extends org.apache.thrift.TBase,?>> getProcessMap(Map<String, org.apache.thrift.AsyncProcessFunction<I, ? extends org.apache.thrift.TBase, ?>> processMap) {
    - processMap.put("OpenSession", new OpenSession());
    - processMap.put("CloseSession", new CloseSession());
    - processMap.put("GetInfo", new GetInfo());
    - processMap.put("ExecuteStatement", new ExecuteStatement());
    - processMap.put("GetTypeInfo", new GetTypeInfo());
    - processMap.put("GetCatalogs", new GetCatalogs());
    - processMap.put("GetSchemas", new GetSchemas());
    - processMap.put("GetTables", new GetTables());
    - processMap.put("GetTableTypes", new GetTableTypes());
    - processMap.put("GetColumns", new GetColumns());
    - processMap.put("GetFunctions", new GetFunctions());
    - processMap.put("GetOperationStatus", new GetOperationStatus());
    - processMap.put("CancelOperation", new CancelOperation());
    - processMap.put("CloseOperation", new CloseOperation());
    - processMap.put("GetResultSetMetadata", new GetResultSetMetadata());
    - processMap.put("FetchResults", new FetchResults());
    - processMap.put("GetDelegationToken", new GetDelegationToken());
    - processMap.put("CancelDelegationToken", new CancelDelegationToken());
    - processMap.put("RenewDelegationToken", new RenewDelegationToken());
    - return processMap;
    - }
    -
    - public static class OpenSession<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, OpenSession_args, TOpenSessionResp> {
    - public OpenSession() {
    - super("OpenSession");
    - }
    -
    - public OpenSession_args getEmptyArgsInstance() {
    - return new OpenSession_args();
    - }
    -
    - public AsyncMethodCallback<TOpenSessionResp> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
    - final org.apache.thrift.AsyncProcessFunction fcall = this;
    - return new AsyncMethodCallback<TOpenSessionResp>() {
    - public void onComplete(TOpenSessionResp o) {
    - OpenSession_result result = new OpenSession_result();
    - result.success = o;
    - try {
    - fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
    - return;
    - } catch (Exception e) {
    - LOGGER.error("Exception writing to internal frame buffer", e);
    - }
    - fb.close();
    - }
    - public void onError(Exception e) {
    - byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
    - org.apache.thrift.TBase msg;
    - OpenSession_result result = new OpenSession_result();
    - {
    - msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
    - msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
    - }
    - try {
    - fcall.sendResponse(fb,msg,msgType,seqid);
    - return;
    - } catch (Exception ex) {
    - LOGGER.error("Exception writing to internal frame buffer", ex);
    - }
    - fb.close();
    - }
    - };
    - }
    -
    - protected boolean isOneway() {
    - return false;
    - }
    -
    - public void start(I iface, OpenSession_args args, org.apache.thrift.async.AsyncMethodCallback<TOpenSessionResp> resultHandler) throws TException {
    - iface.OpenSession(args.req,resultHandler);
    - }
    - }
    -
    - public static class CloseSession<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, CloseSession_args, TCloseSessionResp> {
    - public CloseSession() {
    - super("CloseSession");
    - }
    -
    - public CloseSession_args getEmptyArgsInstance() {
    - return new CloseSession_args();
    - }
    -
    - public AsyncMethodCallback<TCloseSessionResp> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
    - final org.apache.thrift.AsyncProcessFunction fcall = this;
    - return new AsyncMethodCallback<TCloseSessionResp>() {
    - public void onComplete(TCloseSessionResp o) {
    - CloseSession_result result = new CloseSession_result();
    - result.success = o;
    - try {
    - fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
    - return;
    - } catch (Exception e) {
    - LOGGER.error("Exception writing to internal frame buffer", e);
    - }
    - fb.close();
    - }
    - public void onError(Exception e) {
    - byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
    - org.apache.thrift.TBase msg;
    - CloseSession_result result = new CloseSession_result();
    - {
    - msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
    - msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
    - }
    - try {
    - fcall.sendResponse(fb,msg,msgType,seqid);
    - return;
    - } catch (Exception ex) {
    - LOGGER.error("Exception writing to internal frame buffer", ex);
    - }
    - fb.close();
    - }
    - };
    - }
    -
    - protected boolean isOneway() {
    - return false;
    - }
    -
    - public void start(I iface, CloseSession_args args, org.apache.thrift.async.AsyncMethodCallback<TCloseSessionResp> resultHandler) throws TException {
    - iface.CloseSession(args.req,resultHandler);
    - }
    - }
    -
    - public static class GetInfo<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, GetInfo_args, TGetInfoResp> {
    - public GetInfo() {
    - super("GetInfo");
    - }
    -
    - public GetInfo_args getEmptyArgsInstance() {
    - return new GetInfo_args();
    - }
    -
    - public AsyncMethodCallback<TGetInfoResp> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
    - final org.apache.thrift.AsyncProcessFunction fcall = this;
    - return new AsyncMethodCallback<TGetInfoResp>() {
    - public void onComplete(TGetInfoResp o) {
    - GetInfo_result result = new GetInfo_result();
    - result.success = o;
    - try {
    - fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
    - return;
    - } catch (Exception e) {
    - LOGGER.error("Exception writing to internal frame buffer", e);
    - }
    - fb.close();
    - }
    - public void onError(Exception e) {
    - byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
    - org.apache.thrift.TBase msg;
    - GetInfo_result result = new GetInfo_result();
    - {
    - msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
    - msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
    - }
    - try {
    - fcall.sendResponse(fb,msg,msgType,seqid);
    - return;
    - } catch (Exception ex) {
    - LOGGER.error("Exception writing to internal frame buffer", ex);
    - }
    - fb.close();
    - }
    - };
    - }
    -
    - protected boolean isOneway() {
    - return false;
    - }
    -
    - public void start(I iface, GetInfo_args args, org.apache.thrift.async.AsyncMethodCallback<TGetInfoResp> resultHandler) throws TException {
    - iface.GetInfo(args.req,resultHandler);
    - }
    - }
    -
    - public static class ExecuteStatement<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, ExecuteStatement_args, TExecuteStatementResp> {
    - public ExecuteStatement() {
    - super("ExecuteStatement");
    - }
    -
    - public ExecuteStatement_args getEmptyArgsInstance() {
    - return new ExecuteStatement_args();
    - }
    -
    - public AsyncMethodCallback<TExecuteStatementResp> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
    - final org.apache.thrift.AsyncProcessFunction fcall = this;
    - return new AsyncMethodCallback<TExecuteStatementResp>() {
    - public void onComplete(TExecuteStatementResp o) {
    - ExecuteStatement_result result = new ExecuteStatement_result();
    - result.success = o;
    - try {
    - fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
    - return;
    - } catch (Exception e) {
    - LOGGER.error("Exception writing to internal frame buffer", e);
    - }
    - fb.close();
    - }
    - public void onError(Exception e) {
    - byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
    - org.apache.thrift.TBase msg;
    - ExecuteStatement_result result = new ExecuteStatement_result();
    - {
    - msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
    - msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
    - }
    - try {
    - fcall.sendResponse(fb,msg,msgType,seqid);
    - return;
    - } catch (Exception ex) {
    - LOGGER.error("Exception writing to internal frame buffer", ex);
    - }
    - fb.close();
    - }
    - };
    - }
    -
    - protected boolean isOneway() {
    - return false;
    - }
    -
    - public void start(I iface, ExecuteStatement_args args, org.apache.thrift.async.AsyncMethodCallback<TExecuteStatementResp> resultHandler) throws TException {
    - iface.ExecuteStatement(args.req,resultHandler);
    - }
    - }
    -
    - public static class GetTypeInfo<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, GetTypeInfo_args, TGetTypeInfoResp> {
    - public GetTypeInfo() {
    - super("GetTypeInfo");
    - }
    -
    - public GetTypeInfo_args getEmptyArgsInstance() {
    - return new GetTypeInfo_args();
    - }
    -
    - public AsyncMethodCallback<TGetTypeInfoResp> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
    - final org.apache.thrift.AsyncProcessFunction fcall = this;
    - return new AsyncMethodCallback<TGetTypeInfoResp>() {
    - public void onComplete(TGetTypeInfoResp o) {
    - GetTypeInfo_result result = new GetTypeInfo_result();
    - result.success = o;
    - try {
    - fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
    - return;
    - } catch (Exception e) {
    - LOGGER.error("Exception writing to internal frame buffer", e);
    - }
    - fb.close();
    - }
    - public void onError(Exception e) {
    - byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;


    <TRUNCATED>
  • Vgumashta at Jan 8, 2016 at 12:19 am
    http://git-wip-us.apache.org/repos/asf/hive/blob/2542f5cc/service/if/TCLIService.thrift
    ----------------------------------------------------------------------
    diff --git a/service/if/TCLIService.thrift b/service/if/TCLIService.thrift
    deleted file mode 100644
    index baf583f..0000000
    --- a/service/if/TCLIService.thrift
    +++ /dev/null
    @@ -1,1174 +0,0 @@
    -// Licensed to the Apache Software Foundation (ASF) under one
    -// or more contributor license agreements. See the NOTICE file
    -// distributed with this work for additional information
    -// regarding copyright ownership. The ASF licenses this file
    -// to you under the Apache License, Version 2.0 (the
    -// "License"); you may not use this file except in compliance
    -// with the License. You may obtain a copy of the License at
    -//
    -// http://www.apache.org/licenses/LICENSE-2.0
    -//
    -// Unless required by applicable law or agreed to in writing, software
    -// distributed under the License is distributed on an "AS IS" BASIS,
    -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    -// See the License for the specific language governing permissions and
    -// limitations under the License.
    -
    -// Coding Conventions for this file:
    -//
    -// Structs/Enums/Unions
    -// * Struct, Enum, and Union names begin with a "T",
    -// and use a capital letter for each new word, with no underscores.
    -// * All fields should be declared as either optional or required.
    -//
    -// Functions
    -// * Function names start with a capital letter and have a capital letter for
    -// each new word, with no underscores.
    -// * Each function should take exactly one parameter, named TFunctionNameReq,
    -// and should return either void or TFunctionNameResp. This convention allows
    -// incremental updates.
    -//
    -// Services
    -// * Service names begin with the letter "T", use a capital letter for each
    -// new word (with no underscores), and end with the word "Service".
    -
    -namespace java org.apache.hive.service.cli.thrift
    -namespace cpp apache.hive.service.cli.thrift
    -
    -// List of protocol versions. A new token should be
    -// added to the end of this list every time a change is made.
    -enum TProtocolVersion {
    - HIVE_CLI_SERVICE_PROTOCOL_V1,
    -
    - // V2 adds support for asynchronous execution
    - HIVE_CLI_SERVICE_PROTOCOL_V2
    -
    - // V3 add varchar type, primitive type qualifiers
    - HIVE_CLI_SERVICE_PROTOCOL_V3
    -
    - // V4 add decimal precision/scale, char type
    - HIVE_CLI_SERVICE_PROTOCOL_V4
    -
    - // V5 adds error details when GetOperationStatus returns in error state
    - HIVE_CLI_SERVICE_PROTOCOL_V5
    -
    - // V6 uses binary type for binary payload (was string) and uses columnar result set
    - HIVE_CLI_SERVICE_PROTOCOL_V6
    -
    - // V7 adds support for delegation token based connection
    - HIVE_CLI_SERVICE_PROTOCOL_V7
    -
    - // V8 adds support for interval types
    - HIVE_CLI_SERVICE_PROTOCOL_V8
    -}
    -
    -enum TTypeId {
    - BOOLEAN_TYPE,
    - TINYINT_TYPE,
    - SMALLINT_TYPE,
    - INT_TYPE,
    - BIGINT_TYPE,
    - FLOAT_TYPE,
    - DOUBLE_TYPE,
    - STRING_TYPE,
    - TIMESTAMP_TYPE,
    - BINARY_TYPE,
    - ARRAY_TYPE,
    - MAP_TYPE,
    - STRUCT_TYPE,
    - UNION_TYPE,
    - USER_DEFINED_TYPE,
    - DECIMAL_TYPE,
    - NULL_TYPE,
    - DATE_TYPE,
    - VARCHAR_TYPE,
    - CHAR_TYPE,
    - INTERVAL_YEAR_MONTH_TYPE,
    - INTERVAL_DAY_TIME_TYPE
    -}
    -
    -const set<TTypeId> PRIMITIVE_TYPES = [
    - TTypeId.BOOLEAN_TYPE,
    - TTypeId.TINYINT_TYPE,
    - TTypeId.SMALLINT_TYPE,
    - TTypeId.INT_TYPE,
    - TTypeId.BIGINT_TYPE,
    - TTypeId.FLOAT_TYPE,
    - TTypeId.DOUBLE_TYPE,
    - TTypeId.STRING_TYPE,
    - TTypeId.TIMESTAMP_TYPE,
    - TTypeId.BINARY_TYPE,
    - TTypeId.DECIMAL_TYPE,
    - TTypeId.NULL_TYPE,
    - TTypeId.DATE_TYPE,
    - TTypeId.VARCHAR_TYPE,
    - TTypeId.CHAR_TYPE,
    - TTypeId.INTERVAL_YEAR_MONTH_TYPE,
    - TTypeId.INTERVAL_DAY_TIME_TYPE
    -]
    -
    -const set<TTypeId> COMPLEX_TYPES = [
    - TTypeId.ARRAY_TYPE
    - TTypeId.MAP_TYPE
    - TTypeId.STRUCT_TYPE
    - TTypeId.UNION_TYPE
    - TTypeId.USER_DEFINED_TYPE
    -]
    -
    -const set<TTypeId> COLLECTION_TYPES = [
    - TTypeId.ARRAY_TYPE
    - TTypeId.MAP_TYPE
    -]
    -
    -const map<TTypeId,string> TYPE_NAMES = {
    - TTypeId.BOOLEAN_TYPE: "BOOLEAN",
    - TTypeId.TINYINT_TYPE: "TINYINT",
    - TTypeId.SMALLINT_TYPE: "SMALLINT",
    - TTypeId.INT_TYPE: "INT",
    - TTypeId.BIGINT_TYPE: "BIGINT",
    - TTypeId.FLOAT_TYPE: "FLOAT",
    - TTypeId.DOUBLE_TYPE: "DOUBLE",
    - TTypeId.STRING_TYPE: "STRING",
    - TTypeId.TIMESTAMP_TYPE: "TIMESTAMP",
    - TTypeId.BINARY_TYPE: "BINARY",
    - TTypeId.ARRAY_TYPE: "ARRAY",
    - TTypeId.MAP_TYPE: "MAP",
    - TTypeId.STRUCT_TYPE: "STRUCT",
    - TTypeId.UNION_TYPE: "UNIONTYPE",
    - TTypeId.DECIMAL_TYPE: "DECIMAL",
    - TTypeId.NULL_TYPE: "NULL"
    - TTypeId.DATE_TYPE: "DATE"
    - TTypeId.VARCHAR_TYPE: "VARCHAR"
    - TTypeId.CHAR_TYPE: "CHAR"
    - TTypeId.INTERVAL_YEAR_MONTH_TYPE: "INTERVAL_YEAR_MONTH"
    - TTypeId.INTERVAL_DAY_TIME_TYPE: "INTERVAL_DAY_TIME"
    -}
    -
    -// Thrift does not support recursively defined types or forward declarations,
    -// which makes it difficult to represent Hive's nested types.
    -// To get around these limitations TTypeDesc employs a type list that maps
    -// integer "pointers" to TTypeEntry objects. The following examples show
    -// how different types are represented using this scheme:
    -//
    -// "INT":
    -// TTypeDesc {
    -// types = [
    -// TTypeEntry.primitive_entry {
    -// type = INT_TYPE
    -// }
    -// ]
    -// }
    -//
    -// "ARRAY<INT>":
    -// TTypeDesc {
    -// types = [
    -// TTypeEntry.array_entry {
    -// object_type_ptr = 1
    -// },
    -// TTypeEntry.primitive_entry {
    -// type = INT_TYPE
    -// }
    -// ]
    -// }
    -//
    -// "MAP<INT,STRING>":
    -// TTypeDesc {
    -// types = [
    -// TTypeEntry.map_entry {
    -// key_type_ptr = 1
    -// value_type_ptr = 2
    -// },
    -// TTypeEntry.primitive_entry {
    -// type = INT_TYPE
    -// },
    -// TTypeEntry.primitive_entry {
    -// type = STRING_TYPE
    -// }
    -// ]
    -// }
    -
    -typedef i32 TTypeEntryPtr
    -
    -// Valid TTypeQualifiers key names
    -const string CHARACTER_MAXIMUM_LENGTH = "characterMaximumLength"
    -
    -// Type qualifier key name for decimal
    -const string PRECISION = "precision"
    -const string SCALE = "scale"
    -
    -union TTypeQualifierValue {
    - 1: optional i32 i32Value
    - 2: optional string stringValue
    -}
    -
    -// Type qualifiers for primitive type.
    -struct TTypeQualifiers {
    - 1: required map <string, TTypeQualifierValue> qualifiers
    -}
    -
    -// Type entry for a primitive type.
    -struct TPrimitiveTypeEntry {
    - // The primitive type token. This must satisfy the condition
    - // that type is in the PRIMITIVE_TYPES set.
    - 1: required TTypeId type
    - 2: optional TTypeQualifiers typeQualifiers
    -}
    -
    -// Type entry for an ARRAY type.
    -struct TArrayTypeEntry {
    - 1: required TTypeEntryPtr objectTypePtr
    -}
    -
    -// Type entry for a MAP type.
    -struct TMapTypeEntry {
    - 1: required TTypeEntryPtr keyTypePtr
    - 2: required TTypeEntryPtr valueTypePtr
    -}
    -
    -// Type entry for a STRUCT type.
    -struct TStructTypeEntry {
    - 1: required map<string, TTypeEntryPtr> nameToTypePtr
    -}
    -
    -// Type entry for a UNIONTYPE type.
    -struct TUnionTypeEntry {
    - 1: required map<string, TTypeEntryPtr> nameToTypePtr
    -}
    -
    -struct TUserDefinedTypeEntry {
    - // The fully qualified name of the class implementing this type.
    - 1: required string typeClassName
    -}
    -
    -// We use a union here since Thrift does not support inheritance.
    -union TTypeEntry {
    - 1: TPrimitiveTypeEntry primitiveEntry
    - 2: TArrayTypeEntry arrayEntry
    - 3: TMapTypeEntry mapEntry
    - 4: TStructTypeEntry structEntry
    - 5: TUnionTypeEntry unionEntry
    - 6: TUserDefinedTypeEntry userDefinedTypeEntry
    -}
    -
    -// Type descriptor for columns.
    -struct TTypeDesc {
    - // The "top" type is always the first element of the list.
    - // If the top type is an ARRAY, MAP, STRUCT, or UNIONTYPE
    - // type, then subsequent elements represent nested types.
    - 1: required list<TTypeEntry> types
    -}
    -
    -// A result set column descriptor.
    -struct TColumnDesc {
    - // The name of the column
    - 1: required string columnName
    -
    - // The type descriptor for this column
    - 2: required TTypeDesc typeDesc
    -
    - // The ordinal position of this column in the schema
    - 3: required i32 position
    -
    - 4: optional string comment
    -}
    -
    -// Metadata used to describe the schema (column names, types, comments)
    -// of result sets.
    -struct TTableSchema {
    - 1: required list<TColumnDesc> columns
    -}
    -
    -// A Boolean column value.
    -struct TBoolValue {
    - // NULL if value is unset.
    - 1: optional bool value
    -}
    -
    -// A Byte column value.
    -struct TByteValue {
    - // NULL if value is unset.
    - 1: optional byte value
    -}
    -
    -// A signed, 16 bit column value.
    -struct TI16Value {
    - // NULL if value is unset
    - 1: optional i16 value
    -}
    -
    -// A signed, 32 bit column value
    -struct TI32Value {
    - // NULL if value is unset
    - 1: optional i32 value
    -}
    -
    -// A signed 64 bit column value
    -struct TI64Value {
    - // NULL if value is unset
    - 1: optional i64 value
    -}
    -
    -// A floating point 64 bit column value
    -struct TDoubleValue {
    - // NULL if value is unset
    - 1: optional double value
    -}
    -
    -struct TStringValue {
    - // NULL if value is unset
    - 1: optional string value
    -}
    -
    -// A single column value in a result set.
    -// Note that Hive's type system is richer than Thrift's,
    -// so in some cases we have to map multiple Hive types
    -// to the same Thrift type. On the client-side this is
    -// disambiguated by looking at the Schema of the
    -// result set.
    -union TColumnValue {
    - 1: TBoolValue boolVal // BOOLEAN
    - 2: TByteValue byteVal // TINYINT
    - 3: TI16Value i16Val // SMALLINT
    - 4: TI32Value i32Val // INT
    - 5: TI64Value i64Val // BIGINT, TIMESTAMP
    - 6: TDoubleValue doubleVal // FLOAT, DOUBLE
    - 7: TStringValue stringVal // STRING, LIST, MAP, STRUCT, UNIONTYPE, BINARY, DECIMAL, NULL, INTERVAL_YEAR_MONTH, INTERVAL_DAY_TIME
    -}
    -
    -// Represents a row in a rowset.
    -struct TRow {
    - 1: required list<TColumnValue> colVals
    -}
    -
    -struct TBoolColumn {
    - 1: required list<bool> values
    - 2: required binary nulls
    -}
    -
    -struct TByteColumn {
    - 1: required list<byte> values
    - 2: required binary nulls
    -}
    -
    -struct TI16Column {
    - 1: required list<i16> values
    - 2: required binary nulls
    -}
    -
    -struct TI32Column {
    - 1: required list<i32> values
    - 2: required binary nulls
    -}
    -
    -struct TI64Column {
    - 1: required list<i64> values
    - 2: required binary nulls
    -}
    -
    -struct TDoubleColumn {
    - 1: required list<double> values
    - 2: required binary nulls
    -}
    -
    -struct TStringColumn {
    - 1: required list<string> values
    - 2: required binary nulls
    -}
    -
    -struct TBinaryColumn {
    - 1: required list<binary> values
    - 2: required binary nulls
    -}
    -
    -// Note that Hive's type system is richer than Thrift's,
    -// so in some cases we have to map multiple Hive types
    -// to the same Thrift type. On the client-side this is
    -// disambiguated by looking at the Schema of the
    -// result set.
    -union TColumn {
    - 1: TBoolColumn boolVal // BOOLEAN
    - 2: TByteColumn byteVal // TINYINT
    - 3: TI16Column i16Val // SMALLINT
    - 4: TI32Column i32Val // INT
    - 5: TI64Column i64Val // BIGINT, TIMESTAMP
    - 6: TDoubleColumn doubleVal // FLOAT, DOUBLE
    - 7: TStringColumn stringVal // STRING, LIST, MAP, STRUCT, UNIONTYPE, DECIMAL, NULL
    - 8: TBinaryColumn binaryVal // BINARY
    -}
    -
    -// Represents a rowset
    -struct TRowSet {
    - // The starting row offset of this rowset.
    - 1: required i64 startRowOffset
    - 2: required list<TRow> rows
    - 3: optional list<TColumn> columns
    -}
    -
    -// The return status code contained in each response.
    -enum TStatusCode {
    - SUCCESS_STATUS,
    - SUCCESS_WITH_INFO_STATUS,
    - STILL_EXECUTING_STATUS,
    - ERROR_STATUS,
    - INVALID_HANDLE_STATUS
    -}
    -
    -// The return status of a remote request
    -struct TStatus {
    - 1: required TStatusCode statusCode
    -
    - // If status is SUCCESS_WITH_INFO, info_msgs may be populated with
    - // additional diagnostic information.
    - 2: optional list<string> infoMessages
    -
    - // If status is ERROR, then the following fields may be set
    - 3: optional string sqlState // as defined in the ISO/IEF CLI specification
    - 4: optional i32 errorCode // internal error code
    - 5: optional string errorMessage
    -}
    -
    -// The state of an operation (i.e. a query or other
    -// asynchronous operation that generates a result set)
    -// on the server.
    -enum TOperationState {
    - // The operation has been initialized
    - INITIALIZED_STATE,
    -
    - // The operation is running. In this state the result
    - // set is not available.
    - RUNNING_STATE,
    -
    - // The operation has completed. When an operation is in
    - // this state its result set may be fetched.
    - FINISHED_STATE,
    -
    - // The operation was canceled by a client
    - CANCELED_STATE,
    -
    - // The operation was closed by a client
    - CLOSED_STATE,
    -
    - // The operation failed due to an error
    - ERROR_STATE,
    -
    - // The operation is in an unrecognized state
    - UKNOWN_STATE,
    -
    - // The operation is in an pending state
    - PENDING_STATE,
    -}
    -
    -// A string identifier. This is interpreted literally.
    -typedef string TIdentifier
    -
    -// A search pattern.
    -//
    -// Valid search pattern characters:
    -// '_': Any single character.
    -// '%': Any sequence of zero or more characters.
    -// '\': Escape character used to include special characters,
    -// e.g. '_', '%', '\'. If a '\' precedes a non-special
    -// character it has no special meaning and is interpreted
    -// literally.
    -typedef string TPattern
    -
    -
    -// A search pattern or identifier. Used as input
    -// parameter for many of the catalog functions.
    -typedef string TPatternOrIdentifier
    -
    -struct THandleIdentifier {
    - // 16 byte globally unique identifier
    - // This is the public ID of the handle and
    - // can be used for reporting.
    - 1: required binary guid,
    -
    - // 16 byte secret generated by the server
    - // and used to verify that the handle is not
    - // being hijacked by another user.
    - 2: required binary secret,
    -}
    -
    -// Client-side handle to persistent
    -// session information on the server-side.
    -struct TSessionHandle {
    - 1: required THandleIdentifier sessionId
    -}
    -
    -// The subtype of an OperationHandle.
    -enum TOperationType {
    - EXECUTE_STATEMENT,
    - GET_TYPE_INFO,
    - GET_CATALOGS,
    - GET_SCHEMAS,
    - GET_TABLES,
    - GET_TABLE_TYPES,
    - GET_COLUMNS,
    - GET_FUNCTIONS,
    - UNKNOWN,
    -}
    -
    -// Client-side reference to a task running
    -// asynchronously on the server.
    -struct TOperationHandle {
    - 1: required THandleIdentifier operationId
    - 2: required TOperationType operationType
    -
    - // If hasResultSet = TRUE, then this operation
    - // generates a result set that can be fetched.
    - // Note that the result set may be empty.
    - //
    - // If hasResultSet = FALSE, then this operation
    - // does not generate a result set, and calling
    - // GetResultSetMetadata or FetchResults against
    - // this OperationHandle will generate an error.
    - 3: required bool hasResultSet
    -
    - // For operations that don't generate result sets,
    - // modifiedRowCount is either:
    - //
    - // 1) The number of rows that were modified by
    - // the DML operation (e.g. number of rows inserted,
    - // number of rows deleted, etc).
    - //
    - // 2) 0 for operations that don't modify or add rows.
    - //
    - // 3) < 0 if the operation is capable of modifiying rows,
    - // but Hive is unable to determine how many rows were
    - // modified. For example, Hive's LOAD DATA command
    - // doesn't generate row count information because
    - // Hive doesn't inspect the data as it is loaded.
    - //
    - // modifiedRowCount is unset if the operation generates
    - // a result set.
    - 4: optional double modifiedRowCount
    -}
    -
    -
    -// OpenSession()
    -//
    -// Open a session (connection) on the server against
    -// which operations may be executed.
    -struct TOpenSessionReq {
    - // The version of the HiveServer2 protocol that the client is using.
    - 1: required TProtocolVersion client_protocol = TProtocolVersion.HIVE_CLI_SERVICE_PROTOCOL_V8
    -
    - // Username and password for authentication.
    - // Depending on the authentication scheme being used,
    - // this information may instead be provided by a lower
    - // protocol layer, in which case these fields may be
    - // left unset.
    - 2: optional string username
    - 3: optional string password
    -
    - // Configuration overlay which is applied when the session is
    - // first created.
    - 4: optional map<string, string> configuration
    -}
    -
    -struct TOpenSessionResp {
    - 1: required TStatus status
    -
    - // The protocol version that the server is using.
    - 2: required TProtocolVersion serverProtocolVersion = TProtocolVersion.HIVE_CLI_SERVICE_PROTOCOL_V8
    -
    - // Session Handle
    - 3: optional TSessionHandle sessionHandle
    -
    - // The configuration settings for this session.
    - 4: optional map<string, string> configuration
    -}
    -
    -
    -// CloseSession()
    -//
    -// Closes the specified session and frees any resources
    -// currently allocated to that session. Any open
    -// operations in that session will be canceled.
    -struct TCloseSessionReq {
    - 1: required TSessionHandle sessionHandle
    -}
    -
    -struct TCloseSessionResp {
    - 1: required TStatus status
    -}
    -
    -
    -
    -enum TGetInfoType {
    - CLI_MAX_DRIVER_CONNECTIONS = 0,
    - CLI_MAX_CONCURRENT_ACTIVITIES = 1,
    - CLI_DATA_SOURCE_NAME = 2,
    - CLI_FETCH_DIRECTION = 8,
    - CLI_SERVER_NAME = 13,
    - CLI_SEARCH_PATTERN_ESCAPE = 14,
    - CLI_DBMS_NAME = 17,
    - CLI_DBMS_VER = 18,
    - CLI_ACCESSIBLE_TABLES = 19,
    - CLI_ACCESSIBLE_PROCEDURES = 20,
    - CLI_CURSOR_COMMIT_BEHAVIOR = 23,
    - CLI_DATA_SOURCE_READ_ONLY = 25,
    - CLI_DEFAULT_TXN_ISOLATION = 26,
    - CLI_IDENTIFIER_CASE = 28,
    - CLI_IDENTIFIER_QUOTE_CHAR = 29,
    - CLI_MAX_COLUMN_NAME_LEN = 30,
    - CLI_MAX_CURSOR_NAME_LEN = 31,
    - CLI_MAX_SCHEMA_NAME_LEN = 32,
    - CLI_MAX_CATALOG_NAME_LEN = 34,
    - CLI_MAX_TABLE_NAME_LEN = 35,
    - CLI_SCROLL_CONCURRENCY = 43,
    - CLI_TXN_CAPABLE = 46,
    - CLI_USER_NAME = 47,
    - CLI_TXN_ISOLATION_OPTION = 72,
    - CLI_INTEGRITY = 73,
    - CLI_GETDATA_EXTENSIONS = 81,
    - CLI_NULL_COLLATION = 85,
    - CLI_ALTER_TABLE = 86,
    - CLI_ORDER_BY_COLUMNS_IN_SELECT = 90,
    - CLI_SPECIAL_CHARACTERS = 94,
    - CLI_MAX_COLUMNS_IN_GROUP_BY = 97,
    - CLI_MAX_COLUMNS_IN_INDEX = 98,
    - CLI_MAX_COLUMNS_IN_ORDER_BY = 99,
    - CLI_MAX_COLUMNS_IN_SELECT = 100,
    - CLI_MAX_COLUMNS_IN_TABLE = 101,
    - CLI_MAX_INDEX_SIZE = 102,
    - CLI_MAX_ROW_SIZE = 104,
    - CLI_MAX_STATEMENT_LEN = 105,
    - CLI_MAX_TABLES_IN_SELECT = 106,
    - CLI_MAX_USER_NAME_LEN = 107,
    - CLI_OJ_CAPABILITIES = 115,
    -
    - CLI_XOPEN_CLI_YEAR = 10000,
    - CLI_CURSOR_SENSITIVITY = 10001,
    - CLI_DESCRIBE_PARAMETER = 10002,
    - CLI_CATALOG_NAME = 10003,
    - CLI_COLLATION_SEQ = 10004,
    - CLI_MAX_IDENTIFIER_LEN = 10005,
    -}
    -
    -union TGetInfoValue {
    - 1: string stringValue
    - 2: i16 smallIntValue
    - 3: i32 integerBitmask
    - 4: i32 integerFlag
    - 5: i32 binaryValue
    - 6: i64 lenValue
    -}
    -
    -// GetInfo()
    -//
    -// This function is based on ODBC's CLIGetInfo() function.
    -// The function returns general information about the data source
    -// using the same keys as ODBC.
    -struct TGetInfoReq {
    - // The sesssion to run this request against
    - 1: required TSessionHandle sessionHandle
    -
    - 2: required TGetInfoType infoType
    -}
    -
    -struct TGetInfoResp {
    - 1: required TStatus status
    -
    - 2: required TGetInfoValue infoValue
    -}
    -
    -
    -// ExecuteStatement()
    -//
    -// Execute a statement.
    -// The returned OperationHandle can be used to check on the
    -// status of the statement, and to fetch results once the
    -// statement has finished executing.
    -struct TExecuteStatementReq {
    - // The session to execute the statement against
    - 1: required TSessionHandle sessionHandle
    -
    - // The statement to be executed (DML, DDL, SET, etc)
    - 2: required string statement
    -
    - // Configuration properties that are overlayed on top of the
    - // the existing session configuration before this statement
    - // is executed. These properties apply to this statement
    - // only and will not affect the subsequent state of the Session.
    - 3: optional map<string, string> confOverlay
    -
    - // Execute asynchronously when runAsync is true
    - 4: optional bool runAsync = false
    -}
    -
    -struct TExecuteStatementResp {
    - 1: required TStatus status
    - 2: optional TOperationHandle operationHandle
    -}
    -
    -// GetTypeInfo()
    -//
    -// Get information about types supported by the HiveServer instance.
    -// The information is returned as a result set which can be fetched
    -// using the OperationHandle provided in the response.
    -//
    -// Refer to the documentation for ODBC's CLIGetTypeInfo function for
    -// the format of the result set.
    -struct TGetTypeInfoReq {
    - // The session to run this request against.
    - 1: required TSessionHandle sessionHandle
    -}
    -
    -struct TGetTypeInfoResp {
    - 1: required TStatus status
    - 2: optional TOperationHandle operationHandle
    -}
    -
    -
    -// GetCatalogs()
    -//
    -// Returns the list of catalogs (databases)
    -// Results are ordered by TABLE_CATALOG
    -//
    -// Resultset columns :
    -// col1
    -// name: TABLE_CAT
    -// type: STRING
    -// desc: Catalog name. NULL if not applicable.
    -//
    -struct TGetCatalogsReq {
    - // Session to run this request against
    - 1: required TSessionHandle sessionHandle
    -}
    -
    -struct TGetCatalogsResp {
    - 1: required TStatus status
    - 2: optional TOperationHandle operationHandle
    -}
    -
    -
    -// GetSchemas()
    -//
    -// Retrieves the schema names available in this database.
    -// The results are ordered by TABLE_CATALOG and TABLE_SCHEM.
    -// col1
    -// name: TABLE_SCHEM
    -// type: STRING
    -// desc: schema name
    -// col2
    -// name: TABLE_CATALOG
    -// type: STRING
    -// desc: catalog name
    -struct TGetSchemasReq {
    - // Session to run this request against
    - 1: required TSessionHandle sessionHandle
    -
    - // Name of the catalog. Must not contain a search pattern.
    - 2: optional TIdentifier catalogName
    -
    - // schema name or pattern
    - 3: optional TPatternOrIdentifier schemaName
    -}
    -
    -struct TGetSchemasResp {
    - 1: required TStatus status
    - 2: optional TOperationHandle operationHandle
    -}
    -
    -
    -// GetTables()
    -//
    -// Returns a list of tables with catalog, schema, and table
    -// type information. The information is returned as a result
    -// set which can be fetched using the OperationHandle
    -// provided in the response.
    -// Results are ordered by TABLE_TYPE, TABLE_CAT, TABLE_SCHEM, and TABLE_NAME
    -//
    -// Result Set Columns:
    -//
    -// col1
    -// name: TABLE_CAT
    -// type: STRING
    -// desc: Catalog name. NULL if not applicable.
    -//
    -// col2
    -// name: TABLE_SCHEM
    -// type: STRING
    -// desc: Schema name.
    -//
    -// col3
    -// name: TABLE_NAME
    -// type: STRING
    -// desc: Table name.
    -//
    -// col4
    -// name: TABLE_TYPE
    -// type: STRING
    -// desc: The table type, e.g. "TABLE", "VIEW", etc.
    -//
    -// col5
    -// name: REMARKS
    -// type: STRING
    -// desc: Comments about the table
    -//
    -struct TGetTablesReq {
    - // Session to run this request against
    - 1: required TSessionHandle sessionHandle
    -
    - // Name of the catalog or a search pattern.
    - 2: optional TPatternOrIdentifier catalogName
    -
    - // Name of the schema or a search pattern.
    - 3: optional TPatternOrIdentifier schemaName
    -
    - // Name of the table or a search pattern.
    - 4: optional TPatternOrIdentifier tableName
    -
    - // List of table types to match
    - // e.g. "TABLE", "VIEW", "SYSTEM TABLE", "GLOBAL TEMPORARY",
    - // "LOCAL TEMPORARY", "ALIAS", "SYNONYM", etc.
    - 5: optional list<string> tableTypes
    -}
    -
    -struct TGetTablesResp {
    - 1: required TStatus status
    - 2: optional TOperationHandle operationHandle
    -}
    -
    -
    -// GetTableTypes()
    -//
    -// Returns the table types available in this database.
    -// The results are ordered by table type.
    -//
    -// col1
    -// name: TABLE_TYPE
    -// type: STRING
    -// desc: Table type name.
    -struct TGetTableTypesReq {
    - // Session to run this request against
    - 1: required TSessionHandle sessionHandle
    -}
    -
    -struct TGetTableTypesResp {
    - 1: required TStatus status
    - 2: optional TOperationHandle operationHandle
    -}
    -
    -
    -// GetColumns()
    -//
    -// Returns a list of columns in the specified tables.
    -// The information is returned as a result set which can be fetched
    -// using the OperationHandle provided in the response.
    -// Results are ordered by TABLE_CAT, TABLE_SCHEM, TABLE_NAME,
    -// and ORDINAL_POSITION.
    -//
    -// Result Set Columns are the same as those for the ODBC CLIColumns
    -// function.
    -//
    -struct TGetColumnsReq {
    - // Session to run this request against
    - 1: required TSessionHandle sessionHandle
    -
    - // Name of the catalog. Must not contain a search pattern.
    - 2: optional TIdentifier catalogName
    -
    - // Schema name or search pattern
    - 3: optional TPatternOrIdentifier schemaName
    -
    - // Table name or search pattern
    - 4: optional TPatternOrIdentifier tableName
    -
    - // Column name or search pattern
    - 5: optional TPatternOrIdentifier columnName
    -}
    -
    -struct TGetColumnsResp {
    - 1: required TStatus status
    - 2: optional TOperationHandle operationHandle
    -}
    -
    -
    -// GetFunctions()
    -//
    -// Returns a list of functions supported by the data source. The
    -// behavior of this function matches
    -// java.sql.DatabaseMetaData.getFunctions() both in terms of
    -// inputs and outputs.
    -//
    -// Result Set Columns:
    -//
    -// col1
    -// name: FUNCTION_CAT
    -// type: STRING
    -// desc: Function catalog (may be null)
    -//
    -// col2
    -// name: FUNCTION_SCHEM
    -// type: STRING
    -// desc: Function schema (may be null)
    -//
    -// col3
    -// name: FUNCTION_NAME
    -// type: STRING
    -// desc: Function name. This is the name used to invoke the function.
    -//
    -// col4
    -// name: REMARKS
    -// type: STRING
    -// desc: Explanatory comment on the function.
    -//
    -// col5
    -// name: FUNCTION_TYPE
    -// type: SMALLINT
    -// desc: Kind of function. One of:
    -// * functionResultUnknown - Cannot determine if a return value or a table
    -// will be returned.
    -// * functionNoTable - Does not a return a table.
    -// * functionReturnsTable - Returns a table.
    -//
    -// col6
    -// name: SPECIFIC_NAME
    -// type: STRING
    -// desc: The name which uniquely identifies this function within its schema.
    -// In this case this is the fully qualified class name of the class
    -// that implements this function.
    -//
    -struct TGetFunctionsReq {
    - // Session to run this request against
    - 1: required TSessionHandle sessionHandle
    -
    - // A catalog name; must match the catalog name as it is stored in the
    - // database; "" retrieves those without a catalog; null means
    - // that the catalog name should not be used to narrow the search.
    - 2: optional TIdentifier catalogName
    -
    - // A schema name pattern; must match the schema name as it is stored
    - // in the database; "" retrieves those without a schema; null means
    - // that the schema name should not be used to narrow the search.
    - 3: optional TPatternOrIdentifier schemaName
    -
    - // A function name pattern; must match the function name as it is stored
    - // in the database.
    - 4: required TPatternOrIdentifier functionName
    -}
    -
    -struct TGetFunctionsResp {
    - 1: required TStatus status
    - 2: optional TOperationHandle operationHandle
    -}
    -
    -
    -// GetOperationStatus()
    -//
    -// Get the status of an operation running on the server.
    -struct TGetOperationStatusReq {
    - // Session to run this request against
    - 1: required TOperationHandle operationHandle
    -}
    -
    -struct TGetOperationStatusResp {
    - 1: required TStatus status
    - 2: optional TOperationState operationState
    -
    - // If operationState is ERROR_STATE, then the following fields may be set
    - // sqlState as defined in the ISO/IEF CLI specification
    - 3: optional string sqlState
    -
    - // Internal error code
    - 4: optional i32 errorCode
    -
    - // Error message
    - 5: optional string errorMessage
    -}
    -
    -
    -// CancelOperation()
    -//
    -// Cancels processing on the specified operation handle and
    -// frees any resources which were allocated.
    -struct TCancelOperationReq {
    - // Operation to cancel
    - 1: required TOperationHandle operationHandle
    -}
    -
    -struct TCancelOperationResp {
    - 1: required TStatus status
    -}
    -
    -
    -// CloseOperation()
    -//
    -// Given an operation in the FINISHED, CANCELED,
    -// or ERROR states, CloseOperation() will free
    -// all of the resources which were allocated on
    -// the server to service the operation.
    -struct TCloseOperationReq {
    - 1: required TOperationHandle operationHandle
    -}
    -
    -struct TCloseOperationResp {
    - 1: required TStatus status
    -}
    -
    -
    -// GetResultSetMetadata()
    -//
    -// Retrieves schema information for the specified operation
    -struct TGetResultSetMetadataReq {
    - // Operation for which to fetch result set schema information
    - 1: required TOperationHandle operationHandle
    -}
    -
    -struct TGetResultSetMetadataResp {
    - 1: required TStatus status
    - 2: optional TTableSchema schema
    -}
    -
    -
    -enum TFetchOrientation {
    - // Get the next rowset. The fetch offset is ignored.
    - FETCH_NEXT,
    -
    - // Get the previous rowset. The fetch offset is ignored.
    - // NOT SUPPORTED
    - FETCH_PRIOR,
    -
    - // Return the rowset at the given fetch offset relative
    - // to the curren rowset.
    - // NOT SUPPORTED
    - FETCH_RELATIVE,
    -
    - // Return the rowset at the specified fetch offset.
    - // NOT SUPPORTED
    - FETCH_ABSOLUTE,
    -
    - // Get the first rowset in the result set.
    - FETCH_FIRST,
    -
    - // Get the last rowset in the result set.
    - // NOT SUPPORTED
    - FETCH_LAST
    -}
    -
    -// FetchResults()
    -//
    -// Fetch rows from the server corresponding to
    -// a particular OperationHandle.
    -struct TFetchResultsReq {
    - // Operation from which to fetch results.
    - 1: required TOperationHandle operationHandle
    -
    - // The fetch orientation. For V1 this must be either
    - // FETCH_NEXT or FETCH_FIRST. Defaults to FETCH_NEXT.
    - 2: required TFetchOrientation orientation = TFetchOrientation.FETCH_NEXT
    -
    - // Max number of rows that should be returned in
    - // the rowset.
    - 3: required i64 maxRows
    -
    - // The type of a fetch results request. 0 represents Query output. 1 represents Log
    - 4: optional i16 fetchType = 0
    -}
    -
    -struct TFetchResultsResp {
    - 1: required TStatus status
    -
    - // TRUE if there are more rows left to fetch from the server.
    - 2: optional bool hasMoreRows
    -
    - // The rowset. This is optional so that we have the
    - // option in the future of adding alternate formats for
    - // representing result set data, e.g. delimited strings,
    - // binary encoded, etc.
    - 3: optional TRowSet results
    -}
    -
    -// GetDelegationToken()
    -// Retrieve delegation token for the current user
    -struct TGetDelegationTokenReq {
    - // session handle
    - 1: required TSessionHandle sessionHandle
    -
    - // userid for the proxy user
    - 2: required string owner
    -
    - // designated renewer userid
    - 3: required string renewer
    -}
    -
    -struct TGetDelegationTokenResp {
    - // status of the request
    - 1: required TStatus status
    -
    - // delegation token string
    - 2: optional string delegationToken
    -}
    -
    -// CancelDelegationToken()
    -// Cancel the given delegation token
    -struct TCancelDelegationTokenReq {
    - // session handle
    - 1: required TSessionHandle sessionHandle
    -
    - // delegation token to cancel
    - 2: required string delegationToken
    -}
    -
    -struct TCancelDelegationTokenResp {
    - // status of the request
    - 1: required TStatus status
    -}
    -
    -// RenewDelegationToken()
    -// Renew the given delegation token
    -struct TRenewDelegationTokenReq {
    - // session handle
    - 1: required TSessionHandle sessionHandle
    -
    - // delegation token to renew
    - 2: required string delegationToken
    -}
    -
    -struct TRenewDelegationTokenResp {
    - // status of the request
    - 1: required TStatus status
    -}
    -
    -service TCLIService {
    -
    - TOpenSessionResp OpenSession(1:TOpenSessionReq req);
    -
    - TCloseSessionResp CloseSession(1:TCloseSessionReq req);
    -
    - TGetInfoResp GetInfo(1:TGetInfoReq req);
    -
    - TExecuteStatementResp ExecuteStatement(1:TExecuteStatementReq req);
    -
    - TGetTypeInfoResp GetTypeInfo(1:TGetTypeInfoReq req);
    -
    - TGetCatalogsResp GetCatalogs(1:TGetCatalogsReq req);
    -
    - TGetSchemasResp GetSchemas(1:TGetSchemasReq req);
    -
    - TGetTablesResp GetTables(1:TGetTablesReq req);
    -
    - TGetTableTypesResp GetTableTypes(1:TGetTableTypesReq req);
    -
    - TGetColumnsResp GetColumns(1:TGetColumnsReq req);
    -
    - TGetFunctionsResp GetFunctions(1:TGetFunctionsReq req);
    -
    - TGetOperationStatusResp GetOperationStatus(1:TGetOperationStatusReq req);
    -
    - TCancelOperationResp CancelOperation(1:TCancelOperationReq req);
    -
    - TCloseOperationResp CloseOperation(1:TCloseOperationReq req);
    -
    - TGetResultSetMetadataResp GetResultSetMetadata(1:TGetResultSetMetadataReq req);
    -
    - TFetchResultsResp FetchResults(1:TFetchResultsReq req);
    -
    - TGetDelegationTokenResp GetDelegationToken(1:TGetDelegationTokenReq req);
    -
    - TCancelDelegationTokenResp CancelDelegationToken(1:TCancelDelegationTokenReq req);
    -
    - TRenewDelegationTokenResp RenewDelegationToken(1:TRenewDelegationTokenReq req);
    -}

    http://git-wip-us.apache.org/repos/asf/hive/blob/2542f5cc/service/pom.xml
    ----------------------------------------------------------------------
    diff --git a/service/pom.xml b/service/pom.xml
    index c3bb836..8760966 100644
    --- a/service/pom.xml
    +++ b/service/pom.xml
    @@ -44,6 +44,11 @@
            <artifactId>hive-metastore</artifactId>
            <version>${project.version}</version>
          </dependency>
    + <dependency>
    + <groupId>org.apache.hive</groupId>
    + <artifactId>hive-service-rpc</artifactId>
    + <version>${project.version}</version>
    + </dependency>
          <!-- inter-project -->
          <dependency>
            <groupId>commons-codec</groupId>
    @@ -131,13 +136,13 @@
            <scope>test</scope>
            <classifier>tests</classifier>
          </dependency>
    - <dependency>
    - <groupId>org.apache.hive</groupId>
    - <artifactId>hive-common</artifactId>
    - <version>${project.version}</version>
    - <scope>test</scope>
    - <type>test-jar</type>
    - </dependency>
    + <dependency>
    + <groupId>org.apache.hive</groupId>
    + <artifactId>hive-common</artifactId>
    + <version>${project.version}</version>
    + <scope>test</scope>
    + <type>test-jar</type>
    + </dependency>
          <!-- test inter-project -->
          <dependency>
            <groupId>junit</groupId>
    @@ -160,26 +165,6 @@
          </resources>
          <plugins>
            <plugin>
    - <groupId>org.codehaus.mojo</groupId>
    - <artifactId>build-helper-maven-plugin</artifactId>
    - <executions>
    - <execution>
    - <id>add-source</id>
    - <phase>generate-sources</phase>
    - <goals>
    - <goal>add-source</goal>
    - </goals>
    - <configuration>
    - <sources>
    - <source>src/model</source>
    - <source>src/gen/thrift/gen-javabean</source>
    - <source>${project.build.directory}/generated-sources/java</source>
    - </sources>
    - </configuration>
    - </execution>
    - </executions>
    - </plugin>
    - <plugin>
              <artifactId>maven-antrun-plugin</artifactId>
              <executions>
                <!-- Generate web app sources -->
  • Vgumashta at Jan 8, 2016 at 12:19 am
    http://git-wip-us.apache.org/repos/asf/hive/blob/2542f5cc/service/src/gen/thrift/gen-cpp/ThriftHive.h
    ----------------------------------------------------------------------
    diff --git a/service/src/gen/thrift/gen-cpp/ThriftHive.h b/service/src/gen/thrift/gen-cpp/ThriftHive.h
    deleted file mode 100644
    index 902bd4b..0000000
    --- a/service/src/gen/thrift/gen-cpp/ThriftHive.h
    +++ /dev/null
    @@ -1,1224 +0,0 @@
    -/**
    - * Autogenerated by Thrift Compiler (0.9.3)
    - *
    - * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
    - * @generated
    - */
    -#ifndef ThriftHive_H
    -#define ThriftHive_H
    -
    -#include <thrift/TDispatchProcessor.h>
    -#include <thrift/async/TConcurrentClientSyncInfo.h>
    -#include "hive_service_types.h"
    -#include "ThriftHiveMetastore.h"
    -
    -namespace Apache { namespace Hadoop { namespace Hive {
    -
    -#ifdef _WIN32
    - #pragma warning( push )
    - #pragma warning (disable : 4250 ) //inheriting methods via dominance
    -#endif
    -
    -class ThriftHiveIf : virtual public ::Apache::Hadoop::Hive::ThriftHiveMetastoreIf {
    - public:
    - virtual ~ThriftHiveIf() {}
    - virtual void execute(const std::string& query) = 0;
    - virtual void fetchOne(std::string& _return) = 0;
    - virtual void fetchN(std::vector<std::string> & _return, const int32_t numRows) = 0;
    - virtual void fetchAll(std::vector<std::string> & _return) = 0;
    - virtual void getSchema( ::Apache::Hadoop::Hive::Schema& _return) = 0;
    - virtual void getThriftSchema( ::Apache::Hadoop::Hive::Schema& _return) = 0;
    - virtual void getClusterStatus(HiveClusterStatus& _return) = 0;
    - virtual void getQueryPlan( ::Apache::Hadoop::Hive::QueryPlan& _return) = 0;
    - virtual void clean() = 0;
    -};
    -
    -class ThriftHiveIfFactory : virtual public ::Apache::Hadoop::Hive::ThriftHiveMetastoreIfFactory {
    - public:
    - typedef ThriftHiveIf Handler;
    -
    - virtual ~ThriftHiveIfFactory() {}
    -
    - virtual ThriftHiveIf* getHandler(const ::apache::thrift::TConnectionInfo& connInfo) = 0;
    - virtual void releaseHandler( ::facebook::fb303::FacebookServiceIf* /* handler */) = 0;
    -};
    -
    -class ThriftHiveIfSingletonFactory : virtual public ThriftHiveIfFactory {
    - public:
    - ThriftHiveIfSingletonFactory(const boost::shared_ptr<ThriftHiveIf>& iface) : iface_(iface) {}
    - virtual ~ThriftHiveIfSingletonFactory() {}
    -
    - virtual ThriftHiveIf* getHandler(const ::apache::thrift::TConnectionInfo&) {
    - return iface_.get();
    - }
    - virtual void releaseHandler( ::facebook::fb303::FacebookServiceIf* /* handler */) {}
    -
    - protected:
    - boost::shared_ptr<ThriftHiveIf> iface_;
    -};
    -
    -class ThriftHiveNull : virtual public ThriftHiveIf , virtual public ::Apache::Hadoop::Hive::ThriftHiveMetastoreNull {
    - public:
    - virtual ~ThriftHiveNull() {}
    - void execute(const std::string& /* query */) {
    - return;
    - }
    - void fetchOne(std::string& /* _return */) {
    - return;
    - }
    - void fetchN(std::vector<std::string> & /* _return */, const int32_t /* numRows */) {
    - return;
    - }
    - void fetchAll(std::vector<std::string> & /* _return */) {
    - return;
    - }
    - void getSchema( ::Apache::Hadoop::Hive::Schema& /* _return */) {
    - return;
    - }
    - void getThriftSchema( ::Apache::Hadoop::Hive::Schema& /* _return */) {
    - return;
    - }
    - void getClusterStatus(HiveClusterStatus& /* _return */) {
    - return;
    - }
    - void getQueryPlan( ::Apache::Hadoop::Hive::QueryPlan& /* _return */) {
    - return;
    - }
    - void clean() {
    - return;
    - }
    -};
    -
    -typedef struct _ThriftHive_execute_args__isset {
    - _ThriftHive_execute_args__isset() : query(false) {}
    - bool query :1;
    -} _ThriftHive_execute_args__isset;
    -
    -class ThriftHive_execute_args {
    - public:
    -
    - ThriftHive_execute_args(const ThriftHive_execute_args&);
    - ThriftHive_execute_args& operator=(const ThriftHive_execute_args&);
    - ThriftHive_execute_args() : query() {
    - }
    -
    - virtual ~ThriftHive_execute_args() throw();
    - std::string query;
    -
    - _ThriftHive_execute_args__isset __isset;
    -
    - void __set_query(const std::string& val);
    -
    - bool operator == (const ThriftHive_execute_args & rhs) const
    - {
    - if (!(query == rhs.query))
    - return false;
    - return true;
    - }
    - bool operator != (const ThriftHive_execute_args &rhs) const {
    - return !(*this == rhs);
    - }
    -
    - bool operator < (const ThriftHive_execute_args & ) const;
    -
    - uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
    - uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
    -
    -};
    -
    -
    -class ThriftHive_execute_pargs {
    - public:
    -
    -
    - virtual ~ThriftHive_execute_pargs() throw();
    - const std::string* query;
    -
    - uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
    -
    -};
    -
    -typedef struct _ThriftHive_execute_result__isset {
    - _ThriftHive_execute_result__isset() : ex(false) {}
    - bool ex :1;
    -} _ThriftHive_execute_result__isset;
    -
    -class ThriftHive_execute_result {
    - public:
    -
    - ThriftHive_execute_result(const ThriftHive_execute_result&);
    - ThriftHive_execute_result& operator=(const ThriftHive_execute_result&);
    - ThriftHive_execute_result() {
    - }
    -
    - virtual ~ThriftHive_execute_result() throw();
    - HiveServerException ex;
    -
    - _ThriftHive_execute_result__isset __isset;
    -
    - void __set_ex(const HiveServerException& val);
    -
    - bool operator == (const ThriftHive_execute_result & rhs) const
    - {
    - if (!(ex == rhs.ex))
    - return false;
    - return true;
    - }
    - bool operator != (const ThriftHive_execute_result &rhs) const {
    - return !(*this == rhs);
    - }
    -
    - bool operator < (const ThriftHive_execute_result & ) const;
    -
    - uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
    - uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
    -
    -};
    -
    -typedef struct _ThriftHive_execute_presult__isset {
    - _ThriftHive_execute_presult__isset() : ex(false) {}
    - bool ex :1;
    -} _ThriftHive_execute_presult__isset;
    -
    -class ThriftHive_execute_presult {
    - public:
    -
    -
    - virtual ~ThriftHive_execute_presult() throw();
    - HiveServerException ex;
    -
    - _ThriftHive_execute_presult__isset __isset;
    -
    - uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
    -
    -};
    -
    -
    -class ThriftHive_fetchOne_args {
    - public:
    -
    - ThriftHive_fetchOne_args(const ThriftHive_fetchOne_args&);
    - ThriftHive_fetchOne_args& operator=(const ThriftHive_fetchOne_args&);
    - ThriftHive_fetchOne_args() {
    - }
    -
    - virtual ~ThriftHive_fetchOne_args() throw();
    -
    - bool operator == (const ThriftHive_fetchOne_args & /* rhs */) const
    - {
    - return true;
    - }
    - bool operator != (const ThriftHive_fetchOne_args &rhs) const {
    - return !(*this == rhs);
    - }
    -
    - bool operator < (const ThriftHive_fetchOne_args & ) const;
    -
    - uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
    - uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
    -
    -};
    -
    -
    -class ThriftHive_fetchOne_pargs {
    - public:
    -
    -
    - virtual ~ThriftHive_fetchOne_pargs() throw();
    -
    - uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
    -
    -};
    -
    -typedef struct _ThriftHive_fetchOne_result__isset {
    - _ThriftHive_fetchOne_result__isset() : success(false), ex(false) {}
    - bool success :1;
    - bool ex :1;
    -} _ThriftHive_fetchOne_result__isset;
    -
    -class ThriftHive_fetchOne_result {
    - public:
    -
    - ThriftHive_fetchOne_result(const ThriftHive_fetchOne_result&);
    - ThriftHive_fetchOne_result& operator=(const ThriftHive_fetchOne_result&);
    - ThriftHive_fetchOne_result() : success() {
    - }
    -
    - virtual ~ThriftHive_fetchOne_result() throw();
    - std::string success;
    - HiveServerException ex;
    -
    - _ThriftHive_fetchOne_result__isset __isset;
    -
    - void __set_success(const std::string& val);
    -
    - void __set_ex(const HiveServerException& val);
    -
    - bool operator == (const ThriftHive_fetchOne_result & rhs) const
    - {
    - if (!(success == rhs.success))
    - return false;
    - if (!(ex == rhs.ex))
    - return false;
    - return true;
    - }
    - bool operator != (const ThriftHive_fetchOne_result &rhs) const {
    - return !(*this == rhs);
    - }
    -
    - bool operator < (const ThriftHive_fetchOne_result & ) const;
    -
    - uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
    - uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
    -
    -};
    -
    -typedef struct _ThriftHive_fetchOne_presult__isset {
    - _ThriftHive_fetchOne_presult__isset() : success(false), ex(false) {}
    - bool success :1;
    - bool ex :1;
    -} _ThriftHive_fetchOne_presult__isset;
    -
    -class ThriftHive_fetchOne_presult {
    - public:
    -
    -
    - virtual ~ThriftHive_fetchOne_presult() throw();
    - std::string* success;
    - HiveServerException ex;
    -
    - _ThriftHive_fetchOne_presult__isset __isset;
    -
    - uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
    -
    -};
    -
    -typedef struct _ThriftHive_fetchN_args__isset {
    - _ThriftHive_fetchN_args__isset() : numRows(false) {}
    - bool numRows :1;
    -} _ThriftHive_fetchN_args__isset;
    -
    -class ThriftHive_fetchN_args {
    - public:
    -
    - ThriftHive_fetchN_args(const ThriftHive_fetchN_args&);
    - ThriftHive_fetchN_args& operator=(const ThriftHive_fetchN_args&);
    - ThriftHive_fetchN_args() : numRows(0) {
    - }
    -
    - virtual ~ThriftHive_fetchN_args() throw();
    - int32_t numRows;
    -
    - _ThriftHive_fetchN_args__isset __isset;
    -
    - void __set_numRows(const int32_t val);
    -
    - bool operator == (const ThriftHive_fetchN_args & rhs) const
    - {
    - if (!(numRows == rhs.numRows))
    - return false;
    - return true;
    - }
    - bool operator != (const ThriftHive_fetchN_args &rhs) const {
    - return !(*this == rhs);
    - }
    -
    - bool operator < (const ThriftHive_fetchN_args & ) const;
    -
    - uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
    - uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
    -
    -};
    -
    -
    -class ThriftHive_fetchN_pargs {
    - public:
    -
    -
    - virtual ~ThriftHive_fetchN_pargs() throw();
    - const int32_t* numRows;
    -
    - uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
    -
    -};
    -
    -typedef struct _ThriftHive_fetchN_result__isset {
    - _ThriftHive_fetchN_result__isset() : success(false), ex(false) {}
    - bool success :1;
    - bool ex :1;
    -} _ThriftHive_fetchN_result__isset;
    -
    -class ThriftHive_fetchN_result {
    - public:
    -
    - ThriftHive_fetchN_result(const ThriftHive_fetchN_result&);
    - ThriftHive_fetchN_result& operator=(const ThriftHive_fetchN_result&);
    - ThriftHive_fetchN_result() {
    - }
    -
    - virtual ~ThriftHive_fetchN_result() throw();
    - std::vector<std::string> success;
    - HiveServerException ex;
    -
    - _ThriftHive_fetchN_result__isset __isset;
    -
    - void __set_success(const std::vector<std::string> & val);
    -
    - void __set_ex(const HiveServerException& val);
    -
    - bool operator == (const ThriftHive_fetchN_result & rhs) const
    - {
    - if (!(success == rhs.success))
    - return false;
    - if (!(ex == rhs.ex))
    - return false;
    - return true;
    - }
    - bool operator != (const ThriftHive_fetchN_result &rhs) const {
    - return !(*this == rhs);
    - }
    -
    - bool operator < (const ThriftHive_fetchN_result & ) const;
    -
    - uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
    - uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
    -
    -};
    -
    -typedef struct _ThriftHive_fetchN_presult__isset {
    - _ThriftHive_fetchN_presult__isset() : success(false), ex(false) {}
    - bool success :1;
    - bool ex :1;
    -} _ThriftHive_fetchN_presult__isset;
    -
    -class ThriftHive_fetchN_presult {
    - public:
    -
    -
    - virtual ~ThriftHive_fetchN_presult() throw();
    - std::vector<std::string> * success;
    - HiveServerException ex;
    -
    - _ThriftHive_fetchN_presult__isset __isset;
    -
    - uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
    -
    -};
    -
    -
    -class ThriftHive_fetchAll_args {
    - public:
    -
    - ThriftHive_fetchAll_args(const ThriftHive_fetchAll_args&);
    - ThriftHive_fetchAll_args& operator=(const ThriftHive_fetchAll_args&);
    - ThriftHive_fetchAll_args() {
    - }
    -
    - virtual ~ThriftHive_fetchAll_args() throw();
    -
    - bool operator == (const ThriftHive_fetchAll_args & /* rhs */) const
    - {
    - return true;
    - }
    - bool operator != (const ThriftHive_fetchAll_args &rhs) const {
    - return !(*this == rhs);
    - }
    -
    - bool operator < (const ThriftHive_fetchAll_args & ) const;
    -
    - uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
    - uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
    -
    -};
    -
    -
    -class ThriftHive_fetchAll_pargs {
    - public:
    -
    -
    - virtual ~ThriftHive_fetchAll_pargs() throw();
    -
    - uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
    -
    -};
    -
    -typedef struct _ThriftHive_fetchAll_result__isset {
    - _ThriftHive_fetchAll_result__isset() : success(false), ex(false) {}
    - bool success :1;
    - bool ex :1;
    -} _ThriftHive_fetchAll_result__isset;
    -
    -class ThriftHive_fetchAll_result {
    - public:
    -
    - ThriftHive_fetchAll_result(const ThriftHive_fetchAll_result&);
    - ThriftHive_fetchAll_result& operator=(const ThriftHive_fetchAll_result&);
    - ThriftHive_fetchAll_result() {
    - }
    -
    - virtual ~ThriftHive_fetchAll_result() throw();
    - std::vector<std::string> success;
    - HiveServerException ex;
    -
    - _ThriftHive_fetchAll_result__isset __isset;
    -
    - void __set_success(const std::vector<std::string> & val);
    -
    - void __set_ex(const HiveServerException& val);
    -
    - bool operator == (const ThriftHive_fetchAll_result & rhs) const
    - {
    - if (!(success == rhs.success))
    - return false;
    - if (!(ex == rhs.ex))
    - return false;
    - return true;
    - }
    - bool operator != (const ThriftHive_fetchAll_result &rhs) const {
    - return !(*this == rhs);
    - }
    -
    - bool operator < (const ThriftHive_fetchAll_result & ) const;
    -
    - uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
    - uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
    -
    -};
    -
    -typedef struct _ThriftHive_fetchAll_presult__isset {
    - _ThriftHive_fetchAll_presult__isset() : success(false), ex(false) {}
    - bool success :1;
    - bool ex :1;
    -} _ThriftHive_fetchAll_presult__isset;
    -
    -class ThriftHive_fetchAll_presult {
    - public:
    -
    -
    - virtual ~ThriftHive_fetchAll_presult() throw();
    - std::vector<std::string> * success;
    - HiveServerException ex;
    -
    - _ThriftHive_fetchAll_presult__isset __isset;
    -
    - uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
    -
    -};
    -
    -
    -class ThriftHive_getSchema_args {
    - public:
    -
    - ThriftHive_getSchema_args(const ThriftHive_getSchema_args&);
    - ThriftHive_getSchema_args& operator=(const ThriftHive_getSchema_args&);
    - ThriftHive_getSchema_args() {
    - }
    -
    - virtual ~ThriftHive_getSchema_args() throw();
    -
    - bool operator == (const ThriftHive_getSchema_args & /* rhs */) const
    - {
    - return true;
    - }
    - bool operator != (const ThriftHive_getSchema_args &rhs) const {
    - return !(*this == rhs);
    - }
    -
    - bool operator < (const ThriftHive_getSchema_args & ) const;
    -
    - uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
    - uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
    -
    -};
    -
    -
    -class ThriftHive_getSchema_pargs {
    - public:
    -
    -
    - virtual ~ThriftHive_getSchema_pargs() throw();
    -
    - uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
    -
    -};
    -
    -typedef struct _ThriftHive_getSchema_result__isset {
    - _ThriftHive_getSchema_result__isset() : success(false), ex(false) {}
    - bool success :1;
    - bool ex :1;
    -} _ThriftHive_getSchema_result__isset;
    -
    -class ThriftHive_getSchema_result {
    - public:
    -
    - ThriftHive_getSchema_result(const ThriftHive_getSchema_result&);
    - ThriftHive_getSchema_result& operator=(const ThriftHive_getSchema_result&);
    - ThriftHive_getSchema_result() {
    - }
    -
    - virtual ~ThriftHive_getSchema_result() throw();
    - ::Apache::Hadoop::Hive::Schema success;
    - HiveServerException ex;
    -
    - _ThriftHive_getSchema_result__isset __isset;
    -
    - void __set_success(const ::Apache::Hadoop::Hive::Schema& val);
    -
    - void __set_ex(const HiveServerException& val);
    -
    - bool operator == (const ThriftHive_getSchema_result & rhs) const
    - {
    - if (!(success == rhs.success))
    - return false;
    - if (!(ex == rhs.ex))
    - return false;
    - return true;
    - }
    - bool operator != (const ThriftHive_getSchema_result &rhs) const {
    - return !(*this == rhs);
    - }
    -
    - bool operator < (const ThriftHive_getSchema_result & ) const;
    -
    - uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
    - uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
    -
    -};
    -
    -typedef struct _ThriftHive_getSchema_presult__isset {
    - _ThriftHive_getSchema_presult__isset() : success(false), ex(false) {}
    - bool success :1;
    - bool ex :1;
    -} _ThriftHive_getSchema_presult__isset;
    -
    -class ThriftHive_getSchema_presult {
    - public:
    -
    -
    - virtual ~ThriftHive_getSchema_presult() throw();
    - ::Apache::Hadoop::Hive::Schema* success;
    - HiveServerException ex;
    -
    - _ThriftHive_getSchema_presult__isset __isset;
    -
    - uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
    -
    -};
    -
    -
    -class ThriftHive_getThriftSchema_args {
    - public:
    -
    - ThriftHive_getThriftSchema_args(const ThriftHive_getThriftSchema_args&);
    - ThriftHive_getThriftSchema_args& operator=(const ThriftHive_getThriftSchema_args&);
    - ThriftHive_getThriftSchema_args() {
    - }
    -
    - virtual ~ThriftHive_getThriftSchema_args() throw();
    -
    - bool operator == (const ThriftHive_getThriftSchema_args & /* rhs */) const
    - {
    - return true;
    - }
    - bool operator != (const ThriftHive_getThriftSchema_args &rhs) const {
    - return !(*this == rhs);
    - }
    -
    - bool operator < (const ThriftHive_getThriftSchema_args & ) const;
    -
    - uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
    - uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
    -
    -};
    -
    -
    -class ThriftHive_getThriftSchema_pargs {
    - public:
    -
    -
    - virtual ~ThriftHive_getThriftSchema_pargs() throw();
    -
    - uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
    -
    -};
    -
    -typedef struct _ThriftHive_getThriftSchema_result__isset {
    - _ThriftHive_getThriftSchema_result__isset() : success(false), ex(false) {}
    - bool success :1;
    - bool ex :1;
    -} _ThriftHive_getThriftSchema_result__isset;
    -
    -class ThriftHive_getThriftSchema_result {
    - public:
    -
    - ThriftHive_getThriftSchema_result(const ThriftHive_getThriftSchema_result&);
    - ThriftHive_getThriftSchema_result& operator=(const ThriftHive_getThriftSchema_result&);
    - ThriftHive_getThriftSchema_result() {
    - }
    -
    - virtual ~ThriftHive_getThriftSchema_result() throw();
    - ::Apache::Hadoop::Hive::Schema success;
    - HiveServerException ex;
    -
    - _ThriftHive_getThriftSchema_result__isset __isset;
    -
    - void __set_success(const ::Apache::Hadoop::Hive::Schema& val);
    -
    - void __set_ex(const HiveServerException& val);
    -
    - bool operator == (const ThriftHive_getThriftSchema_result & rhs) const
    - {
    - if (!(success == rhs.success))
    - return false;
    - if (!(ex == rhs.ex))
    - return false;
    - return true;
    - }
    - bool operator != (const ThriftHive_getThriftSchema_result &rhs) const {
    - return !(*this == rhs);
    - }
    -
    - bool operator < (const ThriftHive_getThriftSchema_result & ) const;
    -
    - uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
    - uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
    -
    -};
    -
    -typedef struct _ThriftHive_getThriftSchema_presult__isset {
    - _ThriftHive_getThriftSchema_presult__isset() : success(false), ex(false) {}
    - bool success :1;
    - bool ex :1;
    -} _ThriftHive_getThriftSchema_presult__isset;
    -
    -class ThriftHive_getThriftSchema_presult {
    - public:
    -
    -
    - virtual ~ThriftHive_getThriftSchema_presult() throw();
    - ::Apache::Hadoop::Hive::Schema* success;
    - HiveServerException ex;
    -
    - _ThriftHive_getThriftSchema_presult__isset __isset;
    -
    - uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
    -
    -};
    -
    -
    -class ThriftHive_getClusterStatus_args {
    - public:
    -
    - ThriftHive_getClusterStatus_args(const ThriftHive_getClusterStatus_args&);
    - ThriftHive_getClusterStatus_args& operator=(const ThriftHive_getClusterStatus_args&);
    - ThriftHive_getClusterStatus_args() {
    - }
    -
    - virtual ~ThriftHive_getClusterStatus_args() throw();
    -
    - bool operator == (const ThriftHive_getClusterStatus_args & /* rhs */) const
    - {
    - return true;
    - }
    - bool operator != (const ThriftHive_getClusterStatus_args &rhs) const {
    - return !(*this == rhs);
    - }
    -
    - bool operator < (const ThriftHive_getClusterStatus_args & ) const;
    -
    - uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
    - uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
    -
    -};
    -
    -
    -class ThriftHive_getClusterStatus_pargs {
    - public:
    -
    -
    - virtual ~ThriftHive_getClusterStatus_pargs() throw();
    -
    - uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
    -
    -};
    -
    -typedef struct _ThriftHive_getClusterStatus_result__isset {
    - _ThriftHive_getClusterStatus_result__isset() : success(false), ex(false) {}
    - bool success :1;
    - bool ex :1;
    -} _ThriftHive_getClusterStatus_result__isset;
    -
    -class ThriftHive_getClusterStatus_result {
    - public:
    -
    - ThriftHive_getClusterStatus_result(const ThriftHive_getClusterStatus_result&);
    - ThriftHive_getClusterStatus_result& operator=(const ThriftHive_getClusterStatus_result&);
    - ThriftHive_getClusterStatus_result() {
    - }
    -
    - virtual ~ThriftHive_getClusterStatus_result() throw();
    - HiveClusterStatus success;
    - HiveServerException ex;
    -
    - _ThriftHive_getClusterStatus_result__isset __isset;
    -
    - void __set_success(const HiveClusterStatus& val);
    -
    - void __set_ex(const HiveServerException& val);
    -
    - bool operator == (const ThriftHive_getClusterStatus_result & rhs) const
    - {
    - if (!(success == rhs.success))
    - return false;
    - if (!(ex == rhs.ex))
    - return false;
    - return true;
    - }
    - bool operator != (const ThriftHive_getClusterStatus_result &rhs) const {
    - return !(*this == rhs);
    - }
    -
    - bool operator < (const ThriftHive_getClusterStatus_result & ) const;
    -
    - uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
    - uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
    -
    -};
    -
    -typedef struct _ThriftHive_getClusterStatus_presult__isset {
    - _ThriftHive_getClusterStatus_presult__isset() : success(false), ex(false) {}
    - bool success :1;
    - bool ex :1;
    -} _ThriftHive_getClusterStatus_presult__isset;
    -
    -class ThriftHive_getClusterStatus_presult {
    - public:
    -
    -
    - virtual ~ThriftHive_getClusterStatus_presult() throw();
    - HiveClusterStatus* success;
    - HiveServerException ex;
    -
    - _ThriftHive_getClusterStatus_presult__isset __isset;
    -
    - uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
    -
    -};
    -
    -
    -class ThriftHive_getQueryPlan_args {
    - public:
    -
    - ThriftHive_getQueryPlan_args(const ThriftHive_getQueryPlan_args&);
    - ThriftHive_getQueryPlan_args& operator=(const ThriftHive_getQueryPlan_args&);
    - ThriftHive_getQueryPlan_args() {
    - }
    -
    - virtual ~ThriftHive_getQueryPlan_args() throw();
    -
    - bool operator == (const ThriftHive_getQueryPlan_args & /* rhs */) const
    - {
    - return true;
    - }
    - bool operator != (const ThriftHive_getQueryPlan_args &rhs) const {
    - return !(*this == rhs);
    - }
    -
    - bool operator < (const ThriftHive_getQueryPlan_args & ) const;
    -
    - uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
    - uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
    -
    -};
    -
    -
    -class ThriftHive_getQueryPlan_pargs {
    - public:
    -
    -
    - virtual ~ThriftHive_getQueryPlan_pargs() throw();
    -
    - uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
    -
    -};
    -
    -typedef struct _ThriftHive_getQueryPlan_result__isset {
    - _ThriftHive_getQueryPlan_result__isset() : success(false), ex(false) {}
    - bool success :1;
    - bool ex :1;
    -} _ThriftHive_getQueryPlan_result__isset;
    -
    -class ThriftHive_getQueryPlan_result {
    - public:
    -
    - ThriftHive_getQueryPlan_result(const ThriftHive_getQueryPlan_result&);
    - ThriftHive_getQueryPlan_result& operator=(const ThriftHive_getQueryPlan_result&);
    - ThriftHive_getQueryPlan_result() {
    - }
    -
    - virtual ~ThriftHive_getQueryPlan_result() throw();
    - ::Apache::Hadoop::Hive::QueryPlan success;
    - HiveServerException ex;
    -
    - _ThriftHive_getQueryPlan_result__isset __isset;
    -
    - void __set_success(const ::Apache::Hadoop::Hive::QueryPlan& val);
    -
    - void __set_ex(const HiveServerException& val);
    -
    - bool operator == (const ThriftHive_getQueryPlan_result & rhs) const
    - {
    - if (!(success == rhs.success))
    - return false;
    - if (!(ex == rhs.ex))
    - return false;
    - return true;
    - }
    - bool operator != (const ThriftHive_getQueryPlan_result &rhs) const {
    - return !(*this == rhs);
    - }
    -
    - bool operator < (const ThriftHive_getQueryPlan_result & ) const;
    -
    - uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
    - uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
    -
    -};
    -
    -typedef struct _ThriftHive_getQueryPlan_presult__isset {
    - _ThriftHive_getQueryPlan_presult__isset() : success(false), ex(false) {}
    - bool success :1;
    - bool ex :1;
    -} _ThriftHive_getQueryPlan_presult__isset;
    -
    -class ThriftHive_getQueryPlan_presult {
    - public:
    -
    -
    - virtual ~ThriftHive_getQueryPlan_presult() throw();
    - ::Apache::Hadoop::Hive::QueryPlan* success;
    - HiveServerException ex;
    -
    - _ThriftHive_getQueryPlan_presult__isset __isset;
    -
    - uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
    -
    -};
    -
    -
    -class ThriftHive_clean_args {
    - public:
    -
    - ThriftHive_clean_args(const ThriftHive_clean_args&);
    - ThriftHive_clean_args& operator=(const ThriftHive_clean_args&);
    - ThriftHive_clean_args() {
    - }
    -
    - virtual ~ThriftHive_clean_args() throw();
    -
    - bool operator == (const ThriftHive_clean_args & /* rhs */) const
    - {
    - return true;
    - }
    - bool operator != (const ThriftHive_clean_args &rhs) const {
    - return !(*this == rhs);
    - }
    -
    - bool operator < (const ThriftHive_clean_args & ) const;
    -
    - uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
    - uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
    -
    -};
    -
    -
    -class ThriftHive_clean_pargs {
    - public:
    -
    -
    - virtual ~ThriftHive_clean_pargs() throw();
    -
    - uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
    -
    -};
    -
    -
    -class ThriftHive_clean_result {
    - public:
    -
    - ThriftHive_clean_result(const ThriftHive_clean_result&);
    - ThriftHive_clean_result& operator=(const ThriftHive_clean_result&);
    - ThriftHive_clean_result() {
    - }
    -
    - virtual ~ThriftHive_clean_result() throw();
    -
    - bool operator == (const ThriftHive_clean_result & /* rhs */) const
    - {
    - return true;
    - }
    - bool operator != (const ThriftHive_clean_result &rhs) const {
    - return !(*this == rhs);
    - }
    -
    - bool operator < (const ThriftHive_clean_result & ) const;
    -
    - uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
    - uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
    -
    -};
    -
    -
    -class ThriftHive_clean_presult {
    - public:
    -
    -
    - virtual ~ThriftHive_clean_presult() throw();
    -
    - uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
    -
    -};
    -
    -class ThriftHiveClient : virtual public ThriftHiveIf, public ::Apache::Hadoop::Hive::ThriftHiveMetastoreClient {
    - public:
    - ThriftHiveClient(boost::shared_ptr< ::apache::thrift::protocol::TProtocol> prot) :
    - ::Apache::Hadoop::Hive::ThriftHiveMetastoreClient(prot, prot) {}
    - ThriftHiveClient(boost::shared_ptr< ::apache::thrift::protocol::TProtocol> iprot, boost::shared_ptr< ::apache::thrift::protocol::TProtocol> oprot) : ::Apache::Hadoop::Hive::ThriftHiveMetastoreClient(iprot, oprot) {}
    - boost::shared_ptr< ::apache::thrift::protocol::TProtocol> getInputProtocol() {
    - return piprot_;
    - }
    - boost::shared_ptr< ::apache::thrift::protocol::TProtocol> getOutputProtocol() {
    - return poprot_;
    - }
    - void execute(const std::string& query);
    - void send_execute(const std::string& query);
    - void recv_execute();
    - void fetchOne(std::string& _return);
    - void send_fetchOne();
    - void recv_fetchOne(std::string& _return);
    - void fetchN(std::vector<std::string> & _return, const int32_t numRows);
    - void send_fetchN(const int32_t numRows);
    - void recv_fetchN(std::vector<std::string> & _return);
    - void fetchAll(std::vector<std::string> & _return);
    - void send_fetchAll();
    - void recv_fetchAll(std::vector<std::string> & _return);
    - void getSchema( ::Apache::Hadoop::Hive::Schema& _return);
    - void send_getSchema();
    - void recv_getSchema( ::Apache::Hadoop::Hive::Schema& _return);
    - void getThriftSchema( ::Apache::Hadoop::Hive::Schema& _return);
    - void send_getThriftSchema();
    - void recv_getThriftSchema( ::Apache::Hadoop::Hive::Schema& _return);
    - void getClusterStatus(HiveClusterStatus& _return);
    - void send_getClusterStatus();
    - void recv_getClusterStatus(HiveClusterStatus& _return);
    - void getQueryPlan( ::Apache::Hadoop::Hive::QueryPlan& _return);
    - void send_getQueryPlan();
    - void recv_getQueryPlan( ::Apache::Hadoop::Hive::QueryPlan& _return);
    - void clean();
    - void send_clean();
    - void recv_clean();
    -};
    -
    -class ThriftHiveProcessor : public ::Apache::Hadoop::Hive::ThriftHiveMetastoreProcessor {
    - protected:
    - boost::shared_ptr<ThriftHiveIf> iface_;
    - virtual bool dispatchCall(::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, const std::string& fname, int32_t seqid, void* callContext);
    - private:
    - typedef void (ThriftHiveProcessor::*ProcessFunction)(int32_t, ::apache::thrift::protocol::TProtocol*, ::apache::thrift::protocol::TProtocol*, void*);
    - typedef std::map<std::string, ProcessFunction> ProcessMap;
    - ProcessMap processMap_;
    - void process_execute(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext);
    - void process_fetchOne(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext);
    - void process_fetchN(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext);
    - void process_fetchAll(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext);
    - void process_getSchema(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext);
    - void process_getThriftSchema(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext);
    - void process_getClusterStatus(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext);
    - void process_getQueryPlan(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext);
    - void process_clean(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext);
    - public:
    - ThriftHiveProcessor(boost::shared_ptr<ThriftHiveIf> iface) :
    - ::Apache::Hadoop::Hive::ThriftHiveMetastoreProcessor(iface),
    - iface_(iface) {
    - processMap_["execute"] = &ThriftHiveProcessor::process_execute;
    - processMap_["fetchOne"] = &ThriftHiveProcessor::process_fetchOne;
    - processMap_["fetchN"] = &ThriftHiveProcessor::process_fetchN;
    - processMap_["fetchAll"] = &ThriftHiveProcessor::process_fetchAll;
    - processMap_["getSchema"] = &ThriftHiveProcessor::process_getSchema;
    - processMap_["getThriftSchema"] = &ThriftHiveProcessor::process_getThriftSchema;
    - processMap_["getClusterStatus"] = &ThriftHiveProcessor::process_getClusterStatus;
    - processMap_["getQueryPlan"] = &ThriftHiveProcessor::process_getQueryPlan;
    - processMap_["clean"] = &ThriftHiveProcessor::process_clean;
    - }
    -
    - virtual ~ThriftHiveProcessor() {}
    -};
    -
    -class ThriftHiveProcessorFactory : public ::apache::thrift::TProcessorFactory {
    - public:
    - ThriftHiveProcessorFactory(const ::boost::shared_ptr< ThriftHiveIfFactory >& handlerFactory) :
    - handlerFactory_(handlerFactory) {}
    -
    - ::boost::shared_ptr< ::apache::thrift::TProcessor > getProcessor(const ::apache::thrift::TConnectionInfo& connInfo);
    -
    - protected:
    - ::boost::shared_ptr< ThriftHiveIfFactory > handlerFactory_;
    -};
    -
    -class ThriftHiveMultiface : virtual public ThriftHiveIf, public ::Apache::Hadoop::Hive::ThriftHiveMetastoreMultiface {
    - public:
    - ThriftHiveMultiface(std::vector<boost::shared_ptr<ThriftHiveIf> >& ifaces) : ifaces_(ifaces) {
    - std::vector<boost::shared_ptr<ThriftHiveIf> >::iterator iter;
    - for (iter = ifaces.begin(); iter != ifaces.end(); ++iter) {
    - ::Apache::Hadoop::Hive::ThriftHiveMetastoreMultiface::add(*iter);
    - }
    - }
    - virtual ~ThriftHiveMultiface() {}
    - protected:
    - std::vector<boost::shared_ptr<ThriftHiveIf> > ifaces_;
    - ThriftHiveMultiface() {}
    - void add(boost::shared_ptr<ThriftHiveIf> iface) {
    - ::Apache::Hadoop::Hive::ThriftHiveMetastoreMultiface::add(iface);
    - ifaces_.push_back(iface);
    - }
    - public:
    - void execute(const std::string& query) {
    - size_t sz = ifaces_.size();
    - size_t i = 0;
    - for (; i < (sz - 1); ++i) {
    - ifaces_[i]->execute(query);
    - }
    - ifaces_[i]->execute(query);
    - }
    -
    - void fetchOne(std::string& _return) {
    - size_t sz = ifaces_.size();
    - size_t i = 0;
    - for (; i < (sz - 1); ++i) {
    - ifaces_[i]->fetchOne(_return);
    - }
    - ifaces_[i]->fetchOne(_return);
    - return;
    - }
    -
    - void fetchN(std::vector<std::string> & _return, const int32_t numRows) {
    - size_t sz = ifaces_.size();
    - size_t i = 0;
    - for (; i < (sz - 1); ++i) {
    - ifaces_[i]->fetchN(_return, numRows);
    - }
    - ifaces_[i]->fetchN(_return, numRows);
    - return;
    - }
    -
    - void fetchAll(std::vector<std::string> & _return) {
    - size_t sz = ifaces_.size();
    - size_t i = 0;
    - for (; i < (sz - 1); ++i) {
    - ifaces_[i]->fetchAll(_return);
    - }
    - ifaces_[i]->fetchAll(_return);
    - return;
    - }
    -
    - void getSchema( ::Apache::Hadoop::Hive::Schema& _return) {
    - size_t sz = ifaces_.size();
    - size_t i = 0;
    - for (; i < (sz - 1); ++i) {
    - ifaces_[i]->getSchema(_return);
    - }
    - ifaces_[i]->getSchema(_return);
    - return;
    - }
    -
    - void getThriftSchema( ::Apache::Hadoop::Hive::Schema& _return) {
    - size_t sz = ifaces_.size();
    - size_t i = 0;
    - for (; i < (sz - 1); ++i) {
    - ifaces_[i]->getThriftSchema(_return);
    - }
    - ifaces_[i]->getThriftSchema(_return);
    - return;
    - }
    -
    - void getClusterStatus(HiveClusterStatus& _return) {
    - size_t sz = ifaces_.size();
    - size_t i = 0;
    - for (; i < (sz - 1); ++i) {
    - ifaces_[i]->getClusterStatus(_return);
    - }
    - ifaces_[i]->getClusterStatus(_return);
    - return;
    - }
    -
    - void getQueryPlan( ::Apache::Hadoop::Hive::QueryPlan& _return) {
    - size_t sz = ifaces_.size();
    - size_t i = 0;
    - for (; i < (sz - 1); ++i) {
    - ifaces_[i]->getQueryPlan(_return);
    - }
    - ifaces_[i]->getQueryPlan(_return);
    - return;
    - }
    -
    - void clean() {
    - size_t sz = ifaces_.size();
    - size_t i = 0;
    - for (; i < (sz - 1); ++i) {
    - ifaces_[i]->clean();
    - }
    - ifaces_[i]->clean();
    - }
    -
    -};
    -
    -// The 'concurrent' client is a thread safe client that correctly handles
    -// out of order responses. It is slower than the regular client, so should
    -// only be used when you need to share a connection among multiple threads
    -class ThriftHiveConcurrentClient : virtual public ThriftHiveIf, public ::Apache::Hadoop::Hive::ThriftHiveMetastoreConcurrentClient {
    - public:
    - ThriftHiveConcurrentClient(boost::shared_ptr< ::apache::thrift::protocol::TProtocol> prot) :
    - ::Apache::Hadoop::Hive::ThriftHiveMetastoreConcurrentClient(prot, prot) {}
    - ThriftHiveConcurrentClient(boost::shared_ptr< ::apache::thrift::protocol::TProtocol> iprot, boost::shared_ptr< ::apache::thrift::protocol::TProtocol> oprot) : ::Apache::Hadoop::Hive::ThriftHiveMetastoreConcurrentClient(iprot, oprot) {}
    - boost::shared_ptr< ::apache::thrift::protocol::TProtocol> getInputProtocol() {
    - return piprot_;
    - }
    - boost::shared_ptr< ::apache::thrift::protocol::TProtocol> getOutputProtocol() {
    - return poprot_;
    - }
    - void execute(const std::string& query);
    - int32_t send_execute(const std::string& query);
    - void recv_execute(const int32_t seqid);
    - void fetchOne(std::string& _return);
    - int32_t send_fetchOne();
    - void recv_fetchOne(std::string& _return, const int32_t seqid);
    - void fetchN(std::vector<std::string> & _return, const int32_t numRows);
    - int32_t send_fetchN(const int32_t numRows);
    - void recv_fetchN(std::vector<std::string> & _return, const int32_t seqid);
    - void fetchAll(std::vector<std::string> & _return);
    - int32_t send_fetchAll();
    - void recv_fetchAll(std::vector<std::string> & _return, const int32_t seqid);
    - void getSchema( ::Apache::Hadoop::Hive::Schema& _return);
    - int32_t send_getSchema();
    - void recv_getSchema( ::Apache::Hadoop::Hive::Schema& _return, const int32_t seqid);
    - void getThriftSchema( ::Apache::Hadoop::Hive::Schema& _return);
    - int32_t send_getThriftSchema();
    - void recv_getThriftSchema( ::Apache::Hadoop::Hive::Schema& _return, const int32_t seqid);
    - void getClusterStatus(HiveClusterStatus& _return);
    - int32_t send_getClusterStatus();
    - void recv_getClusterStatus(HiveClusterStatus& _return, const int32_t seqid);
    - void getQueryPlan( ::Apache::Hadoop::Hive::QueryPlan& _return);
    - int32_t send_getQueryPlan();
    - void recv_getQueryPlan( ::Apache::Hadoop::Hive::QueryPlan& _return, const int32_t seqid);
    - void clean();
    - int32_t send_clean();
    - void recv_clean(const int32_t seqid);
    -};
    -
    -#ifdef _WIN32
    - #pragma warning( pop )
    -#endif
    -
    -}}} // namespace
    -
    -#endif

    http://git-wip-us.apache.org/repos/asf/hive/blob/2542f5cc/service/src/gen/thrift/gen-cpp/ThriftHive_server.skeleton.cpp
    ----------------------------------------------------------------------
    diff --git a/service/src/gen/thrift/gen-cpp/ThriftHive_server.skeleton.cpp b/service/src/gen/thrift/gen-cpp/ThriftHive_server.skeleton.cpp
    deleted file mode 100644
    index 3b61b76..0000000
    --- a/service/src/gen/thrift/gen-cpp/ThriftHive_server.skeleton.cpp
    +++ /dev/null
    @@ -1,84 +0,0 @@
    -// This autogenerated skeleton file illustrates how to build a server.
    -// You should copy it to another filename to avoid overwriting it.
    -
    -#include "ThriftHive.h"
    -#include <thrift/protocol/TBinaryProtocol.h>
    -#include <thrift/server/TSimpleServer.h>
    -#include <thrift/transport/TServerSocket.h>
    -#include <thrift/transport/TBufferTransports.h>
    -
    -using namespace ::apache::thrift;
    -using namespace ::apache::thrift::protocol;
    -using namespace ::apache::thrift::transport;
    -using namespace ::apache::thrift::server;
    -
    -using boost::shared_ptr;
    -
    -using namespace ::Apache::Hadoop::Hive;
    -
    -class ThriftHiveHandler : virtual public ThriftHiveIf {
    - public:
    - ThriftHiveHandler() {
    - // Your initialization goes here
    - }
    -
    - void execute(const std::string& query) {
    - // Your implementation goes here
    - printf("execute\n");
    - }
    -
    - void fetchOne(std::string& _return) {
    - // Your implementation goes here
    - printf("fetchOne\n");
    - }
    -
    - void fetchN(std::vector<std::string> & _return, const int32_t numRows) {
    - // Your implementation goes here
    - printf("fetchN\n");
    - }
    -
    - void fetchAll(std::vector<std::string> & _return) {
    - // Your implementation goes here
    - printf("fetchAll\n");
    - }
    -
    - void getSchema( ::Apache::Hadoop::Hive::Schema& _return) {
    - // Your implementation goes here
    - printf("getSchema\n");
    - }
    -
    - void getThriftSchema( ::Apache::Hadoop::Hive::Schema& _return) {
    - // Your implementation goes here
    - printf("getThriftSchema\n");
    - }
    -
    - void getClusterStatus(HiveClusterStatus& _return) {
    - // Your implementation goes here
    - printf("getClusterStatus\n");
    - }
    -
    - void getQueryPlan( ::Apache::Hadoop::Hive::QueryPlan& _return) {
    - // Your implementation goes here
    - printf("getQueryPlan\n");
    - }
    -
    - void clean() {
    - // Your implementation goes here
    - printf("clean\n");
    - }
    -
    -};
    -
    -int main(int argc, char **argv) {
    - int port = 9090;
    - shared_ptr<ThriftHiveHandler> handler(new ThriftHiveHandler());
    - shared_ptr<TProcessor> processor(new ThriftHiveProcessor(handler));
    - shared_ptr<TServerTransport> serverTransport(new TServerSocket(port));
    - shared_ptr<TTransportFactory> transportFactory(new TBufferedTransportFactory());
    - shared_ptr<TProtocolFactory> protocolFactory(new TBinaryProtocolFactory());
    -
    - TSimpleServer server(processor, serverTransport, transportFactory, protocolFactory);
    - server.serve();
    - return 0;
    -}
    -

    http://git-wip-us.apache.org/repos/asf/hive/blob/2542f5cc/service/src/gen/thrift/gen-cpp/hive_service_constants.cpp
    ----------------------------------------------------------------------
    diff --git a/service/src/gen/thrift/gen-cpp/hive_service_constants.cpp b/service/src/gen/thrift/gen-cpp/hive_service_constants.cpp
    deleted file mode 100644
    index e2bbe71..0000000
    --- a/service/src/gen/thrift/gen-cpp/hive_service_constants.cpp
    +++ /dev/null
    @@ -1,17 +0,0 @@
    -/**
    - * Autogenerated by Thrift Compiler (0.9.3)
    - *
    - * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
    - * @generated
    - */
    -#include "hive_service_constants.h"
    -
    -namespace Apache { namespace Hadoop { namespace Hive {
    -
    -const hive_serviceConstants g_hive_service_constants;
    -
    -hive_serviceConstants::hive_serviceConstants() {
    -}
    -
    -}}} // namespace
    -

    http://git-wip-us.apache.org/repos/asf/hive/blob/2542f5cc/service/src/gen/thrift/gen-cpp/hive_service_constants.h
    ----------------------------------------------------------------------
    diff --git a/service/src/gen/thrift/gen-cpp/hive_service_constants.h b/service/src/gen/thrift/gen-cpp/hive_service_constants.h
    deleted file mode 100644
    index e0887f4..0000000
    --- a/service/src/gen/thrift/gen-cpp/hive_service_constants.h
    +++ /dev/null
    @@ -1,24 +0,0 @@
    -/**
    - * Autogenerated by Thrift Compiler (0.9.3)
    - *
    - * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
    - * @generated
    - */
    -#ifndef hive_service_CONSTANTS_H
    -#define hive_service_CONSTANTS_H
    -
    -#include "hive_service_types.h"
    -
    -namespace Apache { namespace Hadoop { namespace Hive {
    -
    -class hive_serviceConstants {
    - public:
    - hive_serviceConstants();
    -
    -};
    -
    -extern const hive_serviceConstants g_hive_service_constants;
    -
    -}}} // namespace
    -
    -#endif

    http://git-wip-us.apache.org/repos/asf/hive/blob/2542f5cc/service/src/gen/thrift/gen-cpp/hive_service_types.cpp
    ----------------------------------------------------------------------
    diff --git a/service/src/gen/thrift/gen-cpp/hive_service_types.cpp b/service/src/gen/thrift/gen-cpp/hive_service_types.cpp
    deleted file mode 100644
    index 9ddf7c1..0000000
    --- a/service/src/gen/thrift/gen-cpp/hive_service_types.cpp
    +++ /dev/null
    @@ -1,351 +0,0 @@
    -/**
    - * Autogenerated by Thrift Compiler (0.9.3)
    - *
    - * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
    - * @generated
    - */
    -#include "hive_service_types.h"
    -
    -#include <algorithm>
    -#include <ostream>
    -
    -#include <thrift/TToString.h>
    -
    -namespace Apache { namespace Hadoop { namespace Hive {
    -
    -int _kJobTrackerStateValues[] = {
    - JobTrackerState::INITIALIZING,
    - JobTrackerState::RUNNING
    -};
    -const char* _kJobTrackerStateNames[] = {
    - "INITIALIZING",
    - "RUNNING"
    -};
    -const std::map<int, const char*> _JobTrackerState_VALUES_TO_NAMES(::apache::thrift::TEnumIterator(2, _kJobTrackerStateValues, _kJobTrackerStateNames), ::apache::thrift::TEnumIterator(-1, NULL, NULL));
    -
    -
    -HiveClusterStatus::~HiveClusterStatus() throw() {
    -}
    -
    -
    -void HiveClusterStatus::__set_taskTrackers(const int32_t val) {
    - this->taskTrackers = val;
    -}
    -
    -void HiveClusterStatus::__set_mapTasks(const int32_t val) {
    - this->mapTasks = val;
    -}
    -
    -void HiveClusterStatus::__set_reduceTasks(const int32_t val) {
    - this->reduceTasks = val;
    -}
    -
    -void HiveClusterStatus::__set_maxMapTasks(const int32_t val) {
    - this->maxMapTasks = val;
    -}
    -
    -void HiveClusterStatus::__set_maxReduceTasks(const int32_t val) {
    - this->maxReduceTasks = val;
    -}
    -
    -void HiveClusterStatus::__set_state(const JobTrackerState::type val) {
    - this->state = val;
    -}
    -
    -uint32_t HiveClusterStatus::read(::apache::thrift::protocol::TProtocol* iprot) {
    -
    - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot);
    - uint32_t xfer = 0;
    - std::string fname;
    - ::apache::thrift::protocol::TType ftype;
    - int16_t fid;
    -
    - xfer += iprot->readStructBegin(fname);
    -
    - using ::apache::thrift::protocol::TProtocolException;
    -
    -
    - while (true)
    - {
    - xfer += iprot->readFieldBegin(fname, ftype, fid);
    - if (ftype == ::apache::thrift::protocol::T_STOP) {
    - break;
    - }
    - switch (fid)
    - {
    - case 1:
    - if (ftype == ::apache::thrift::protocol::T_I32) {
    - xfer += iprot->readI32(this->taskTrackers);
    - this->__isset.taskTrackers = true;
    - } else {
    - xfer += iprot->skip(ftype);
    - }
    - break;
    - case 2:
    - if (ftype == ::apache::thrift::protocol::T_I32) {
    - xfer += iprot->readI32(this->mapTasks);
    - this->__isset.mapTasks = true;
    - } else {
    - xfer += iprot->skip(ftype);
    - }
    - break;
    - case 3:
    - if (ftype == ::apache::thrift::protocol::T_I32) {
    - xfer += iprot->readI32(this->reduceTasks);
    - this->__isset.reduceTasks = true;
    - } else {
    - xfer += iprot->skip(ftype);
    - }
    - break;
    - case 4:
    - if (ftype == ::apache::thrift::protocol::T_I32) {
    - xfer += iprot->readI32(this->maxMapTasks);
    - this->__isset.maxMapTasks = true;
    - } else {
    - xfer += iprot->skip(ftype);
    - }
    - break;
    - case 5:
    - if (ftype == ::apache::thrift::protocol::T_I32) {
    - xfer += iprot->readI32(this->maxReduceTasks);
    - this->__isset.maxReduceTasks = true;
    - } else {
    - xfer += iprot->skip(ftype);
    - }
    - break;
    - case 6:
    - if (ftype == ::apache::thrift::protocol::T_I32) {
    - int32_t ecast0;
    - xfer += iprot->readI32(ecast0);
    - this->state = (JobTrackerState::type)ecast0;
    - this->__isset.state = true;
    - } else {
    - xfer += iprot->skip(ftype);
    - }
    - break;
    - default:
    - xfer += iprot->skip(ftype);
    - break;
    - }
    - xfer += iprot->readFieldEnd();
    - }
    -
    - xfer += iprot->readStructEnd();
    -
    - return xfer;
    -}
    -
    -uint32_t HiveClusterStatus::write(::apache::thrift::protocol::TProtocol* oprot) const {
    - uint32_t xfer = 0;
    - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot);
    - xfer += oprot->writeStructBegin("HiveClusterStatus");
    -
    - xfer += oprot->writeFieldBegin("taskTrackers", ::apache::thrift::protocol::T_I32, 1);
    - xfer += oprot->writeI32(this->taskTrackers);
    - xfer += oprot->writeFieldEnd();
    -
    - xfer += oprot->writeFieldBegin("mapTasks", ::apache::thrift::protocol::T_I32, 2);
    - xfer += oprot->writeI32(this->mapTasks);
    - xfer += oprot->writeFieldEnd();
    -
    - xfer += oprot->writeFieldBegin("reduceTasks", ::apache::thrift::protocol::T_I32, 3);
    - xfer += oprot->writeI32(this->reduceTasks);
    - xfer += oprot->writeFieldEnd();
    -
    - xfer += oprot->writeFieldBegin("maxMapTasks", ::apache::thrift::protocol::T_I32, 4);
    - xfer += oprot->writeI32(this->maxMapTasks);
    - xfer += oprot->writeFieldEnd();
    -
    - xfer += oprot->writeFieldBegin("maxReduceTasks", ::apache::thrift::protocol::T_I32, 5);
    - xfer += oprot->writeI32(this->maxReduceTasks);
    - xfer += oprot->writeFieldEnd();
    -
    - xfer += oprot->writeFieldBegin("state", ::apache::thrift::protocol::T_I32, 6);
    - xfer += oprot->writeI32((int32_t)this->state);
    - xfer += oprot->writeFieldEnd();
    -
    - xfer += oprot->writeFieldStop();
    - xfer += oprot->writeStructEnd();
    - return xfer;
    -}
    -
    -void swap(HiveClusterStatus &a, HiveClusterStatus &b) {
    - using ::std::swap;
    - swap(a.taskTrackers, b.taskTrackers);
    - swap(a.mapTasks, b.mapTasks);
    - swap(a.reduceTasks, b.reduceTasks);
    - swap(a.maxMapTasks, b.maxMapTasks);
    - swap(a.maxReduceTasks, b.maxReduceTasks);
    - swap(a.state, b.state);
    - swap(a.__isset, b.__isset);
    -}
    -
    -HiveClusterStatus::HiveClusterStatus(const HiveClusterStatus& other1) {
    - taskTrackers = other1.taskTrackers;
    - mapTasks = other1.mapTasks;
    - reduceTasks = other1.reduceTasks;
    - maxMapTasks = other1.maxMapTasks;
    - maxReduceTasks = other1.maxReduceTasks;
    - state = other1.state;
    - __isset = other1.__isset;
    -}
    -HiveClusterStatus& HiveClusterStatus::operator=(const HiveClusterStatus& other2) {
    - taskTrackers = other2.taskTrackers;
    - mapTasks = other2.mapTasks;
    - reduceTasks = other2.reduceTasks;
    - maxMapTasks = other2.maxMapTasks;
    - maxReduceTasks = other2.maxReduceTasks;
    - state = other2.state;
    - __isset = other2.__isset;
    - return *this;
    -}
    -void HiveClusterStatus::printTo(std::ostream& out) const {
    - using ::apache::thrift::to_string;
    - out << "HiveClusterStatus(";
    - out << "taskTrackers=" << to_string(taskTrackers);
    - out << ", " << "mapTasks=" << to_string(mapTasks);
    - out << ", " << "reduceTasks=" << to_string(reduceTasks);
    - out << ", " << "maxMapTasks=" << to_string(maxMapTasks);
    - out << ", " << "maxReduceTasks=" << to_string(maxReduceTasks);
    - out << ", " << "state=" << to_string(state);
    - out << ")";
    -}
    -
    -
    -HiveServerException::~HiveServerException() throw() {
    -}
    -
    -
    -void HiveServerException::__set_message(const std::string& val) {
    - this->message = val;
    -}
    -
    -void HiveServerException::__set_errorCode(const int32_t val) {
    - this->errorCode = val;
    -}
    -
    -void HiveServerException::__set_SQLState(const std::string& val) {
    - this->SQLState = val;
    -}
    -
    -uint32_t HiveServerException::read(::apache::thrift::protocol::TProtocol* iprot) {
    -
    - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot);
    - uint32_t xfer = 0;
    - std::string fname;
    - ::apache::thrift::protocol::TType ftype;
    - int16_t fid;
    -
    - xfer += iprot->readStructBegin(fname);
    -
    - using ::apache::thrift::protocol::TProtocolException;
    -
    -
    - while (true)
    - {
    - xfer += iprot->readFieldBegin(fname, ftype, fid);
    - if (ftype == ::apache::thrift::protocol::T_STOP) {
    - break;
    - }
    - switch (fid)
    - {
    - case 1:
    - if (ftype == ::apache::thrift::protocol::T_STRING) {
    - xfer += iprot->readString(this->message);
    - this->__isset.message = true;
    - } else {
    - xfer += iprot->skip(ftype);
    - }
    - break;
    - case 2:
    - if (ftype == ::apache::thrift::protocol::T_I32) {
    - xfer += iprot->readI32(this->errorCode);
    - this->__isset.errorCode = true;
    - } else {
    - xfer += iprot->skip(ftype);
    - }
    - break;
    - case 3:
    - if (ftype == ::apache::thrift::protocol::T_STRING) {
    - xfer += iprot->readString(this->SQLState);
    - this->__isset.SQLState = true;
    - } else {
    - xfer += iprot->skip(ftype);
    - }
    - break;
    - default:
    - xfer += iprot->skip(ftype);
    - break;
    - }
    - xfer += iprot->readFieldEnd();
    - }
    -
    - xfer += iprot->readStructEnd();
    -
    - return xfer;
    -}
    -
    -uint32_t HiveServerException::write(::apache::thrift::protocol::TProtocol* oprot) const {
    - uint32_t xfer = 0;
    - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot);
    - xfer += oprot->writeStructBegin("HiveServerException");
    -
    - xfer += oprot->writeFieldBegin("message", ::apache::thrift::protocol::T_STRING, 1);
    - xfer += oprot->writeString(this->message);
    - xfer += oprot->writeFieldEnd();
    -
    - xfer += oprot->writeFieldBegin("errorCode", ::apache::thrift::protocol::T_I32, 2);
    - xfer += oprot->writeI32(this->errorCode);
    - xfer += oprot->writeFieldEnd();
    -
    - xfer += oprot->writeFieldBegin("SQLState", ::apache::thrift::protocol::T_STRING, 3);
    - xfer += oprot->writeString(this->SQLState);
    - xfer += oprot->writeFieldEnd();
    -
    - xfer += oprot->writeFieldStop();
    - xfer += oprot->writeStructEnd();
    - return xfer;
    -}
    -
    -void swap(HiveServerException &a, HiveServerException &b) {
    - using ::std::swap;
    - swap(a.message, b.message);
    - swap(a.errorCode, b.errorCode);
    - swap(a.SQLState, b.SQLState);
    - swap(a.__isset, b.__isset);
    -}
    -
    -HiveServerException::HiveServerException(const HiveServerException& other3) : TException() {
    - message = other3.message;
    - errorCode = other3.errorCode;
    - SQLState = other3.SQLState;
    - __isset = other3.__isset;
    -}
    -HiveServerException& HiveServerException::operator=(const HiveServerException& other4) {
    - message = other4.message;
    - errorCode = other4.errorCode;
    - SQLState = other4.SQLState;
    - __isset = other4.__isset;
    - return *this;
    -}
    -void HiveServerException::printTo(std::ostream& out) const {
    - using ::apache::thrift::to_string;
    - out << "HiveServerException(";
    - out << "message=" << to_string(message);
    - out << ", " << "errorCode=" << to_string(errorCode);
    - out << ", " << "SQLState=" << to_string(SQLState);
    - out << ")";
    -}
    -
    -const char* HiveServerException::what() const throw() {
    - try {
    - std::stringstream ss;
    - ss << "TException - service has thrown: " << *this;
    - this->thriftTExceptionMessageHolder_ = ss.str();
    - return this->thriftTExceptionMessageHolder_.c_str();
    - } catch (const std::exception&) {
    - return "TException - service has thrown: HiveServerException";
    - }
    -}
    -
    -}}} // namespace

    http://git-wip-us.apache.org/repos/asf/hive/blob/2542f5cc/service/src/gen/thrift/gen-cpp/hive_service_types.h
    ----------------------------------------------------------------------
    diff --git a/service/src/gen/thrift/gen-cpp/hive_service_types.h b/service/src/gen/thrift/gen-cpp/hive_service_types.h
    deleted file mode 100644
    index 266f8ea..0000000
    --- a/service/src/gen/thrift/gen-cpp/hive_service_types.h
    +++ /dev/null
    @@ -1,176 +0,0 @@
    -/**
    - * Autogenerated by Thrift Compiler (0.9.3)
    - *
    - * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
    - * @generated
    - */
    -#ifndef hive_service_TYPES_H
    -#define hive_service_TYPES_H
    -
    -#include <iosfwd>
    -
    -#include <thrift/Thrift.h>
    -#include <thrift/TApplicationException.h>
    -#include <thrift/protocol/TProtocol.h>
    -#include <thrift/transport/TTransport.h>
    -
    -#include <thrift/cxxfunctional.h>
    -#include "fb303_types.h"
    -#include "hive_metastore_types.h"
    -#include "queryplan_types.h"
    -
    -
    -namespace Apache { namespace Hadoop { namespace Hive {
    -
    -struct JobTrackerState {
    - enum type {
    - INITIALIZING = 1,
    - RUNNING = 2
    - };
    -};
    -
    -extern const std::map<int, const char*> _JobTrackerState_VALUES_TO_NAMES;
    -
    -class HiveClusterStatus;
    -
    -class HiveServerException;
    -
    -typedef struct _HiveClusterStatus__isset {
    - _HiveClusterStatus__isset() : taskTrackers(false), mapTasks(false), reduceTasks(false), maxMapTasks(false), maxReduceTasks(false), state(false) {}
    - bool taskTrackers :1;
    - bool mapTasks :1;
    - bool reduceTasks :1;
    - bool maxMapTasks :1;
    - bool maxReduceTasks :1;
    - bool state :1;
    -} _HiveClusterStatus__isset;
    -
    -class HiveClusterStatus {
    - public:
    -
    - HiveClusterStatus(const HiveClusterStatus&);
    - HiveClusterStatus& operator=(const HiveClusterStatus&);
    - HiveClusterStatus() : taskTrackers(0), mapTasks(0), reduceTasks(0), maxMapTasks(0), maxReduceTasks(0), state((JobTrackerState::type)0) {
    - }
    -
    - virtual ~HiveClusterStatus() throw();
    - int32_t taskTrackers;
    - int32_t mapTasks;
    - int32_t reduceTasks;
    - int32_t maxMapTasks;
    - int32_t maxReduceTasks;
    - JobTrackerState::type state;
    -
    - _HiveClusterStatus__isset __isset;
    -
    - void __set_taskTrackers(const int32_t val);
    -
    - void __set_mapTasks(const int32_t val);
    -
    - void __set_reduceTasks(const int32_t val);
    -
    - void __set_maxMapTasks(const int32_t val);
    -
    - void __set_maxReduceTasks(const int32_t val);
    -
    - void __set_state(const JobTrackerState::type val);
    -
    - bool operator == (const HiveClusterStatus & rhs) const
    - {
    - if (!(taskTrackers == rhs.taskTrackers))
    - return false;
    - if (!(mapTasks == rhs.mapTasks))
    - return false;
    - if (!(reduceTasks == rhs.reduceTasks))
    - return false;
    - if (!(maxMapTasks == rhs.maxMapTasks))
    - return false;
    - if (!(maxReduceTasks == rhs.maxReduceTasks))
    - return false;
    - if (!(state == rhs.state))
    - return false;
    - return true;
    - }
    - bool operator != (const HiveClusterStatus &rhs) const {
    - return !(*this == rhs);
    - }
    -
    - bool operator < (const HiveClusterStatus & ) const;
    -
    - uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
    - uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
    -
    - virtual void printTo(std::ostream& out) const;
    -};
    -
    -void swap(HiveClusterStatus &a, HiveClusterStatus &b);
    -
    -inline std::ostream& operator<<(std::ostream& out, const HiveClusterStatus& obj)
    -{
    - obj.printTo(out);
    - return out;
    -}
    -
    -typedef struct _HiveServerException__isset {
    - _HiveServerException__isset() : message(false), errorCode(false), SQLState(false) {}
    - bool message :1;
    - bool errorCode :1;
    - bool SQLState :1;
    -} _HiveServerException__isset;
    -
    -class HiveServerException : public ::apache::thrift::TException {
    - public:
    -
    - HiveServerException(const HiveServerException&);
    - HiveServerException& operator=(const HiveServerException&);
    - HiveServerException() : message(), errorCode(0), SQLState() {
    - }
    -
    - virtual ~HiveServerException() throw();
    - std::string message;
    - int32_t errorCode;
    - std::string SQLState;
    -
    - _HiveServerException__isset __isset;
    -
    - void __set_message(const std::string& val);
    -
    - void __set_errorCode(const int32_t val);
    -
    - void __set_SQLState(const std::string& val);
    -
    - bool operator == (const HiveServerException & rhs) const
    - {
    - if (!(message == rhs.message))
    - return false;
    - if (!(errorCode == rhs.errorCode))
    - return false;
    - if (!(SQLState == rhs.SQLState))
    - return false;
    - return true;
    - }
    - bool operator != (const HiveServerException &rhs) const {
    - return !(*this == rhs);
    - }
    -
    - bool operator < (const HiveServerException & ) const;
    -
    - uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
    - uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
    -
    - virtual void printTo(std::ostream& out) const;
    - mutable std::string thriftTExceptionMessageHolder_;
    - const char* what() const throw();
    -};
    -
    -void swap(HiveServerException &a, HiveServerException &b);
    -
    -inline std::ostream& operator<<(std::ostream& out, const HiveServerException& obj)
    -{
    - obj.printTo(out);
    - return out;
    -}
    -
    -}}} // namespace
    -
    -#endif

    http://git-wip-us.apache.org/repos/asf/hive/blob/2542f5cc/service/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/service/HiveClusterStatus.java
    ----------------------------------------------------------------------
    diff --git a/service/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/service/HiveClusterStatus.java b/service/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/service/HiveClusterStatus.java
    deleted file mode 100644
    index ad89867..0000000
    --- a/service/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/service/HiveClusterStatus.java
    +++ /dev/null
    @@ -1,901 +0,0 @@
    -/**
    - * Autogenerated by Thrift Compiler (0.9.3)
    - *
    - * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
    - * @generated
    - */
    -package org.apache.hadoop.hive.service;
    -
    -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"})
    -@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)")
    -public class HiveClusterStatus implements org.apache.thrift.TBase<HiveClusterStatus, HiveClusterStatus._Fields>, java.io.Serializable, Cloneable, Comparable<HiveClusterStatus> {
    - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("HiveClusterStatus");
    -
    - private static final org.apache.thrift.protocol.TField TASK_TRACKERS_FIELD_DESC = new org.apache.thrift.protocol.TField("taskTrackers", org.apache.thrift.protocol.TType.I32, (short)1);
    - private static final org.apache.thrift.protocol.TField MAP_TASKS_FIELD_DESC = new org.apache.thrift.protocol.TField("mapTasks", org.apache.thrift.protocol.TType.I32, (short)2);
    - private static final org.apache.thrift.protocol.TField REDUCE_TASKS_FIELD_DESC = new org.apache.thrift.protocol.TField("reduceTasks", org.apache.thrift.protocol.TType.I32, (short)3);
    - private static final org.apache.thrift.protocol.TField MAX_MAP_TASKS_FIELD_DESC = new org.apache.thrift.protocol.TField("maxMapTasks", org.apache.thrift.protocol.TType.I32, (short)4);
    - private static final org.apache.thrift.protocol.TField MAX_REDUCE_TASKS_FIELD_DESC = new org.apache.thrift.protocol.TField("maxReduceTasks", org.apache.thrift.protocol.TType.I32, (short)5);
    - private static final org.apache.thrift.protocol.TField STATE_FIELD_DESC = new org.apache.thrift.protocol.TField("state", org.apache.thrift.protocol.TType.I32, (short)6);
    -
    - private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
    - static {
    - schemes.put(StandardScheme.class, new HiveClusterStatusStandardSchemeFactory());
    - schemes.put(TupleScheme.class, new HiveClusterStatusTupleSchemeFactory());
    - }
    -
    - private int taskTrackers; // required
    - private int mapTasks; // required
    - private int reduceTasks; // required
    - private int maxMapTasks; // required
    - private int maxReduceTasks; // required
    - private JobTrackerState state; // required
    -
    - /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
    - public enum _Fields implements org.apache.thrift.TFieldIdEnum {
    - TASK_TRACKERS((short)1, "taskTrackers"),
    - MAP_TASKS((short)2, "mapTasks"),
    - REDUCE_TASKS((short)3, "reduceTasks"),
    - MAX_MAP_TASKS((short)4, "maxMapTasks"),
    - MAX_REDUCE_TASKS((short)5, "maxReduceTasks"),
    - /**
    - *
    - * @see JobTrackerState
    - */
    - STATE((short)6, "state");
    -
    - private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
    -
    - static {
    - for (_Fields field : EnumSet.allOf(_Fields.class)) {
    - byName.put(field.getFieldName(), field);
    - }
    - }
    -
    - /**
    - * Find the _Fields constant that matches fieldId, or null if its not found.
    - */
    - public static _Fields findByThriftId(int fieldId) {
    - switch(fieldId) {
    - case 1: // TASK_TRACKERS
    - return TASK_TRACKERS;
    - case 2: // MAP_TASKS
    - return MAP_TASKS;
    - case 3: // REDUCE_TASKS
    - return REDUCE_TASKS;
    - case 4: // MAX_MAP_TASKS
    - return MAX_MAP_TASKS;
    - case 5: // MAX_REDUCE_TASKS
    - return MAX_REDUCE_TASKS;
    - case 6: // STATE
    - return STATE;
    - default:
    - return null;
    - }
    - }
    -
    - /**
    - * Find the _Fields constant that matches fieldId, throwing an exception
    - * if it is not found.
    - */
    - public static _Fields findByThriftIdOrThrow(int fieldId) {
    - _Fields fields = findByThriftId(fieldId);
    - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
    - return fields;
    - }
    -
    - /**
    - * Find the _Fields constant that matches name, or null if its not found.
    - */
    - public static _Fields findByName(String name) {
    - return byName.get(name);
    - }
    -
    - private final short _thriftId;
    - private final String _fieldName;
    -
    - _Fields(short thriftId, String fieldName) {
    - _thriftId = thriftId;
    - _fieldName = fieldName;
    - }
    -
    - public short getThriftFieldId() {
    - return _thriftId;
    - }
    -
    - public String getFieldName() {
    - return _fieldName;
    - }
    - }
    -
    - // isset id assignments
    - private static final int __TASKTRACKERS_ISSET_ID = 0;
    - private static final int __MAPTASKS_ISSET_ID = 1;
    - private static final int __REDUCETASKS_ISSET_ID = 2;
    - private static final int __MAXMAPTASKS_ISSET_ID = 3;
    - private static final int __MAXREDUCETASKS_ISSET_ID = 4;
    - private byte __isset_bitfield = 0;
    - public static final 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);
    - tmpMap.put(_Fields.TASK_TRACKERS, new org.apache.thrift.meta_data.FieldMetaData("taskTrackers", org.apache.thrift.TFieldRequirementType.DEFAULT,
    - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
    - tmpMap.put(_Fields.MAP_TASKS, new org.apache.thrift.meta_data.FieldMetaData("mapTasks", org.apache.thrift.TFieldRequirementType.DEFAULT,
    - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
    - tmpMap.put(_Fields.REDUCE_TASKS, new org.apache.thrift.meta_data.FieldMetaData("reduceTasks", org.apache.thrift.TFieldRequirementType.DEFAULT,
    - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
    - tmpMap.put(_Fields.MAX_MAP_TASKS, new org.apache.thrift.meta_data.FieldMetaData("maxMapTasks", org.apache.thrift.TFieldRequirementType.DEFAULT,
    - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
    - tmpMap.put(_Fields.MAX_REDUCE_TASKS, new org.apache.thrift.meta_data.FieldMetaData("maxReduceTasks", org.apache.thrift.TFieldRequirementType.DEFAULT,
    - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
    - tmpMap.put(_Fields.STATE, new org.apache.thrift.meta_data.FieldMetaData("state", org.apache.thrift.TFieldRequirementType.DEFAULT,
    - new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, JobTrackerState.class)));
    - metaDataMap = Collections.unmodifiableMap(tmpMap);
    - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(HiveClusterStatus.class, metaDataMap);
    - }
    -
    - public HiveClusterStatus() {
    - }
    -
    - public HiveClusterStatus(
    - int taskTrackers,
    - int mapTasks,
    - int reduceTasks,
    - int maxMapTasks,
    - int maxReduceTasks,
    - JobTrackerState state)
    - {
    - this();
    - this.taskTrackers = taskTrackers;
    - setTaskTrackersIsSet(true);
    - this.mapTasks = mapTasks;
    - setMapTasksIsSet(true);
    - this.reduceTasks = reduceTasks;
    - setReduceTasksIsSet(true);
    - this.maxMapTasks = maxMapTasks;
    - setMaxMapTasksIsSet(true);
    - this.maxReduceTasks = maxReduceTasks;
    - setMaxReduceTasksIsSet(true);
    - this.state = state;
    - }
    -
    - /**
    - * Performs a deep copy on <i>other</i>.
    - */
    - public HiveClusterStatus(HiveClusterStatus other) {
    - __isset_bitfield = other.__isset_bitfield;
    - this.taskTrackers = other.taskTrackers;
    - this.mapTasks = other.mapTasks;
    - this.reduceTasks = other.reduceTasks;
    - this.maxMapTasks = other.maxMapTasks;
    - this.maxReduceTasks = other.maxReduceTasks;
    - if (other.isSetState()) {
    - this.state = other.state;
    - }
    - }
    -
    - public HiveClusterStatus deepCopy() {
    - return new HiveClusterStatus(this);
    - }
    -
    - @Override
    - public void clear() {
    - setTaskTrackersIsSet(false);
    - this.taskTrackers = 0;
    - setMapTasksIsSet(false);
    - this.mapTasks = 0;
    - setReduceTasksIsSet(false);
    - this.reduceTasks = 0;
    - setMaxMapTasksIsSet(false);
    - this.maxMapTasks = 0;
    - setMaxReduceTasksIsSet(false);
    - this.maxReduceTasks = 0;
    - this.state = null;
    - }
    -
    - public int getTaskTrackers() {
    - return this.taskTrackers;
    - }
    -
    - public void setTaskTrackers(int taskTrackers) {
    - this.taskTrackers = taskTrackers;
    - setTaskTrackersIsSet(true);
    - }
    -
    - public void unsetTaskTrackers() {
    - __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __TASKTRACKERS_ISSET_ID);
    - }
    -
    - /** Returns true if field taskTrackers is set (has been assigned a value) and false otherwise */
    - public boolean isSetTaskTrackers() {
    - return EncodingUtils.testBit(__isset_bitfield, __TASKTRACKERS_ISSET_ID);
    - }
    -
    - public void setTaskTrackersIsSet(boolean value) {
    - __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __TASKTRACKERS_ISSET_ID, value);
    - }
    -
    - public int getMapTasks() {
    - return this.mapTasks;
    - }
    -
    - public void setMapTasks(int mapTasks) {
    - this.mapTasks = mapTasks;
    - setMapTasksIsSet(true);
    - }
    -
    - public void unsetMapTasks() {
    - __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __MAPTASKS_ISSET_ID);
    - }
    -
    - /** Returns true if field mapTasks is set (has been assigned a value) and false otherwise */
    - public boolean isSetMapTasks() {
    - return EncodingUtils.testBit(__isset_bitfield, __MAPTASKS_ISSET_ID);
    - }
    -
    - public void setMapTasksIsSet(boolean value) {
    - __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __MAPTASKS_ISSET_ID, value);
    - }
    -
    - public int getReduceTasks() {
    - return this.reduceTasks;
    - }
    -
    - public void setReduceTasks(int reduceTasks) {
    - this.reduceTasks = reduceTasks;
    - setReduceTasksIsSet(true);
    - }
    -
    - public void unsetReduceTasks() {
    - __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __REDUCETASKS_ISSET_ID);
    - }
    -
    - /** Returns true if field reduceTasks is set (has been assigned a value) and false otherwise */
    - public boolean isSetReduceTasks() {
    - return EncodingUtils.testBit(__isset_bitfield, __REDUCETASKS_ISSET_ID);
    - }
    -
    - public void setReduceTasksIsSet(boolean value) {
    - __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __REDUCETASKS_ISSET_ID, value);
    - }
    -
    - public int getMaxMapTasks() {
    - return this.maxMapTasks;
    - }
    -
    - public void setMaxMapTasks(int maxMapTasks) {
    - this.maxMapTasks = maxMapTasks;
    - setMaxMapTasksIsSet(true);
    - }
    -
    - public void unsetMaxMapTasks() {
    - __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __MAXMAPTASKS_ISSET_ID);
    - }
    -
    - /** Returns true if field maxMapTasks is set (has been assigned a value) and false otherwise */
    - public boolean isSetMaxMapTasks() {
    - return EncodingUtils.testBit(__isset_bitfield, __MAXMAPTASKS_ISSET_ID);
    - }
    -
    - public void setMaxMapTasksIsSet(boolean value) {
    - __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __MAXMAPTASKS_ISSET_ID, value);
    - }
    -
    - public int getMaxReduceTasks() {
    - return this.maxReduceTasks;
    - }
    -
    - public void setMaxReduceTasks(int maxReduceTasks) {
    - this.maxReduceTasks = maxReduceTasks;
    - setMaxReduceTasksIsSet(true);
    - }
    -
    - public void unsetMaxReduceTasks() {
    - __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __MAXREDUCETASKS_ISSET_ID);
    - }
    -
    - /** Returns true if field maxReduceTasks is set (has been assigned a value) and false otherwise */
    - public boolean isSetMaxReduceTasks() {
    - return EncodingUtils.testBit(__isset_bitfield, __MAXREDUCETASKS_ISSET_ID);
    - }
    -
    - public void setMaxReduceTasksIsSet(boolean value) {
    - __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __MAXREDUCETASKS_ISSET_ID, value);
    - }
    -
    - /**
    - *
    - * @see JobTrackerState
    - */
    - public JobTrackerState getState() {
    - return this.state;
    - }
    -
    - /**
    - *
    - * @see JobTrackerState
    - */
    - public void setState(JobTrackerState state) {
    - this.state = state;
    - }
    -
    - public void unsetState() {
    - this.state = null;
    - }
    -
    - /** Returns true if field state is set (has been assigned a value) and false otherwise */
    - public boolean isSetState() {
    - return this.state != null;
    - }
    -
    - public void setStateIsSet(boolean value) {
    - if (!value) {
    - this.state = null;
    - }
    - }
    -
    - public void setFieldValue(_Fields field, Object value) {
    - switch (field) {
    - case TASK_TRACKERS:
    - if (value == null) {
    - unsetTaskTrackers();
    - } else {
    - setTaskTrackers((Integer)value);
    - }
    - break;
    -
    - case MAP_TASKS:
    - if (value == null) {
    - unsetMapTasks();
    - } else {
    - setMapTasks((Integer)value);
    - }
    - break;
    -
    - case REDUCE_TASKS:
    - if (value == null) {
    - unsetReduceTasks();
    - } else {
    - setReduceTasks((Integer)value);
    - }
    - break;
    -
    - case MAX_MAP_TASKS:
    - if (value == null) {
    - unsetMaxMapTasks();
    - } else {
    - setMaxMapTasks((Integer)value);
    - }
    - break;
    -
    - case MAX_REDUCE_TASKS:
    - if (value == null) {
    - unsetMaxReduceTasks();
    - } else {
    - setMaxReduceTasks((Integer)value);
    - }
    - break;
    -
    - case STATE:
    - if (value == null) {
    - unsetState();
    - } else {
    - setState((JobTrackerState)value);
    - }
    - break;
    -
    - }
    - }
    -
    - public Object getFieldValue(_Fields field) {
    - switch (field) {
    - case TASK_TRACKERS:
    - return getTaskTrackers();
    -
    - case MAP_TASKS:
    - return getMapTasks();
    -
    - case REDUCE_TASKS:
    - return getReduceTasks();
    -
    - case MAX_MAP_TASKS:
    - return getMaxMapTasks();
    -
    - case MAX_REDUCE_TASKS:
    - return getMaxReduceTasks();
    -
    - case STATE:
    - return getState();
    -
    - }
    - throw new IllegalStateException();
    - }
    -
    - /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
    - public boolean isSet(_Fields field) {
    - if (field == null) {
    - throw new IllegalArgumentException();
    - }
    -
    - switch (field) {
    - case TASK_TRACKERS:
    - return isSetTaskTrackers();
    - case MAP_TASKS:
    - return isSetMapTasks();
    - case REDUCE_TASKS:
    - return isSetReduceTasks();
    - case MAX_MAP_TASKS:
    - return isSetMaxMapTasks();
    - case MAX_REDUCE_TASKS:
    - return isSetMaxReduceTasks();
    - case STATE:
    - return isSetState();
    - }
    - throw new IllegalStateException();
    - }
    -
    - @Override
    - public boolean equals(Object that) {
    - if (that == null)
    - return false;
    - if (that instanceof HiveClusterStatus)
    - return this.equals((HiveClusterStatus)that);
    - return false;
    - }
    -
    - public boolean equals(HiveClusterStatus that) {
    - if (that == null)
    - return false;
    -
    - boolean this_present_taskTrackers = true;
    - boolean that_present_taskTrackers = true;
    - if (this_present_taskTrackers || that_present_taskTrackers) {
    - if (!(this_present_taskTrackers && that_present_taskTrackers))
    - return false;
    - if (this.taskTrackers != that.taskTrackers)
    - return false;
    - }
    -
    - boolean this_present_mapTasks = true;
    - boolean that_present_mapTasks = true;
    - if (this_present_mapTasks || that_present_mapTasks) {
    - if (!(this_present_mapTasks && that_present_mapTasks))
    - return false;
    - if (this.mapTasks != that.mapTasks)
    - return false;
    - }
    -
    - boolean this_present_reduceTasks = true;
    - boolean that_present_reduceTasks = true;
    - if (this_present_reduceTasks || that_present_reduceTasks) {
    - if (!(this_present_reduceTasks && that_present_reduceTasks))
    - return false;
    - if (this.reduceTasks != that.reduceTasks)
    - return false;
    - }
    -
    - boolean this_present_maxMapTasks = true;
    - boolean that_present_maxMapTasks = true;
    - if (this_present_maxMapTasks || that_present_maxMapTasks) {
    - if (!(this_present_maxMapTasks && that_present_maxMapTasks))
    - return false;
    - if (this.maxMapTasks != that.maxMapTasks)
    - return false;
    - }
    -
    - boolean this_present_maxReduceTasks = true;
    - boolean that_present_maxReduceTasks = true;
    - if (this_present_maxReduceTasks || that_present_maxReduceTasks) {
    - if (!(this_present_maxReduceTasks && that_present_maxReduceTasks))
    - return false;
    - if (this.maxReduceTasks != that.maxReduceTasks)
    - return false;
    - }
    -
    - boolean this_present_state = true && this.isSetState();
    - boolean that_present_state = true && that.isSetState();
    - if (this_present_state || that_present_state) {
    - if (!(this_present_state && that_present_state))
    - return false;
    - if (!this.state.equals(that.state))
    - return false;
    - }
    -
    - return true;
    - }
    -
    - @Override
    - public int hashCode() {
    - List<Object> list = new ArrayList<Object>();
    -
    - boolean present_taskTrackers = true;
    - list.add(present_taskTrackers);
    - if (present_taskTrackers)
    - list.add(taskTrackers);
    -
    - boolean present_mapTasks = true;
    - list.add(present_mapTasks);
    - if (present_mapTasks)
    - list.add(mapTasks);
    -
    - boolean present_reduceTasks = true;
    - list.add(present_reduceTasks);
    - if (present_reduceTasks)
    - list.add(reduceTasks);
    -
    - boolean present_maxMapTasks = true;
    - list.add(present_maxMapTasks);
    - if (present_maxMapTasks)
    - list.add(maxMapTasks);
    -
    - boolean present_maxReduceTasks = true;
    - list.add(present_maxReduceTasks);
    - if (present_maxReduceTasks)
    - list.add(maxReduceTasks);
    -
    - boolean present_state = true && (isSetState());
    - list.add(present_state);
    - if (present_state)
    - list.add(state.getValue());
    -
    - return list.hashCode();
    - }
    -
    - @Override
    - public int compareTo(HiveClusterStatus other) {
    - if (!getClass().equals(other.getClass())) {
    - return getClass().getName().compareTo(other.getClass().getName());
    - }
    -
    - int lastComparison = 0;
    -
    - lastComparison = Boolean.valueOf(isSetTaskTrackers()).compareTo(other.isSetTaskTrackers());
    - if (lastComparison != 0) {
    - return lastComparison;
    - }
    - if (isSetTaskTrackers()) {
    - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.taskTrackers, other.taskTrackers);
    - if (lastComparison != 0) {
    - return lastComparison;
    - }
    - }
    - lastComparison = Boolean.valueOf(isSetMapTasks()).compareTo(other.isSetMapTasks());
    - if (lastComparison != 0) {
    - return lastComparison;
    - }
    - if (isSetMapTasks()) {
    - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.mapTasks, other.mapTasks);
    - if (lastComparison != 0) {
    - return lastComparison;
    - }
    - }
    - lastComparison = Boolean.valueOf(isSetReduceTasks()).compareTo(other.isSetReduceTasks());
    - if (lastComparison != 0) {
    - return lastComparison;
    - }
    - if (isSetReduceTasks()) {
    - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.reduceTasks, other.reduceTasks);
    - if (lastComparison != 0) {
    - return lastComparison;
    - }
    - }
    - lastComparison = Boolean.valueOf(isSetMaxMapTasks()).compareTo(other.isSetMaxMapTasks());
    - if (lastComparison != 0) {
    - return lastComparison;
    - }
    - if (isSetMaxMapTasks()) {
    - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.maxMapTasks, other.maxMapTasks);
    - if (lastComparison != 0) {
    - return lastComparison;
    - }
    - }
    - lastComparison = Boolean.valueOf(isSetMaxReduceTasks()).compareTo(other.isSetMaxReduceTasks());
    - if (lastComparison != 0) {
    - return lastComparison;
    - }
    - if (isSetMaxReduceTasks()) {
    - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.maxReduceTasks, other.maxReduceTasks);
    - if (lastComparison != 0) {
    - return lastComparison;
    - }
    - }
    - lastComparison = Boolean.valueOf(isSetState()).compareTo(other.isSetState());
    - if (lastComparison != 0) {
    - return lastComparison;
    - }
    - if (isSetState()) {
    - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.state, other.state);
    - if (lastComparison != 0) {
    - return lastComparison;
    - }
    - }
    - return 0;
    - }
    -
    - public _Fields fieldForId(int fieldId) {
    - return _Fields.findByThriftId(fieldId);
    - }
    -
    - public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
    - schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
    - }
    -
    - public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
    - schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
    - }
    -
    - @Override
    - public String toString() {
    - StringBuilder sb = new StringBuilder("HiveClusterStatus(");
    - boolean first = true;
    -
    - sb.append("taskTrackers:");
    - sb.append(this.taskTrackers);
    - first = false;
    - if (!first) sb.append(", ");
    - sb.append("mapTasks:");
    - sb.append(this.mapTasks);
    - first = false;
    - if (!first) sb.append(", ");
    - sb.append("reduceTasks:");
    - sb.append(this.reduceTasks);
    - first = false;
    - if (!first) sb.append(", ");
    - sb.append("maxMapTasks:");
    - sb.append(this.maxMapTasks);
    - first = false;
    - if (!first) sb.append(", ");
    - sb.append("maxReduceTasks:");
    - sb.append(this.maxReduceTasks);
    - first = false;
    - if (!first) sb.append(", ");
    - sb.append("state:");
    - if (this.state == null) {
    - sb.append("null");
    - } else {
    - sb.append(this.state);
    - }
    - first = false;
    - sb.append(")");
    - return sb.toString();
    - }
    -
    - public void validate() throws org.apache.thrift.TException {
    - // check for required fields
    - // check for sub-struct validity
    - }
    -
    - private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
    - try {
    - write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
    - } catch (org.apache.thrift.TException te) {
    - throw new java.io.IOException(te);
    - }
    - }
    -
    - private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
    - try {
    - // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
    - __isset_bitfield = 0;
    - read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
    - } catch (org.apache.thrift.TException te) {
    - throw new java.io.IOException(te);
    - }
    - }
    -
    - private static class HiveClusterStatusStandardSchemeFactory implements SchemeFactory {
    - public HiveClusterStatusStandardScheme getScheme() {
    - return new HiveClusterStatusStandardScheme();
    - }
    - }
    -
    - private static class HiveClusterStatusStandardScheme extends StandardScheme<HiveClusterStatus> {
    -
    - public void read(org.apache.thrift.protocol.TProtocol iprot, HiveClusterStatus struct) throws org.apache.thrift.TException {
    - org.apache.thrift.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: // TASK_TRACKERS
    - if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
    - struct.taskTrackers = iprot.readI32();
    - struct.setTaskTrackersIsSet(true);
    - } else {
    - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
    - }
    - break;
    - case 2: // MAP_TASKS
    - if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
    - struct.mapTasks = iprot.readI32();
    - struct.setMapTasksIsSet(true);
    - } else {
    - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
    - }
    - break;
    - case 3: // REDUCE_TASKS
    - if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
    - struct.reduceTasks = iprot.readI32();
    - struct.setReduceTasksIsSet(true);
    - } else {
    - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
    - }
    - break;
    - case 4: // MAX_MAP_TASKS
    - if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
    - struct.maxMapTasks = iprot.readI32();
    - struct.setMaxMapTasksIsSet(true);
    - } else {
    - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
    - }
    - break;
    - case 5: // MAX_REDUCE_TASKS
    - if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
    - struct.maxReduceTasks = iprot.readI32();
    - struct.setMaxReduceTasksIsSet(true);
    - } else {
    - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
    - }
    - break;
    - case 6: // STATE
    - if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
    - struct.state = org.apache.hadoop.hive.service.JobTrackerState.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);
    - }
    - iprot.readFieldEnd();
    - }
    - iprot.readStructEnd();
    - struct.validate();
    - }
    -
    - public void write(org.apache.thrift.protocol.TProtocol oprot, HiveClusterStatus struct) throws org.apache.thrift.TException {
    - struct.validate();
    -
    - oprot.writeStructBegin(STRUCT_DESC);
    - oprot.writeFieldBegin(TASK_TRACKERS_FIELD_DESC);
    - oprot.writeI32(struct.taskTrackers);
    - oprot.writeFieldEnd();
    - oprot.writeFieldBegin(MAP_TASKS_FIELD_DESC);
    - oprot.writeI32(struct.mapTasks);
    - oprot.writeFieldEnd();
    - oprot.writeFieldBegin(REDUCE_TASKS_FIELD_DESC);
    - oprot.writeI32(struct.reduceTasks);
    - oprot.writeFieldEnd();
    - oprot.writeFieldBegin(MAX_MAP_TASKS_FIELD_DESC);
    - oprot.writeI32(struct.maxMapTasks);
    - oprot.writeFieldEnd();
    - oprot.writeFieldBegin(MAX_REDUCE_TASKS_FIELD_DESC);
    - oprot.writeI32(struct.maxReduceTasks);
    - oprot.writeFieldEnd();
    - if (struct.state != null) {
    - oprot.writeFieldBegin(STATE_FIELD_DESC);
    - oprot.writeI32(struct.state.getValue());
    - oprot.writeFieldEnd();
    - }
    - oprot.writeFieldStop();
    - oprot.writeStructEnd();
    - }
    -
    - }
    -
    - private static class HiveClusterStatusTupleSchemeFactory implements SchemeFactory {
    - public HiveClusterStatusTupleScheme getScheme() {
    - return new HiveClusterStatusTupleScheme();
    - }
    - }
    -
    - private static class HiveClusterStatusTupleScheme extends TupleScheme<HiveClusterStatus> {
    -
    - @Override
    - public void write(org.apache.thrift.protocol.TProtocol prot, HiveClusterStatus struct) throws org.apache.thrift.TException {
    - TTupleProtocol oprot = (TTupleProtocol) prot;
    - BitSet optionals = new BitSet();
    - if (struct.isSetTaskTrackers()) {
    - optionals.set(0);
    - }
    - if (struct.isSetMapTasks()) {
    - optionals.set(1);
    - }
    - if (struct.isSetReduceTasks()) {
    - optionals.set(2);
    - }
    - if (struct.isSetMaxMapTasks()) {
    - optionals.set(3);
    - }
    - if (struct.isSetMaxReduceTasks()) {
    - optionals.set(4);
    - }
    - if (struct.isSetState()) {
    - optionals.set(5);
    - }
    - oprot.writeBitSet(optionals, 6);
    - if (struct.isSetTaskTrackers()) {
    - oprot.writeI32(struct.taskTrackers);
    - }
    - if (struct.isSetMapTasks()) {
    - oprot.writeI32(struct.mapTasks);
    - }
    - if (struct.isSetReduceTasks()) {
    - oprot.writeI32(struct.reduceTasks);
    - }
    - if (struct.isSetMaxMapTasks()) {
    - oprot.writeI32(struct.maxMapTasks);
    - }
    - if (struct.isSetMaxReduceTasks()) {
    - oprot.writeI32(struct.maxReduceTasks);
    - }
    - if (struct.isSetState()) {
    - oprot.writeI32(struct.state.getValue());
    - }
    - }
    -
    - @Override
    - public void read(org.apache.thrift.protocol.TProtocol prot, HiveClusterStatus struct) throws org.apache.thrift.TException {
    - TTupleProtocol iprot = (TTupleProtocol) prot;
    - BitSet incoming = iprot.readBitSet(6);
    - if (incoming.get(0)) {
    - struct.taskTrackers = iprot.readI32();
    - struct.setTaskTrackersIsSet(true);
    - }
    - if (incoming.get(1)) {
    - struct.mapTasks = iprot.readI32();
    - struct.setMapTasksIsSet(true);
    - }
    - if (incoming.get(2)) {
    - struct.reduceTasks = iprot.readI32();
    - struct.setReduceTasksIsSet(true);
    - }
    - if (incoming.get(3)) {
    - struct.maxMapTasks = iprot.readI32();
    - struct.setMaxMapTasksIsSet(true);
    - }
    - if (incoming.get(4)) {
    - struct.maxReduceTasks = iprot.readI32();
    - struct.setMaxReduceTasksIsSet(true);
    - }
    - if (incoming.get(5)) {
    - struct.state = org.apache.hadoop.hive.service.JobTrackerState.findByValue(iprot.readI32());
    - struct.setStateIsSet(true);
    - }
    - }
    - }
    -
    -}
    -
  • Vgumashta at Jan 8, 2016 at 12:19 am
    http://git-wip-us.apache.org/repos/asf/hive/blob/2542f5cc/service/src/gen/thrift/gen-cpp/TCLIService_server.skeleton.cpp
    ----------------------------------------------------------------------
    diff --git a/service/src/gen/thrift/gen-cpp/TCLIService_server.skeleton.cpp b/service/src/gen/thrift/gen-cpp/TCLIService_server.skeleton.cpp
    deleted file mode 100644
    index 988bb4c..0000000
    --- a/service/src/gen/thrift/gen-cpp/TCLIService_server.skeleton.cpp
    +++ /dev/null
    @@ -1,134 +0,0 @@
    -// This autogenerated skeleton file illustrates how to build a server.
    -// You should copy it to another filename to avoid overwriting it.
    -
    -#include "TCLIService.h"
    -#include <thrift/protocol/TBinaryProtocol.h>
    -#include <thrift/server/TSimpleServer.h>
    -#include <thrift/transport/TServerSocket.h>
    -#include <thrift/transport/TBufferTransports.h>
    -
    -using namespace ::apache::thrift;
    -using namespace ::apache::thrift::protocol;
    -using namespace ::apache::thrift::transport;
    -using namespace ::apache::thrift::server;
    -
    -using boost::shared_ptr;
    -
    -using namespace ::apache::hive::service::cli::thrift;
    -
    -class TCLIServiceHandler : virtual public TCLIServiceIf {
    - public:
    - TCLIServiceHandler() {
    - // Your initialization goes here
    - }
    -
    - void OpenSession(TOpenSessionResp& _return, const TOpenSessionReq& req) {
    - // Your implementation goes here
    - printf("OpenSession\n");
    - }
    -
    - void CloseSession(TCloseSessionResp& _return, const TCloseSessionReq& req) {
    - // Your implementation goes here
    - printf("CloseSession\n");
    - }
    -
    - void GetInfo(TGetInfoResp& _return, const TGetInfoReq& req) {
    - // Your implementation goes here
    - printf("GetInfo\n");
    - }
    -
    - void ExecuteStatement(TExecuteStatementResp& _return, const TExecuteStatementReq& req) {
    - // Your implementation goes here
    - printf("ExecuteStatement\n");
    - }
    -
    - void GetTypeInfo(TGetTypeInfoResp& _return, const TGetTypeInfoReq& req) {
    - // Your implementation goes here
    - printf("GetTypeInfo\n");
    - }
    -
    - void GetCatalogs(TGetCatalogsResp& _return, const TGetCatalogsReq& req) {
    - // Your implementation goes here
    - printf("GetCatalogs\n");
    - }
    -
    - void GetSchemas(TGetSchemasResp& _return, const TGetSchemasReq& req) {
    - // Your implementation goes here
    - printf("GetSchemas\n");
    - }
    -
    - void GetTables(TGetTablesResp& _return, const TGetTablesReq& req) {
    - // Your implementation goes here
    - printf("GetTables\n");
    - }
    -
    - void GetTableTypes(TGetTableTypesResp& _return, const TGetTableTypesReq& req) {
    - // Your implementation goes here
    - printf("GetTableTypes\n");
    - }
    -
    - void GetColumns(TGetColumnsResp& _return, const TGetColumnsReq& req) {
    - // Your implementation goes here
    - printf("GetColumns\n");
    - }
    -
    - void GetFunctions(TGetFunctionsResp& _return, const TGetFunctionsReq& req) {
    - // Your implementation goes here
    - printf("GetFunctions\n");
    - }
    -
    - void GetOperationStatus(TGetOperationStatusResp& _return, const TGetOperationStatusReq& req) {
    - // Your implementation goes here
    - printf("GetOperationStatus\n");
    - }
    -
    - void CancelOperation(TCancelOperationResp& _return, const TCancelOperationReq& req) {
    - // Your implementation goes here
    - printf("CancelOperation\n");
    - }
    -
    - void CloseOperation(TCloseOperationResp& _return, const TCloseOperationReq& req) {
    - // Your implementation goes here
    - printf("CloseOperation\n");
    - }
    -
    - void GetResultSetMetadata(TGetResultSetMetadataResp& _return, const TGetResultSetMetadataReq& req) {
    - // Your implementation goes here
    - printf("GetResultSetMetadata\n");
    - }
    -
    - void FetchResults(TFetchResultsResp& _return, const TFetchResultsReq& req) {
    - // Your implementation goes here
    - printf("FetchResults\n");
    - }
    -
    - void GetDelegationToken(TGetDelegationTokenResp& _return, const TGetDelegationTokenReq& req) {
    - // Your implementation goes here
    - printf("GetDelegationToken\n");
    - }
    -
    - void CancelDelegationToken(TCancelDelegationTokenResp& _return, const TCancelDelegationTokenReq& req) {
    - // Your implementation goes here
    - printf("CancelDelegationToken\n");
    - }
    -
    - void RenewDelegationToken(TRenewDelegationTokenResp& _return, const TRenewDelegationTokenReq& req) {
    - // Your implementation goes here
    - printf("RenewDelegationToken\n");
    - }
    -
    -};
    -
    -int main(int argc, char **argv) {
    - int port = 9090;
    - shared_ptr<TCLIServiceHandler> handler(new TCLIServiceHandler());
    - shared_ptr<TProcessor> processor(new TCLIServiceProcessor(handler));
    - shared_ptr<TServerTransport> serverTransport(new TServerSocket(port));
    - shared_ptr<TTransportFactory> transportFactory(new TBufferedTransportFactory());
    - shared_ptr<TProtocolFactory> protocolFactory(new TBinaryProtocolFactory());
    -
    - TSimpleServer server(processor, serverTransport, transportFactory, protocolFactory);
    - server.serve();
    - return 0;
    -}
    -
  • Vgumashta at Jan 8, 2016 at 12:19 am
    http://git-wip-us.apache.org/repos/asf/hive/blob/2542f5cc/service/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/service/ThriftHive.java
    ----------------------------------------------------------------------
    diff --git a/service/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/service/ThriftHive.java b/service/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/service/ThriftHive.java
    deleted file mode 100644
    index 934a8a5..0000000
    --- a/service/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/service/ThriftHive.java
    +++ /dev/null
    @@ -1,7784 +0,0 @@
    -/**
    - * Autogenerated by Thrift Compiler (0.9.3)
    - *
    - * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
    - * @generated
    - */
    -package org.apache.hadoop.hive.service;
    -
    -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"})
    -@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)")
    -public class ThriftHive {
    -
    - public interface Iface extends org.apache.hadoop.hive.metastore.api.ThriftHiveMetastore.Iface {
    -
    - public void execute(String query) throws HiveServerException, org.apache.thrift.TException;
    -
    - public String fetchOne() throws HiveServerException, org.apache.thrift.TException;
    -
    - public List<String> fetchN(int numRows) throws HiveServerException, org.apache.thrift.TException;
    -
    - public List<String> fetchAll() throws HiveServerException, org.apache.thrift.TException;
    -
    - public org.apache.hadoop.hive.metastore.api.Schema getSchema() throws HiveServerException, org.apache.thrift.TException;
    -
    - public org.apache.hadoop.hive.metastore.api.Schema getThriftSchema() throws HiveServerException, org.apache.thrift.TException;
    -
    - public HiveClusterStatus getClusterStatus() throws HiveServerException, org.apache.thrift.TException;
    -
    - public org.apache.hadoop.hive.ql.plan.api.QueryPlan getQueryPlan() throws HiveServerException, org.apache.thrift.TException;
    -
    - public void clean() throws org.apache.thrift.TException;
    -
    - }
    -
    - public interface AsyncIface extends org.apache.hadoop.hive.metastore.api.ThriftHiveMetastore .AsyncIface {
    -
    - public void execute(String query, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
    -
    - public void fetchOne(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
    -
    - public void fetchN(int numRows, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
    -
    - public void fetchAll(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
    -
    - public void getSchema(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
    -
    - public void getThriftSchema(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
    -
    - public void getClusterStatus(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
    -
    - public void getQueryPlan(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
    -
    - public void clean(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
    -
    - }
    -
    - public static class Client extends org.apache.hadoop.hive.metastore.api.ThriftHiveMetastore.Client implements Iface {
    - public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
    - public Factory() {}
    - public Client getClient(org.apache.thrift.protocol.TProtocol prot) {
    - return new Client(prot);
    - }
    - public Client getClient(org.apache.thrift.protocol.TProtocol iprot, org.apache.thrift.protocol.TProtocol oprot) {
    - return new Client(iprot, oprot);
    - }
    - }
    -
    - public Client(org.apache.thrift.protocol.TProtocol prot)
    - {
    - super(prot, prot);
    - }
    -
    - public Client(org.apache.thrift.protocol.TProtocol iprot, org.apache.thrift.protocol.TProtocol oprot) {
    - super(iprot, oprot);
    - }
    -
    - public void execute(String query) throws HiveServerException, org.apache.thrift.TException
    - {
    - send_execute(query);
    - recv_execute();
    - }
    -
    - public void send_execute(String query) throws org.apache.thrift.TException
    - {
    - execute_args args = new execute_args();
    - args.setQuery(query);
    - sendBase("execute", args);
    - }
    -
    - public void recv_execute() throws HiveServerException, org.apache.thrift.TException
    - {
    - execute_result result = new execute_result();
    - receiveBase(result, "execute");
    - if (result.ex != null) {
    - throw result.ex;
    - }
    - return;
    - }
    -
    - public String fetchOne() throws HiveServerException, org.apache.thrift.TException
    - {
    - send_fetchOne();
    - return recv_fetchOne();
    - }
    -
    - public void send_fetchOne() throws org.apache.thrift.TException
    - {
    - fetchOne_args args = new fetchOne_args();
    - sendBase("fetchOne", args);
    - }
    -
    - public String recv_fetchOne() throws HiveServerException, org.apache.thrift.TException
    - {
    - fetchOne_result result = new fetchOne_result();
    - receiveBase(result, "fetchOne");
    - if (result.isSetSuccess()) {
    - return result.success;
    - }
    - if (result.ex != null) {
    - throw result.ex;
    - }
    - throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "fetchOne failed: unknown result");
    - }
    -
    - public List<String> fetchN(int numRows) throws HiveServerException, org.apache.thrift.TException
    - {
    - send_fetchN(numRows);
    - return recv_fetchN();
    - }
    -
    - public void send_fetchN(int numRows) throws org.apache.thrift.TException
    - {
    - fetchN_args args = new fetchN_args();
    - args.setNumRows(numRows);
    - sendBase("fetchN", args);
    - }
    -
    - public List<String> recv_fetchN() throws HiveServerException, org.apache.thrift.TException
    - {
    - fetchN_result result = new fetchN_result();
    - receiveBase(result, "fetchN");
    - if (result.isSetSuccess()) {
    - return result.success;
    - }
    - if (result.ex != null) {
    - throw result.ex;
    - }
    - throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "fetchN failed: unknown result");
    - }
    -
    - public List<String> fetchAll() throws HiveServerException, org.apache.thrift.TException
    - {
    - send_fetchAll();
    - return recv_fetchAll();
    - }
    -
    - public void send_fetchAll() throws org.apache.thrift.TException
    - {
    - fetchAll_args args = new fetchAll_args();
    - sendBase("fetchAll", args);
    - }
    -
    - public List<String> recv_fetchAll() throws HiveServerException, org.apache.thrift.TException
    - {
    - fetchAll_result result = new fetchAll_result();
    - receiveBase(result, "fetchAll");
    - if (result.isSetSuccess()) {
    - return result.success;
    - }
    - if (result.ex != null) {
    - throw result.ex;
    - }
    - throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "fetchAll failed: unknown result");
    - }
    -
    - public org.apache.hadoop.hive.metastore.api.Schema getSchema() throws HiveServerException, org.apache.thrift.TException
    - {
    - send_getSchema();
    - return recv_getSchema();
    - }
    -
    - public void send_getSchema() throws org.apache.thrift.TException
    - {
    - getSchema_args args = new getSchema_args();
    - sendBase("getSchema", args);
    - }
    -
    - public org.apache.hadoop.hive.metastore.api.Schema recv_getSchema() throws HiveServerException, org.apache.thrift.TException
    - {
    - getSchema_result result = new getSchema_result();
    - receiveBase(result, "getSchema");
    - if (result.isSetSuccess()) {
    - return result.success;
    - }
    - if (result.ex != null) {
    - throw result.ex;
    - }
    - throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getSchema failed: unknown result");
    - }
    -
    - public org.apache.hadoop.hive.metastore.api.Schema getThriftSchema() throws HiveServerException, org.apache.thrift.TException
    - {
    - send_getThriftSchema();
    - return recv_getThriftSchema();
    - }
    -
    - public void send_getThriftSchema() throws org.apache.thrift.TException
    - {
    - getThriftSchema_args args = new getThriftSchema_args();
    - sendBase("getThriftSchema", args);
    - }
    -
    - public org.apache.hadoop.hive.metastore.api.Schema recv_getThriftSchema() throws HiveServerException, org.apache.thrift.TException
    - {
    - getThriftSchema_result result = new getThriftSchema_result();
    - receiveBase(result, "getThriftSchema");
    - if (result.isSetSuccess()) {
    - return result.success;
    - }
    - if (result.ex != null) {
    - throw result.ex;
    - }
    - throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getThriftSchema failed: unknown result");
    - }
    -
    - public HiveClusterStatus getClusterStatus() throws HiveServerException, org.apache.thrift.TException
    - {
    - send_getClusterStatus();
    - return recv_getClusterStatus();
    - }
    -
    - public void send_getClusterStatus() throws org.apache.thrift.TException
    - {
    - getClusterStatus_args args = new getClusterStatus_args();
    - sendBase("getClusterStatus", args);
    - }
    -
    - public HiveClusterStatus recv_getClusterStatus() throws HiveServerException, org.apache.thrift.TException
    - {
    - getClusterStatus_result result = new getClusterStatus_result();
    - receiveBase(result, "getClusterStatus");
    - if (result.isSetSuccess()) {
    - return result.success;
    - }
    - if (result.ex != null) {
    - throw result.ex;
    - }
    - throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getClusterStatus failed: unknown result");
    - }
    -
    - public org.apache.hadoop.hive.ql.plan.api.QueryPlan getQueryPlan() throws HiveServerException, org.apache.thrift.TException
    - {
    - send_getQueryPlan();
    - return recv_getQueryPlan();
    - }
    -
    - public void send_getQueryPlan() throws org.apache.thrift.TException
    - {
    - getQueryPlan_args args = new getQueryPlan_args();
    - sendBase("getQueryPlan", args);
    - }
    -
    - public org.apache.hadoop.hive.ql.plan.api.QueryPlan recv_getQueryPlan() throws HiveServerException, org.apache.thrift.TException
    - {
    - getQueryPlan_result result = new getQueryPlan_result();
    - receiveBase(result, "getQueryPlan");
    - if (result.isSetSuccess()) {
    - return result.success;
    - }
    - if (result.ex != null) {
    - throw result.ex;
    - }
    - throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getQueryPlan failed: unknown result");
    - }
    -
    - public void clean() throws org.apache.thrift.TException
    - {
    - send_clean();
    - recv_clean();
    - }
    -
    - public void send_clean() throws org.apache.thrift.TException
    - {
    - clean_args args = new clean_args();
    - sendBase("clean", args);
    - }
    -
    - public void recv_clean() throws org.apache.thrift.TException
    - {
    - clean_result result = new clean_result();
    - receiveBase(result, "clean");
    - return;
    - }
    -
    - }
    - public static class AsyncClient extends org.apache.hadoop.hive.metastore.api.ThriftHiveMetastore.AsyncClient implements AsyncIface {
    - public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
    - private org.apache.thrift.async.TAsyncClientManager clientManager;
    - private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
    - public Factory(org.apache.thrift.async.TAsyncClientManager clientManager, org.apache.thrift.protocol.TProtocolFactory protocolFactory) {
    - this.clientManager = clientManager;
    - this.protocolFactory = protocolFactory;
    - }
    - public AsyncClient getAsyncClient(org.apache.thrift.transport.TNonblockingTransport transport) {
    - return new AsyncClient(protocolFactory, clientManager, transport);
    - }
    - }
    -
    - public AsyncClient(org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.async.TAsyncClientManager clientManager, org.apache.thrift.transport.TNonblockingTransport transport) {
    - super(protocolFactory, clientManager, transport);
    - }
    -
    - public void execute(String query, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
    - checkReady();
    - execute_call method_call = new execute_call(query, resultHandler, this, ___protocolFactory, ___transport);
    - this.___currentMethod = method_call;
    - ___manager.call(method_call);
    - }
    -
    - public static class execute_call extends org.apache.thrift.async.TAsyncMethodCall {
    - private String query;
    - public execute_call(String query, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
    - super(client, protocolFactory, transport, resultHandler, false);
    - this.query = query;
    - }
    -
    - public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
    - prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("execute", org.apache.thrift.protocol.TMessageType.CALL, 0));
    - execute_args args = new execute_args();
    - args.setQuery(query);
    - args.write(prot);
    - prot.writeMessageEnd();
    - }
    -
    - public void getResult() throws HiveServerException, org.apache.thrift.TException {
    - if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
    - throw new IllegalStateException("Method call not finished!");
    - }
    - org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
    - org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
    - (new Client(prot)).recv_execute();
    - }
    - }
    -
    - public void fetchOne(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
    - checkReady();
    - fetchOne_call method_call = new fetchOne_call(resultHandler, this, ___protocolFactory, ___transport);
    - this.___currentMethod = method_call;
    - ___manager.call(method_call);
    - }
    -
    - public static class fetchOne_call extends org.apache.thrift.async.TAsyncMethodCall {
    - public fetchOne_call(org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
    - super(client, protocolFactory, transport, resultHandler, false);
    - }
    -
    - public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
    - prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("fetchOne", org.apache.thrift.protocol.TMessageType.CALL, 0));
    - fetchOne_args args = new fetchOne_args();
    - args.write(prot);
    - prot.writeMessageEnd();
    - }
    -
    - public String getResult() throws HiveServerException, org.apache.thrift.TException {
    - if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
    - throw new IllegalStateException("Method call not finished!");
    - }
    - org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
    - org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
    - return (new Client(prot)).recv_fetchOne();
    - }
    - }
    -
    - public void fetchN(int numRows, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
    - checkReady();
    - fetchN_call method_call = new fetchN_call(numRows, resultHandler, this, ___protocolFactory, ___transport);
    - this.___currentMethod = method_call;
    - ___manager.call(method_call);
    - }
    -
    - public static class fetchN_call extends org.apache.thrift.async.TAsyncMethodCall {
    - private int numRows;
    - public fetchN_call(int numRows, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
    - super(client, protocolFactory, transport, resultHandler, false);
    - this.numRows = numRows;
    - }
    -
    - public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
    - prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("fetchN", org.apache.thrift.protocol.TMessageType.CALL, 0));
    - fetchN_args args = new fetchN_args();
    - args.setNumRows(numRows);
    - args.write(prot);
    - prot.writeMessageEnd();
    - }
    -
    - public List<String> getResult() throws HiveServerException, org.apache.thrift.TException {
    - if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
    - throw new IllegalStateException("Method call not finished!");
    - }
    - org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
    - org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
    - return (new Client(prot)).recv_fetchN();
    - }
    - }
    -
    - public void fetchAll(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
    - checkReady();
    - fetchAll_call method_call = new fetchAll_call(resultHandler, this, ___protocolFactory, ___transport);
    - this.___currentMethod = method_call;
    - ___manager.call(method_call);
    - }
    -
    - public static class fetchAll_call extends org.apache.thrift.async.TAsyncMethodCall {
    - public fetchAll_call(org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
    - super(client, protocolFactory, transport, resultHandler, false);
    - }
    -
    - public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
    - prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("fetchAll", org.apache.thrift.protocol.TMessageType.CALL, 0));
    - fetchAll_args args = new fetchAll_args();
    - args.write(prot);
    - prot.writeMessageEnd();
    - }
    -
    - public List<String> getResult() throws HiveServerException, org.apache.thrift.TException {
    - if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
    - throw new IllegalStateException("Method call not finished!");
    - }
    - org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
    - org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
    - return (new Client(prot)).recv_fetchAll();
    - }
    - }
    -
    - public void getSchema(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
    - checkReady();
    - getSchema_call method_call = new getSchema_call(resultHandler, this, ___protocolFactory, ___transport);
    - this.___currentMethod = method_call;
    - ___manager.call(method_call);
    - }
    -
    - public static class getSchema_call extends org.apache.thrift.async.TAsyncMethodCall {
    - public getSchema_call(org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
    - super(client, protocolFactory, transport, resultHandler, false);
    - }
    -
    - public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
    - prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getSchema", org.apache.thrift.protocol.TMessageType.CALL, 0));
    - getSchema_args args = new getSchema_args();
    - args.write(prot);
    - prot.writeMessageEnd();
    - }
    -
    - public org.apache.hadoop.hive.metastore.api.Schema getResult() throws HiveServerException, org.apache.thrift.TException {
    - if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
    - throw new IllegalStateException("Method call not finished!");
    - }
    - org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
    - org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
    - return (new Client(prot)).recv_getSchema();
    - }
    - }
    -
    - public void getThriftSchema(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
    - checkReady();
    - getThriftSchema_call method_call = new getThriftSchema_call(resultHandler, this, ___protocolFactory, ___transport);
    - this.___currentMethod = method_call;
    - ___manager.call(method_call);
    - }
    -
    - public static class getThriftSchema_call extends org.apache.thrift.async.TAsyncMethodCall {
    - public getThriftSchema_call(org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
    - super(client, protocolFactory, transport, resultHandler, false);
    - }
    -
    - public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
    - prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getThriftSchema", org.apache.thrift.protocol.TMessageType.CALL, 0));
    - getThriftSchema_args args = new getThriftSchema_args();
    - args.write(prot);
    - prot.writeMessageEnd();
    - }
    -
    - public org.apache.hadoop.hive.metastore.api.Schema getResult() throws HiveServerException, org.apache.thrift.TException {
    - if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
    - throw new IllegalStateException("Method call not finished!");
    - }
    - org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
    - org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
    - return (new Client(prot)).recv_getThriftSchema();
    - }
    - }
    -
    - public void getClusterStatus(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
    - checkReady();
    - getClusterStatus_call method_call = new getClusterStatus_call(resultHandler, this, ___protocolFactory, ___transport);
    - this.___currentMethod = method_call;
    - ___manager.call(method_call);
    - }
    -
    - public static class getClusterStatus_call extends org.apache.thrift.async.TAsyncMethodCall {
    - public getClusterStatus_call(org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
    - super(client, protocolFactory, transport, resultHandler, false);
    - }
    -
    - public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
    - prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getClusterStatus", org.apache.thrift.protocol.TMessageType.CALL, 0));
    - getClusterStatus_args args = new getClusterStatus_args();
    - args.write(prot);
    - prot.writeMessageEnd();
    - }
    -
    - public HiveClusterStatus getResult() throws HiveServerException, org.apache.thrift.TException {
    - if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
    - throw new IllegalStateException("Method call not finished!");
    - }
    - org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
    - org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
    - return (new Client(prot)).recv_getClusterStatus();
    - }
    - }
    -
    - public void getQueryPlan(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
    - checkReady();
    - getQueryPlan_call method_call = new getQueryPlan_call(resultHandler, this, ___protocolFactory, ___transport);
    - this.___currentMethod = method_call;
    - ___manager.call(method_call);
    - }
    -
    - public static class getQueryPlan_call extends org.apache.thrift.async.TAsyncMethodCall {
    - public getQueryPlan_call(org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
    - super(client, protocolFactory, transport, resultHandler, false);
    - }
    -
    - public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
    - prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getQueryPlan", org.apache.thrift.protocol.TMessageType.CALL, 0));
    - getQueryPlan_args args = new getQueryPlan_args();
    - args.write(prot);
    - prot.writeMessageEnd();
    - }
    -
    - public org.apache.hadoop.hive.ql.plan.api.QueryPlan getResult() throws HiveServerException, org.apache.thrift.TException {
    - if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
    - throw new IllegalStateException("Method call not finished!");
    - }
    - org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
    - org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
    - return (new Client(prot)).recv_getQueryPlan();
    - }
    - }
    -
    - public void clean(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
    - checkReady();
    - clean_call method_call = new clean_call(resultHandler, this, ___protocolFactory, ___transport);
    - this.___currentMethod = method_call;
    - ___manager.call(method_call);
    - }
    -
    - public static class clean_call extends org.apache.thrift.async.TAsyncMethodCall {
    - public clean_call(org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
    - super(client, protocolFactory, transport, resultHandler, false);
    - }
    -
    - public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
    - prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("clean", org.apache.thrift.protocol.TMessageType.CALL, 0));
    - clean_args args = new clean_args();
    - args.write(prot);
    - prot.writeMessageEnd();
    - }
    -
    - public void getResult() throws org.apache.thrift.TException {
    - if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
    - throw new IllegalStateException("Method call not finished!");
    - }
    - org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
    - org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
    - (new Client(prot)).recv_clean();
    - }
    - }
    -
    - }
    -
    - public static class Processor<I extends Iface> extends org.apache.hadoop.hive.metastore.api.ThriftHiveMetastore.Processor<I> implements org.apache.thrift.TProcessor {
    - private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
    - public Processor(I iface) {
    - super(iface, getProcessMap(new HashMap<String, org.apache.thrift.ProcessFunction<I, ? extends org.apache.thrift.TBase>>()));
    - }
    -
    - protected Processor(I iface, Map<String, org.apache.thrift.ProcessFunction<I, ? extends org.apache.thrift.TBase>> processMap) {
    - super(iface, getProcessMap(processMap));
    - }
    -
    - private static <I extends Iface> Map<String, org.apache.thrift.ProcessFunction<I, ? extends org.apache.thrift.TBase>> getProcessMap(Map<String, org.apache.thrift.ProcessFunction<I, ? extends org.apache.thrift.TBase>> processMap) {
    - processMap.put("execute", new execute());
    - processMap.put("fetchOne", new fetchOne());
    - processMap.put("fetchN", new fetchN());
    - processMap.put("fetchAll", new fetchAll());
    - processMap.put("getSchema", new getSchema());
    - processMap.put("getThriftSchema", new getThriftSchema());
    - processMap.put("getClusterStatus", new getClusterStatus());
    - processMap.put("getQueryPlan", new getQueryPlan());
    - processMap.put("clean", new clean());
    - return processMap;
    - }
    -
    - public static class execute<I extends Iface> extends org.apache.thrift.ProcessFunction<I, execute_args> {
    - public execute() {
    - super("execute");
    - }
    -
    - public execute_args getEmptyArgsInstance() {
    - return new execute_args();
    - }
    -
    - protected boolean isOneway() {
    - return false;
    - }
    -
    - public execute_result getResult(I iface, execute_args args) throws org.apache.thrift.TException {
    - execute_result result = new execute_result();
    - try {
    - iface.execute(args.query);
    - } catch (HiveServerException ex) {
    - result.ex = ex;
    - }
    - return result;
    - }
    - }
    -
    - public static class fetchOne<I extends Iface> extends org.apache.thrift.ProcessFunction<I, fetchOne_args> {
    - public fetchOne() {
    - super("fetchOne");
    - }
    -
    - public fetchOne_args getEmptyArgsInstance() {
    - return new fetchOne_args();
    - }
    -
    - protected boolean isOneway() {
    - return false;
    - }
    -
    - public fetchOne_result getResult(I iface, fetchOne_args args) throws org.apache.thrift.TException {
    - fetchOne_result result = new fetchOne_result();
    - try {
    - result.success = iface.fetchOne();
    - } catch (HiveServerException ex) {
    - result.ex = ex;
    - }
    - return result;
    - }
    - }
    -
    - public static class fetchN<I extends Iface> extends org.apache.thrift.ProcessFunction<I, fetchN_args> {
    - public fetchN() {
    - super("fetchN");
    - }
    -
    - public fetchN_args getEmptyArgsInstance() {
    - return new fetchN_args();
    - }
    -
    - protected boolean isOneway() {
    - return false;
    - }
    -
    - public fetchN_result getResult(I iface, fetchN_args args) throws org.apache.thrift.TException {
    - fetchN_result result = new fetchN_result();
    - try {
    - result.success = iface.fetchN(args.numRows);
    - } catch (HiveServerException ex) {
    - result.ex = ex;
    - }
    - return result;
    - }
    - }
    -
    - public static class fetchAll<I extends Iface> extends org.apache.thrift.ProcessFunction<I, fetchAll_args> {
    - public fetchAll() {
    - super("fetchAll");
    - }
    -
    - public fetchAll_args getEmptyArgsInstance() {
    - return new fetchAll_args();
    - }
    -
    - protected boolean isOneway() {
    - return false;
    - }
    -
    - public fetchAll_result getResult(I iface, fetchAll_args args) throws org.apache.thrift.TException {
    - fetchAll_result result = new fetchAll_result();
    - try {
    - result.success = iface.fetchAll();
    - } catch (HiveServerException ex) {
    - result.ex = ex;
    - }
    - return result;
    - }
    - }
    -
    - public static class getSchema<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getSchema_args> {
    - public getSchema() {
    - super("getSchema");
    - }
    -
    - public getSchema_args getEmptyArgsInstance() {
    - return new getSchema_args();
    - }
    -
    - protected boolean isOneway() {
    - return false;
    - }
    -
    - public getSchema_result getResult(I iface, getSchema_args args) throws org.apache.thrift.TException {
    - getSchema_result result = new getSchema_result();
    - try {
    - result.success = iface.getSchema();
    - } catch (HiveServerException ex) {
    - result.ex = ex;
    - }
    - return result;
    - }
    - }
    -
    - public static class getThriftSchema<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getThriftSchema_args> {
    - public getThriftSchema() {
    - super("getThriftSchema");
    - }
    -
    - public getThriftSchema_args getEmptyArgsInstance() {
    - return new getThriftSchema_args();
    - }
    -
    - protected boolean isOneway() {
    - return false;
    - }
    -
    - public getThriftSchema_result getResult(I iface, getThriftSchema_args args) throws org.apache.thrift.TException {
    - getThriftSchema_result result = new getThriftSchema_result();
    - try {
    - result.success = iface.getThriftSchema();
    - } catch (HiveServerException ex) {
    - result.ex = ex;
    - }
    - return result;
    - }
    - }
    -
    - public static class getClusterStatus<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getClusterStatus_args> {
    - public getClusterStatus() {
    - super("getClusterStatus");
    - }
    -
    - public getClusterStatus_args getEmptyArgsInstance() {
    - return new getClusterStatus_args();
    - }
    -
    - protected boolean isOneway() {
    - return false;
    - }
    -
    - public getClusterStatus_result getResult(I iface, getClusterStatus_args args) throws org.apache.thrift.TException {
    - getClusterStatus_result result = new getClusterStatus_result();
    - try {
    - result.success = iface.getClusterStatus();
    - } catch (HiveServerException ex) {
    - result.ex = ex;
    - }
    - return result;
    - }
    - }
    -
    - public static class getQueryPlan<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getQueryPlan_args> {
    - public getQueryPlan() {
    - super("getQueryPlan");
    - }
    -
    - public getQueryPlan_args getEmptyArgsInstance() {
    - return new getQueryPlan_args();
    - }
    -
    - protected boolean isOneway() {
    - return false;
    - }
    -
    - public getQueryPlan_result getResult(I iface, getQueryPlan_args args) throws org.apache.thrift.TException {
    - getQueryPlan_result result = new getQueryPlan_result();
    - try {
    - result.success = iface.getQueryPlan();
    - } catch (HiveServerException ex) {
    - result.ex = ex;
    - }
    - return result;
    - }
    - }
    -
    - public static class clean<I extends Iface> extends org.apache.thrift.ProcessFunction<I, clean_args> {
    - public clean() {
    - super("clean");
    - }
    -
    - public clean_args getEmptyArgsInstance() {
    - return new clean_args();
    - }
    -
    - protected boolean isOneway() {
    - return false;
    - }
    -
    - public clean_result getResult(I iface, clean_args args) throws org.apache.thrift.TException {
    - clean_result result = new clean_result();
    - iface.clean();
    - return result;
    - }
    - }
    -
    - }
    -
    - public static class AsyncProcessor<I extends AsyncIface> extends org.apache.hadoop.hive.metastore.api.ThriftHiveMetastore.AsyncProcessor<I> {
    - private static final Logger LOGGER = LoggerFactory.getLogger(AsyncProcessor.class.getName());
    - public AsyncProcessor(I iface) {
    - super(iface, getProcessMap(new HashMap<String, org.apache.thrift.AsyncProcessFunction<I, ? extends org.apache.thrift.TBase, ?>>()));
    - }
    -
    - protected AsyncProcessor(I iface, Map<String, org.apache.thrift.AsyncProcessFunction<I, ? extends org.apache.thrift.TBase, ?>> processMap) {
    - super(iface, getProcessMap(processMap));
    - }
    -
    - private static <I extends AsyncIface> Map<String, org.apache.thrift.AsyncProcessFunction<I, ? extends org.apache.thrift.TBase,?>> getProcessMap(Map<String, org.apache.thrift.AsyncProcessFunction<I, ? extends org.apache.thrift.TBase, ?>> processMap) {
    - processMap.put("execute", new execute());
    - processMap.put("fetchOne", new fetchOne());
    - processMap.put("fetchN", new fetchN());
    - processMap.put("fetchAll", new fetchAll());
    - processMap.put("getSchema", new getSchema());
    - processMap.put("getThriftSchema", new getThriftSchema());
    - processMap.put("getClusterStatus", new getClusterStatus());
    - processMap.put("getQueryPlan", new getQueryPlan());
    - processMap.put("clean", new clean());
    - return processMap;
    - }
    -
    - public static class execute<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, execute_args, Void> {
    - public execute() {
    - super("execute");
    - }
    -
    - public execute_args getEmptyArgsInstance() {
    - return new execute_args();
    - }
    -
    - public AsyncMethodCallback<Void> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
    - final org.apache.thrift.AsyncProcessFunction fcall = this;
    - return new AsyncMethodCallback<Void>() {
    - public void onComplete(Void o) {
    - execute_result result = new execute_result();
    - try {
    - fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
    - return;
    - } catch (Exception e) {
    - LOGGER.error("Exception writing to internal frame buffer", e);
    - }
    - fb.close();
    - }
    - public void onError(Exception e) {
    - byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
    - org.apache.thrift.TBase msg;
    - execute_result result = new execute_result();
    - if (e instanceof HiveServerException) {
    - result.ex = (HiveServerException) e;
    - result.setExIsSet(true);
    - msg = result;
    - }
    - else
    - {
    - msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
    - msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
    - }
    - try {
    - fcall.sendResponse(fb,msg,msgType,seqid);
    - return;
    - } catch (Exception ex) {
    - LOGGER.error("Exception writing to internal frame buffer", ex);
    - }
    - fb.close();
    - }
    - };
    - }
    -
    - protected boolean isOneway() {
    - return false;
    - }
    -
    - public void start(I iface, execute_args args, org.apache.thrift.async.AsyncMethodCallback<Void> resultHandler) throws TException {
    - iface.execute(args.query,resultHandler);
    - }
    - }
    -
    - public static class fetchOne<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, fetchOne_args, String> {
    - public fetchOne() {
    - super("fetchOne");
    - }
    -
    - public fetchOne_args getEmptyArgsInstance() {
    - return new fetchOne_args();
    - }
    -
    - public AsyncMethodCallback<String> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
    - final org.apache.thrift.AsyncProcessFunction fcall = this;
    - return new AsyncMethodCallback<String>() {
    - public void onComplete(String o) {
    - fetchOne_result result = new fetchOne_result();
    - result.success = o;
    - try {
    - fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
    - return;
    - } catch (Exception e) {
    - LOGGER.error("Exception writing to internal frame buffer", e);
    - }
    - fb.close();
    - }
    - public void onError(Exception e) {
    - byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
    - org.apache.thrift.TBase msg;
    - fetchOne_result result = new fetchOne_result();
    - if (e instanceof HiveServerException) {
    - result.ex = (HiveServerException) e;
    - result.setExIsSet(true);
    - msg = result;
    - }
    - else
    - {
    - msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
    - msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
    - }
    - try {
    - fcall.sendResponse(fb,msg,msgType,seqid);
    - return;
    - } catch (Exception ex) {
    - LOGGER.error("Exception writing to internal frame buffer", ex);
    - }
    - fb.close();
    - }
    - };
    - }
    -
    - protected boolean isOneway() {
    - return false;
    - }
    -
    - public void start(I iface, fetchOne_args args, org.apache.thrift.async.AsyncMethodCallback<String> resultHandler) throws TException {
    - iface.fetchOne(resultHandler);
    - }
    - }
    -
    - public static class fetchN<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, fetchN_args, List<String>> {
    - public fetchN() {
    - super("fetchN");
    - }
    -
    - public fetchN_args getEmptyArgsInstance() {
    - return new fetchN_args();
    - }
    -
    - public AsyncMethodCallback<List<String>> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
    - final org.apache.thrift.AsyncProcessFunction fcall = this;
    - return new AsyncMethodCallback<List<String>>() {
    - public void onComplete(List<String> o) {
    - fetchN_result result = new fetchN_result();
    - result.success = o;
    - try {
    - fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
    - return;
    - } catch (Exception e) {
    - LOGGER.error("Exception writing to internal frame buffer", e);
    - }
    - fb.close();
    - }
    - public void onError(Exception e) {
    - byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
    - org.apache.thrift.TBase msg;
    - fetchN_result result = new fetchN_result();
    - if (e instanceof HiveServerException) {
    - result.ex = (HiveServerException) e;
    - result.setExIsSet(true);
    - msg = result;
    - }
    - else
    - {
    - msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
    - msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
    - }
    - try {
    - fcall.sendResponse(fb,msg,msgType,seqid);
    - return;
    - } catch (Exception ex) {
    - LOGGER.error("Exception writing to internal frame buffer", ex);
    - }
    - fb.close();
    - }
    - };
    - }
    -
    - protected boolean isOneway() {
    - return false;
    - }
    -
    - public void start(I iface, fetchN_args args, org.apache.thrift.async.AsyncMethodCallback<List<String>> resultHandler) throws TException {
    - iface.fetchN(args.numRows,resultHandler);
    - }
    - }
    -
    - public static class fetchAll<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, fetchAll_args, List<String>> {
    - public fetchAll() {
    - super("fetchAll");
    - }
    -
    - public fetchAll_args getEmptyArgsInstance() {
    - return new fetchAll_args();
    - }
    -
    - public AsyncMethodCallback<List<String>> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
    - final org.apache.thrift.AsyncProcessFunction fcall = this;
    - return new AsyncMethodCallback<List<String>>() {
    - public void onComplete(List<String> o) {
    - fetchAll_result result = new fetchAll_result();
    - result.success = o;
    - try {
    - fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
    - return;
    - } catch (Exception e) {
    - LOGGER.error("Exception writing to internal frame buffer", e);
    - }
    - fb.close();
    - }
    - public void onError(Exception e) {
    - byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
    - org.apache.thrift.TBase msg;
    - fetchAll_result result = new fetchAll_result();
    - if (e instanceof HiveServerException) {
    - result.ex = (HiveServerException) e;
    - result.setExIsSet(true);
    - msg = result;
    - }
    - else
    - {
    - msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
    - msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
    - }
    - try {
    - fcall.sendResponse(fb,msg,msgType,seqid);
    - return;
    - } catch (Exception ex) {
    - LOGGER.error("Exception writing to internal frame buffer", ex);
    - }
    - fb.close();
    - }
    - };
    - }
    -
    - protected boolean isOneway() {
    - return false;
    - }
    -
    - public void start(I iface, fetchAll_args args, org.apache.thrift.async.AsyncMethodCallback<List<String>> resultHandler) throws TException {
    - iface.fetchAll(resultHandler);
    - }
    - }
    -
    - public static class getSchema<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, getSchema_args, org.apache.hadoop.hive.metastore.api.Schema> {
    - public getSchema() {
    - super("getSchema");
    - }
    -
    - public getSchema_args getEmptyArgsInstance() {
    - return new getSchema_args();
    - }
    -
    - public AsyncMethodCallback<org.apache.hadoop.hive.metastore.api.Schema> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
    - final org.apache.thrift.AsyncProcessFunction fcall = this;
    - return new AsyncMethodCallback<org.apache.hadoop.hive.metastore.api.Schema>() {
    - public void onComplete(org.apache.hadoop.hive.metastore.api.Schema o) {
    - getSchema_result result = new getSchema_result();
    - result.success = o;
    - try {
    - fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
    - return;
    - } catch (Exception e) {
    - LOGGER.error("Exception writing to internal frame buffer", e);
    - }
    - fb.close();
    - }
    - public void onError(Exception e) {
    - byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
    - org.apache.thrift.TBase msg;
    - getSchema_result result = new getSchema_result();
    - if (e instanceof HiveServerException) {
    - result.ex = (HiveServerException) e;
    - result.setExIsSet(true);
    - msg = result;
    - }
    - else
    - {
    - msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
    - msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
    - }
    - try {
    - fcall.sendResponse(fb,msg,msgType,seqid);
    - return;
    - } catch (Exception ex) {
    - LOGGER.error("Exception writing to internal frame buffer", ex);
    - }
    - fb.close();
    - }
    - };
    - }
    -
    - protected boolean isOneway() {
    - return false;
    - }
    -
    - public void start(I iface, getSchema_args args, org.apache.thrift.async.AsyncMethodCallback<org.apache.hadoop.hive.metastore.api.Schema> resultHandler) throws TException {
    - iface.getSchema(resultHandler);
    - }
    - }
    -
    - public static class getThriftSchema<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, getThriftSchema_args, org.apache.hadoop.hive.metastore.api.Schema> {
    - public getThriftSchema() {
    - super("getThriftSchema");
    - }
    -
    - public getThriftSchema_args getEmptyArgsInstance() {
    - return new getThriftSchema_args();
    - }
    -
    - public AsyncMethodCallback<org.apache.hadoop.hive.metastore.api.Schema> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
    - final org.apache.thrift.AsyncProcessFunction fcall = this;
    - return new AsyncMethodCallback<org.apache.hadoop.hive.metastore.api.Schema>() {
    - public void onComplete(org.apache.hadoop.hive.metastore.api.Schema o) {
    - getThriftSchema_result result = new getThriftSchema_result();
    - result.success = o;
    - try {
    - fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
    - return;
    - } catch (Exception e) {
    - LOGGER.error("Exception writing to internal frame buffer", e);
    - }
    - fb.close();
    - }
    - public void onError(Exception e) {
    - byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
    - org.apache.thrift.TBase msg;
    - getThriftSchema_result result = new getThriftSchema_result();
    - if (e instanceof HiveServerException) {
    - result.ex = (HiveServerException) e;
    - result.setExIsSet(true);
    - msg = result;
    - }
    - else
    - {
    - msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
    - msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
    - }
    - try {
    - fcall.sendResponse(fb,msg,msgType,seqid);
    - return;
    - } catch (Exception ex) {
    - LOGGER.error("Exception writing to internal frame buffer", ex);
    - }
    - fb.close();
    - }
    - };
    - }
    -
    - protected boolean isOneway() {
    - return false;
    - }
    -
    - public void start(I iface, getThriftSchema_args args, org.apache.thrift.async.AsyncMethodCallback<org.apache.hadoop.hive.metastore.api.Schema> resultHandler) throws TException {
    - iface.getThriftSchema(resultHandler);
    - }
    - }
    -
    - public static class getClusterStatus<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, getClusterStatus_args, HiveClusterStatus> {
    - public getClusterStatus() {
    - super("getClusterStatus");
    - }
    -
    - public getClusterStatus_args getEmptyArgsInstance() {
    - return new getClusterStatus_args();
    - }
    -
    - public AsyncMethodCallback<HiveClusterStatus> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
    - final org.apache.thrift.AsyncProcessFunction fcall = this;
    - return new AsyncMethodCallback<HiveClusterStatus>() {
    - public void onComplete(HiveClusterStatus o) {
    - getClusterStatus_result result = new getClusterStatus_result();
    - result.success = o;
    - try {
    - fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
    - return;
    - } catch (Exception e) {
    - LOGGER.error("Exception writing to internal frame buffer", e);
    - }
    - fb.close();
    - }
    - public void onError(Exception e) {
    - byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
    - org.apache.thrift.TBase msg;
    - getClusterStatus_result result = new getClusterStatus_result();
    - if (e instanceof HiveServerException) {
    - result.ex = (HiveServerException) e;
    - result.setExIsSet(true);
    - msg = result;
    - }
    - else
    - {
    - msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
    - msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
    - }
    - try {
    - fcall.sendResponse(fb,msg,msgType,seqid);
    - return;
    - } catch (Exception ex) {
    - LOGGER.error("Exception writing to internal frame buffer", ex);
    - }
    - fb.close();
    - }
    - };
    - }
    -
    - protected boolean isOneway() {
    - return false;
    - }
    -
    - public void start(I iface, getClusterStatus_args args, org.apache.thrift.async.AsyncMethodCallback<HiveClusterStatus> resultHandler) throws TException {
    - iface.getClusterStatus(resultHandler);
    - }
    - }
    -
    - public static class getQueryPlan<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, getQueryPlan_args, org.apache.hadoop.hive.ql.plan.api.QueryPlan> {
    - public getQueryPlan() {
    - super("getQueryPlan");
    - }
    -
    - public getQueryPlan_args getEmptyArgsInstance() {
    - return new getQueryPlan_args();
    - }
    -
    - public AsyncMethodCallback<org.apache.hadoop.hive.ql.plan.api.QueryPlan> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
    - final org.apache.thrift.AsyncProcessFunction fcall = this;
    - return new AsyncMethodCallback<org.apache.hadoop.hive.ql.plan.api.QueryPlan>() {
    - public void onComplete(org.apache.hadoop.hive.ql.plan.api.QueryPlan o) {
    - getQueryPlan_result result = new getQueryPlan_result();
    - result.success = o;
    - try {
    - fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
    - return;
    - } catch (Exception e) {
    - LOGGER.error("Exception writing to internal frame buffer", e);
    - }
    - fb.close();
    - }
    - public void onError(Exception e) {
    - byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
    - org.apache.thrift.TBase msg;
    - getQueryPlan_result result = new getQueryPlan_result();
    - if (e instanceof HiveServerException) {
    - result.ex = (HiveServerException) e;
    - result.setExIsSet(true);
    - msg = result;
    - }
    - else
    - {
    - msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
    - msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
    - }
    - try {
    - fcall.sendResponse(fb,msg,msgType,seqid);
    - return;
    - } catch (Exception ex) {
    - LOGGER.error("Exception writing to internal frame buffer", ex);
    - }
    - fb.close();
    - }
    - };
    - }
    -
    - protected boolean isOneway() {
    - return false;
    - }
    -
    - public void start(I iface, getQueryPlan_args args, org.apache.thrift.async.AsyncMethodCallback<org.apache.hadoop.hive.ql.plan.api.QueryPlan> resultHandler) throws TException {
    - iface.getQueryPlan(resultHandler);
    - }
    - }
    -
    - public static class clean<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, clean_args, Void> {
    - public clean() {
    - super("clean");
    - }
    -
    - public clean_args getEmptyArgsInstance() {
    - return new clean_args();
    - }
    -
    - public AsyncMethodCallback<Void> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
    - final org.apache.thrift.AsyncProcessFunction fcall = this;
    - return new AsyncMethodCallback<Void>() {
    - public void onComplete(Void o) {
    - clean_result result = new clean_result();
    - try {
    - fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
    - return;
    - } catch (Exception e) {
    - LOGGER.error("Exception writing to internal frame buffer", e);
    - }
    - fb.close();
    - }
    - public void onError(Exception e) {
    - byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
    - org.apache.thrift.TBase msg;
    - clean_result result = new clean_result();
    - {
    - msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
    - msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
    - }
    - try {
    - fcall.sendResponse(fb,msg,msgType,seqid);
    - return;
    - } catch (Exception ex) {
    - LOGGER.error("Exception writing to internal frame buffer", ex);
    - }
    - fb.close();
    - }
    - };
    - }
    -
    - protected boolean isOneway() {
    - return false;
    - }
    -
    - public void start(I iface, clean_args args, org.apache.thrift.async.AsyncMethodCallback<Void> resultHandler) throws TException {
    - iface.clean(resultHandler);
    - }
    - }
    -
    - }
    -
    - public static class execute_args implements org.apache.thrift.TBase<execute_args, execute_args._Fields>, java.io.Serializable, Cloneable, Comparable<execute_args> {
    - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("execute_args");
    -
    - private static final org.apache.thrift.protocol.TField QUERY_FIELD_DESC = new org.apache.thrift.protocol.TField("query", org.apache.thrift.protocol.TType.STRING, (short)1);
    -
    - private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
    - static {
    - schemes.put(StandardScheme.class, new execute_argsStandardSchemeFactory());
    - schemes.put(TupleScheme.class, new execute_argsTupleSchemeFactory());
    - }
    -
    - private String query; // required
    -
    - /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
    - public enum _Fields implements org.apache.thrift.TFieldIdEnum {
    - QUERY((short)1, "query");
    -
    - private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
    -
    - static {
    - for (_Fields field : EnumSet.allOf(_Fields.class)) {
    - byName.put(field.getFieldName(), field);
    - }
    - }
    -
    - /**
    - * Find the _Fields constant that matches fieldId, or null if its not found.
    - */
    - public static _Fields findByThriftId(int fieldId) {
    - switch(fieldId) {
    - case 1: // QUERY
    - return QUERY;
    - default:
    - return null;
    - }
    - }
    -
    - /**
    - * Find the _Fields constant that matches fieldId, throwing an exception
    - * if it is not found.
    - */
    - public static _Fields findByThriftIdOrThrow(int fieldId) {
    - _Fields fields = findByThriftId(fieldId);
    - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
    - return fields;
    - }
    -
    - /**
    - * Find the _Fields constant that matches name, or null if its not found.
    - */
    - public static _Fields findByName(String name) {
    - return byName.get(name);
    - }
    -
    - private final short _thriftId;
    - private final String _fieldName;
    -
    - _Fields(short thriftId, String fieldName) {
    - _thriftId = thriftId;
    - _fieldName = fieldName;
    - }
    -
    - public short getThriftFieldId() {
    - return _thriftId;
    - }
    -
    - public String getFieldName() {
    - return _fieldName;
    - }
    - }
    -
    - // isset id assignments
    - public static final 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);
    - tmpMap.put(_Fields.QUERY, new org.apache.thrift.meta_data.FieldMetaData("query", org.apache.thrift.TFieldRequirementType.DEFAULT,
    - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
    - metaDataMap = Collections.unmodifiableMap(tmpMap);
    - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(execute_args.class, metaDataMap);
    - }
    -
    - public execute_args() {
    - }
    -
    - public execute_args(
    - String query)
    - {
    - this();
    - this.query = query;
    - }
    -
    - /**
    - * Performs a deep copy on <i>other</i>.
    - */
    - public execute_args(execute_args other) {
    - if (other.isSetQuery()) {
    - this.query = other.query;
    - }
    - }
    -
    - public execute_args deepCopy() {
    - return new execute_args(this);
    - }
    -
    - @Override
    - public void clear() {
    - this.query = null;
    - }
    -
    - public String getQuery() {
    - return this.query;
    - }
    -
    - public void setQuery(String query) {
    - this.query = query;
    - }
    -
    - public void unsetQuery() {
    - this.query = null;
    - }
    -
    - /** Returns true if field query is set (has been assigned a value) and false otherwise */
    - public boolean isSetQuery() {
    - return this.query != null;
    - }
    -
    - public void setQueryIsSet(boolean value) {
    - if (!value) {
    - this.query = null;
    - }
    - }
    -
    - public void setFieldValue(_Fields field, Object value) {
    - switch (field) {
    - case QUERY:
    - if (value == null) {
    - unsetQuery();
    - } else {
    - setQuery((String)value);
    - }
    - break;
    -
    - }
    - }
    -
    - public Object getFieldValue(_Fields field) {
    - switch (field) {
    - case QUERY:
    - return getQuery();
    -
    - }
    - throw new IllegalStateException();
    - }
    -
    - /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
    - public boolean isSet(_Fields field) {
    - if (field == null) {
    - throw new IllegalArgumentException();
    - }
    -
    - switch (field) {
    - case QUERY:
    - return isSetQuery();
    - }
    - throw new IllegalStateException();
    - }
    -
    - @Override
    - public boolean equals(Object that) {
    - if (that == null)
    - return false;
    - if (that instanceof execute_args)
    - return this.equals((execute_args)that);
    - return false;
    - }
    -
    - public boolean equals(execute_args that) {
    - if (that == null)
    - return false;
    -
    - boolean this_present_query = true && this.isSetQuery();
    - boolean that_present_query = true && that.isSetQuery();
    - if (this_present_query || that_present_query) {
    - if (!(this_present_query && that_present_query))
    - return false;
    - if (!this.query.equals(that.query))
    - return false;
    - }
    -
    - return true;
    - }
    -
    - @Override
    - public int hashCode() {
    - List<Object> list = new ArrayList<Object>();
    -
    - boolean present_query = true && (isSetQuery());
    - list.add(present_query);
    - if (present_query)
    - list.add(query);
    -
    - return list.hashCode();
    - }
    -