예제 #1
0
 public TOperationHandle(
     THandleIdentifier operationId, TOperationType operationType, boolean hasResultSet) {
   this();
   this.operationId = operationId;
   this.operationType = operationType;
   this.hasResultSet = hasResultSet;
   setHasResultSetIsSet(true);
 }
예제 #2
0
 @Override
 public void clear() {
   this.operationId = null;
   this.operationType = null;
   setHasResultSetIsSet(false);
   this.hasResultSet = false;
   setModifiedRowCountIsSet(false);
   this.modifiedRowCount = 0.0;
 }
예제 #3
0
 public void read(org.apache.thrift.protocol.TProtocol iprot, TOperationHandle struct)
     throws org.apache.thrift.TException {
   org.apache.thrift.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_ID
         if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
           struct.operationId = new THandleIdentifier();
           struct.operationId.read(iprot);
           struct.setOperationIdIsSet(true);
         } else {
           org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
         }
         break;
       case 2: // OPERATION_TYPE
         if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
           struct.operationType = TOperationType.findByValue(iprot.readI32());
           struct.setOperationTypeIsSet(true);
         } else {
           org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
         }
         break;
       case 3: // HAS_RESULT_SET
         if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) {
           struct.hasResultSet = iprot.readBool();
           struct.setHasResultSetIsSet(true);
         } else {
           org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
         }
         break;
       case 4: // MODIFIED_ROW_COUNT
         if (schemeField.type == org.apache.thrift.protocol.TType.DOUBLE) {
           struct.modifiedRowCount = iprot.readDouble();
           struct.setModifiedRowCountIsSet(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();
 }
예제 #4
0
 @Override
 public void read(org.apache.thrift.protocol.TProtocol prot, TOperationHandle struct)
     throws org.apache.thrift.TException {
   TTupleProtocol iprot = (TTupleProtocol) prot;
   struct.operationId = new THandleIdentifier();
   struct.operationId.read(iprot);
   struct.setOperationIdIsSet(true);
   struct.operationType = TOperationType.findByValue(iprot.readI32());
   struct.setOperationTypeIsSet(true);
   struct.hasResultSet = iprot.readBool();
   struct.setHasResultSetIsSet(true);
   BitSet incoming = iprot.readBitSet(1);
   if (incoming.get(0)) {
     struct.modifiedRowCount = iprot.readDouble();
     struct.setModifiedRowCountIsSet(true);
   }
 }
예제 #5
0
 public void setHasResultSet(boolean hasResultSet) {
   this.hasResultSet = hasResultSet;
   setHasResultSetIsSet(true);
 }