當前位置: 首頁>>代碼示例>>Java>>正文


Java TTupleProtocol.readString方法代碼示例

本文整理匯總了Java中org.apache.thrift.protocol.TTupleProtocol.readString方法的典型用法代碼示例。如果您正苦於以下問題:Java TTupleProtocol.readString方法的具體用法?Java TTupleProtocol.readString怎麽用?Java TTupleProtocol.readString使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在org.apache.thrift.protocol.TTupleProtocol的用法示例。


在下文中一共展示了TTupleProtocol.readString方法的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: read

import org.apache.thrift.protocol.TTupleProtocol; //導入方法依賴的package包/類
@Override
public void read(org.apache.thrift.protocol.TProtocol prot, CursorRequestMessage struct) throws org.apache.thrift.TException {
  TTupleProtocol iprot = (TTupleProtocol) prot;
  struct.header = new AsyncMessageHeader();
  struct.header.read(iprot);
  struct.setHeaderIsSet(true);
  BitSet incoming = iprot.readBitSet(3);
  if (incoming.get(0)) {
    struct.storeName = iprot.readString();
    struct.setStoreNameIsSet(true);
  }
  if (incoming.get(1)) {
    struct.cursorId = iprot.readI32();
    struct.setCursorIdIsSet(true);
  }
  if (incoming.get(2)) {
    struct.close = iprot.readBool();
    struct.setCloseIsSet(true);
  }
}
 
開發者ID:nsg-ethz,項目名稱:iTAP-controller,代碼行數:21,代碼來源:CursorRequestMessage.java

示例2: read

import org.apache.thrift.protocol.TTupleProtocol; //導入方法依賴的package包/類
@Override
public void read(org.apache.thrift.protocol.TProtocol prot, getBlackList_result struct) throws org.apache.thrift.TException {
  TTupleProtocol iprot = (TTupleProtocol) prot;
  BitSet incoming = iprot.readBitSet(1);
  if (incoming.get(0)) {
    {
      org.apache.thrift.protocol.TList _list13 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32());
      struct.success = new ArrayList<String>(_list13.size);
      for (int _i14 = 0; _i14 < _list13.size; ++_i14)
      {
        String _elem15;
        _elem15 = iprot.readString();
        struct.success.add(_elem15);
      }
    }
    struct.setSuccessIsSet(true);
  }
}
 
開發者ID:xiongbeer,項目名稱:Cobweb,代碼行數:19,代碼來源:LocalWorkerCrawlerService.java

示例3: read

import org.apache.thrift.protocol.TTupleProtocol; //導入方法依賴的package包/類
@Override
public void read(org.apache.thrift.protocol.TProtocol prot, DeleteRequestMessage struct) throws org.apache.thrift.TException {
  TTupleProtocol iprot = (TTupleProtocol) prot;
  struct.header = new AsyncMessageHeader();
  struct.header.read(iprot);
  struct.setHeaderIsSet(true);
  struct.storeName = iprot.readString();
  struct.setStoreNameIsSet(true);
  struct.key = iprot.readBinary();
  struct.setKeyIsSet(true);
  BitSet incoming = iprot.readBitSet(1);
  if (incoming.get(0)) {
    struct.version = new VectorClock();
    struct.version.read(iprot);
    struct.setVersionIsSet(true);
  }
}
 
開發者ID:nsg-ethz,項目名稱:iTAP-controller,代碼行數:18,代碼來源:DeleteRequestMessage.java

示例4: read

import org.apache.thrift.protocol.TTupleProtocol; //導入方法依賴的package包/類
@Override
public void read(org.apache.thrift.protocol.TProtocol prot, getNewTask_result struct) throws TException {
    TTupleProtocol iprot = (TTupleProtocol) prot;
    BitSet incoming = iprot.readBitSet(1);
    if (incoming.get(0)) {
        {
            org.apache.thrift.protocol.TList _list5 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32());
            struct.success = new ArrayList<String>(_list5.size);
            for (int _i6 = 0; _i6 < _list5.size; ++_i6) {
                String _elem7;
                _elem7 = iprot.readString();
                struct.success.add(_elem7);
            }
        }
        struct.setSuccessIsSet(true);
    }
}
 
開發者ID:xiongbeer,項目名稱:Cobweb,代碼行數:18,代碼來源:LocalWorkerCrawlerServiceBase.java

示例5: read

import org.apache.thrift.protocol.TTupleProtocol; //導入方法依賴的package包/類
@Override
public void read(org.apache.thrift.protocol.TProtocol prot, PutRequestMessage struct) throws org.apache.thrift.TException {
  TTupleProtocol iprot = (TTupleProtocol) prot;
  struct.header = new AsyncMessageHeader();
  struct.header.read(iprot);
  struct.setHeaderIsSet(true);
  struct.storeName = iprot.readString();
  struct.setStoreNameIsSet(true);
  struct.key = iprot.readBinary();
  struct.setKeyIsSet(true);
  BitSet incoming = iprot.readBitSet(2);
  if (incoming.get(0)) {
    struct.versionedValue = new VersionedValue();
    struct.versionedValue.read(iprot);
    struct.setVersionedValueIsSet(true);
  }
  if (incoming.get(1)) {
    struct.value = iprot.readBinary();
    struct.setValueIsSet(true);
  }
}
 
開發者ID:nsg-ethz,項目名稱:iTAP-controller,代碼行數:22,代碼來源:PutRequestMessage.java

示例6: read

import org.apache.thrift.protocol.TTupleProtocol; //導入方法依賴的package包/類
@Override
public void read(org.apache.thrift.protocol.TProtocol prot, Reinstruct struct) throws org.apache.thrift.TException {
  TTupleProtocol iprot = (TTupleProtocol) prot;
  BitSet incoming = iprot.readBitSet(4);
  if (incoming.get(0)) {
    struct.ins = new Instruct();
    struct.ins.read(iprot);
    struct.setInsIsSet(true);
  }
  if (incoming.get(1)) {
    struct.flag = iprot.readI32();
    struct.setFlagIsSet(true);
  }
  if (incoming.get(2)) {
    struct.costtime = iprot.readI32();
    struct.setCosttimeIsSet(true);
  }
  if (incoming.get(3)) {
    struct.result = iprot.readString();
    struct.setResultIsSet(true);
  }
}
 
開發者ID:elves-project,項目名稱:scheduler,代碼行數:23,代碼來源:Reinstruct.java

示例7: read

import org.apache.thrift.protocol.TTupleProtocol; //導入方法依賴的package包/類
@Override
public void read(org.apache.thrift.protocol.TProtocol prot, LogEntry struct)
        throws TException
{
    TTupleProtocol iprot = (TTupleProtocol) prot;
    BitSet incoming = iprot.readBitSet(2);
    if (incoming.get(0)) {
        struct.category = iprot.readString();
        struct.setCategoryIsSet(true);
    }
    if (incoming.get(1)) {
        struct.message = iprot.readString();
        struct.setMessageIsSet(true);
    }
}
 
開發者ID:airlift,項目名稱:drift,代碼行數:16,代碼來源:LogEntry.java

示例8: read

import org.apache.thrift.protocol.TTupleProtocol; //導入方法依賴的package包/類
@Override
public void read(org.apache.thrift.protocol.TProtocol prot, test_result struct) throws org.apache.thrift.TException {
  TTupleProtocol iprot = (TTupleProtocol) prot;
  BitSet incoming = iprot.readBitSet(1);
  if (incoming.get(0)) {
    struct.success = iprot.readString();
    struct.setSuccessIsSet(true);
  }
}
 
開發者ID:tiaoling,項目名稱:high,代碼行數:10,代碼來源:ThriftTestService.java

示例9: read

import org.apache.thrift.protocol.TTupleProtocol; //導入方法依賴的package包/類
@Override
public void read(org.apache.thrift.protocol.TProtocol prot, Store struct) throws org.apache.thrift.TException {
  TTupleProtocol iprot = (TTupleProtocol) prot;
  struct.storeName = iprot.readString();
  struct.setStoreNameIsSet(true);
  BitSet incoming = iprot.readBitSet(2);
  if (incoming.get(0)) {
    struct.scope = Scope.findByValue(iprot.readI32());
    struct.setScopeIsSet(true);
  }
  if (incoming.get(1)) {
    struct.persist = iprot.readBool();
    struct.setPersistIsSet(true);
  }
}
 
開發者ID:nsg-ethz,項目名稱:iTAP-controller,代碼行數:16,代碼來源:Store.java

示例10: read

import org.apache.thrift.protocol.TTupleProtocol; //導入方法依賴的package包/類
@Override
public void read(org.apache.thrift.protocol.TProtocol prot, AuthChallengeResponse struct) throws org.apache.thrift.TException {
  TTupleProtocol iprot = (TTupleProtocol) prot;
  BitSet incoming = iprot.readBitSet(2);
  if (incoming.get(0)) {
    struct.challenge = iprot.readString();
    struct.setChallengeIsSet(true);
  }
  if (incoming.get(1)) {
    struct.response = iprot.readString();
    struct.setResponseIsSet(true);
  }
}
 
開發者ID:xuraylei,項目名稱:fresco_floodlight,代碼行數:14,代碼來源:AuthChallengeResponse.java

示例11: read

import org.apache.thrift.protocol.TTupleProtocol; //導入方法依賴的package包/類
@Override
public void read(org.apache.thrift.protocol.TProtocol prot, TIllegalArgument struct) throws org.apache.thrift.TException {
  TTupleProtocol iprot = (TTupleProtocol) prot;
  BitSet incoming = iprot.readBitSet(1);
  if (incoming.get(0)) {
    struct.message = iprot.readString();
    struct.setMessageIsSet(true);
  }
}
 
開發者ID:fengchen8086,項目名稱:ditb,代碼行數:10,代碼來源:TIllegalArgument.java

示例12: read

import org.apache.thrift.protocol.TTupleProtocol; //導入方法依賴的package包/類
@Override
public void read(org.apache.thrift.protocol.TProtocol prot, IllegalArgument struct) throws org.apache.thrift.TException {
  TTupleProtocol iprot = (TTupleProtocol) prot;
  BitSet incoming = iprot.readBitSet(1);
  if (incoming.get(0)) {
    struct.message = iprot.readString();
    struct.setMessageIsSet(true);
  }
}
 
開發者ID:fengchen8086,項目名稱:ditb,代碼行數:10,代碼來源:IllegalArgument.java

示例13: read

import org.apache.thrift.protocol.TTupleProtocol; //導入方法依賴的package包/類
@Override
public void read(org.apache.thrift.protocol.TProtocol prot, TSColumnSchema struct) throws org.apache.thrift.TException {
  TTupleProtocol iprot = (TTupleProtocol) prot;
  BitSet incoming = iprot.readBitSet(4);
  if (incoming.get(0)) {
    struct.name = iprot.readString();
    struct.setNameIsSet(true);
  }
  if (incoming.get(1)) {
    struct.dataType = iprot.readString();
    struct.setDataTypeIsSet(true);
  }
  if (incoming.get(2)) {
    struct.encoding = iprot.readString();
    struct.setEncodingIsSet(true);
  }
  if (incoming.get(3)) {
    {
      org.apache.thrift.protocol.TMap _map156 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32());
      struct.otherArgs = new HashMap<String,String>(2*_map156.size);
      for (int _i157 = 0; _i157 < _map156.size; ++_i157)
      {
        String _key158;
        String _val159;
        _key158 = iprot.readString();
        _val159 = iprot.readString();
        struct.otherArgs.put(_key158, _val159);
      }
    }
    struct.setOtherArgsIsSet(true);
  }
}
 
開發者ID:thulab,項目名稱:iotdb-jdbc,代碼行數:33,代碼來源:TSColumnSchema.java

示例14: read

import org.apache.thrift.protocol.TTupleProtocol; //導入方法依賴的package包/類
@Override
public void read(org.apache.thrift.protocol.TProtocol prot, echo_result struct) throws org.apache.thrift.TException {
  TTupleProtocol iprot = (TTupleProtocol) prot;
  BitSet incoming = iprot.readBitSet(1);
  if (incoming.get(0)) {
    struct.success = iprot.readString();
    struct.setSuccessIsSet(true);
  }
}
 
開發者ID:somewhereMrli,項目名稱:albedo-thrift,代碼行數:10,代碼來源:EchoSerivce.java

示例15: read

import org.apache.thrift.protocol.TTupleProtocol; //導入方法依賴的package包/類
@Override
public void read(org.apache.thrift.protocol.TProtocol prot, AlreadyExists struct) throws org.apache.thrift.TException {
  TTupleProtocol iprot = (TTupleProtocol) prot;
  BitSet incoming = iprot.readBitSet(1);
  if (incoming.get(0)) {
    struct.message = iprot.readString();
    struct.setMessageIsSet(true);
  }
}
 
開發者ID:fengchen8086,項目名稱:ditb,代碼行數:10,代碼來源:AlreadyExists.java


注:本文中的org.apache.thrift.protocol.TTupleProtocol.readString方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。