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


http://git-wip-us.apache.org/repos/asf/hive/blob/a28f6cd8/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
new file mode 100644
index 0000000..2372d3a
--- /dev/null
+++ b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TGetCatalogsResp.java
@@ -0,0 +1,509 @@
+/**
+ * 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 2:03 am
    http://git-wip-us.apache.org/repos/asf/hive/blob/a28f6cd8/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
    new file mode 100644
    index 0000000..82209f1
    --- /dev/null
    +++ b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TByteValue.java
    @@ -0,0 +1,390 @@
    +/**
    + * 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 2:03 am
    http://git-wip-us.apache.org/repos/asf/hive/blob/a28f6cd8/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TExecuteStatementResp.java
    ----------------------------------------------------------------------
    diff --git a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TExecuteStatementResp.java b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TExecuteStatementResp.java
    new file mode 100644
    index 0000000..0b9aa0f
    --- /dev/null
    +++ b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TExecuteStatementResp.java
    @@ -0,0 +1,509 @@
    +/**
    + * 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 TExecuteStatementResp implements org.apache.thrift.TBase<TExecuteStatementResp, TExecuteStatementResp._Fields>, java.io.Serializable, Cloneable, Comparable<TExecuteStatementResp> {
    + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TExecuteStatementResp");
    +
    + 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 TExecuteStatementRespStandardSchemeFactory());
    + schemes.put(TupleScheme.class, new TExecuteStatementRespTupleSchemeFactory());
    + }
    +
    + 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(TExecuteStatementResp.class, metaDataMap);
    + }
    +
    + public TExecuteStatementResp() {
    + }
    +
    + public TExecuteStatementResp(
    + TStatus status)
    + {
    + this();
    + this.status = status;
    + }
    +
    + /**
    + * Performs a deep copy on <i>other</i>.
    + */
    + public TExecuteStatementResp(TExecuteStatementResp other) {
    + if (other.isSetStatus()) {
    + this.status = new TStatus(other.status);
    + }
    + if (other.isSetOperationHandle()) {
    + this.operationHandle = new TOperationHandle(other.operationHandle);
    + }
    + }
    +
    + public TExecuteStatementResp deepCopy() {
    + return new TExecuteStatementResp(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 TExecuteStatementResp)
    + return this.equals((TExecuteStatementResp)that);
    + return false;
    + }
    +
    + public boolean equals(TExecuteStatementResp 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(TExecuteStatementResp 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("TExecuteStatementResp(");
    + 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 TExecuteStatementRespStandardSchemeFactory implements SchemeFactory {
    + public TExecuteStatementRespStandardScheme getScheme() {
    + return new TExecuteStatementRespStandardScheme();
    + }
    + }
    +
    + private static class TExecuteStatementRespStandardScheme extends StandardScheme<TExecuteStatementResp> {
    +
    + public void read(org.apache.thrift.protocol.TProtocol iprot, TExecuteStatementResp struct) throws org.apache.thrift.TException {
    + org.apache.thrift.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, TExecuteStatementResp 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 TExecuteStatementRespTupleSchemeFactory implements SchemeFactory {
    + public TExecuteStatementRespTupleScheme getScheme() {
    + return new TExecuteStatementRespTupleScheme();
    + }
    + }
    +
    + private static class TExecuteStatementRespTupleScheme extends TupleScheme<TExecuteStatementResp> {
    +
    + @Override
    + public void write(org.apache.thrift.protocol.TProtocol prot, TExecuteStatementResp 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, TExecuteStatementResp 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);
    + }
    + }
    + }
    +
    +}
    +

    http://git-wip-us.apache.org/repos/asf/hive/blob/a28f6cd8/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TFetchOrientation.java
    ----------------------------------------------------------------------
    diff --git a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TFetchOrientation.java b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TFetchOrientation.java
    new file mode 100644
    index 0000000..d3fd3f0
    --- /dev/null
    +++ b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TFetchOrientation.java
    @@ -0,0 +1,57 @@
    +/**
    + * 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 java.util.Map;
    +import java.util.HashMap;
    +import org.apache.thrift.TEnum;
    +
    +public enum TFetchOrientation implements org.apache.thrift.TEnum {
    + FETCH_NEXT(0),
    + FETCH_PRIOR(1),
    + FETCH_RELATIVE(2),
    + FETCH_ABSOLUTE(3),
    + FETCH_FIRST(4),
    + FETCH_LAST(5);
    +
    + private final int value;
    +
    + private TFetchOrientation(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 TFetchOrientation findByValue(int value) {
    + switch (value) {
    + case 0:
    + return FETCH_NEXT;
    + case 1:
    + return FETCH_PRIOR;
    + case 2:
    + return FETCH_RELATIVE;
    + case 3:
    + return FETCH_ABSOLUTE;
    + case 4:
    + return FETCH_FIRST;
    + case 5:
    + return FETCH_LAST;
    + default:
    + return null;
    + }
    + }
    +}

    http://git-wip-us.apache.org/repos/asf/hive/blob/a28f6cd8/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TFetchResultsReq.java
    ----------------------------------------------------------------------
    diff --git a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TFetchResultsReq.java b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TFetchResultsReq.java
    new file mode 100644
    index 0000000..23cfd54
    --- /dev/null
    +++ b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TFetchResultsReq.java
    @@ -0,0 +1,714 @@
    +/**
    + * 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 TFetchResultsReq implements org.apache.thrift.TBase<TFetchResultsReq, TFetchResultsReq._Fields>, java.io.Serializable, Cloneable, Comparable<TFetchResultsReq> {
    + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TFetchResultsReq");
    +
    + 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 org.apache.thrift.protocol.TField ORIENTATION_FIELD_DESC = new org.apache.thrift.protocol.TField("orientation", org.apache.thrift.protocol.TType.I32, (short)2);
    + private static final org.apache.thrift.protocol.TField MAX_ROWS_FIELD_DESC = new org.apache.thrift.protocol.TField("maxRows", org.apache.thrift.protocol.TType.I64, (short)3);
    + private static final org.apache.thrift.protocol.TField FETCH_TYPE_FIELD_DESC = new org.apache.thrift.protocol.TField("fetchType", org.apache.thrift.protocol.TType.I16, (short)4);
    +
    + private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
    + static {
    + schemes.put(StandardScheme.class, new TFetchResultsReqStandardSchemeFactory());
    + schemes.put(TupleScheme.class, new TFetchResultsReqTupleSchemeFactory());
    + }
    +
    + private TOperationHandle operationHandle; // required
    + private TFetchOrientation orientation; // required
    + private long maxRows; // required
    + private short fetchType; // 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 {
    + OPERATION_HANDLE((short)1, "operationHandle"),
    + /**
    + *
    + * @see TFetchOrientation
    + */
    + ORIENTATION((short)2, "orientation"),
    + MAX_ROWS((short)3, "maxRows"),
    + FETCH_TYPE((short)4, "fetchType");
    +
    + 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;
    + case 2: // ORIENTATION
    + return ORIENTATION;
    + case 3: // MAX_ROWS
    + return MAX_ROWS;
    + case 4: // FETCH_TYPE
    + return FETCH_TYPE;
    + 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 __MAXROWS_ISSET_ID = 0;
    + private static final int __FETCHTYPE_ISSET_ID = 1;
    + private byte __isset_bitfield = 0;
    + private static final _Fields optionals[] = {_Fields.FETCH_TYPE};
    + 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)));
    + tmpMap.put(_Fields.ORIENTATION, new org.apache.thrift.meta_data.FieldMetaData("orientation", org.apache.thrift.TFieldRequirementType.REQUIRED,
    + new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, TFetchOrientation.class)));
    + tmpMap.put(_Fields.MAX_ROWS, new org.apache.thrift.meta_data.FieldMetaData("maxRows", org.apache.thrift.TFieldRequirementType.REQUIRED,
    + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
    + tmpMap.put(_Fields.FETCH_TYPE, new org.apache.thrift.meta_data.FieldMetaData("fetchType", org.apache.thrift.TFieldRequirementType.OPTIONAL,
    + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I16)));
    + metaDataMap = Collections.unmodifiableMap(tmpMap);
    + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(TFetchResultsReq.class, metaDataMap);
    + }
    +
    + public TFetchResultsReq() {
    + this.orientation = org.apache.hive.service.cli.thrift.TFetchOrientation.FETCH_NEXT;
    +
    + this.fetchType = (short)0;
    +
    + }
    +
    + public TFetchResultsReq(
    + TOperationHandle operationHandle,
    + TFetchOrientation orientation,
    + long maxRows)
    + {
    + this();
    + this.operationHandle = operationHandle;
    + this.orientation = orientation;
    + this.maxRows = maxRows;
    + setMaxRowsIsSet(true);
    + }
    +
    + /**
    + * Performs a deep copy on <i>other</i>.
    + */
    + public TFetchResultsReq(TFetchResultsReq other) {
    + __isset_bitfield = other.__isset_bitfield;
    + if (other.isSetOperationHandle()) {
    + this.operationHandle = new TOperationHandle(other.operationHandle);
    + }
    + if (other.isSetOrientation()) {
    + this.orientation = other.orientation;
    + }
    + this.maxRows = other.maxRows;
    + this.fetchType = other.fetchType;
    + }
    +
    + public TFetchResultsReq deepCopy() {
    + return new TFetchResultsReq(this);
    + }
    +
    + @Override
    + public void clear() {
    + this.operationHandle = null;
    + this.orientation = org.apache.hive.service.cli.thrift.TFetchOrientation.FETCH_NEXT;
    +
    + setMaxRowsIsSet(false);
    + this.maxRows = 0;
    + this.fetchType = (short)0;
    +
    + }
    +
    + 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;
    + }
    + }
    +
    + /**
    + *
    + * @see TFetchOrientation
    + */
    + public TFetchOrientation getOrientation() {
    + return this.orientation;
    + }
    +
    + /**
    + *
    + * @see TFetchOrientation
    + */
    + public void setOrientation(TFetchOrientation orientation) {
    + this.orientation = orientation;
    + }
    +
    + public void unsetOrientation() {
    + this.orientation = null;
    + }
    +
    + /** Returns true if field orientation is set (has been assigned a value) and false otherwise */
    + public boolean isSetOrientation() {
    + return this.orientation != null;
    + }
    +
    + public void setOrientationIsSet(boolean value) {
    + if (!value) {
    + this.orientation = null;
    + }
    + }
    +
    + public long getMaxRows() {
    + return this.maxRows;
    + }
    +
    + public void setMaxRows(long maxRows) {
    + this.maxRows = maxRows;
    + setMaxRowsIsSet(true);
    + }
    +
    + public void unsetMaxRows() {
    + __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __MAXROWS_ISSET_ID);
    + }
    +
    + /** Returns true if field maxRows is set (has been assigned a value) and false otherwise */
    + public boolean isSetMaxRows() {
    + return EncodingUtils.testBit(__isset_bitfield, __MAXROWS_ISSET_ID);
    + }
    +
    + public void setMaxRowsIsSet(boolean value) {
    + __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __MAXROWS_ISSET_ID, value);
    + }
    +
    + public short getFetchType() {
    + return this.fetchType;
    + }
    +
    + public void setFetchType(short fetchType) {
    + this.fetchType = fetchType;
    + setFetchTypeIsSet(true);
    + }
    +
    + public void unsetFetchType() {
    + __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __FETCHTYPE_ISSET_ID);
    + }
    +
    + /** Returns true if field fetchType is set (has been assigned a value) and false otherwise */
    + public boolean isSetFetchType() {
    + return EncodingUtils.testBit(__isset_bitfield, __FETCHTYPE_ISSET_ID);
    + }
    +
    + public void setFetchTypeIsSet(boolean value) {
    + __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __FETCHTYPE_ISSET_ID, value);
    + }
    +
    + public void setFieldValue(_Fields field, Object value) {
    + switch (field) {
    + case OPERATION_HANDLE:
    + if (value == null) {
    + unsetOperationHandle();
    + } else {
    + setOperationHandle((TOperationHandle)value);
    + }
    + break;
    +
    + case ORIENTATION:
    + if (value == null) {
    + unsetOrientation();
    + } else {
    + setOrientation((TFetchOrientation)value);
    + }
    + break;
    +
    + case MAX_ROWS:
    + if (value == null) {
    + unsetMaxRows();
    + } else {
    + setMaxRows((Long)value);
    + }
    + break;
    +
    + case FETCH_TYPE:
    + if (value == null) {
    + unsetFetchType();
    + } else {
    + setFetchType((Short)value);
    + }
    + break;
    +
    + }
    + }
    +
    + public Object getFieldValue(_Fields field) {
    + switch (field) {
    + case OPERATION_HANDLE:
    + return getOperationHandle();
    +
    + case ORIENTATION:
    + return getOrientation();
    +
    + case MAX_ROWS:
    + return getMaxRows();
    +
    + case FETCH_TYPE:
    + return getFetchType();
    +
    + }
    + 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();
    + case ORIENTATION:
    + return isSetOrientation();
    + case MAX_ROWS:
    + return isSetMaxRows();
    + case FETCH_TYPE:
    + return isSetFetchType();
    + }
    + throw new IllegalStateException();
    + }
    +
    + @Override
    + public boolean equals(Object that) {
    + if (that == null)
    + return false;
    + if (that instanceof TFetchResultsReq)
    + return this.equals((TFetchResultsReq)that);
    + return false;
    + }
    +
    + public boolean equals(TFetchResultsReq 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;
    + }
    +
    + boolean this_present_orientation = true && this.isSetOrientation();
    + boolean that_present_orientation = true && that.isSetOrientation();
    + if (this_present_orientation || that_present_orientation) {
    + if (!(this_present_orientation && that_present_orientation))
    + return false;
    + if (!this.orientation.equals(that.orientation))
    + return false;
    + }
    +
    + boolean this_present_maxRows = true;
    + boolean that_present_maxRows = true;
    + if (this_present_maxRows || that_present_maxRows) {
    + if (!(this_present_maxRows && that_present_maxRows))
    + return false;
    + if (this.maxRows != that.maxRows)
    + return false;
    + }
    +
    + boolean this_present_fetchType = true && this.isSetFetchType();
    + boolean that_present_fetchType = true && that.isSetFetchType();
    + if (this_present_fetchType || that_present_fetchType) {
    + if (!(this_present_fetchType && that_present_fetchType))
    + return false;
    + if (this.fetchType != that.fetchType)
    + 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);
    +
    + boolean present_orientation = true && (isSetOrientation());
    + list.add(present_orientation);
    + if (present_orientation)
    + list.add(orientation.getValue());
    +
    + boolean present_maxRows = true;
    + list.add(present_maxRows);
    + if (present_maxRows)
    + list.add(maxRows);
    +
    + boolean present_fetchType = true && (isSetFetchType());
    + list.add(present_fetchType);
    + if (present_fetchType)
    + list.add(fetchType);
    +
    + return list.hashCode();
    + }
    +
    + @Override
    + public int compareTo(TFetchResultsReq 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;
    + }
    + }
    + lastComparison = Boolean.valueOf(isSetOrientation()).compareTo(other.isSetOrientation());
    + if (lastComparison != 0) {
    + return lastComparison;
    + }
    + if (isSetOrientation()) {
    + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.orientation, other.orientation);
    + if (lastComparison != 0) {
    + return lastComparison;
    + }
    + }
    + lastComparison = Boolean.valueOf(isSetMaxRows()).compareTo(other.isSetMaxRows());
    + if (lastComparison != 0) {
    + return lastComparison;
    + }
    + if (isSetMaxRows()) {
    + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.maxRows, other.maxRows);
    + if (lastComparison != 0) {
    + return lastComparison;
    + }
    + }
    + lastComparison = Boolean.valueOf(isSetFetchType()).compareTo(other.isSetFetchType());
    + if (lastComparison != 0) {
    + return lastComparison;
    + }
    + if (isSetFetchType()) {
    + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.fetchType, other.fetchType);
    + 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("TFetchResultsReq(");
    + boolean first = true;
    +
    + sb.append("operationHandle:");
    + if (this.operationHandle == null) {
    + sb.append("null");
    + } else {
    + sb.append(this.operationHandle);
    + }
    + first = false;
    + if (!first) sb.append(", ");
    + sb.append("orientation:");
    + if (this.orientation == null) {
    + sb.append("null");
    + } else {
    + sb.append(this.orientation);
    + }
    + first = false;
    + if (!first) sb.append(", ");
    + sb.append("maxRows:");
    + sb.append(this.maxRows);
    + first = false;
    + if (isSetFetchType()) {
    + if (!first) sb.append(", ");
    + sb.append("fetchType:");
    + sb.append(this.fetchType);
    + 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());
    + }
    +
    + if (!isSetOrientation()) {
    + throw new org.apache.thrift.protocol.TProtocolException("Required field 'orientation' is unset! Struct:" + toString());
    + }
    +
    + if (!isSetMaxRows()) {
    + throw new org.apache.thrift.protocol.TProtocolException("Required field 'maxRows' 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 {
    + // 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 TFetchResultsReqStandardSchemeFactory implements SchemeFactory {
    + public TFetchResultsReqStandardScheme getScheme() {
    + return new TFetchResultsReqStandardScheme();
    + }
    + }
    +
    + private static class TFetchResultsReqStandardScheme extends StandardScheme<TFetchResultsReq> {
    +
    + public void read(org.apache.thrift.protocol.TProtocol iprot, TFetchResultsReq struct) throws org.apache.thrift.TException {
    + org.apache.thrift.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;
    + case 2: // ORIENTATION
    + if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
    + struct.orientation = org.apache.hive.service.cli.thrift.TFetchOrientation.findByValue(iprot.readI32());
    + struct.setOrientationIsSet(true);
    + } else {
    + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
    + }
    + break;
    + case 3: // MAX_ROWS
    + if (schemeField.type == org.apache.thrift.protocol.TType.I64) {
    + struct.maxRows = iprot.readI64();
    + struct.setMaxRowsIsSet(true);
    + } else {
    + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
    + }
    + break;
    + case 4: // FETCH_TYPE
    + if (schemeField.type == org.apache.thrift.protocol.TType.I16) {
    + struct.fetchType = iprot.readI16();
    + struct.setFetchTypeIsSet(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, TFetchResultsReq 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();
    + }
    + if (struct.orientation != null) {
    + oprot.writeFieldBegin(ORIENTATION_FIELD_DESC);
    + oprot.writeI32(struct.orientation.getValue());
    + oprot.writeFieldEnd();
    + }
    + oprot.writeFieldBegin(MAX_ROWS_FIELD_DESC);
    + oprot.writeI64(struct.maxRows);
    + oprot.writeFieldEnd();
    + if (struct.isSetFetchType()) {
    + oprot.writeFieldBegin(FETCH_TYPE_FIELD_DESC);
    + oprot.writeI16(struct.fetchType);
    + oprot.writeFieldEnd();
    + }
    + oprot.writeFieldStop();
    + oprot.writeStructEnd();
    + }
    +
    + }
    +
    + private static class TFetchResultsReqTupleSchemeFactory implements SchemeFactory {
    + public TFetchResultsReqTupleScheme getScheme() {
    + return new TFetchResultsReqTupleScheme();
    + }
    + }
    +
    + private static class TFetchResultsReqTupleScheme extends TupleScheme<TFetchResultsReq> {
    +
    + @Override
    + public void write(org.apache.thrift.protocol.TProtocol prot, TFetchResultsReq struct) throws org.apache.thrift.TException {
    + TTupleProtocol oprot = (TTupleProtocol) prot;
    + struct.operationHandle.write(oprot);
    + oprot.writeI32(struct.orientation.getValue());
    + oprot.writeI64(struct.maxRows);
    + BitSet optionals = new BitSet();
    + if (struct.isSetFetchType()) {
    + optionals.set(0);
    + }
    + oprot.writeBitSet(optionals, 1);
    + if (struct.isSetFetchType()) {
    + oprot.writeI16(struct.fetchType);
    + }
    + }
    +
    + @Override
    + public void read(org.apache.thrift.protocol.TProtocol prot, TFetchResultsReq struct) throws org.apache.thrift.TException {
    + TTupleProtocol iprot = (TTupleProtocol) prot;
    + struct.operationHandle = new TOperationHandle();
    + struct.operationHandle.read(iprot);
    + struct.setOperationHandleIsSet(true);
    + struct.orientation = org.apache.hive.service.cli.thrift.TFetchOrientation.findByValue(iprot.readI32());
    + struct.setOrientationIsSet(true);
    + struct.maxRows = iprot.readI64();
    + struct.setMaxRowsIsSet(true);
    + BitSet incoming = iprot.readBitSet(1);
    + if (incoming.get(0)) {
    + struct.fetchType = iprot.readI16();
    + struct.setFetchTypeIsSet(true);
    + }
    + }
    + }
    +
    +}
    +

    http://git-wip-us.apache.org/repos/asf/hive/blob/a28f6cd8/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TFetchResultsResp.java
    ----------------------------------------------------------------------
    diff --git a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TFetchResultsResp.java b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TFetchResultsResp.java
    new file mode 100644
    index 0000000..2d325fc
    --- /dev/null
    +++ b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TFetchResultsResp.java
    @@ -0,0 +1,612 @@
    +/**
    + * 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 TFetchResultsResp implements org.apache.thrift.TBase<TFetchResultsResp, TFetchResultsResp._Fields>, java.io.Serializable, Cloneable, Comparable<TFetchResultsResp> {
    + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TFetchResultsResp");
    +
    + 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 HAS_MORE_ROWS_FIELD_DESC = new org.apache.thrift.protocol.TField("hasMoreRows", org.apache.thrift.protocol.TType.BOOL, (short)2);
    + private static final org.apache.thrift.protocol.TField RESULTS_FIELD_DESC = new org.apache.thrift.protocol.TField("results", org.apache.thrift.protocol.TType.STRUCT, (short)3);
    +
    + private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
    + static {
    + schemes.put(StandardScheme.class, new TFetchResultsRespStandardSchemeFactory());
    + schemes.put(TupleScheme.class, new TFetchResultsRespTupleSchemeFactory());
    + }
    +
    + private TStatus status; // required
    + private boolean hasMoreRows; // optional
    + private TRowSet results; // 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"),
    + HAS_MORE_ROWS((short)2, "hasMoreRows"),
    + RESULTS((short)3, "results");
    +
    + 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: // HAS_MORE_ROWS
    + return HAS_MORE_ROWS;
    + case 3: // RESULTS
    + return RESULTS;
    + 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 __HASMOREROWS_ISSET_ID = 0;
    + private byte __isset_bitfield = 0;
    + private static final _Fields optionals[] = {_Fields.HAS_MORE_ROWS,_Fields.RESULTS};
    + 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.HAS_MORE_ROWS, new org.apache.thrift.meta_data.FieldMetaData("hasMoreRows", org.apache.thrift.TFieldRequirementType.OPTIONAL,
    + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
    + tmpMap.put(_Fields.RESULTS, new org.apache.thrift.meta_data.FieldMetaData("results", org.apache.thrift.TFieldRequirementType.OPTIONAL,
    + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TRowSet.class)));
    + metaDataMap = Collections.unmodifiableMap(tmpMap);
    + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(TFetchResultsResp.class, metaDataMap);
    + }
    +
    + public TFetchResultsResp() {
    + }
    +
    + public TFetchResultsResp(
    + TStatus status)
    + {
    + this();
    + this.status = status;
    + }
    +
    + /**
    + * Performs a deep copy on <i>other</i>.
    + */
    + public TFetchResultsResp(TFetchResultsResp other) {
    + __isset_bitfield = other.__isset_bitfield;
    + if (other.isSetStatus()) {
    + this.status = new TStatus(other.status);
    + }
    + this.hasMoreRows = other.hasMoreRows;
    + if (other.isSetResults()) {
    + this.results = new TRowSet(other.results);
    + }
    + }
    +
    + public TFetchResultsResp deepCopy() {
    + return new TFetchResultsResp(this);
    + }
    +
    + @Override
    + public void clear() {
    + this.status = null;
    + setHasMoreRowsIsSet(false);
    + this.hasMoreRows = false;
    + this.results = 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 boolean isHasMoreRows() {
    + return this.hasMoreRows;
    + }
    +
    + public void setHasMoreRows(boolean hasMoreRows) {
    + this.hasMoreRows = hasMoreRows;
    + setHasMoreRowsIsSet(true);
    + }
    +
    + public void unsetHasMoreRows() {
    + __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __HASMOREROWS_ISSET_ID);
    + }
    +
    + /** Returns true if field hasMoreRows is set (has been assigned a value) and false otherwise */
    + public boolean isSetHasMoreRows() {
    + return EncodingUtils.testBit(__isset_bitfield, __HASMOREROWS_ISSET_ID);
    + }
    +
    + public void setHasMoreRowsIsSet(boolean value) {
    + __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __HASMOREROWS_ISSET_ID, value);
    + }
    +
    + public TRowSet getResults() {
    + return this.results;
    + }
    +
    + public void setResults(TRowSet results) {
    + this.results = results;
    + }
    +
    + public void unsetResults() {
    + this.results = null;
    + }
    +
    + /** Returns true if field results is set (has been assigned a value) and false otherwise */
    + public boolean isSetResults() {
    + return this.results != null;
    + }
    +
    + public void setResultsIsSet(boolean value) {
    + if (!value) {
    + this.results = null;
    + }
    + }
    +
    + public void setFieldValue(_Fields field, Object value) {
    + switch (field) {
    + case STATUS:
    + if (value == null) {
    + unsetStatus();
    + } else {
    + setStatus((TStatus)value);
    + }
    + break;
    +
    + case HAS_MORE_ROWS:
    + if (value == null) {
    + unsetHasMoreRows();
    + } else {
    + setHasMoreRows((Boolean)value);
    + }
    + break;
    +
    + case RESULTS:
    + if (value == null) {
    + unsetResults();
    + } else {
    + setResults((TRowSet)value);
    + }
    + break;
    +
    + }
    + }
    +
    + public Object getFieldValue(_Fields field) {
    + switch (field) {
    + case STATUS:
    + return getStatus();
    +
    + case HAS_MORE_ROWS:
    + return isHasMoreRows();
    +
    + case RESULTS:
    + return getResults();
    +
    + }
    + 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 HAS_MORE_ROWS:
    + return isSetHasMoreRows();
    + case RESULTS:
    + return isSetResults();
    + }
    + throw new IllegalStateException();
    + }
    +
    + @Override
    + public boolean equals(Object that) {
    + if (that == null)
    + return false;
    + if (that instanceof TFetchResultsResp)
    + return this.equals((TFetchResultsResp)that);
    + return false;
    + }
    +
    + public boolean equals(TFetchResultsResp 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_hasMoreRows = true && this.isSetHasMoreRows();
    + boolean that_present_hasMoreRows = true && that.isSetHasMoreRows();
    + if (this_present_hasMoreRows || that_present_hasMoreRows) {
    + if (!(this_present_hasMoreRows && that_present_hasMoreRows))
    + return false;
    + if (this.hasMoreRows != that.hasMoreRows)
    + return false;
    + }
    +
    + boolean this_present_results = true && this.isSetResults();
    + boolean that_present_results = true && that.isSetResults();
    + if (this_present_results || that_present_results) {
    + if (!(this_present_results && that_present_results))
    + return false;
    + if (!this.results.equals(that.results))
    + 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_hasMoreRows = true && (isSetHasMoreRows());
    + list.add(present_hasMoreRows);
    + if (present_hasMoreRows)
    + list.add(hasMoreRows);
    +
    + boolean present_results = true && (isSetResults());
    + list.add(present_results);
    + if (present_results)
    + list.add(results);
    +
    + return list.hashCode();
    + }
    +
    + @Override
    + public int compareTo(TFetchResultsResp 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(isSetHasMoreRows()).compareTo(other.isSetHasMoreRows());
    + if (lastComparison != 0) {
    + return lastComparison;
    + }
    + if (isSetHasMoreRows()) {
    + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.hasMoreRows, other.hasMoreRows);
    + if (lastComparison != 0) {
    + return lastComparison;
    + }
    + }
    + lastComparison = Boolean.valueOf(isSetResults()).compareTo(other.isSetResults());
    + if (lastComparison != 0) {
    + return lastComparison;
    + }
    + if (isSetResults()) {
    + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.results, other.results);
    + 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("TFetchResultsResp(");
    + boolean first = true;
    +
    + sb.append("status:");
    + if (this.status == null) {
    + sb.append("null");
    + } else {
    + sb.append(this.status);
    + }
    + first = false;
    + if (isSetHasMoreRows()) {
    + if (!first) sb.append(", ");
    + sb.append("hasMoreRows:");
    + sb.append(this.hasMoreRows);
    + first = false;
    + }
    + if (isSetResults()) {
    + if (!first) sb.append(", ");
    + sb.append("results:");
    + if (this.results == null) {
    + sb.append("null");
    + } else {
    + sb.append(this.results);
    + }
    + 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 (results != null) {
    + results.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 TFetchResultsRespStandardSchemeFactory implements SchemeFactory {
    + public TFetchResultsRespStandardScheme getScheme() {
    + return new TFetchResultsRespStandardScheme();
    + }
    + }
    +
    + private static class TFetchResultsRespStandardScheme extends StandardScheme<TFetchResultsResp> {
    +
    + public void read(org.apache.thrift.protocol.TProtocol iprot, TFetchResultsResp struct) throws org.apache.thrift.TException {
    + org.apache.thrift.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: // HAS_MORE_ROWS
    + if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) {
    + struct.hasMoreRows = iprot.readBool();
    + struct.setHasMoreRowsIsSet(true);
    + } else {
    + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
    + }
    + break;
    + case 3: // RESULTS
    + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
    + struct.results = new TRowSet();
    + struct.results.read(iprot);
    + struct.setResultsIsSet(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, TFetchResultsResp 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.isSetHasMoreRows()) {
    + oprot.writeFieldBegin(HAS_MORE_ROWS_FIELD_DESC);
    + oprot.writeBool(struct.hasMoreRows);
    + oprot.writeFieldEnd();
    + }
    + if (struct.results != null) {
    + if (struct.isSetResults()) {
    + oprot.writeFieldBegin(RESULTS_FIELD_DESC);
    + struct.results.write(oprot);
    + oprot.writeFieldEnd();
    + }
    + }
    + oprot.writeFieldStop();
    + oprot.writeStructEnd();
    + }
    +
    + }
    +
    + private static class TFetchResultsRespTupleSchemeFactory implements SchemeFactory {
    + public TFetchResultsRespTupleScheme getScheme() {
    + return new TFetchResultsRespTupleScheme();
    + }
    + }
    +
    + private static class TFetchResultsRespTupleScheme extends TupleScheme<TFetchResultsResp> {
    +
    + @Override
    + public void write(org.apache.thrift.protocol.TProtocol prot, TFetchResultsResp struct) throws org.apache.thrift.TException {
    + TTupleProtocol oprot = (TTupleProtocol) prot;
    + struct.status.write(oprot);
    + BitSet optionals = new BitSet();
    + if (struct.isSetHasMoreRows()) {
    + optionals.set(0);
    + }
    + if (struct.isSetResults()) {
    + optionals.set(1);
    + }
    + oprot.writeBitSet(optionals, 2);
    + if (struct.isSetHasMoreRows()) {
    + oprot.writeBool(struct.hasMoreRows);
    + }
    + if (struct.isSetResults()) {
    + struct.results.write(oprot);
    + }
    + }
    +
    + @Override
    + public void read(org.apache.thrift.protocol.TProtocol prot, TFetchResultsResp 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(2);
    + if (incoming.get(0)) {
    + struct.hasMoreRows = iprot.readBool();
    + struct.setHasMoreRowsIsSet(true);
    + }
    + if (incoming.get(1)) {
    + struct.results = new TRowSet();
    + struct.results.read(iprot);
    + struct.setResultsIsSet(true);
    + }
    + }
    + }
    +
    +}
    +

    http://git-wip-us.apache.org/repos/asf/hive/blob/a28f6cd8/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TGetCatalogsReq.java
    ----------------------------------------------------------------------
    diff --git a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TGetCatalogsReq.java b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TGetCatalogsReq.java
    new file mode 100644
    index 0000000..02e5cbc
    --- /dev/null
    +++ b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TGetCatalogsReq.java
    @@ -0,0 +1,394 @@
    +/**
    + * 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 TGetCatalogsReq implements org.apache.thrift.TBase<TGetCatalogsReq, TGetCatalogsReq._Fields>, java.io.Serializable, Cloneable, Comparable<TGetCatalogsReq> {
    + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TGetCatalogsReq");
    +
    + 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 TGetCatalogsReqStandardSchemeFactory());
    + schemes.put(TupleScheme.class, new TGetCatalogsReqTupleSchemeFactory());
    + }
    +
    + 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(TGetCatalogsReq.class, metaDataMap);
    + }
    +
    + public TGetCatalogsReq() {
    + }
    +
    + public TGetCatalogsReq(
    + TSessionHandle sessionHandle)
    + {
    + this();
    + this.sessionHandle = sessionHandle;
    + }
    +
    + /**
    + * Performs a deep copy on <i>other</i>.
    + */
    + public TGetCatalogsReq(TGetCatalogsReq other) {
    + if (other.isSetSessionHandle()) {
    + this.sessionHandle = new TSessionHandle(other.sessionHandle);
    + }
    + }
    +
    + public TGetCatalogsReq deepCopy() {
    + return new TGetCatalogsReq(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 TGetCatalogsReq)
    + return this.equals((TGetCatalogsReq)that);
    + return false;
    + }
    +
    + public boolean equals(TGetCatalogsReq 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(TGetCatalogsReq 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("TGetCatalogsReq(");
    + 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 TGetCatalogsReqStandardSchemeFactory implements SchemeFactory {
    + public TGetCatalogsReqStandardScheme getScheme() {
    + return new TGetCatalogsReqStandardScheme();
    + }
    + }
    +
    + private static class TGetCatalogsReqStandardScheme extends StandardScheme<TGetCatalogsReq> {
    +
    + public void read(org.apache.thrift.protocol.TProtocol iprot, TGetCatalogsReq struct) throws org.apache.thrift.TException {
    + org.apache.thrift.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, TGetCatalogsReq 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 TGetCatalogsReqTupleSchemeFactory implements SchemeFactory {
    + public TGetCatalogsReqTupleScheme getScheme() {
    + return new TGetCatalogsReqTupleScheme();
    + }
    + }
    +
    + private static class TGetCatalogsReqTupleScheme extends TupleScheme<TGetCatalogsReq> {
    +
    + @Override
    + public void write(org.apache.thrift.protocol.TProtocol prot, TGetCatalogsReq struct) throws org.apache.thrift.TException {
    + TTupleProtocol oprot = (TTupleProtocol) prot;
    + struct.sessionHandle.write(oprot);
    + }
    +
    + @Override
    + public void read(org.apache.thrift.protocol.TProtocol prot, TGetCatalogsReq struct) throws org.apache.thrift.TException {
    + TTupleProtocol iprot = (TTupleProtocol) prot;
    + struct.sessionHandle = new TSessionHandle();
    + struct.sessionHandle.read(iprot);
    + struct.setSessionHandleIsSet(true);
    + }
    + }
    +
    +}
    +
  • Vgumashta at Jan 8, 2016 at 2:03 am
    http://git-wip-us.apache.org/repos/asf/hive/blob/a28f6cd8/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
    new file mode 100644
    index 0000000..83bcd03
    --- /dev/null
    +++ b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TCloseOperationResp.java
    @@ -0,0 +1,394 @@
    +/**
    + * 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/a28f6cd8/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
    new file mode 100644
    index 0000000..d9c989a
    --- /dev/null
    +++ b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TCloseSessionReq.java
    @@ -0,0 +1,394 @@
    +/**
    + * 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/a28f6cd8/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
    new file mode 100644
    index 0000000..7c64d4d
    --- /dev/null
    +++ b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TCloseSessionResp.java
    @@ -0,0 +1,394 @@
    +/**
    + * 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/a28f6cd8/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
    new file mode 100644
    index 0000000..082b9b4
    --- /dev/null
    +++ b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TColumn.java
    @@ -0,0 +1,736 @@
    +/**
    + * 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/a28f6cd8/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
    new file mode 100644
    index 0000000..b01fadb
    --- /dev/null
    +++ b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TColumnDesc.java
    @@ -0,0 +1,704 @@
    +/**
    + * 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 2:03 am
    http://git-wip-us.apache.org/repos/asf/hive/blob/a28f6cd8/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
    new file mode 100644
    index 0000000..2c2c6bb
    --- /dev/null
    +++ b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TColumnValue.java
    @@ -0,0 +1,675 @@
    +/**
    + * 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/a28f6cd8/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
    new file mode 100644
    index 0000000..dffad80
    --- /dev/null
    +++ b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TDoubleColumn.java
    @@ -0,0 +1,548 @@
    +/**
    + * 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/a28f6cd8/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
    new file mode 100644
    index 0000000..6524f93
    --- /dev/null
    +++ b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TDoubleValue.java
    @@ -0,0 +1,390 @@
    +/**
    + * 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/a28f6cd8/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
    new file mode 100644
    index 0000000..30cf243
    --- /dev/null
    +++ b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TExecuteStatementReq.java
    @@ -0,0 +1,762 @@
    +/**
    + * 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 2:03 am
    http://git-wip-us.apache.org/repos/asf/hive/blob/a28f6cd8/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
    new file mode 100644
    index 0000000..3f46013
    --- /dev/null
    +++ b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TCLIServiceConstants.java
    @@ -0,0 +1,106 @@
    +/**
    + * 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/a28f6cd8/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
    new file mode 100644
    index 0000000..fde0c47
    --- /dev/null
    +++ b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TCancelDelegationTokenReq.java
    @@ -0,0 +1,495 @@
    +/**
    + * 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/a28f6cd8/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
    new file mode 100644
    index 0000000..65d0551
    --- /dev/null
    +++ b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TCancelDelegationTokenResp.java
    @@ -0,0 +1,394 @@
    +/**
    + * 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/a28f6cd8/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
    new file mode 100644
    index 0000000..f532d09
    --- /dev/null
    +++ b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TCancelOperationReq.java
    @@ -0,0 +1,394 @@
    +/**
    + * 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/a28f6cd8/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
    new file mode 100644
    index 0000000..f7f8325
    --- /dev/null
    +++ b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TCancelOperationResp.java
    @@ -0,0 +1,394 @@
    +/**
    + * 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/a28f6cd8/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
    new file mode 100644
    index 0000000..c0c2c2c
    --- /dev/null
    +++ b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TCloseOperationReq.java
    @@ -0,0 +1,394 @@
    +/**
    + * 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 2:03 am
    http://git-wip-us.apache.org/repos/asf/hive/blob/a28f6cd8/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
    new file mode 100644
    index 0000000..0fb33c7
    --- /dev/null
    +++ b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TArrayTypeEntry.java
    @@ -0,0 +1,387 @@
    +/**
    + * 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/a28f6cd8/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
    new file mode 100644
    index 0000000..788bc89
    --- /dev/null
    +++ b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TBinaryColumn.java
    @@ -0,0 +1,548 @@
    +/**
    + * 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/a28f6cd8/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
    new file mode 100644
    index 0000000..c0c5cbe
    --- /dev/null
    +++ b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TBoolColumn.java
    @@ -0,0 +1,548 @@
    +/**
    + * 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/a28f6cd8/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
    new file mode 100644
    index 0000000..3670a1e
    --- /dev/null
    +++ b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TBoolValue.java
    @@ -0,0 +1,390 @@
    +/**
    + * 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/a28f6cd8/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
    new file mode 100644
    index 0000000..85c881e
    --- /dev/null
    +++ b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TByteColumn.java
    @@ -0,0 +1,548 @@
    +/**
    + * 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 2:03 am
    http://git-wip-us.apache.org/repos/asf/hive/blob/a28f6cd8/service/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/service/HiveServerException.java
    ----------------------------------------------------------------------
    diff --git a/service/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/service/HiveServerException.java b/service/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/service/HiveServerException.java
    new file mode 100644
    index 0000000..97b1219
    --- /dev/null
    +++ b/service/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/service/HiveServerException.java
    @@ -0,0 +1,601 @@
    +/**
    + * 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 HiveServerException extends TException implements org.apache.thrift.TBase<HiveServerException, HiveServerException._Fields>, java.io.Serializable, Cloneable, Comparable<HiveServerException> {
    + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("HiveServerException");
    +
    + private static final org.apache.thrift.protocol.TField MESSAGE_FIELD_DESC = new org.apache.thrift.protocol.TField("message", org.apache.thrift.protocol.TType.STRING, (short)1);
    + 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)2);
    + private static final org.apache.thrift.protocol.TField SQLSTATE_FIELD_DESC = new org.apache.thrift.protocol.TField("SQLState", org.apache.thrift.protocol.TType.STRING, (short)3);
    +
    + private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
    + static {
    + schemes.put(StandardScheme.class, new HiveServerExceptionStandardSchemeFactory());
    + schemes.put(TupleScheme.class, new HiveServerExceptionTupleSchemeFactory());
    + }
    +
    + private String message; // required
    + private int errorCode; // required
    + private String SQLState; // 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 {
    + MESSAGE((short)1, "message"),
    + ERROR_CODE((short)2, "errorCode"),
    + SQLSTATE((short)3, "SQLState");
    +
    + 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: // MESSAGE
    + return MESSAGE;
    + case 2: // ERROR_CODE
    + return ERROR_CODE;
    + case 3: // SQLSTATE
    + return SQLSTATE;
    + 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;
    + 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.MESSAGE, new org.apache.thrift.meta_data.FieldMetaData("message", org.apache.thrift.TFieldRequirementType.DEFAULT,
    + 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.DEFAULT,
    + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
    + tmpMap.put(_Fields.SQLSTATE, new org.apache.thrift.meta_data.FieldMetaData("SQLState", 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(HiveServerException.class, metaDataMap);
    + }
    +
    + public HiveServerException() {
    + }
    +
    + public HiveServerException(
    + String message,
    + int errorCode,
    + String SQLState)
    + {
    + this();
    + this.message = message;
    + this.errorCode = errorCode;
    + setErrorCodeIsSet(true);
    + this.SQLState = SQLState;
    + }
    +
    + /**
    + * Performs a deep copy on <i>other</i>.
    + */
    + public HiveServerException(HiveServerException other) {
    + __isset_bitfield = other.__isset_bitfield;
    + if (other.isSetMessage()) {
    + this.message = other.message;
    + }
    + this.errorCode = other.errorCode;
    + if (other.isSetSQLState()) {
    + this.SQLState = other.SQLState;
    + }
    + }
    +
    + public HiveServerException deepCopy() {
    + return new HiveServerException(this);
    + }
    +
    + @Override
    + public void clear() {
    + this.message = null;
    + setErrorCodeIsSet(false);
    + this.errorCode = 0;
    + this.SQLState = null;
    + }
    +
    + public String getMessage() {
    + return this.message;
    + }
    +
    + public void setMessage(String message) {
    + this.message = message;
    + }
    +
    + public void unsetMessage() {
    + this.message = null;
    + }
    +
    + /** Returns true if field message is set (has been assigned a value) and false otherwise */
    + public boolean isSetMessage() {
    + return this.message != null;
    + }
    +
    + public void setMessageIsSet(boolean value) {
    + if (!value) {
    + this.message = 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 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 void setFieldValue(_Fields field, Object value) {
    + switch (field) {
    + case MESSAGE:
    + if (value == null) {
    + unsetMessage();
    + } else {
    + setMessage((String)value);
    + }
    + break;
    +
    + case ERROR_CODE:
    + if (value == null) {
    + unsetErrorCode();
    + } else {
    + setErrorCode((Integer)value);
    + }
    + break;
    +
    + case SQLSTATE:
    + if (value == null) {
    + unsetSQLState();
    + } else {
    + setSQLState((String)value);
    + }
    + break;
    +
    + }
    + }
    +
    + public Object getFieldValue(_Fields field) {
    + switch (field) {
    + case MESSAGE:
    + return getMessage();
    +
    + case ERROR_CODE:
    + return getErrorCode();
    +
    + case SQLSTATE:
    + return getSQLState();
    +
    + }
    + 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 MESSAGE:
    + return isSetMessage();
    + case ERROR_CODE:
    + return isSetErrorCode();
    + case SQLSTATE:
    + return isSetSQLState();
    + }
    + throw new IllegalStateException();
    + }
    +
    + @Override
    + public boolean equals(Object that) {
    + if (that == null)
    + return false;
    + if (that instanceof HiveServerException)
    + return this.equals((HiveServerException)that);
    + return false;
    + }
    +
    + public boolean equals(HiveServerException that) {
    + if (that == null)
    + return false;
    +
    + boolean this_present_message = true && this.isSetMessage();
    + boolean that_present_message = true && that.isSetMessage();
    + if (this_present_message || that_present_message) {
    + if (!(this_present_message && that_present_message))
    + return false;
    + if (!this.message.equals(that.message))
    + return false;
    + }
    +
    + boolean this_present_errorCode = true;
    + boolean that_present_errorCode = true;
    + 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_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;
    + }
    +
    + return true;
    + }
    +
    + @Override
    + public int hashCode() {
    + List<Object> list = new ArrayList<Object>();
    +
    + boolean present_message = true && (isSetMessage());
    + list.add(present_message);
    + if (present_message)
    + list.add(message);
    +
    + boolean present_errorCode = true;
    + list.add(present_errorCode);
    + if (present_errorCode)
    + list.add(errorCode);
    +
    + boolean present_SQLState = true && (isSetSQLState());
    + list.add(present_SQLState);
    + if (present_SQLState)
    + list.add(SQLState);
    +
    + return list.hashCode();
    + }
    +
    + @Override
    + public int compareTo(HiveServerException other) {
    + if (!getClass().equals(other.getClass())) {
    + return getClass().getName().compareTo(other.getClass().getName());
    + }
    +
    + int lastComparison = 0;
    +
    + lastComparison = Boolean.valueOf(isSetMessage()).compareTo(other.isSetMessage());
    + if (lastComparison != 0) {
    + return lastComparison;
    + }
    + if (isSetMessage()) {
    + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.message, other.message);
    + 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(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;
    + }
    + }
    + 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("HiveServerException(");
    + boolean first = true;
    +
    + sb.append("message:");
    + if (this.message == null) {
    + sb.append("null");
    + } else {
    + sb.append(this.message);
    + }
    + first = false;
    + if (!first) sb.append(", ");
    + sb.append("errorCode:");
    + sb.append(this.errorCode);
    + first = false;
    + if (!first) sb.append(", ");
    + sb.append("SQLState:");
    + if (this.SQLState == null) {
    + sb.append("null");
    + } else {
    + sb.append(this.SQLState);
    + }
    + 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 HiveServerExceptionStandardSchemeFactory implements SchemeFactory {
    + public HiveServerExceptionStandardScheme getScheme() {
    + return new HiveServerExceptionStandardScheme();
    + }
    + }
    +
    + private static class HiveServerExceptionStandardScheme extends StandardScheme<HiveServerException> {
    +
    + public void read(org.apache.thrift.protocol.TProtocol iprot, HiveServerException struct) throws org.apache.thrift.TException {
    + org.apache.thrift.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: // MESSAGE
    + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
    + struct.message = iprot.readString();
    + struct.setMessageIsSet(true);
    + } else {
    + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
    + }
    + break;
    + case 2: // 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 3: // SQLSTATE
    + 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;
    + 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, HiveServerException struct) throws org.apache.thrift.TException {
    + struct.validate();
    +
    + oprot.writeStructBegin(STRUCT_DESC);
    + if (struct.message != null) {
    + oprot.writeFieldBegin(MESSAGE_FIELD_DESC);
    + oprot.writeString(struct.message);
    + oprot.writeFieldEnd();
    + }
    + oprot.writeFieldBegin(ERROR_CODE_FIELD_DESC);
    + oprot.writeI32(struct.errorCode);
    + oprot.writeFieldEnd();
    + if (struct.SQLState != null) {
    + oprot.writeFieldBegin(SQLSTATE_FIELD_DESC);
    + oprot.writeString(struct.SQLState);
    + oprot.writeFieldEnd();
    + }
    + oprot.writeFieldStop();
    + oprot.writeStructEnd();
    + }
    +
    + }
    +
    + private static class HiveServerExceptionTupleSchemeFactory implements SchemeFactory {
    + public HiveServerExceptionTupleScheme getScheme() {
    + return new HiveServerExceptionTupleScheme();
    + }
    + }
    +
    + private static class HiveServerExceptionTupleScheme extends TupleScheme<HiveServerException> {
    +
    + @Override
    + public void write(org.apache.thrift.protocol.TProtocol prot, HiveServerException struct) throws org.apache.thrift.TException {
    + TTupleProtocol oprot = (TTupleProtocol) prot;
    + BitSet optionals = new BitSet();
    + if (struct.isSetMessage()) {
    + optionals.set(0);
    + }
    + if (struct.isSetErrorCode()) {
    + optionals.set(1);
    + }
    + if (struct.isSetSQLState()) {
    + optionals.set(2);
    + }
    + oprot.writeBitSet(optionals, 3);
    + if (struct.isSetMessage()) {
    + oprot.writeString(struct.message);
    + }
    + if (struct.isSetErrorCode()) {
    + oprot.writeI32(struct.errorCode);
    + }
    + if (struct.isSetSQLState()) {
    + oprot.writeString(struct.SQLState);
    + }
    + }
    +
    + @Override
    + public void read(org.apache.thrift.protocol.TProtocol prot, HiveServerException struct) throws org.apache.thrift.TException {
    + TTupleProtocol iprot = (TTupleProtocol) prot;
    + BitSet incoming = iprot.readBitSet(3);
    + if (incoming.get(0)) {
    + struct.message = iprot.readString();
    + struct.setMessageIsSet(true);
    + }
    + if (incoming.get(1)) {
    + struct.errorCode = iprot.readI32();
    + struct.setErrorCodeIsSet(true);
    + }
    + if (incoming.get(2)) {
    + struct.SQLState = iprot.readString();
    + struct.setSQLStateIsSet(true);
    + }
    + }
    + }
    +
    +}
    +

    http://git-wip-us.apache.org/repos/asf/hive/blob/a28f6cd8/service/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/service/JobTrackerState.java
    ----------------------------------------------------------------------
    diff --git a/service/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/service/JobTrackerState.java b/service/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/service/JobTrackerState.java
    new file mode 100644
    index 0000000..46c71ee
    --- /dev/null
    +++ b/service/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/service/JobTrackerState.java
    @@ -0,0 +1,45 @@
    +/**
    + * 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 java.util.Map;
    +import java.util.HashMap;
    +import org.apache.thrift.TEnum;
    +
    +public enum JobTrackerState implements org.apache.thrift.TEnum {
    + INITIALIZING(1),
    + RUNNING(2);
    +
    + private final int value;
    +
    + private JobTrackerState(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 JobTrackerState findByValue(int value) {
    + switch (value) {
    + case 1:
    + return INITIALIZING;
    + case 2:
    + return RUNNING;
    + default:
    + return null;
    + }
    + }
    +}
  • Vgumashta at Jan 8, 2016 at 2:03 am
    http://git-wip-us.apache.org/repos/asf/hive/blob/a28f6cd8/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
    new file mode 100644
    index 0000000..988bb4c
    --- /dev/null
    +++ b/service/src/gen/thrift/gen-cpp/TCLIService_server.skeleton.cpp
    @@ -0,0 +1,134 @@
    +// 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 2:03 am
    http://git-wip-us.apache.org/repos/asf/hive/blob/a28f6cd8/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
    new file mode 100644
    index 0000000..934a8a5
    --- /dev/null
    +++ b/service/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/service/ThriftHive.java
    @@ -0,0 +1,7784 @@
    +/**
    + * 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();
    + }
    +
    + @Override
    + public int compareTo(execute_args other) {
    + if (!getClass().equals(other.getClass())) {
    + return getClass().getName().compareTo(other.getClass().getName());
    + }
    +
    + int lastComparison = 0;
    +
    + lastComparison = Boolean.valueOf(isSetQuery()).compareTo(other.isSetQuery());
    + if (lastComparison != 0) {
    + return lastComparison;
    + }
    + if (isSetQuery()) {
    + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.query, other.query);
    + 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("execute_args(");
    + boolean first = true;
    +
    + sb.append("query:");
    + if (this.query == null) {
    + sb.append("null");
    + } else {
    + sb.append(this.query);
    + }
    + 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 execute_argsStandardSchemeFactory implements SchemeFactory {
    + public execute_argsStandardScheme getScheme() {
    + return new execute_argsStandardScheme();
    + }
    + }
    +
    + private static class execute_argsStandardScheme extends StandardScheme<execute_args> {
    +
    + public void read(org.apache.thrift.protocol.TProtocol iprot, execute_args struct) throws org.apache.thrift.TException {
    + org.apache.thrift.protocol.TField schemeField;
    + iprot.readStructBegin();
    + while (true)
    + {
    + schemeField = iprot.readFieldBegin();
    + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
    + break;
    + }
    + switch (schemeField.id) {
    + case 1: // QUERY
    + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
    + struct.query = iprot.readString();
    + struct.setQueryIsSet(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, execute_args struct) throws org.apache.thrift.TException {
    + struct.validate();
    +
    + oprot.writeStructBegin(STRUCT_DESC);
    + if (struct.query != null) {
    + oprot.writeFieldBegin(QUERY_FIELD_DESC);
    + oprot.writeString(struct.query);
    + oprot.writeFieldEnd();
    + }
    + oprot.writeFieldStop();
    + oprot.writeStructEnd();
    + }
    +
    + }
    +
    + private static class execute_argsTupleSchemeFactory implements SchemeFactory {
    + public execute_argsTupleScheme getScheme() {
    + return new execute_argsTupleScheme();
    + }
    + }
    +
    + private static class execute_argsTupleScheme extends TupleScheme<execute_args> {
    +
    + @Override
    + public void write(org.apache.thrift.protocol.TProtocol prot, execute_args struct) throws org.apache.thrift.TException {
    + TTupleProtocol oprot = (TTupleProtocol) prot;
    + BitSet optionals = new BitSet();
    + if (struct.isSetQuery()) {
    + optionals.set(0);
    + }
    + oprot.writeBitSet(optionals, 1);
    + if (struct.isSetQuery()) {
    + oprot.writeString(struct.query);
    + }
    + }
    +
    + @Override
    + public void read(org.apache.thrift.protocol.TProtocol prot, execute_args struct) throws org.apache.thrift.TException {
    + TTupleProtocol iprot = (TTupleProtocol) prot;
    + BitSet incoming = iprot.readBitSet(1);
    + if (incoming.get(0)) {
    + struct.query = iprot.readString();
    + struct.setQueryIsSet(true);
    + }
    + }
    + }
    +
    + }
    +
    + public static class execute_result implements org.apache.thrift.TBase<execute_result, execute_result._Fields>, java.io.Serializable, Cloneable, Comparable<execute_result> {
    + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("execute_result");
    +
    + private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", 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 execute_resultStandardSchemeFactory());
    + schemes.put(TupleScheme.class, new execute_resultTupleSchemeFactory());
    + }
    +
    + private HiveServerException ex; // 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 {
    + EX((short)1, "ex");
    +
    + 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: // EX
    + return EX;
    + 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.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT,
    + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
    + metaDataMap = Collections.unmodifiableMap(tmpMap);
    + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(execute_result.class, metaDataMap);
    + }
    +
    + public execute_result() {
    + }
    +
    + public execute_result(
    + HiveServerException ex)
    + {
    + this();
    + this.ex = ex;
    + }
    +
    + /**
    + * Performs a deep copy on <i>other</i>.
    + */
    + public execute_result(execute_result other) {
    + if (other.isSetEx()) {
    + this.ex = new HiveServerException(other.ex);
    + }
    + }
    +
    + public execute_result deepCopy() {
    + return new execute_result(this);
    + }
    +
    + @Override
    + public void clear() {
    + this.ex = null;
    + }
    +
    + public HiveServerException getEx() {
    + return this.ex;
    + }
    +
    + public void setEx(HiveServerException ex) {
    + this.ex = ex;
    + }
    +
    + public void unsetEx() {
    + this.ex = null;
    + }
    +
    + /** Returns true if field ex is set (has been assigned a value) and false otherwise */
    + public boolean isSetEx() {
    + return this.ex != null;
    + }
    +
    + public void setExIsSet(boolean value) {
    + if (!value) {
    + this.ex = null;
    + }
    + }
    +
    + public void setFieldValue(_Fields field, Object value) {
    + switch (field) {
    + case EX:
    + if (value == null) {
    + unsetEx();
    + } else {
    + setEx((HiveServerException)value);
    + }
    + break;
    +
    + }
    + }
    +
    + public Object getFieldValue(_Fields field) {
    + switch (field) {
    + case EX:
    + return getEx();
    +
    + }
    + 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 EX:
    + return isSetEx();
    + }
    + throw new IllegalStateException();
    + }
    +
    + @Override
    + public boolean equals(Object that) {
    + if (that == null)
    + return false;
    + if (that instanceof execute_result)
    + return this.equals((execute_result)that);
    + return false;
    + }
    +
    + public boolean equals(execute_result that) {
    + if (that == null)
    + return false;
    +
    + boolean this_present_ex = true && this.isSetEx();
    + boolean that_present_ex = true && that.isSetEx();
    + if (this_present_ex || that_present_ex) {
    + if (!(this_present_ex && that_present_ex))
    + return false;
    + if (!this.ex.equals(that.ex))
    + return false;
    + }
    +
    + return true;
    + }
    +
    + @Override
    + public int hashCode() {
    + List<Object> list = new ArrayList<Object>();
    +
    + boolean present_ex = true && (isSetEx());
    + list.add(present_ex);
    + if (present_ex)
    + list.add(ex);
    +
    + return list.hashCode();
    + }
    +
    + @Override
    + public int compareTo(execute_result other) {
    + if (!getClass().equals(other.getClass())) {
    + return getClass().getName().compareTo(other.getClass().getName());
    + }
    +
    + int lastComparison = 0;
    +
    + lastComparison = Boolean.valueOf(isSetEx()).compareTo(other.isSetEx());
    + if (lastComparison != 0) {
    + return lastComparison;
    + }
    + if (isSetEx()) {
    + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, other.ex);
    + 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("execute_result(");
    + boolean first = true;
    +
    + sb.append("ex:");
    + if (this.ex == null) {
    + sb.append("null");
    + } else {
    + sb.append(this.ex);
    + }
    + 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 execute_resultStandardSchemeFactory implements SchemeFactory {
    + public execute_resultStandardScheme getScheme() {
    + return new execute_resultStandardScheme();
    + }
    + }
    +
    + private static class execute_resultStandardScheme extends StandardScheme<execute_result> {
    +
    + public void read(org.apache.thrift.protocol.TProtocol iprot, execute_result struct) throws org.apache.thrift.TException {
    + org.apache.thrift.protocol.TField schemeField;
    + iprot.readStructBegin();
    + while (true)
    + {
    + schemeField = iprot.readFieldBegin();
    + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
    + break;
    + }
    + switch (schemeField.id) {
    + case 1: // EX
    + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
    + struct.ex = new HiveServerException();
    + struct.ex.read(iprot);
    + struct.setExIsSet(true);
    + } else {
    + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
    + }
    + break;
    + default:
    + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
    + }
    + iprot.readFieldEnd();
    + }
    + iprot.readStructEnd();
    + struct.validate();
    + }
    +
    + public void write(org.apache.thrift.protocol.TProtocol oprot, execute_result struct) throws org.apache.thrift.TException {
    + struct.validate();
    +
    + oprot.writeStructBegin(STRUCT_DESC);
    + if (struct.ex != null) {
    + oprot.writeFieldBegin(EX_FIELD_DESC);
    + struct.ex.write(oprot);
    + oprot.writeFieldEnd();
    + }
    + oprot.writeFieldStop();
    + oprot.writeStructEnd();
    + }
    +
    + }
    +
    + private static class execute_resultTupleSchemeFactory implements SchemeFactory {
    + public execute_resultTupleScheme getScheme() {
    + return new execute_resultTupleScheme();
    + }
    + }
    +
    + private static class execute_resultTupleScheme extends TupleScheme<execute_result> {
    +
    + @Override
    + public void write(org.apache.thrift.protocol.TProtocol prot, execute_result struct) throws org.apache.thrift.TException {
    + TTupleProtocol oprot = (TTupleProtocol) prot;
    + BitSet optionals = new BitSet();
    + if (struct.isSetEx()) {
    + optionals.set(0);
    + }
    + oprot.writeBitSet(optionals, 1);
    + if (struct.isSetEx()) {
    + struct.ex.write(oprot);
    + }
    + }
    +
    + @Override
    + public void read(org.apache.thrift.protocol.TProtocol prot, execute_result struct) throws org.apache.thrift.TException {
    + TTupleProtocol iprot = (TTupleProtocol) prot;
    + BitSet incoming = iprot.readBitSet(1);
    + if (incoming.get(0)) {
    + struct.ex = new HiveServerException();
    + struct.ex.read(iprot);
    + struct.setExIsSet(true);
    + }
    + }
    + }
    +
    + }
    +
    + public static class fetchOne_args implements org.apache.thrift.TBase<fetchOne_args, fetchOne_args._Fields>, java.io.Serializable, Cloneable, Comparable<fetchOne_args> {
    + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("fetchOne_args");
    +
    +
    + private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
    + static {
    + schemes.put(StandardScheme.class, new fetchOne_argsStandardSchemeFactory());
    + schemes.put(TupleScheme.class, new fetchOne_argsTupleSchemeFactory());
    + }
    +
    +
    + /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
    + public enum _Fields implements org.apache.thrift.TFieldIdEnum {
    +;
    +
    + 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) {
    + 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);
    + metaDataMap = Collections.unmodifiableMap(tmpMap);
    + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(fetchOne_args.class, metaDataMap);
    + }
    +
    + public fetchOne_args() {
    + }
    +
    + /**
    + * Performs a deep copy on <i>other</i>.
    + */
    + public fetchOne_args(fetchOne_args other) {
    + }
    +
    + public fetchOne_args deepCopy() {
    + return new fetchOne_args(this);
    + }
    +
    + @Override
    + public void clear() {
    + }
    +
    + public void setFieldValue(_Fields field, Object value) {
    + switch (field) {
    + }
    + }
    +
    + public Object getFieldValue(_Fields field) {
    + switch (field) {
    + }
    + 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) {
    + }
    + throw new IllegalStateException();
    + }
    +
    + @Override
    + public boolean equals(Object that) {
    + if (that == null)
    + return false;
    + if (that instanceof fetchOne_args)
    + return this.equals((fetchOne_args)that);
    + return false;
    + }
    +
    + public boolean equals(fetchOne_args that) {
    + if (that == null)
    + return false;
    +
    + return true;
    + }
    +
    + @Override
    + public int hashCode() {
    + List<Object> list = new ArrayList<Object>();
    +
    + return list.hashCode();
    + }
    +
    + @Override
    + public int compareTo(fetchOne_args other) {
    + if (!getClass().equals(other.getClass())) {
    + return getClass().getName().compareTo(other.getClass().getName());
    + }
    +
    + int lastComparison = 0;
    +
    + 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("fetchOne_args(");
    + boolean first = true;
    +
    + 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 fetchOne_argsStandardSchemeFactory implements SchemeFactory {
    + public fetchOne_argsStandardScheme getScheme() {
    + return new fetchOne_argsStandardScheme();
    + }
    + }
    +
    + private static class fetchOne_argsStandardScheme extends StandardScheme<fetchOne_args> {
    +
    + public void read(org.apache.thrift.protocol.TProtocol iprot, fetchOne_args struct) throws org.apache.thrift.TException {
    + org.apache.thrift.protocol.TField schemeField;
    + iprot.readStructBegin();
    + while (true)
    + {
    + schemeField = iprot.readFieldBegin();
    + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
    + break;
    + }
    + swit

    <TRUNCATED>
  • Vgumashta at Jan 8, 2016 at 2:03 am
    http://git-wip-us.apache.org/repos/asf/hive/blob/a28f6cd8/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
    new file mode 100644
    index 0000000..ded848f
    --- /dev/null
    +++ b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TCLIService.java
    @@ -0,0 +1,16422 @@
    +/**
    + * 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 2:03 am
    http://git-wip-us.apache.org/repos/asf/hive/blob/a28f6cd8/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
    new file mode 100644
    index 0000000..902bd4b
    --- /dev/null
    +++ b/service/src/gen/thrift/gen-cpp/ThriftHive.h
    @@ -0,0 +1,1224 @@
    +/**
    + * 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/a28f6cd8/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
    new file mode 100644
    index 0000000..3b61b76
    --- /dev/null
    +++ b/service/src/gen/thrift/gen-cpp/ThriftHive_server.skeleton.cpp
    @@ -0,0 +1,84 @@
    +// 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/a28f6cd8/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
    new file mode 100644
    index 0000000..e2bbe71
    --- /dev/null
    +++ b/service/src/gen/thrift/gen-cpp/hive_service_constants.cpp
    @@ -0,0 +1,17 @@
    +/**
    + * 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/a28f6cd8/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
    new file mode 100644
    index 0000000..e0887f4
    --- /dev/null
    +++ b/service/src/gen/thrift/gen-cpp/hive_service_constants.h
    @@ -0,0 +1,24 @@
    +/**
    + * 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/a28f6cd8/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
    new file mode 100644
    index 0000000..9ddf7c1
    --- /dev/null
    +++ b/service/src/gen/thrift/gen-cpp/hive_service_types.cpp
    @@ -0,0 +1,351 @@
    +/**
    + * 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/a28f6cd8/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
    new file mode 100644
    index 0000000..266f8ea
    --- /dev/null
    +++ b/service/src/gen/thrift/gen-cpp/hive_service_types.h
    @@ -0,0 +1,176 @@
    +/**
    + * 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/a28f6cd8/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
    new file mode 100644
    index 0000000..ad89867
    --- /dev/null
    +++ b/service/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/service/HiveClusterStatus.java
    @@ -0,0 +1,901 @@
    +/**
    + * 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 2:03 am
    http://git-wip-us.apache.org/repos/asf/hive/blob/a28f6cd8/service/src/gen/thrift/gen-cpp/TCLIService_types.h
    ----------------------------------------------------------------------
    diff --git a/service/src/gen/thrift/gen-cpp/TCLIService_types.h b/service/src/gen/thrift/gen-cpp/TCLIService_types.h
    new file mode 100644
    index 0000000..b078c99
    --- /dev/null
    +++ b/service/src/gen/thrift/gen-cpp/TCLIService_types.h
    @@ -0,0 +1,4141 @@
    +/**
    + * Autogenerated by Thrift Compiler (0.9.3)
    + *
    + * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
    + * @generated
    + */
    +#ifndef TCLIService_TYPES_H
    +#define TCLIService_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>
    +
    +
    +namespace apache { namespace hive { namespace service { namespace cli { namespace thrift {
    +
    +struct TProtocolVersion {
    + enum type {
    + 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
    + };
    +};
    +
    +extern const std::map<int, const char*> _TProtocolVersion_VALUES_TO_NAMES;
    +
    +struct TTypeId {
    + enum type {
    + 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
    + };
    +};
    +
    +extern const std::map<int, const char*> _TTypeId_VALUES_TO_NAMES;
    +
    +struct TStatusCode {
    + enum type {
    + SUCCESS_STATUS = 0,
    + SUCCESS_WITH_INFO_STATUS = 1,
    + STILL_EXECUTING_STATUS = 2,
    + ERROR_STATUS = 3,
    + INVALID_HANDLE_STATUS = 4
    + };
    +};
    +
    +extern const std::map<int, const char*> _TStatusCode_VALUES_TO_NAMES;
    +
    +struct TOperationState {
    + enum type {
    + INITIALIZED_STATE = 0,
    + RUNNING_STATE = 1,
    + FINISHED_STATE = 2,
    + CANCELED_STATE = 3,
    + CLOSED_STATE = 4,
    + ERROR_STATE = 5,
    + UKNOWN_STATE = 6,
    + PENDING_STATE = 7
    + };
    +};
    +
    +extern const std::map<int, const char*> _TOperationState_VALUES_TO_NAMES;
    +
    +struct TOperationType {
    + enum type {
    + 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
    + };
    +};
    +
    +extern const std::map<int, const char*> _TOperationType_VALUES_TO_NAMES;
    +
    +struct TGetInfoType {
    + enum type {
    + 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
    + };
    +};
    +
    +extern const std::map<int, const char*> _TGetInfoType_VALUES_TO_NAMES;
    +
    +struct TFetchOrientation {
    + enum type {
    + FETCH_NEXT = 0,
    + FETCH_PRIOR = 1,
    + FETCH_RELATIVE = 2,
    + FETCH_ABSOLUTE = 3,
    + FETCH_FIRST = 4,
    + FETCH_LAST = 5
    + };
    +};
    +
    +extern const std::map<int, const char*> _TFetchOrientation_VALUES_TO_NAMES;
    +
    +typedef int32_t TTypeEntryPtr;
    +
    +typedef std::string TIdentifier;
    +
    +typedef std::string TPattern;
    +
    +typedef std::string TPatternOrIdentifier;
    +
    +class TTypeQualifierValue;
    +
    +class TTypeQualifiers;
    +
    +class TPrimitiveTypeEntry;
    +
    +class TArrayTypeEntry;
    +
    +class TMapTypeEntry;
    +
    +class TStructTypeEntry;
    +
    +class TUnionTypeEntry;
    +
    +class TUserDefinedTypeEntry;
    +
    +class TTypeEntry;
    +
    +class TTypeDesc;
    +
    +class TColumnDesc;
    +
    +class TTableSchema;
    +
    +class TBoolValue;
    +
    +class TByteValue;
    +
    +class TI16Value;
    +
    +class TI32Value;
    +
    +class TI64Value;
    +
    +class TDoubleValue;
    +
    +class TStringValue;
    +
    +class TColumnValue;
    +
    +class TRow;
    +
    +class TBoolColumn;
    +
    +class TByteColumn;
    +
    +class TI16Column;
    +
    +class TI32Column;
    +
    +class TI64Column;
    +
    +class TDoubleColumn;
    +
    +class TStringColumn;
    +
    +class TBinaryColumn;
    +
    +class TColumn;
    +
    +class TRowSet;
    +
    +class TStatus;
    +
    +class THandleIdentifier;
    +
    +class TSessionHandle;
    +
    +class TOperationHandle;
    +
    +class TOpenSessionReq;
    +
    +class TOpenSessionResp;
    +
    +class TCloseSessionReq;
    +
    +class TCloseSessionResp;
    +
    +class TGetInfoValue;
    +
    +class TGetInfoReq;
    +
    +class TGetInfoResp;
    +
    +class TExecuteStatementReq;
    +
    +class TExecuteStatementResp;
    +
    +class TGetTypeInfoReq;
    +
    +class TGetTypeInfoResp;
    +
    +class TGetCatalogsReq;
    +
    +class TGetCatalogsResp;
    +
    +class TGetSchemasReq;
    +
    +class TGetSchemasResp;
    +
    +class TGetTablesReq;
    +
    +class TGetTablesResp;
    +
    +class TGetTableTypesReq;
    +
    +class TGetTableTypesResp;
    +
    +class TGetColumnsReq;
    +
    +class TGetColumnsResp;
    +
    +class TGetFunctionsReq;
    +
    +class TGetFunctionsResp;
    +
    +class TGetOperationStatusReq;
    +
    +class TGetOperationStatusResp;
    +
    +class TCancelOperationReq;
    +
    +class TCancelOperationResp;
    +
    +class TCloseOperationReq;
    +
    +class TCloseOperationResp;
    +
    +class TGetResultSetMetadataReq;
    +
    +class TGetResultSetMetadataResp;
    +
    +class TFetchResultsReq;
    +
    +class TFetchResultsResp;
    +
    +class TGetDelegationTokenReq;
    +
    +class TGetDelegationTokenResp;
    +
    +class TCancelDelegationTokenReq;
    +
    +class TCancelDelegationTokenResp;
    +
    +class TRenewDelegationTokenReq;
    +
    +class TRenewDelegationTokenResp;
    +
    +typedef struct _TTypeQualifierValue__isset {
    + _TTypeQualifierValue__isset() : i32Value(false), stringValue(false) {}
    + bool i32Value :1;
    + bool stringValue :1;
    +} _TTypeQualifierValue__isset;
    +
    +class TTypeQualifierValue {
    + public:
    +
    + TTypeQualifierValue(const TTypeQualifierValue&);
    + TTypeQualifierValue& operator=(const TTypeQualifierValue&);
    + TTypeQualifierValue() : i32Value(0), stringValue() {
    + }
    +
    + virtual ~TTypeQualifierValue() throw();
    + int32_t i32Value;
    + std::string stringValue;
    +
    + _TTypeQualifierValue__isset __isset;
    +
    + void __set_i32Value(const int32_t val);
    +
    + void __set_stringValue(const std::string& val);
    +
    + bool operator == (const TTypeQualifierValue & rhs) const
    + {
    + if (__isset.i32Value != rhs.__isset.i32Value)
    + return false;
    + else if (__isset.i32Value && !(i32Value == rhs.i32Value))
    + return false;
    + if (__isset.stringValue != rhs.__isset.stringValue)
    + return false;
    + else if (__isset.stringValue && !(stringValue == rhs.stringValue))
    + return false;
    + return true;
    + }
    + bool operator != (const TTypeQualifierValue &rhs) const {
    + return !(*this == rhs);
    + }
    +
    + bool operator < (const TTypeQualifierValue & ) 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(TTypeQualifierValue &a, TTypeQualifierValue &b);
    +
    +inline std::ostream& operator<<(std::ostream& out, const TTypeQualifierValue& obj)
    +{
    + obj.printTo(out);
    + return out;
    +}
    +
    +
    +class TTypeQualifiers {
    + public:
    +
    + TTypeQualifiers(const TTypeQualifiers&);
    + TTypeQualifiers& operator=(const TTypeQualifiers&);
    + TTypeQualifiers() {
    + }
    +
    + virtual ~TTypeQualifiers() throw();
    + std::map<std::string, TTypeQualifierValue> qualifiers;
    +
    + void __set_qualifiers(const std::map<std::string, TTypeQualifierValue> & val);
    +
    + bool operator == (const TTypeQualifiers & rhs) const
    + {
    + if (!(qualifiers == rhs.qualifiers))
    + return false;
    + return true;
    + }
    + bool operator != (const TTypeQualifiers &rhs) const {
    + return !(*this == rhs);
    + }
    +
    + bool operator < (const TTypeQualifiers & ) 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(TTypeQualifiers &a, TTypeQualifiers &b);
    +
    +inline std::ostream& operator<<(std::ostream& out, const TTypeQualifiers& obj)
    +{
    + obj.printTo(out);
    + return out;
    +}
    +
    +typedef struct _TPrimitiveTypeEntry__isset {
    + _TPrimitiveTypeEntry__isset() : typeQualifiers(false) {}
    + bool typeQualifiers :1;
    +} _TPrimitiveTypeEntry__isset;
    +
    +class TPrimitiveTypeEntry {
    + public:
    +
    + TPrimitiveTypeEntry(const TPrimitiveTypeEntry&);
    + TPrimitiveTypeEntry& operator=(const TPrimitiveTypeEntry&);
    + TPrimitiveTypeEntry() : type((TTypeId::type)0) {
    + }
    +
    + virtual ~TPrimitiveTypeEntry() throw();
    + TTypeId::type type;
    + TTypeQualifiers typeQualifiers;
    +
    + _TPrimitiveTypeEntry__isset __isset;
    +
    + void __set_type(const TTypeId::type val);
    +
    + void __set_typeQualifiers(const TTypeQualifiers& val);
    +
    + bool operator == (const TPrimitiveTypeEntry & rhs) const
    + {
    + if (!(type == rhs.type))
    + return false;
    + if (__isset.typeQualifiers != rhs.__isset.typeQualifiers)
    + return false;
    + else if (__isset.typeQualifiers && !(typeQualifiers == rhs.typeQualifiers))
    + return false;
    + return true;
    + }
    + bool operator != (const TPrimitiveTypeEntry &rhs) const {
    + return !(*this == rhs);
    + }
    +
    + bool operator < (const TPrimitiveTypeEntry & ) 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(TPrimitiveTypeEntry &a, TPrimitiveTypeEntry &b);
    +
    +inline std::ostream& operator<<(std::ostream& out, const TPrimitiveTypeEntry& obj)
    +{
    + obj.printTo(out);
    + return out;
    +}
    +
    +
    +class TArrayTypeEntry {
    + public:
    +
    + TArrayTypeEntry(const TArrayTypeEntry&);
    + TArrayTypeEntry& operator=(const TArrayTypeEntry&);
    + TArrayTypeEntry() : objectTypePtr(0) {
    + }
    +
    + virtual ~TArrayTypeEntry() throw();
    + TTypeEntryPtr objectTypePtr;
    +
    + void __set_objectTypePtr(const TTypeEntryPtr val);
    +
    + bool operator == (const TArrayTypeEntry & rhs) const
    + {
    + if (!(objectTypePtr == rhs.objectTypePtr))
    + return false;
    + return true;
    + }
    + bool operator != (const TArrayTypeEntry &rhs) const {
    + return !(*this == rhs);
    + }
    +
    + bool operator < (const TArrayTypeEntry & ) 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(TArrayTypeEntry &a, TArrayTypeEntry &b);
    +
    +inline std::ostream& operator<<(std::ostream& out, const TArrayTypeEntry& obj)
    +{
    + obj.printTo(out);
    + return out;
    +}
    +
    +
    +class TMapTypeEntry {
    + public:
    +
    + TMapTypeEntry(const TMapTypeEntry&);
    + TMapTypeEntry& operator=(const TMapTypeEntry&);
    + TMapTypeEntry() : keyTypePtr(0), valueTypePtr(0) {
    + }
    +
    + virtual ~TMapTypeEntry() throw();
    + TTypeEntryPtr keyTypePtr;
    + TTypeEntryPtr valueTypePtr;
    +
    + void __set_keyTypePtr(const TTypeEntryPtr val);
    +
    + void __set_valueTypePtr(const TTypeEntryPtr val);
    +
    + bool operator == (const TMapTypeEntry & rhs) const
    + {
    + if (!(keyTypePtr == rhs.keyTypePtr))
    + return false;
    + if (!(valueTypePtr == rhs.valueTypePtr))
    + return false;
    + return true;
    + }
    + bool operator != (const TMapTypeEntry &rhs) const {
    + return !(*this == rhs);
    + }
    +
    + bool operator < (const TMapTypeEntry & ) 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(TMapTypeEntry &a, TMapTypeEntry &b);
    +
    +inline std::ostream& operator<<(std::ostream& out, const TMapTypeEntry& obj)
    +{
    + obj.printTo(out);
    + return out;
    +}
    +
    +
    +class TStructTypeEntry {
    + public:
    +
    + TStructTypeEntry(const TStructTypeEntry&);
    + TStructTypeEntry& operator=(const TStructTypeEntry&);
    + TStructTypeEntry() {
    + }
    +
    + virtual ~TStructTypeEntry() throw();
    + std::map<std::string, TTypeEntryPtr> nameToTypePtr;
    +
    + void __set_nameToTypePtr(const std::map<std::string, TTypeEntryPtr> & val);
    +
    + bool operator == (const TStructTypeEntry & rhs) const
    + {
    + if (!(nameToTypePtr == rhs.nameToTypePtr))
    + return false;
    + return true;
    + }
    + bool operator != (const TStructTypeEntry &rhs) const {
    + return !(*this == rhs);
    + }
    +
    + bool operator < (const TStructTypeEntry & ) 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(TStructTypeEntry &a, TStructTypeEntry &b);
    +
    +inline std::ostream& operator<<(std::ostream& out, const TStructTypeEntry& obj)
    +{
    + obj.printTo(out);
    + return out;
    +}
    +
    +
    +class TUnionTypeEntry {
    + public:
    +
    + TUnionTypeEntry(const TUnionTypeEntry&);
    + TUnionTypeEntry& operator=(const TUnionTypeEntry&);
    + TUnionTypeEntry() {
    + }
    +
    + virtual ~TUnionTypeEntry() throw();
    + std::map<std::string, TTypeEntryPtr> nameToTypePtr;
    +
    + void __set_nameToTypePtr(const std::map<std::string, TTypeEntryPtr> & val);
    +
    + bool operator == (const TUnionTypeEntry & rhs) const
    + {
    + if (!(nameToTypePtr == rhs.nameToTypePtr))
    + return false;
    + return true;
    + }
    + bool operator != (const TUnionTypeEntry &rhs) const {
    + return !(*this == rhs);
    + }
    +
    + bool operator < (const TUnionTypeEntry & ) 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(TUnionTypeEntry &a, TUnionTypeEntry &b);
    +
    +inline std::ostream& operator<<(std::ostream& out, const TUnionTypeEntry& obj)
    +{
    + obj.printTo(out);
    + return out;
    +}
    +
    +
    +class TUserDefinedTypeEntry {
    + public:
    +
    + TUserDefinedTypeEntry(const TUserDefinedTypeEntry&);
    + TUserDefinedTypeEntry& operator=(const TUserDefinedTypeEntry&);
    + TUserDefinedTypeEntry() : typeClassName() {
    + }
    +
    + virtual ~TUserDefinedTypeEntry() throw();
    + std::string typeClassName;
    +
    + void __set_typeClassName(const std::string& val);
    +
    + bool operator == (const TUserDefinedTypeEntry & rhs) const
    + {
    + if (!(typeClassName == rhs.typeClassName))
    + return false;
    + return true;
    + }
    + bool operator != (const TUserDefinedTypeEntry &rhs) const {
    + return !(*this == rhs);
    + }
    +
    + bool operator < (const TUserDefinedTypeEntry & ) 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(TUserDefinedTypeEntry &a, TUserDefinedTypeEntry &b);
    +
    +inline std::ostream& operator<<(std::ostream& out, const TUserDefinedTypeEntry& obj)
    +{
    + obj.printTo(out);
    + return out;
    +}
    +
    +typedef struct _TTypeEntry__isset {
    + _TTypeEntry__isset() : primitiveEntry(false), arrayEntry(false), mapEntry(false), structEntry(false), unionEntry(false), userDefinedTypeEntry(false) {}
    + bool primitiveEntry :1;
    + bool arrayEntry :1;
    + bool mapEntry :1;
    + bool structEntry :1;
    + bool unionEntry :1;
    + bool userDefinedTypeEntry :1;
    +} _TTypeEntry__isset;
    +
    +class TTypeEntry {
    + public:
    +
    + TTypeEntry(const TTypeEntry&);
    + TTypeEntry& operator=(const TTypeEntry&);
    + TTypeEntry() {
    + }
    +
    + virtual ~TTypeEntry() throw();
    + TPrimitiveTypeEntry primitiveEntry;
    + TArrayTypeEntry arrayEntry;
    + TMapTypeEntry mapEntry;
    + TStructTypeEntry structEntry;
    + TUnionTypeEntry unionEntry;
    + TUserDefinedTypeEntry userDefinedTypeEntry;
    +
    + _TTypeEntry__isset __isset;
    +
    + void __set_primitiveEntry(const TPrimitiveTypeEntry& val);
    +
    + void __set_arrayEntry(const TArrayTypeEntry& val);
    +
    + void __set_mapEntry(const TMapTypeEntry& val);
    +
    + void __set_structEntry(const TStructTypeEntry& val);
    +
    + void __set_unionEntry(const TUnionTypeEntry& val);
    +
    + void __set_userDefinedTypeEntry(const TUserDefinedTypeEntry& val);
    +
    + bool operator == (const TTypeEntry & rhs) const
    + {
    + if (!(primitiveEntry == rhs.primitiveEntry))
    + return false;
    + if (!(arrayEntry == rhs.arrayEntry))
    + return false;
    + if (!(mapEntry == rhs.mapEntry))
    + return false;
    + if (!(structEntry == rhs.structEntry))
    + return false;
    + if (!(unionEntry == rhs.unionEntry))
    + return false;
    + if (!(userDefinedTypeEntry == rhs.userDefinedTypeEntry))
    + return false;
    + return true;
    + }
    + bool operator != (const TTypeEntry &rhs) const {
    + return !(*this == rhs);
    + }
    +
    + bool operator < (const TTypeEntry & ) 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(TTypeEntry &a, TTypeEntry &b);
    +
    +inline std::ostream& operator<<(std::ostream& out, const TTypeEntry& obj)
    +{
    + obj.printTo(out);
    + return out;
    +}
    +
    +
    +class TTypeDesc {
    + public:
    +
    + TTypeDesc(const TTypeDesc&);
    + TTypeDesc& operator=(const TTypeDesc&);
    + TTypeDesc() {
    + }
    +
    + virtual ~TTypeDesc() throw();
    + std::vector<TTypeEntry> types;
    +
    + void __set_types(const std::vector<TTypeEntry> & val);
    +
    + bool operator == (const TTypeDesc & rhs) const
    + {
    + if (!(types == rhs.types))
    + return false;
    + return true;
    + }
    + bool operator != (const TTypeDesc &rhs) const {
    + return !(*this == rhs);
    + }
    +
    + bool operator < (const TTypeDesc & ) 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(TTypeDesc &a, TTypeDesc &b);
    +
    +inline std::ostream& operator<<(std::ostream& out, const TTypeDesc& obj)
    +{
    + obj.printTo(out);
    + return out;
    +}
    +
    +typedef struct _TColumnDesc__isset {
    + _TColumnDesc__isset() : comment(false) {}
    + bool comment :1;
    +} _TColumnDesc__isset;
    +
    +class TColumnDesc {
    + public:
    +
    + TColumnDesc(const TColumnDesc&);
    + TColumnDesc& operator=(const TColumnDesc&);
    + TColumnDesc() : columnName(), position(0), comment() {
    + }
    +
    + virtual ~TColumnDesc() throw();
    + std::string columnName;
    + TTypeDesc typeDesc;
    + int32_t position;
    + std::string comment;
    +
    + _TColumnDesc__isset __isset;
    +
    + void __set_columnName(const std::string& val);
    +
    + void __set_typeDesc(const TTypeDesc& val);
    +
    + void __set_position(const int32_t val);
    +
    + void __set_comment(const std::string& val);
    +
    + bool operator == (const TColumnDesc & rhs) const
    + {
    + if (!(columnName == rhs.columnName))
    + return false;
    + if (!(typeDesc == rhs.typeDesc))
    + return false;
    + if (!(position == rhs.position))
    + return false;
    + if (__isset.comment != rhs.__isset.comment)
    + return false;
    + else if (__isset.comment && !(comment == rhs.comment))
    + return false;
    + return true;
    + }
    + bool operator != (const TColumnDesc &rhs) const {
    + return !(*this == rhs);
    + }
    +
    + bool operator < (const TColumnDesc & ) 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(TColumnDesc &a, TColumnDesc &b);
    +
    +inline std::ostream& operator<<(std::ostream& out, const TColumnDesc& obj)
    +{
    + obj.printTo(out);
    + return out;
    +}
    +
    +
    +class TTableSchema {
    + public:
    +
    + TTableSchema(const TTableSchema&);
    + TTableSchema& operator=(const TTableSchema&);
    + TTableSchema() {
    + }
    +
    + virtual ~TTableSchema() throw();
    + std::vector<TColumnDesc> columns;
    +
    + void __set_columns(const std::vector<TColumnDesc> & val);
    +
    + bool operator == (const TTableSchema & rhs) const
    + {
    + if (!(columns == rhs.columns))
    + return false;
    + return true;
    + }
    + bool operator != (const TTableSchema &rhs) const {
    + return !(*this == rhs);
    + }
    +
    + bool operator < (const TTableSchema & ) 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(TTableSchema &a, TTableSchema &b);
    +
    +inline std::ostream& operator<<(std::ostream& out, const TTableSchema& obj)
    +{
    + obj.printTo(out);
    + return out;
    +}
    +
    +typedef struct _TBoolValue__isset {
    + _TBoolValue__isset() : value(false) {}
    + bool value :1;
    +} _TBoolValue__isset;
    +
    +class TBoolValue {
    + public:
    +
    + TBoolValue(const TBoolValue&);
    + TBoolValue& operator=(const TBoolValue&);
    + TBoolValue() : value(0) {
    + }
    +
    + virtual ~TBoolValue() throw();
    + bool value;
    +
    + _TBoolValue__isset __isset;
    +
    + void __set_value(const bool val);
    +
    + bool operator == (const TBoolValue & rhs) const
    + {
    + if (__isset.value != rhs.__isset.value)
    + return false;
    + else if (__isset.value && !(value == rhs.value))
    + return false;
    + return true;
    + }
    + bool operator != (const TBoolValue &rhs) const {
    + return !(*this == rhs);
    + }
    +
    + bool operator < (const TBoolValue & ) 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(TBoolValue &a, TBoolValue &b);
    +
    +inline std::ostream& operator<<(std::ostream& out, const TBoolValue& obj)
    +{
    + obj.printTo(out);
    + return out;
    +}
    +
    +typedef struct _TByteValue__isset {
    + _TByteValue__isset() : value(false) {}
    + bool value :1;
    +} _TByteValue__isset;
    +
    +class TByteValue {
    + public:
    +
    + TByteValue(const TByteValue&);
    + TByteValue& operator=(const TByteValue&);
    + TByteValue() : value(0) {
    + }
    +
    + virtual ~TByteValue() throw();
    + int8_t value;
    +
    + _TByteValue__isset __isset;
    +
    + void __set_value(const int8_t val);
    +
    + bool operator == (const TByteValue & rhs) const
    + {
    + if (__isset.value != rhs.__isset.value)
    + return false;
    + else if (__isset.value && !(value == rhs.value))
    + return false;
    + return true;
    + }
    + bool operator != (const TByteValue &rhs) const {
    + return !(*this == rhs);
    + }
    +
    + bool operator < (const TByteValue & ) 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(TByteValue &a, TByteValue &b);
    +
    +inline std::ostream& operator<<(std::ostream& out, const TByteValue& obj)
    +{
    + obj.printTo(out);
    + return out;
    +}
    +
    +typedef struct _TI16Value__isset {
    + _TI16Value__isset() : value(false) {}
    + bool value :1;
    +} _TI16Value__isset;
    +
    +class TI16Value {
    + public:
    +
    + TI16Value(const TI16Value&);
    + TI16Value& operator=(const TI16Value&);
    + TI16Value() : value(0) {
    + }
    +
    + virtual ~TI16Value() throw();
    + int16_t value;
    +
    + _TI16Value__isset __isset;
    +
    + void __set_value(const int16_t val);
    +
    + bool operator == (const TI16Value & rhs) const
    + {
    + if (__isset.value != rhs.__isset.value)
    + return false;
    + else if (__isset.value && !(value == rhs.value))
    + return false;
    + return true;
    + }
    + bool operator != (const TI16Value &rhs) const {
    + return !(*this == rhs);
    + }
    +
    + bool operator < (const TI16Value & ) 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(TI16Value &a, TI16Value &b);
    +
    +inline std::ostream& operator<<(std::ostream& out, const TI16Value& obj)
    +{
    + obj.printTo(out);
    + return out;
    +}
    +
    +typedef struct _TI32Value__isset {
    + _TI32Value__isset() : value(false) {}
    + bool value :1;
    +} _TI32Value__isset;
    +
    +class TI32Value {
    + public:
    +
    + TI32Value(const TI32Value&);
    + TI32Value& operator=(const TI32Value&);
    + TI32Value() : value(0) {
    + }
    +
    + virtual ~TI32Value() throw();
    + int32_t value;
    +
    + _TI32Value__isset __isset;
    +
    + void __set_value(const int32_t val);
    +
    + bool operator == (const TI32Value & rhs) const
    + {
    + if (__isset.value != rhs.__isset.value)
    + return false;
    + else if (__isset.value && !(value == rhs.value))
    + return false;
    + return true;
    + }
    + bool operator != (const TI32Value &rhs) const {
    + return !(*this == rhs);
    + }
    +
    + bool operator < (const TI32Value & ) 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(TI32Value &a, TI32Value &b);
    +
    +inline std::ostream& operator<<(std::ostream& out, const TI32Value& obj)
    +{
    + obj.printTo(out);
    + return out;
    +}
    +
    +typedef struct _TI64Value__isset {
    + _TI64Value__isset() : value(false) {}
    + bool value :1;
    +} _TI64Value__isset;
    +
    +class TI64Value {
    + public:
    +
    + TI64Value(const TI64Value&);
    + TI64Value& operator=(const TI64Value&);
    + TI64Value() : value(0) {
    + }
    +
    + virtual ~TI64Value() throw();
    + int64_t value;
    +
    + _TI64Value__isset __isset;
    +
    + void __set_value(const int64_t val);
    +
    + bool operator == (const TI64Value & rhs) const
    + {
    + if (__isset.value != rhs.__isset.value)
    + return false;
    + else if (__isset.value && !(value == rhs.value))
    + return false;
    + return true;
    + }
    + bool operator != (const TI64Value &rhs) const {
    + return !(*this == rhs);
    + }
    +
    + bool operator < (const TI64Value & ) 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(TI64Value &a, TI64Value &b);
    +
    +inline std::ostream& operator<<(std::ostream& out, const TI64Value& obj)
    +{
    + obj.printTo(out);
    + return out;
    +}
    +
    +typedef struct _TDoubleValue__isset {
    + _TDoubleValue__isset() : value(false) {}
    + bool value :1;
    +} _TDoubleValue__isset;
    +
    +class TDoubleValue {
    + public:
    +
    + TDoubleValue(const TDoubleValue&);
    + TDoubleValue& operator=(const TDoubleValue&);
    + TDoubleValue() : value(0) {
    + }
    +
    + virtual ~TDoubleValue() throw();
    + double value;
    +
    + _TDoubleValue__isset __isset;
    +
    + void __set_value(const double val);
    +
    + bool operator == (const TDoubleValue & rhs) const
    + {
    + if (__isset.value != rhs.__isset.value)
    + return false;
    + else if (__isset.value && !(value == rhs.value))
    + return false;
    + return true;
    + }
    + bool operator != (const TDoubleValue &rhs) const {
    + return !(*this == rhs);
    + }
    +
    + bool operator < (const TDoubleValue & ) 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(TDoubleValue &a, TDoubleValue &b);
    +
    +inline std::ostream& operator<<(std::ostream& out, const TDoubleValue& obj)
    +{
    + obj.printTo(out);
    + return out;
    +}
    +
    +typedef struct _TStringValue__isset {
    + _TStringValue__isset() : value(false) {}
    + bool value :1;
    +} _TStringValue__isset;
    +
    +class TStringValue {
    + public:
    +
    + TStringValue(const TStringValue&);
    + TStringValue& operator=(const TStringValue&);
    + TStringValue() : value() {
    + }
    +
    + virtual ~TStringValue() throw();
    + std::string value;
    +
    + _TStringValue__isset __isset;
    +
    + void __set_value(const std::string& val);
    +
    + bool operator == (const TStringValue & rhs) const
    + {
    + if (__isset.value != rhs.__isset.value)
    + return false;
    + else if (__isset.value && !(value == rhs.value))
    + return false;
    + return true;
    + }
    + bool operator != (const TStringValue &rhs) const {
    + return !(*this == rhs);
    + }
    +
    + bool operator < (const TStringValue & ) 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(TStringValue &a, TStringValue &b);
    +
    +inline std::ostream& operator<<(std::ostream& out, const TStringValue& obj)
    +{
    + obj.printTo(out);
    + return out;
    +}
    +
    +typedef struct _TColumnValue__isset {
    + _TColumnValue__isset() : boolVal(false), byteVal(false), i16Val(false), i32Val(false), i64Val(false), doubleVal(false), stringVal(false) {}
    + bool boolVal :1;
    + bool byteVal :1;
    + bool i16Val :1;
    + bool i32Val :1;
    + bool i64Val :1;
    + bool doubleVal :1;
    + bool stringVal :1;
    +} _TColumnValue__isset;
    +
    +class TColumnValue {
    + public:
    +
    + TColumnValue(const TColumnValue&);
    + TColumnValue& operator=(const TColumnValue&);
    + TColumnValue() {
    + }
    +
    + virtual ~TColumnValue() throw();
    + TBoolValue boolVal;
    + TByteValue byteVal;
    + TI16Value i16Val;
    + TI32Value i32Val;
    + TI64Value i64Val;
    + TDoubleValue doubleVal;
    + TStringValue stringVal;
    +
    + _TColumnValue__isset __isset;
    +
    + void __set_boolVal(const TBoolValue& val);
    +
    + void __set_byteVal(const TByteValue& val);
    +
    + void __set_i16Val(const TI16Value& val);
    +
    + void __set_i32Val(const TI32Value& val);
    +
    + void __set_i64Val(const TI64Value& val);
    +
    + void __set_doubleVal(const TDoubleValue& val);
    +
    + void __set_stringVal(const TStringValue& val);
    +
    + bool operator == (const TColumnValue & rhs) const
    + {
    + if (!(boolVal == rhs.boolVal))
    + return false;
    + if (!(byteVal == rhs.byteVal))
    + return false;
    + if (!(i16Val == rhs.i16Val))
    + return false;
    + if (!(i32Val == rhs.i32Val))
    + return false;
    + if (!(i64Val == rhs.i64Val))
    + return false;
    + if (!(doubleVal == rhs.doubleVal))
    + return false;
    + if (!(stringVal == rhs.stringVal))
    + return false;
    + return true;
    + }
    + bool operator != (const TColumnValue &rhs) const {
    + return !(*this == rhs);
    + }
    +
    + bool operator < (const TColumnValue & ) 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(TColumnValue &a, TColumnValue &b);
    +
    +inline std::ostream& operator<<(std::ostream& out, const TColumnValue& obj)
    +{
    + obj.printTo(out);
    + return out;
    +}
    +
    +
    +class TRow {
    + public:
    +
    + TRow(const TRow&);
    + TRow& operator=(const TRow&);
    + TRow() {
    + }
    +
    + virtual ~TRow() throw();
    + std::vector<TColumnValue> colVals;
    +
    + void __set_colVals(const std::vector<TColumnValue> & val);
    +
    + bool operator == (const TRow & rhs) const
    + {
    + if (!(colVals == rhs.colVals))
    + return false;
    + return true;
    + }
    + bool operator != (const TRow &rhs) const {
    + return !(*this == rhs);
    + }
    +
    + bool operator < (const TRow & ) 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(TRow &a, TRow &b);
    +
    +inline std::ostream& operator<<(std::ostream& out, const TRow& obj)
    +{
    + obj.printTo(out);
    + return out;
    +}
    +
    +
    +class TBoolColumn {
    + public:
    +
    + TBoolColumn(const TBoolColumn&);
    + TBoolColumn& operator=(const TBoolColumn&);
    + TBoolColumn() : nulls() {
    + }
    +
    + virtual ~TBoolColumn() throw();
    + std::vector<bool> values;
    + std::string nulls;
    +
    + void __set_values(const std::vector<bool> & val);
    +
    + void __set_nulls(const std::string& val);
    +
    + bool operator == (const TBoolColumn & rhs) const
    + {
    + if (!(values == rhs.values))
    + return false;
    + if (!(nulls == rhs.nulls))
    + return false;
    + return true;
    + }
    + bool operator != (const TBoolColumn &rhs) const {
    + return !(*this == rhs);
    + }
    +
    + bool operator < (const TBoolColumn & ) 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(TBoolColumn &a, TBoolColumn &b);
    +
    +inline std::ostream& operator<<(std::ostream& out, const TBoolColumn& obj)
    +{
    + obj.printTo(out);
    + return out;
    +}
    +
    +
    +class TByteColumn {
    + public:
    +
    + TByteColumn(const TByteColumn&);
    + TByteColumn& operator=(const TByteColumn&);
    + TByteColumn() : nulls() {
    + }
    +
    + virtual ~TByteColumn() throw();
    + std::vector<int8_t> values;
    + std::string nulls;
    +
    + void __set_values(const std::vector<int8_t> & val);
    +
    + void __set_nulls(const std::string& val);
    +
    + bool operator == (const TByteColumn & rhs) const
    + {
    + if (!(values == rhs.values))
    + return false;
    + if (!(nulls == rhs.nulls))
    + return false;
    + return true;
    + }
    + bool operator != (const TByteColumn &rhs) const {
    + return !(*this == rhs);
    + }
    +
    + bool operator < (const TByteColumn & ) 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(TByteColumn &a, TByteColumn &b);
    +
    +inline std::ostream& operator<<(std::ostream& out, const TByteColumn& obj)
    +{
    + obj.printTo(out);
    + return out;
    +}
    +
    +
    +class TI16Column {
    + public:
    +
    + TI16Column(const TI16Column&);
    + TI16Column& operator=(const TI16Column&);
    + TI16Column() : nulls() {
    + }
    +
    + virtual ~TI16Column() throw();
    + std::vector<int16_t> values;
    + std::string nulls;
    +
    + void __set_values(const std::vector<int16_t> & val);
    +
    + void __set_nulls(const std::string& val);
    +
    + bool operator == (const TI16Column & rhs) const
    + {
    + if (!(values == rhs.values))
    + return false;
    + if (!(nulls == rhs.nulls))
    + return false;
    + return true;
    + }
    + bool operator != (const TI16Column &rhs) const {
    + return !(*this == rhs);
    + }
    +
    + bool operator < (const TI16Column & ) 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(TI16Column &a, TI16Column &b);
    +
    +inline std::ostream& operator<<(std::ostream& out, const TI16Column& obj)
    +{
    + obj.printTo(out);
    + return out;
    +}
    +
    +
    +class TI32Column {
    + public:
    +
    + TI32Column(const TI32Column&);
    + TI32Column& operator=(const TI32Column&);
    + TI32Column() : nulls() {
    + }
    +
    + virtual ~TI32Column() throw();
    + std::vector<int32_t> values;
    + std::string nulls;
    +
    + void __set_values(const std::vector<int32_t> & val);
    +
    + void __set_nulls(const std::string& val);
    +
    + bool operator == (const TI32Column & rhs) const
    + {
    + if (!(values == rhs.values))
    + return false;
    + if (!(nulls == rhs.nulls))
    + return false;
    + return true;
    + }
    + bool operator != (const TI32Column &rhs) const {
    + return !(*this == rhs);
    + }
    +
    + bool operator < (const TI32Column & ) 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(TI32Column &a, TI32Column &b);
    +
    +inline std::ostream& operator<<(std::ostream& out, const TI32Column& obj)
    +{
    + obj.printTo(out);
    + return out;
    +}
    +
    +
    +class TI64Column {
    + public:
    +
    + TI64Column(const TI64Column&);
    + TI64Column& operator=(const TI64Column&);
    + TI64Column() : nulls() {
    + }
    +
    + virtual ~TI64Column() throw();
    + std::vector<int64_t> values;
    + std::string nulls;
    +
    + void __set_values(const std::vector<int64_t> & val);
    +
    + void __set_nulls(const std::string& val);
    +
    + bool operator == (const TI64Column & rhs) const
    + {
    + if (!(values == rhs.values))
    + return false;
    + if (!(nulls == rhs.nulls))
    + return false;
    + return true;
    + }
    + bool operator != (const TI64Column &rhs) const {
    + return !(*this == rhs);
    + }
    +
    + bool operator < (const TI64Column & ) 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(TI64Column &a, TI64Column &b);
    +
    +inline std::ostream& operator<<(std::ostream& out, const TI64Column& obj)
    +{
    + obj.printTo(out);
    + return out;
    +}
    +
    +
    +class TDoubleColumn {
    + public:
    +
    + TDoubleColumn(const TDoubleColumn&);
    + TDoubleColumn& operator=(const TDoubleColumn&);
    + TDoubleColumn() : nulls() {
    + }
    +
    + virtual ~TDoubleColumn() throw();
    + std::vector<double> values;
    + std::string nulls;
    +
    + void __set_values(const std::vector<double> & val);
    +
    + void __set_nulls(const std::string& val);
    +
    + bool operator == (const TDoubleColumn & rhs) const
    + {
    + if (!(values == rhs.values))
    + return false;
    + if (!(nulls == rhs.nulls))
    + return false;
    + return true;
    + }
    + bool operator != (const TDoubleColumn &rhs) const {
    + return !(*this == rhs);
    + }
    +
    + bool operator < (const TDoubleColumn & ) 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(TDoubleColumn &a, TDoubleColumn &b);
    +
    +inline std::ostream& operator<<(std::ostream& out, const TDoubleColumn& obj)
    +{
    + obj.printTo(out);
    + return out;
    +}
    +
    +
    +class TStringColumn {
    + public:
    +
    + TStringColumn(const TStringColumn&);
    + TStringColumn& operator=(const TStringColumn&);
    + TStringColumn() : nulls() {
    + }
    +
    + virtual ~TStringColumn() throw();
    + std::vector<std::string> values;
    + std::string nulls;
    +
    + void __set_values(const std::vector<std::string> & val);
    +
    + void __set_nulls(const std::string& val);
    +
    + bool operator == (const TStringColumn & rhs) const
    + {
    + if (!(values == rhs.values))
    + return false;
    + if (!(nulls == rhs.nulls))
    + return false;
    + return true;
    + }
    + bool operator != (const TStringColumn &rhs) const {
    + return !(*this == rhs);
    + }
    +
    + bool operator < (const TStringColumn & ) 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(TStringColumn &a, TStringColumn &b);
    +
    +inline std::ostream& operator<<(std::ostream& out, const TStringColumn& obj)
    +{
    + obj.printTo(out);
    + return out;
    +}
    +
    +
    +class TBinaryColumn {
    + public:
    +
    + TBinaryColumn(const TBinaryColumn&);
    + TBinaryColumn& operator=(const TBinaryColumn&);
    + TBinaryColumn() : nulls() {
    + }
    +
    + virtual ~TBinaryColumn() throw();
    + std::vector<std::string> values;
    + std::string nulls;
    +
    + void __set_values(const std::vector<std::string> & val);
    +
    + void __set_nulls(const std::string& val);
    +
    + bool operator == (const TBinaryColumn & rhs) const
    + {
    + if (!(values == rhs.values))
    + return false;
    + if (!(nulls == rhs.nulls))
    + return false;
    + return true;
    + }
    + bool operator != (const TBinaryColumn &rhs) const {
    + return !(*this == rhs);
    + }
    +
    + bool operator < (const TBinaryColumn & ) 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(TBinaryColumn &a, TBinaryColumn &b);
    +
    +inline std::ostream& operator<<(std::ostream& out, const TBinaryColumn& obj)
    +{
    + obj.printTo(out);
    + return out;
    +}
    +
    +typedef struct _TColumn__isset {
    + _TColumn__isset() : boolVal(false), byteVal(false), i16Val(false), i32Val(false), i64Val(false), doubleVal(false), stringVal(false), binaryVal(false) {}
    + bool boolVal :1;
    + bool byteVal :1;
    + bool i16Val :1;
    + bool i32Val :1;
    + bool i64Val :1;
    + bool doubleVal :1;
    + bool stringVal :1;
    + bool binaryVal :1;
    +} _TColumn__isset;
    +
    +class TColumn {
    + public:
    +
    + TColumn(const TColumn&);
    + TColumn& operator=(const TColumn&);
    + TColumn() {
    + }
    +
    + virtual ~TColumn() throw();
    + TBoolColumn boolVal;
    + TByteColumn byteVal;
    + TI16Column i16Val;
    + TI32Column i32Val;
    + TI64Column i64Val;
    + TDoubleColumn doubleVal;
    + TStringColumn stringVal;
    + TBinaryColumn binaryVal;
    +
    + _TColumn__isset __isset;
    +
    + void __set_boolVal(const TBoolColumn& val);
    +
    + void __set_byteVal(const TByteColumn& val);
    +
    + void __set_i16Val(const TI16Column& val);
    +
    + void __set_i32Val(const TI32Column& val);
    +
    + void __set_i64Val(const TI64Column& val);
    +
    + void __set_doubleVal(const TDoubleColumn& val);
    +
    + void __set_stringVal(const TStringColumn& val);
    +
    + void __set_binaryVal(const TBinaryColumn& val);
    +
    + bool operator == (const TColumn & rhs) const
    + {
    + if (!(boolVal == rhs.boolVal))
    + return false;
    + if (!(byteVal == rhs.byteVal))
    + return false;
    + if (!(i16Val == rhs.i16Val))
    + return false;
    + if (!(i32Val == rhs.i32Val))
    + return false;
    + if (!(i64Val == rhs.i64Val))
    + return false;
    + if (!(doubleVal == rhs.doubleVal))
    + return false;
    + if (!(stringVal == rhs.stringVal))
    + return false;
    + if (!(binaryVal == rhs.binaryVal))
    + return false;
    + return true;
    + }
    + bool operator != (const TColumn &rhs) const {
    + return !(*this == rhs);
    + }
    +
    + bool operator < (const TColumn & ) 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(TColumn &a, TColumn &b);
    +
    +inline std::ostream& operator<<(std::ostream& out, const TColumn& obj)
    +{
    + obj.printTo(out);
    + return out;
    +}
    +
    +typedef struct _TRowSet__isset {
    + _TRowSet__isset() : columns(false) {}
    + bool columns :1;
    +} _TRowSet__isset;
    +
    +class TRowSet {
    + public:
    +
    + TRowSet(const TRowSet&);
    + TRowSet& operator=(const TRowSet&);
    + TRowSet() : startRowOffset(0) {
    + }
    +
    + virtual ~TRowSet() throw();
    + int64_t startRowOffset;
    + std::vector<TRow> rows;
    + std::vector<TColumn> columns;
    +
    + _TRowSet__isset __isset;
    +
    + void __set_startRowOffset(const int64_t val);
    +
    + void __set_rows(const std::vector<TRow> & val);
    +
    + void __set_columns(const std::vector<TColumn> & val);
    +
    + bool operator == (const TRowSet & rhs) const
    + {
    + if (!(startRowOffset == rhs.startRowOffset))
    + return false;
    + if (!(rows == rhs.rows))
    + return false;
    + if (__isset.columns != rhs.__isset.columns)
    + return false;
    + else if (__isset.columns && !(columns == rhs.columns))
    + return false;
    + return true;
    + }
    + bool operator != (const TRowSet &rhs) const {
    + return !(*this == rhs);
    + }
    +
    + bool operator < (const TRowSet & ) 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(TRowSet &a, TRowSet &b);
    +
    +inline std::ostream& operator<<(std::ostream& out, const TRowSet& obj)
    +{
    + obj.printTo(out);
    + return out;
    +}
    +
    +typedef struct _TStatus__isset {
    + _TStatus__isset() : infoMessages(false), sqlState(false), errorCode(false), errorMessage(false) {}
    + bool infoMessages :1;
    + bool sqlState :1;
    + bool errorCode :1;
    + bool errorMessage :1;
    +} _TStatus__isset;
    +
    +class TStatus {
    + public:
    +
    + TStatus(const TStatus&);
    + TStatus& operator=(const TStatus&);
    + TStatus() : statusCode((TStatusCode::type)0), sqlState(), errorCode(0), errorMessage() {
    + }
    +
    + virtual ~TStatus() throw();
    + TStatusCode::type statusCode;
    + std::vector<std::string> infoMessages;
    + std::string sqlState;
    + int32_t errorCode;
    + std::string errorMessage;
    +
    + _TStatus__isset __isset;
    +
    + void __set_statusCode(const TStatusCode::type val);
    +
    + void __set_infoMessages(const std::vector<std::string> & val);
    +
    + void __set_sqlState(const std::string& val);
    +
    + void __set_errorCode(const int32_t val);
    +
    + void __set_errorMessage(const std::string& val);
    +
    + bool operator == (const TStatus & rhs) const
    + {
    + if (!(statusCode == rhs.statusCode))
    + return false;
    + if (__isset.infoMessages != rhs.__isset.infoMessages)
    + return false;
    + else if (__isset.infoMessages && !(infoMessages == rhs.infoMessages))
    + return false;
    + if (__isset.sqlState != rhs.__isset.sqlState)
    + return false;
    + else if (__isset.sqlState && !(sqlState == rhs.sqlState))
    + return false;
    + if (__isset.errorCode != rhs.__isset.errorCode)
    + return false;
    + else if (__isset.errorCode && !(errorCode == rhs.errorCode))
    + return false;
    + if (__isset.errorMessage != rhs.__isset.errorMessage)
    + return false;
    + else if (__isset.errorMessage && !(errorMessage == rhs.errorMessage))
    + return false;
    + return true;
    + }
    + bool operator != (const TStatus &rhs) const {
    + return !(*this == rhs);
    + }
    +
    + bool operator < (const TStatus & ) 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(TStatus &a, TStatus &b);
    +
    +inline std::ostream& operator<<(std::ostream& out, const TStatus& obj)
    +{
    + obj.printTo(out);
    + return out;
    +}
    +
    +
    +class THandleIdentifier {
    + public:
    +
    + THandleIdentifier(const THandleIdentifier&);
    + THandleIdentifier& operator=(const THandleIdentifier&);
    + THandleIdentifier() : guid(), secret() {
    + }
    +
    + virtual ~THandleIdentifier() throw();
    + std::string guid;
    + std::string secret;
    +
    + void __set_guid(const std::string& val);
    +
    + void __set_secret(const std::string& val);
    +
    + bool operator == (const THandleIdentifier & rhs) const
    + {
    + if (!(guid == rhs.guid))
    + return false;
    + if (!(secret == rhs.secret))
    + return false;
    + return true;
    + }
    + bool operator != (const THandleIdentifier &rhs) const {
    + return !(*this == rhs);
    + }
    +
    + bool operator < (const THandleIdentifier & ) 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(THandleIdentifier &a, THandleIdentifier &b);
    +
    +inline std::ostream& operator<<(std::ostream& out, const THandleIdentifier& obj)
    +{
    + obj.printTo(out);
    + return out;
    +}
    +
    +
    +class TSessionHandle {
    + public:
    +
    + TSessionHandle(const TSessionHandle&);
    + TSessionHandle& operator=(const TSessionHandle&);
    + TSessionHandle() {
    + }
    +
    + virtual ~TSessionHandle() throw();
    + THandleIdentifier sessionId;
    +
    + void __set_sessionId(const THandleIdentifier& val);
    +
    + bool operator == (const TSessionHandle & rhs) const
    + {
    + if (!(sessionId == rhs.sessionId))
    + return false;
    + return true;
    + }
    + bool operator != (const TSessionHandle &rhs) const {
    + return !(*this == rhs);
    + }
    +
    + bool operator < (const TSessionHandle & ) 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(TSessionHandle &a, TSessionHandle &b);
    +
    +inline std::ostream& operator<<(std::ostream& out, const TSessionHandle& obj)
    +{
    + obj.printTo(out);
    + return out;
    +}
    +
    +typedef struct _TOperationHandle__isset {
    + _TOperationHandle__isset() : modifiedRowCount(false) {}
    + bool modifiedRowCount :1;
    +} _TOperationHandle__isset;
    +
    +class TOperationHandle {
    + public:
    +
    + TOperationHandle(const TOperationHandle&);
    + TOperationHandle& operator=(const TOperationHandle&);
    + TOperationHandle() : operationType((TOperationType::type)0), hasResultSet(0), modifiedRowCount(0) {
    + }
    +
    + virtual ~TOperationHandle() throw();
    + THandleIdentifier operationId;
    + TOperationType::type operationType;
    + bool hasResultSet;
    + double modifiedRowCount;
    +
    + _TOperationHandle__isset __isset;
    +
    + void __set_operationId(const THandleIdentifier& val);
    +
    + void __set_operationType(const TOperationType::type val);
    +
    + void __set_hasResultSet(const bool val);
    +
    + void __set_modifiedRowCount(const double val);
    +
    + bool operator == (const TOperationHandle & rhs) const
    + {
    + if (!(operationId == rhs.operationId))
    + return false;
    + if (!(operationType == rhs.operationType))
    + return false;
    + if (!(hasResultSet == rhs.hasResultSet))
    + return false;
    + if (__isset.modifiedRowCount != rhs.__isset.modifiedRowCount)
    + return false;
    + else if (__isset.modifiedRowCount && !(modifiedRowCount == rhs.modifiedRowCount))
    + return false;
    + return true;
    + }
    + bool operator != (const TOperationHandle &rhs) const {
    + return !(*this == rhs);
    + }
    +
    + bool operator < (const TOperationHandle & ) 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(TOperationHandle &a, TOperationHandle &b);
    +
    +inline std::ostream& operator<<(std::ostream& out, const TOperationHandle& obj)
    +{
    + obj.printTo(out);
    + return out;
    +}
    +
    +typedef struct _TOpenSessionReq__isset {
    + _TOpenSessionReq__isset() : username(false), password(false), configuration(false) {}
    + bool username :1;
    + bool password :1;
    + bool configuration :1;
    +} _TOpenSessionReq__isset;
    +
    +class TOpenSessionReq {
    + public:
    +
    + TOpenSessionReq(const TOpenSessionReq&);
    + TOpenSessionReq& operator=(const TOpenSessionReq&);
    + TOpenSessionReq() : client_protocol((TProtocolVersion::type)7), username(), password() {
    + client_protocol = (TProtocolVersion::type)7;
    +
    + }
    +
    + virtual ~TOpenSessionReq() throw();
    + TProtocolVersion::type client_protocol;
    + std::string username;
    + std::string password;
    + std::map<std::string, std::string> configuration;
    +
    + _TOpenSessionReq__isset __isset;
    +
    + void __set_client_protocol(const TProtocolVersion::type val);
    +
    + void __set_username(const std::string& val);
    +
    + void __set_password(const std::string& val);
    +
    + void __set_configuration(const std::map<std::string, std::string> & val);
    +
    + bool operator == (const TOpenSessionReq & rhs) const
    + {
    + if (!(client_protocol == rhs.client_protocol))
    + return false;
    + if (__isset.username != rhs.__isset.username)
    + return false;
    + else if (__isset.username && !(username == rhs.username))
    + return false;
    + if (__isset.password != rhs.__isset.password)
    + return false;
    + else if (__isset.password && !(password == rhs.password))
    + return false;
    + if (__isset.configuration != rhs.__isset.configuration)
    + return false;
    + else if (__isset.configuration && !(configuration == rhs.configuration))
    + return false;
    + return true;
    + }
    + bool operator != (const TOpenSessionReq &rhs) const {
    + return !(*this == rhs);
    + }
    +
    + bool operator < (const TOpenSessionReq & ) 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(TOpenSessionReq &a, TOpenSessionReq &b);
    +
    +inline std::ostream& operator<<(std::ostream& out, const TOpenSessionReq& obj)
    +{
    + obj.printTo(out);
    + return out;
    +}
    +
    +typedef struct _TOpenSessionResp__isset {
    + _TOpenSessionResp__isset() : sessionHandle(false), configuration(false) {}
    + bool sessionHandle :1;
    + bool configuration :1;
    +} _TOpenSessionResp__isset;
    +
    +class TOpenSessionResp {
    + public:
    +
    + TOpenSessionResp(const TOpenSessionResp&);
    + TOpenSessionResp& operator=(const TOpenSessionResp&);
    + TOpenSessionResp() : serverProtocolVersion((TProtocolVersion::type)7) {
    + serverProtocolVersion = (TProtocolVersion::type)7;
    +
    + }
    +
    + virtual ~TOpenSessionResp() throw();
    + TStatus status;
    + TProtocolVersion::type serverProtocolVersion;
    + TSessionHandle sessionHandle;
    + std::map<std::string, std::string> configuration;
    +
    + _TOpenSessionResp__isset __isset;
    +
    + void __set_status(const TStatus& val);
    +
    + void __set_serverProtocolVersion(const TProtocolVersion::type val);
    +
    + void __set_sessionHandle(const TSessionHandle& val);
    +
    + void __set_configuration(const std::map<std::string, std::string> & val);
    +
    + bool operator == (const TOpenSessionResp & rhs) const
    + {
    + if (!(status == rhs.status))
    + return false;
    + if (!(serverProtocolVersion == rhs.serverProtocolVersion))
    + return false;
    + if (__isset.sessionHandle != rhs.__isset.sessionHandle)
    + return false;
    + else if (__isset.sessionHandle && !(sessionHandle == rhs.sessionHandle))
    + return false;
    + if (__isset.configuration != rhs.__isset.configuration)
    + return false;
    + else if (__isset.configuration && !(configuration == rhs.configuration))
    + return false;
    + return true;
    + }
    + bool operator != (const TOpenSessionResp &rhs) const {
    + return !(*this == rhs);
    + }
    +
    + bool operator < (const TOpenSessionResp & ) 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(TOpenSessionResp &a, TOpenSessionResp &b);
    +
    +inline std::ostream& operator<<(std::ostream& out, const TOpenSessionResp& obj)
    +{
    + obj.printTo(out);
    + return out;
    +}
    +
    +
    +class TCloseSessionReq {
    + public:
    +
    + TCloseSessionReq(const TCloseSessionReq&);
    + TCloseSessionReq& operator=(const TCloseSessionReq&);
    + TCloseSessionReq() {
    + }
    +
    + virtual ~TCloseSessionReq() throw();
    + TSessionHandle sessionHandle;
    +
    + void __set_sessionHandle(const TSessionHandle& val);
    +
    + bool operator == (const TCloseSessionReq & rhs) const
    + {
    + if (!(sessionHandle == rhs.sessionHandle))
    + return false;
    + return true;
    + }
    + bool operator != (const TCloseSessionReq &rhs) const {
    + return !(*this == rhs);
    + }
    +
    + bool operator < (const TCloseSessionReq & ) 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(TCloseSessionReq &a, TCloseSessionReq &b);
    +
    +inline std::ostream& operator<<(std::ostream& out, const TCloseSessionReq& obj)
    +{
    + obj.printTo(out);
    + return out;
    +}
    +
    +
    +class TCloseSessionResp {
    + public:
    +
    + TCloseSessionResp(const TCloseSessionResp&);
    + TCloseSessionResp& operator=(const TCloseSessionResp&);
    + TCloseSessionResp() {
    + }
    +
    + virtual ~TCloseSessionResp() throw();
    + TStatus status;
    +
    + void __set_status(const TStatus& val);
    +
    + bool operator == (const TCloseSessionResp & rhs) const
    + {
    + if (!(status == rhs.status))
    + return false;
    + return true;
    + }
    + bool operator != (const TCloseSessionResp &rhs) const {
    + return !(*this == rhs);
    + }
    +
    + bool operator < (const TCloseSessionResp & ) 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(TCloseSessionResp &a, TCloseSessionResp &b);
    +
    +inline std::ostream& operator<<(std::ostream& out, const TCloseSessionResp& obj)
    +{
    + obj.printTo(out);
    + return out;
    +}
    +
    +typedef struct _TGetInfoValue__isset {
    + _TGetInfoValue__isset() : stringValue(false), smallIntValue(false), integerBitmask(false), integerFlag(false), binaryValue(false), lenValue(false) {}
    + bool stringValue :1;
    + bool smallIntValue :1;
    + bool integerBitmask :1;
    + bool integerFlag :1;
    + bool binaryValue :1;
    + bool lenValue :1;
    +} _TGetInfoValue__isset;
    +
    +class TGetInfoValue {
    + public:
    +
    + TGetInfoValue(const TGetInfoValue&);
    + TGetInfoValue& operator=(const TGetInfoValue&);
    + TGetInfoValue() : stringValue(), smallIntValue(0), integerBitmask(0), integerFlag(0), binaryValue(0), lenValue(0) {
    + }
    +
    + virtual ~TGetInfoValue() throw();
    + std::string stringValue;
    + int16_t smallIntValue;
    + int32_t integerBitmask;
    + int32_t integerFlag;
    + int32_t binaryValue;
    + int64_t lenValue;
    +
    + _TGetInfoValue__isset __isset;
    +
    + void __set_stringValue(const std::string& val);
    +
    + void __set_smallIntValue(const int16_t val);
    +
    + void __set_integerBitmask(const int32_t val);
    +
    + void __set_integerFlag(const int32_t val);
    +
    + void __set_binaryValue(const int32_t val);
    +
    + void __set_lenValue(const int64_t val);
    +
    + bool operator == (const TGetInfoValue & rhs) const
    + {
    + if (!(stringValue == rhs.stringValue))
    + return false;
    + if (!(smallIntValue == rhs.smallIntValue))
    + return false;
    + if (!(integerBitmask == rhs.integerBitmask))
    + return false;
    + if (!(integerFlag == rhs.integerFlag))
    + return false;
    + if (!(binaryValue == rhs.binaryValue))
    + return false;
    + if (!(lenValue == rhs.lenValue))
    + return false;
    + return true;
    + }
    + bool operator != (const TGetInfoValue &rhs) const {
    + return !(*this == rhs);
    + }
    +
    + bool operator < (const TGetInfoValue & ) 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(TGetInfoValue &a, TGetInfoValue &b);
    +
    +inline std::ostream& operator<<(std::ostream& out, const TGetInfoValue& obj)
    +{
    + obj.printTo(out);
    + return out;
    +}
    +
    +
    +class TGetInfoReq {
    + public:
    +
    + TGetInfoReq(const TGetInfoReq&);
    + TGetInfoReq& operator=(const TGetInfoReq&);
    + TGetInfoReq() : infoType((TGetInfoType::type)0) {
    + }
    +
    + virtual ~TGetInfoReq() throw();
    + TSessionHandle sessionHandle;
    + TGetInfoType::type infoType;
    +
    + void __set_sessionHandle(const TSessionHandle& val);
    +
    + void __set_infoType(const TGetInfoType::type val);
    +
    + bool operator == (const TGetInfoReq & rhs) const
    + {
    + if (!(sessionHandle == rhs.sessionHandle))
    + return false;
    + if (!(infoType == rhs.infoType))
    + return false;
    + return true;
    + }
    + bool operator != (const TGetInfoReq &rhs) const {
    + return !(*this == rhs);
    + }
    +
    + bool operator < (const TGetInfoReq & ) 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(TGetInfoReq &a, TGetInfoReq &b);
    +
    +inline std::ostream& operator<<(std::ostream& out, const TGetInfoReq& obj)
    +{
    + obj.printTo(out);
    + return out;
    +}
    +
    +
    +class TGetInfoResp {
    + public:
    +
    + TGetInfoResp(const TGetInfoResp&);
    + TGetInfoResp& operator=(const TGetInfoResp&);
    + TGetInfoResp() {
    + }
    +
    + virtual ~TGetInfoResp() throw();
    + TStatus status;
    + TGetInfoValue infoValue;
    +
    + void __set_status(const TStatus& val);
    +
    + void __set_infoValue(const TGetInfoValue& val);
    +
    + bool operator == (const TGetInfoResp & rhs) const
    + {
    + if (!(status == rhs.status))
    + return false;
    + if (!(infoValue == rhs.infoValue))
    + return false;
    + return true;
    + }
    + bool operator != (const TGetInfoResp &rhs) const {
    + return !(*this == rhs);
    + }
    +
    + bool operator < (const TGetInfoResp & ) 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(TGetInfoResp &a, TGetInfoResp &b);
    +
    +inline std::ostream& operator<<(std::ostream& out, const TGetInfoResp& obj)
    +{
    + obj.printTo(out);
    + return out;
    +}
    +
    +typedef struct _TExecuteStatementReq__isset {
    + _TExecuteStatementReq__isset() : confOverlay(false), runAsync(true) {}
    + bool confOverlay :1;
    + bool runAsync :1;
    +} _TExecuteStatementReq__isset;
    +
    +class TExecuteStatementReq {
    + public:
    +
    + TExecuteStatementReq(const TExecuteStatementReq&);
    + TExecuteStatementReq& operator=(const TExecuteStatementReq&);
    + TExecuteStatementReq() : statement(), runAsync(false) {
    + }
    +
    + virtual ~TExecuteStatementReq() throw();
    + TSessionHandle sessionHandle;
    + std::string statement;
    + std::map<std::string, std::string> confOverlay;
    + bool runAsync;
    +
    + _TExecuteStatementReq__isset __isset;
    +
    + void __set_sessionHandle(const TSessionHandle& val);
    +
    + void __set_statement(const std::string& val);
    +
    + void __set_confOverlay(const std::map<std::string, std::string> & val);
    +
    + void __set_runAsync(const bool val);
    +
    + bool operator == (const TExecuteStatementReq & rhs) const
    + {
    + if (!(sessionHandle == rhs.sessionHandle))
    + return false;
    + if (!(statement == rhs.statement))
    + return false;
    + if (__isset.confOverlay != rhs.__isset.confOverlay)
    + return false;
    + else if (__isset.confOverlay && !(confOverlay == rhs.confOverlay))
    + return false;
    + if (__isset.runAsync != rhs.__isset.runAsync)
    + return false;
    + else if (__isset.runAsync && !(runAsync == rhs.runAsync))
    + return false;
    + return true;
    + }
    + bool operator != (const TExecuteStatementReq &rhs) const {
    + return !(*this == rhs);
    + }
    +
    + bool operator < (const TExecuteStatementReq & ) 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(TExecuteStatementReq &a, TExecuteStatementReq &b);
    +
    +inline std::ostream& operator<<(std::ostream& out, const TExecuteStatementReq& obj)
    +{
    + obj.printTo(out);
    + return out;
    +}
    +
    +typedef struct _TExecuteStatementResp__isset {
    + _TExecuteStatementResp__isset() : operationHandle(false) {}
    + bool operationHandle :1;
    +} _TExecuteStatementResp__isset;
    +
    +class TExecuteStatementResp {
    + public:
    +
    + TExecuteStatementResp(const TExecuteStatementResp&);
    + TExecuteStatementResp& operator=(const TExecuteStatementResp&);
    + TExecuteStatementResp() {
    + }
    +
    + virtual ~TExecuteStatementResp() throw();
    + TStatus status;
    + TOperationHandle operationHandle;
    +
    + _TExecuteStatementResp__isset __isset;
    +
    + void __set_status(const TStatus& val);
    +
    + void __set_operationHandle(const TOperationHandle& val);
    +
    + bool operator == (const TExecuteStatementResp & rhs) const
    + {
    + if (!(status == rhs.status))
    + return false;
    + if (__isset.operationHandle != rhs.__isset.operationHandle)
    + return false;
    + else if (__isset.operationHandle && !(operationHandle == rhs.operationHandle))
    + return false;
    + return true;
    + }
    + bool operator != (const TExecuteStatementResp &rhs) const {
    + return !(*this == rhs);
    + }
    +
    + bool operator < (const TExecuteStatementResp & ) 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(TExecuteStatementResp &a, TExecuteStatementResp &b);
    +
    +inline std::ostream& operator<<(std::ostream& out, const TExecuteStatementResp& obj)
    +{
    + obj.printTo(out);
    + return out;
    +}
    +
    +
    +class TGetTypeInfoReq {
    + public:
    +
    + TGetTypeInfoReq(const TGetTypeInfoReq&);
    + TGetTypeInfoReq& operator=(const TGetTypeInfoReq&);
    + TGetTypeInfoReq() {
    + }
    +
    + virtual ~TGetTypeInfoReq() throw();
    + TSessionHandle sessionHandle;
    +
    + void __set_sessionHandle(const TSessionHandle& val);
    +
    + bool operator == (const TGetTypeInfoReq & rhs) const
    + {
    + if (!(sessionHandle == rhs.sessionHandle))
    + return false;
    + return true;
    + }
    + bool operator != (const TGetTypeInfoReq &rhs) const {
    + return !(*this == rhs);
    + }
    +
    + bool operator < (const TGetTypeInfoReq & ) 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(TGetTypeInfoReq &a, TGetTypeInfoReq &b);
    +
    +inline std::ostream& operator<<(std::ostream& out, const TGetTypeInfoReq& obj)
    +{
    + obj.printTo(out);
    + return out;
    +}
    +
    +typedef struct _TGetTypeInfoResp__isset {
    + _TGetTypeInfoResp__isset() : operationHandle(false) {}
    + bool operationHandle :1;
    +} _TGetTypeInfoResp__isset;
    +
    +class TGetTypeInfoResp {
    + public:
    +
    + TGetTypeInfoResp(const TGetTypeInfoResp&);
    + TGetTypeInfoResp& operator=(const TGetTypeInfoResp&);
    + TGetTypeInfoResp() {
    + }
    +
    + virtual ~TGetTypeInfoResp() throw();
    + TStatus status;
    + TOperationHandle operationHandle;
    +
    + _TGetTypeInfoResp__isset __isset;
    +
    + void __set_status(const TStatus& val);
    +
    + void __set_operationHandle(const TOperationHandle& val);
    +
    + bool operator == (const TGetTypeInfoResp & rhs) const
    + {
    + if (!(status == rhs.status))
    + return false;
    + if (__isset.operationHandle != rhs.__isset.operationHandle)
    + return false;
    + else if (__isset.operationHandle && !(operationHandle == rhs.operationHandle))
    + return false;
    + return true;
    + }
    + bool operator != (const TGetTypeInfoResp &rhs) const {
    + return !(*this == rhs);
    + }
    +
    + bool operator < (const TGetTypeInfoResp & ) 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(TGetTypeInfoResp &a, TGetTypeInfoResp &b);
    +
    +inline std::ostream& operator<<(std::ostream& out, const TGetTypeInfoResp& obj)
    +{
    + obj.printTo(out);
    + return out;
    +}
    +
    +
    +class TGetCatalogsReq {
    + public:
    +
    + TGetCatalogsReq(const TGetCatalogsReq&);
    + TGetCatalogsReq& operator=(const TGetCatalogsReq&);
    + TGetCatalogsReq() {
    + }
    +
    + virtual ~TGetCatalogsReq() throw();
    + TSessionHandle sessionHandle;
    +
    + void __set_sessionHandle(const TSessionHandle& val);
    +
    + bool operator == (const TGetCatalogsReq & rhs) const
    + {
    + if (!(sessionHandle == rhs.sessionHandle))
    + return false;
    + return true;
    + }
    + bool operator != (const TGetCatalogsReq &rhs) const {
    + return !(*this == rhs);
    + }
    +
    + bool operator < (const TGetCatalogsReq & ) 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(TGetCatalogsReq &a, TGetCatalogsReq &b);
    +
    +inline std::ostream& operator<<(std::ostream& out, const TGetCatalogsReq& obj)
    +{
    + obj.printTo(out);
    + return out;
    +}
    +
    +typedef struct _TGetCatalogsResp__isset {
    + _TGetCatalogsResp__isset() : operationHandle(false) {}
    + bool operationHandle :1;
    +} _TGetCatalogsResp__isset;
    +
    +class TGetCatalogsResp {
    + public:
    +
    + TGetCatalogsResp(const TGetCatalogsResp&);
    + TGetCatalogsResp& operator=(const TGetCatalogsResp&);
    + TGetCatalogsResp() {
    + }
    +
    + virtual ~TGetCatalogsResp() throw();
    + TStatus status;
    + TOperationHandle operationHandle;
    +
    + _TGetCatalogsResp__isset __isset;
    +
    + void __set_status(const TStatus& val);
    +
    + void __set_operationHandle(const TOperationHandle& val);
    +
    + bool operator == (const TGetCatalogsResp & rhs) const
    + {
    + if (!(status == rhs.status))
    + return false;
    + if (__isset.operationHandle != rhs.__isset.operationHandle)
    + return false;
    + else if (__isset.operationHandle && !(operationHandle == rhs.operationHandle))
    + return false;
    + return true;
    + }
    + bool operator != (const TGetCatalogsResp &rhs) const {
    + return !(*this == rhs);
    + }
    +
    + bool operator < (const TGetCatalogsResp & ) 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(TGetCatalogsResp &a, TGetCatalogsResp &b);
    +
    +inline std::ostream& operator<<(std::ostream& out, const TGetCatalogsResp& obj)
    +{
    + obj.printTo(out);
    + return out;
    +}
    +
    +typedef struct _TGetSchemasReq__isset {
    + _TGetSchemasReq__isset() : catalogName(false), schemaName(false) {}
    + bool catalogName :1;
    + bool schemaName :1;
    +} _TGetSchemasReq__isset;
    +
    +class TGetSchemasReq {
    + public:
    +
    + TGetSchemasReq(const TGetSchemasReq&);
    + TGetSchemasReq& operator=(const TGetSchemasReq&);
    + TGetSchemasReq() : catalogName(), schemaName() {
    + }
    +
    + virtual ~TGetSchemasReq() throw();
    + TSessionHandle sessionHandle;
    + TIdentifier catalogName;
    + TPatternOrIdentifier schemaName;
    +
    + _TGetSchemasReq__isset __isset;
    +
    + void __set_sessionHandle(const TSessionHandle& val);
    +
    + void __set_catalogName(const TIdentifier& val);
    +
    + void __set_schemaName(const TPatternOrIdentifier& val);
    +
    + bool operator == (const TGetSchemasReq & rhs) const
    + {
    + if (!(sessionHandle == rhs.sessionHandle))
    + return false;
    + if (__isset.catalogName != rhs.__isset.catalogName)
    + return false;
    + else if (__isset.catalogName && !(catalogName == rhs.catalogName))
    + return false;
    + if (__isset.schemaName != rhs.__isset.schemaName)
    + return false;
    + else if (__isset.schemaName && !(schemaName == rhs.schemaName))
    + return false;
    + return true;
    + }
    + bool operator != (const TGetSchemasReq &rhs) const {
    + return !(*this == rhs);
    + }
    +
    + bool operator < (const TGetSchemasReq & ) 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(TGetSchemasReq &a, TGetSchemasReq &b);
    +
    +inline std::ostream& operator<<(std::ostream& out, const TGetSchemasReq& obj)
    +{
    + obj.printTo(out);
    + return out;
    +}
    +
    +typedef struct _TGetSchemasResp__isset {
    + _TGetSchemasResp__isset() : operationHandle(false) {}
    + bool operationHandle :1;
    +} _TGetSchemasResp__isset;
    +
    +class TGetSchemasResp {
    + public:
    +
    + TGetSchemasResp(const TGetSchemasResp&);
    + TGetSchemasResp& operator=(const TGetSchemasResp&);
    + TGetSchemasResp() {
    + }
    +
    + virtual ~TGetSchemasResp() throw();
    + TStatus status;
    + TOperationHandle operationHandle;
    +
    + _TGetSchemasResp__isset __isset;
    +
    + void __set_status(const TStatus& val);
    +
    + void __set_operationHandle(const TOperationHandle& val);
    +
    + bool operator == (const TGetSchemasResp & rhs) const
    + {
    + if (!(status == rhs.status))
    + return false;
    + if (__isset.operationHandle != rhs.__isset.operationHandle)
    + return false;
    + else if (__isset.operationHandle && !(operationHandle == rhs.operationHandle))
    + return false;
    + return true;
    + }
    + bool operator != (const TGetSchemasResp &rhs) const {
    + return !(*this == rhs);
    + }
    +
    + bool operator < (const TGetSchemasResp & ) 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(TGetSchemasResp &a, TGetSchemasResp &b);
    +
    +inline std::ostream& operator<<(std::ostream& out, const TGetSchemasResp& obj)
    +{
    + obj.printTo(out);
    + return out;
    +}
    +
    +typedef struct _TGetTablesReq__isset {
    + _TGetTablesReq__isset() : catalogName(false), schemaName(false), tableName(false), tableTypes(false) {}
    + bool catalogName :1;
    + bool schemaName :1;
    + bool tableName :1;
    + bool tableTypes :1;
    +} _TGetTablesReq__isset;
    +
    +class TGetTablesReq {
    + public:
    +
    + TGetTablesReq(const TGetTablesReq&);
    + TGetTablesReq& operator=(const TGetTablesReq&);
    + TGetTablesReq() : catalogName(), schemaName(), tableName() {
    + }
    +
    + virtual ~TGetTablesReq() throw();
    + TSessionHandle sessionHandle;
    + TPatternOrIdentifier catalogName;
    + TPatternOrIdentifier schemaName;
    + TPatternOrIdentifier tableName;
    + std::vector<std::string> tableTypes;
    +
    + _TGetTablesReq__isset __isset;
    +
    + void __set_sessionHandle(const TSessionHandle& val);
    +
    + void __set_catalogName(const TPatternOrIdentifier& val);
    +
    + void __set_schemaName(const TPatternOrIdentifier& val);
    +
    + void __set_tableName(const TPatternOrIdentifier& val);
    +
    + void __set_tableTypes(const std::vector<std::string> & val);
    +
    + bool operator == (const TGetTablesReq & rhs) const
    + {
    + if (!(sessionHandle == rhs.sessionHandle))
    + return false;
    + if (__isset.catalogName != rhs.__isset.catalogName)
    + return false;
    + else if (__isset.catalogName && !(catalogName == rhs.catalogName))
    + return false;
    + if (__isset.schemaName != rhs.__isset.schemaName)
    + return false;
    + else if (__isset.schemaName && !(schemaName == rhs.schemaName))
    + return false;
    + if (__isset.tableName != rhs.__isset.tableName)
    + return false;
    + else if (__isset.tableName && !(tableName == rhs.tableName))
    + return false;
    + if (__isset.tableTypes != rhs.__isset.tableTypes)
    + return false;
    + else if (__isset.tableTypes && !(tableTypes == rhs.tableTypes))
    + return false;
    + return true;
    + }
    + bool operator != (const TGetTablesReq &rhs) const {
    + return !(*this == rhs);
    + }
    +
    + bool operator < (const TGetTablesReq & ) 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(TGetTablesReq &a, TGetTablesReq &b);
    +
    +inline std::ostream& operator<<(std::ostream& out, const TGetTablesReq& obj)
    +{
    + obj.printTo(out);
    + return out;
    +}
    +
    +typedef struct _TGetTablesResp__isset {
    + _TGetTablesResp__isset() : operationHandle(false) {}
    + bool operationHandle :1;
    +} _TGetTablesResp__isset;
    +
    +class TGetTablesResp {
    + public:
    +
    + TGetTablesResp(const TGetTablesResp&);
    + TGetTablesResp& operator=(const TGetTablesResp&);
    + TGetTablesResp() {
    + }
    +
    + virtual ~TGetTablesResp() throw();
    + TStatus status;
    + TOperationHandle operationHandle;
    +
    + _TGetTablesResp__isset __isset;
    +
    + void __set_status(const TStatus& val);
    +
    + void __set_operationHandle(const TOperationHandle& val);
    +
    + bool operator == (const TGetTablesResp & rhs) const
    + {
    + if (!(status == rhs.status))
    + return false;
    + if (__isset.operationHandle != rhs.__isset.operationHandle)
    + return false;
    + else if (__isset.operationHandle && !(operationHandle == rhs.operationHandle))
    + return false;
    + return true;
    + }
    + bool operator != (const TGetTablesResp &rhs) const {
    + return !(*this == rhs);
    + }
    +
    + bool operator < (const TGetTablesResp & ) 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(TGetTablesResp &a, TGetTablesResp &b);
    +
    +inline std::ostream& operator<<(std::ostream& out, const TGetTablesResp& obj)
    +{
    + obj.printTo(out);
    + return out;
    +}
    +
    +
    +class TGetTableTypesReq {
    + public:
    +
    + TGetTableTypesReq(const TGetTableTypesReq&);
    + TGetTableTypesReq& operator=(const TGetTableTypesReq&);
    + TGetTableTypesReq() {
    + }
    +
    + virtual ~TGetTableTypesReq() throw();
    + TSessionHandle sessionHandle;
    +
    + void __set_sessionHandle(const TSessionHandle& val);
    +
    + bool operator == (const TGetTableTypesReq & rhs) const
    + {
    + if (!(sessionHandle == rhs.sessionHandle))
    + return false;
    + return true;
    + }
    + bool operator != (const TGetTableTypesReq &rhs) const {
    + return !(*this == rhs);
    + }
    +
    + bool operator < (const TGetTableTypesReq & ) 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(TGetTableTypesReq &a, TGetTableTypesReq &b);
    +
    +inline std::ostream& operator<<(std::ostream& out, const TGetTableTypesReq& obj)
    +{
    + obj.printTo(out);
    + return out;
    +}
    +
    +typedef struct _TGetTableTypesResp__isset {
    + _TGetTableTypesResp__isset() : operationHandle(false) {}
    + bool operationHandle :1;
    +} _TGetTableTypesResp__isset;
    +
    +class TGetTableTypesResp {
    + public:
    +
    + TGetTableTypesResp(const TGetTableTypesResp&);
    + TGetTableTypesResp& operator=(const TGetTableTypesResp&);
    + TGetTableTypesResp() {
    + }
    +
    + virtual ~TGetTableTypesResp() throw();
    + TStatus status;
    + TOperationHandle operationHandle;
    +
    + _TGetTableTypesResp__isset __isset;
    +
    + void __set_status(const TStatus& val);
    +
    + void __set_operationHandle(const TOperationHandle& val);
    +
    + bool operator == (const TGetTableTypesResp & rhs) const
    + {
    + if (!(status == rhs.status))
    + return false;
    + if (__isset.operationHandle != rhs.__isset.operationHandle)
    + return false;
    + else if (__isset.operationHandle && !(operationHandle == rhs.operationHandle))
    + return false;
    + return true;
    + }
    + bool operator != (const TGetTableTypesResp &rhs) const {
    + return !(*this == rhs);
    + }
    +
    + bool operator < (const TGetTableTypesResp & ) 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(TGetTableTypesResp &a, TGetTableTypesResp &b);
    +
    +inline std::ostream& operator<<(std::ostream& out, const TGetTableTypesResp& obj)
    +{
    + obj.printTo(out);
    + return out;
    +}
    +
    +typedef struct _TGetColumnsReq__isset {
    + _TGetColumnsReq__isset() : catalogName(false), schemaName(false), tableName(false), columnName(false) {}
    + bool catalogName :1;
    + bool schemaName :1;
    + bool tableName :1;
    + bool columnName :1;
    +} _TGetColumnsReq__isset;
    +
    +class TGetColumnsReq {
    + public:
    +
    + TGetColumnsReq(const TGetColumnsReq&);
    + TGetColumnsReq& operator=(const TGetColumnsReq&);
    + TGetColumnsReq() : catalogName(), schemaName(), tableName(), columnName() {
    + }
    +
    + virtual ~TGetColumnsReq() throw();
    + TSessionHandle sessionHandle;
    + TIdentifier catalogName;
    + TPatternOrIdentifier schemaName;
    + TPatternOrIdentifier tableName;
    + TPatternOrIdentifier columnName;
    +
    + _TGetColumnsReq__isset __isset;
    +
    + void __set_sessionHandle(const TSessionHandle& val);
    +
    + void __set_catalogName(const TIdentifier& val);
    +
    + void __set_schemaName(const TPatternOrIdentifier& val);
    +
    + void __set_tableName(const TPatternOrIdentifier& val);
    +
    + void __set_columnName(const TPatternOrIdentifier& val);
    +
    + bool operator == (const TGetColumnsReq & rhs) const
    + {
    + if (!(sessionHandle == rhs.sessionHandle))
    + return false;
    + if (__isset.catalogName != rhs.__isset.catalogName)
    + return false;
    + else if (__isset.catalogName && !(catalogName == rhs.catalogName))
    + return false;
    + if (__isset.schemaName != rhs.__isset.schemaName)
    + return false;
    + else if (__isset.schemaName && !(schemaName == rhs.schemaName))
    + return false;
    + if (__isset.tableName != rhs.__isset.tableName)
    + return false;
    + else if (__isset.tableName && !(tableName == rhs.tableName))
    + return false;
    + if (__isset.columnName != rhs.__isset.columnName)
    + return false;
    + else if (__isset.columnName && !(columnName == rhs.columnName))
    + return false;
    + return true;
    + }
    + bool operator != (const TGetColumnsReq &rhs) const {
    + return !(*this == rhs);
    + }
    +
    + bool operator < (const TGetColumnsReq & ) 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(TGetColumnsReq &a, TGetColumnsReq &b);
    +
    +inline std::ostream& operator<<(std::ostream& out, const TGetColumnsReq& obj)
    +{
    + obj.printTo(out);
    + return out;
    +}
    +
    +typedef struct _TGetColumnsResp__isset {
    + _TGetColumnsResp__isset() : operationHandle(false) {}
    + bool operationHandle :1;
    +} _TGetColumnsResp__isset;
    +
    +class TGetColumnsResp {
    + public:
    +
    + TGetColumnsResp(const TGetColumnsResp&);
    + TGetColumnsResp& operator=(const TGetColumnsResp&);
    + TGetColumnsResp() {
    + }
    +
    + virtual ~TGetColumnsResp() throw();
    + TStatus status;
    + TOperationHandle operationHandle;
    +
    + _TGetColumnsResp__isset __isset;
    +
    + void __set_status(const TStatus& val);
    +
    + void __set_operationHandle(const TOperationHandle& val);
    +
    + bool operator == (const TGetColumnsResp & rhs) const
    + {
    + if (!(status == rhs.status))
    + return false;
    + if (__isset.operationHandle != rhs.__isset.operationHandle)
    + return false;
    + else if (__isset.operationHandle && !(operationHandle == rhs.operationHandle))
    + return false;
    + return true;
    + }
    + bool operator != (const TGetColumnsResp &rhs) const {
    + return !(*this == rhs);
    + }
    +
    + bool operator < (const TGetColumnsResp & ) 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(TGetColumnsResp &a, TGetColumnsResp &b);
    +
    +inline std::ostream& operator<<(std::ostream& out, const TGetColumnsResp& obj)
    +{
    + obj.printTo(out);
    + return out;
    +}
    +
    +typedef struct _TGetFunctionsReq__isset {
    + _TGetFunctionsReq__isset() : catalogName(false), schemaName(false) {}
    + bool catalogName :1;
    + bool schemaName :1;
    +} _TGetFunctionsReq__isset;
    +
    +class TGetFunctionsReq {
    + public:
    +
    + TGetFunctionsReq(const TGetFunctionsReq&);
    + TGetFunctionsReq& operator=(const TGetFunctionsReq&);
    + TGetFunctionsReq() : catalogName(), schemaName(), functionName() {
    + }
    +
    + virtual ~TGetFunctionsReq() throw();
    + TSessionHandle sessionHandle;
    + TIdentifier catalogName;
    + TPatternOrIdentifier schemaName;
    + TPatternOrIdentifier functionName;
    +
    + _TGetFunctionsReq__isset __isset;
    +
    + void __set_sessionHandle(const TSessionHandle& val);
    +
    + void __set_catalogName(const TIdentifier& val);
    +
    + void __set_schemaName(const TPatternOrIdentifier& val);
    +
    + void __set_functionName(const TPatternOrIdentifier& val);
    +
    + bool operator == (const TGetFunctionsReq & rhs) const
    + {
    + if (!(sessionHandle == rhs.sessionHandle))
    + return false;
    + if (__isset.catalogName != rhs.__isset.catalogName)
    + return false;
    + else if (__isset.catalogName && !(catalogName == rhs.catalogName))
    + return false;
    + if (__isset.schemaName != rhs.__isset.schemaName)
    + return false;
    + else if (__isset.schemaName && !(schemaName == rhs.schemaName))
    + return false;
    + if (!(functionName == rhs.functionName))
    + return false;
    + return true;
    + }
    + bool operator != (const TGetFunctionsReq &rhs) const {
    + return !(*this == rhs);
    + }
    +
    + bool operator < (const TGetFunctionsReq & ) 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(TGetFunctionsReq &a, TGetFunctionsReq &b);
    +
    +inline std::ostream& operator<<(std::ostream& out, const TGetFunctionsReq& obj)
    +{
    + obj.printTo(out);
    + return out;
    +}
    +
    +typedef struct _TGetFunctionsResp__isset {
    + _TGetFunctionsResp__isset() : operationHandle(false) {}
    + bool operationHandle :1;
    +} _TGetFunctionsResp__isset;
    +
    +class TGetFunctionsResp {
    + public:
    +
    + TGetFunctionsResp(const TGetFunctionsResp&);
    + TGetFunctionsResp& operator=(const TGetFunctionsResp&);
    + TGetFunctionsResp() {
    + }
    +
    + virtual ~TGetFunctionsResp() throw();
    + TStatus status;
    + TOperationHandle operationHandle;
    +
    + _TGetFunctionsResp__isset __isset;
    +
    + void __set_status(const TStatus& val);
    +
    + void __set_operationHandle(const TOperationHandle& val);
    +
    + bool operator == (const TGetFunctionsResp & rhs) const
    + {
    + if (!(status == rhs.status))
    + return false;
    + if (__isset.operationHandle != rhs.__isset.operationHandle)
    + return false;
    + else if (__isset.operationHandle && !(operationHandle == rhs.operationHandle))
    + return false;
    + return true;
    + }
    + bool operator != (const TGetFunctionsResp &rhs) const {
    + return !(*this == rhs);
    + }
    +
    + bool operator < (const TGetFunctionsResp & ) 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(TGetFunctionsResp &a, TGetFunctionsResp &b);
    +
    +inline std::ostream& operator<<(std::ostream& out, const TGetFunctionsResp& obj)
    +{
    + obj.printTo(out);
    + return out;
    +}
    +
    +
    +class TGetOperationStatusReq {
    + public:
    +
    + TGetOperationStatusReq(const TGetOperationStatusReq&);
    + TGetOperationStatusReq& operator=(const TGetOperationStatusReq&);
    + TGetOperationStatusReq() {
    + }
    +
    + virtual ~TGetOperationStatusReq() throw();
    + TOperationHandle operationHandle;
    +
    + void __set_operationHandle(const TOperationHandle& val);
    +
    + bool operator == (const TGetOperationStatusReq & rhs) const
    + {
    + if (!(operationHandle == rhs.operationHandle))
    + return false;
    + return true;
    + }
    + bool operator != (const TGetOperationStatusReq &rhs) const {
    + return !(*this == rhs);
    + }
    +
    + bool operator < (const TGetOperationStatusReq & ) 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(TGetOperationStatusReq &a, TGetOperationStatusReq &b);
    +
    +inline std::ostream& operator<<(std::ostream& out, const TGetOperationStatusReq& obj)
    +{
    + obj.printTo(out);
    + return out;
    +}
    +
    +typedef struct _TGetOperationStatusResp__isset {
    + _TGetOperationStatusResp__isset() : operationState(false), sqlState(false), errorCode(false), errorMessage(false) {}
    + bool operationState :1;
    + bool sqlState :1;
    + bool errorCode :1;
    + bool errorMessage :1;
    +} _TGetOperationStatusResp__isset;
    +
    +class TGetOperationStatusResp {
    + public:
    +
    + TGetOperationStatusResp(const TGetOperationStatusResp&);
    + TGetOperationStatusResp& operator=(const TGetOperationStatusResp&);
    + TGetOperationStatusResp() : operationState((TOperationState::type)0), sqlState(), errorCode(0), errorMessage() {
    + }
    +
    + virtual ~TGetOperationStatusResp() throw();
    + TStatus status;
    + TOperationState::type operationState;
    + std::string sqlState;
    + int32_t errorCode;
    + std::string errorMessage;
    +
    + _TGetOperationStatusResp__isset __isset;
    +
    + void __set_status(const TStatus& val);
    +
    + void __set_operationState(const TOperationState::type val);
    +
    + void __set_sqlState(const std::string& val);
    +
    + void __set_errorCode(const int32_t val);
    +
    + void __set_errorMessage(const std::string& val);
    +
    + bool operator == (const TGetOperationStatusResp & rhs) const
    + {
    + if (!(status == rhs.status))
    + return false;
    + if (__isset.operationState != rhs.__isset.operationState)
    + return false;
    + else if (__isset.operationState && !(operationState == rhs.operationState))
    + return false;
    + if (__isset.sqlState != rhs.__isset.sqlState)
    + return false;
    + else if (__isset.sqlState && !(sqlState == rhs.sqlState))
    + return false;
    + if (__isset.errorCode != rhs.__isset.errorCode)
    + return false;
    + else if (__isset.errorCode && !(errorCode == rhs.errorCode))
    + return false;
    + if (__isset.errorMessage != rhs.__isset.errorMessage)
    + return false;
    + else if (__isset.errorMessage && !(errorMessage == rhs.errorMessage))
    + return false;
    + return true;
    + }
    + bool operator != (const TGetOperationStatusResp &rhs) const {
    + return !(*this == rhs);
    + }
    +
    + bool operator < (const TGetOperationStatusResp & ) 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(TGetOperationStatusResp &a, TGetOperationStatusResp &b);
    +
    +inline std::ostream& operator<<(std::ostream& out, const TGetOperationStatusResp& obj)
    +{
    + obj.printTo(out);
    + return out;
    +}
    +
    +
    +class TCancelOperationReq {
    + public:
    +
    + TCancelOperationReq(const TCancelOperationReq&);
    + TCancelOperationReq& operato

    <TRUNCATED>
  • Vgumashta at Jan 8, 2016 at 2:03 am
    http://git-wip-us.apache.org/repos/asf/hive/blob/a28f6cd8/service/src/gen/thrift/gen-cpp/ThriftHive.cpp
    ----------------------------------------------------------------------
    diff --git a/service/src/gen/thrift/gen-cpp/ThriftHive.cpp b/service/src/gen/thrift/gen-cpp/ThriftHive.cpp
    new file mode 100644
    index 0000000..a5448f0
    --- /dev/null
    +++ b/service/src/gen/thrift/gen-cpp/ThriftHive.cpp
    @@ -0,0 +1,3544 @@
    +/**
    + * Autogenerated by Thrift Compiler (0.9.3)
    + *
    + * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
    + * @generated
    + */
    +#include "ThriftHive.h"
    +
    +namespace Apache { namespace Hadoop { namespace Hive {
    +
    +
    +ThriftHive_execute_args::~ThriftHive_execute_args() throw() {
    +}
    +
    +
    +uint32_t ThriftHive_execute_args::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->query);
    + this->__isset.query = true;
    + } else {
    + xfer += iprot->skip(ftype);
    + }
    + break;
    + default:
    + xfer += iprot->skip(ftype);
    + break;
    + }
    + xfer += iprot->readFieldEnd();
    + }
    +
    + xfer += iprot->readStructEnd();
    +
    + return xfer;
    +}
    +
    +uint32_t ThriftHive_execute_args::write(::apache::thrift::protocol::TProtocol* oprot) const {
    + uint32_t xfer = 0;
    + apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot);
    + xfer += oprot->writeStructBegin("ThriftHive_execute_args");
    +
    + xfer += oprot->writeFieldBegin("query", ::apache::thrift::protocol::T_STRING, 1);
    + xfer += oprot->writeString(this->query);
    + xfer += oprot->writeFieldEnd();
    +
    + xfer += oprot->writeFieldStop();
    + xfer += oprot->writeStructEnd();
    + return xfer;
    +}
    +
    +
    +ThriftHive_execute_pargs::~ThriftHive_execute_pargs() throw() {
    +}
    +
    +
    +uint32_t ThriftHive_execute_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const {
    + uint32_t xfer = 0;
    + apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot);
    + xfer += oprot->writeStructBegin("ThriftHive_execute_pargs");
    +
    + xfer += oprot->writeFieldBegin("query", ::apache::thrift::protocol::T_STRING, 1);
    + xfer += oprot->writeString((*(this->query)));
    + xfer += oprot->writeFieldEnd();
    +
    + xfer += oprot->writeFieldStop();
    + xfer += oprot->writeStructEnd();
    + return xfer;
    +}
    +
    +
    +ThriftHive_execute_result::~ThriftHive_execute_result() throw() {
    +}
    +
    +
    +uint32_t ThriftHive_execute_result::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_STRUCT) {
    + xfer += this->ex.read(iprot);
    + this->__isset.ex = true;
    + } else {
    + xfer += iprot->skip(ftype);
    + }
    + break;
    + default:
    + xfer += iprot->skip(ftype);
    + break;
    + }
    + xfer += iprot->readFieldEnd();
    + }
    +
    + xfer += iprot->readStructEnd();
    +
    + return xfer;
    +}
    +
    +uint32_t ThriftHive_execute_result::write(::apache::thrift::protocol::TProtocol* oprot) const {
    +
    + uint32_t xfer = 0;
    +
    + xfer += oprot->writeStructBegin("ThriftHive_execute_result");
    +
    + if (this->__isset.ex) {
    + xfer += oprot->writeFieldBegin("ex", ::apache::thrift::protocol::T_STRUCT, 1);
    + xfer += this->ex.write(oprot);
    + xfer += oprot->writeFieldEnd();
    + }
    + xfer += oprot->writeFieldStop();
    + xfer += oprot->writeStructEnd();
    + return xfer;
    +}
    +
    +
    +ThriftHive_execute_presult::~ThriftHive_execute_presult() throw() {
    +}
    +
    +
    +uint32_t ThriftHive_execute_presult::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_STRUCT) {
    + xfer += this->ex.read(iprot);
    + this->__isset.ex = true;
    + } else {
    + xfer += iprot->skip(ftype);
    + }
    + break;
    + default:
    + xfer += iprot->skip(ftype);
    + break;
    + }
    + xfer += iprot->readFieldEnd();
    + }
    +
    + xfer += iprot->readStructEnd();
    +
    + return xfer;
    +}
    +
    +
    +ThriftHive_fetchOne_args::~ThriftHive_fetchOne_args() throw() {
    +}
    +
    +
    +uint32_t ThriftHive_fetchOne_args::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;
    + }
    + xfer += iprot->skip(ftype);
    + xfer += iprot->readFieldEnd();
    + }
    +
    + xfer += iprot->readStructEnd();
    +
    + return xfer;
    +}
    +
    +uint32_t ThriftHive_fetchOne_args::write(::apache::thrift::protocol::TProtocol* oprot) const {
    + uint32_t xfer = 0;
    + apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot);
    + xfer += oprot->writeStructBegin("ThriftHive_fetchOne_args");
    +
    + xfer += oprot->writeFieldStop();
    + xfer += oprot->writeStructEnd();
    + return xfer;
    +}
    +
    +
    +ThriftHive_fetchOne_pargs::~ThriftHive_fetchOne_pargs() throw() {
    +}
    +
    +
    +uint32_t ThriftHive_fetchOne_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const {
    + uint32_t xfer = 0;
    + apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot);
    + xfer += oprot->writeStructBegin("ThriftHive_fetchOne_pargs");
    +
    + xfer += oprot->writeFieldStop();
    + xfer += oprot->writeStructEnd();
    + return xfer;
    +}
    +
    +
    +ThriftHive_fetchOne_result::~ThriftHive_fetchOne_result() throw() {
    +}
    +
    +
    +uint32_t ThriftHive_fetchOne_result::read(::apache::thrift::protocol::TProtocol* iprot) {
    +