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


Java TTupleProtocol.readBool方法代碼示例

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


在下文中一共展示了TTupleProtocol.readBool方法的13個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的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:xuraylei,項目名稱:fresco_floodlight,代碼行數:21,代碼來源:CursorRequestMessage.java

示例2: read

import org.apache.thrift.protocol.TTupleProtocol; //導入方法依賴的package包/類
@Override
public void read(org.apache.thrift.protocol.TProtocol prot, checkAndPut_result struct) throws org.apache.thrift.TException {
  TTupleProtocol iprot = (TTupleProtocol) prot;
  BitSet incoming = iprot.readBitSet(3);
  if (incoming.get(0)) {
    struct.success = iprot.readBool();
    struct.setSuccessIsSet(true);
  }
  if (incoming.get(1)) {
    struct.io = new IOError();
    struct.io.read(iprot);
    struct.setIoIsSet(true);
  }
  if (incoming.get(2)) {
    struct.ia = new IllegalArgument();
    struct.ia.read(iprot);
    struct.setIaIsSet(true);
  }
}
 
開發者ID:fengchen8086,項目名稱:ditb,代碼行數:20,代碼來源:Hbase.java

示例3: read

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

示例4: read

import org.apache.thrift.protocol.TTupleProtocol; //導入方法依賴的package包/類
@Override
public void read(org.apache.thrift.protocol.TProtocol prot, THRegionInfo struct) throws org.apache.thrift.TException {
  TTupleProtocol iprot = (TTupleProtocol) prot;
  struct.regionId = iprot.readI64();
  struct.setRegionIdIsSet(true);
  struct.tableName = iprot.readBinary();
  struct.setTableNameIsSet(true);
  BitSet incoming = iprot.readBitSet(5);
  if (incoming.get(0)) {
    struct.startKey = iprot.readBinary();
    struct.setStartKeyIsSet(true);
  }
  if (incoming.get(1)) {
    struct.endKey = iprot.readBinary();
    struct.setEndKeyIsSet(true);
  }
  if (incoming.get(2)) {
    struct.offline = iprot.readBool();
    struct.setOfflineIsSet(true);
  }
  if (incoming.get(3)) {
    struct.split = iprot.readBool();
    struct.setSplitIsSet(true);
  }
  if (incoming.get(4)) {
    struct.replicaId = iprot.readI32();
    struct.setReplicaIdIsSet(true);
  }
}
 
開發者ID:fengchen8086,項目名稱:ditb,代碼行數:30,代碼來源:THRegionInfo.java

示例5: read

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

示例6: read

import org.apache.thrift.protocol.TTupleProtocol; //導入方法依賴的package包/類
@Override
public void read(org.apache.thrift.protocol.TProtocol prot, checkAndDelete_result struct) throws org.apache.thrift.TException {
  TTupleProtocol iprot = (TTupleProtocol) prot;
  BitSet incoming = iprot.readBitSet(2);
  if (incoming.get(0)) {
    struct.success = iprot.readBool();
    struct.setSuccessIsSet(true);
  }
  if (incoming.get(1)) {
    struct.io = new TIOError();
    struct.io.read(iprot);
    struct.setIoIsSet(true);
  }
}
 
開發者ID:fengchen8086,項目名稱:ditb,代碼行數:15,代碼來源:THBaseService.java

示例7: read

import org.apache.thrift.protocol.TTupleProtocol; //導入方法依賴的package包/類
@Override
public void read(org.apache.thrift.protocol.TProtocol prot, TSFetchResultsResp struct) throws org.apache.thrift.TException {
  TTupleProtocol iprot = (TTupleProtocol) prot;
  struct.status = new TS_Status();
  struct.status.read(iprot);
  struct.setStatusIsSet(true);
  struct.hasResultSet = iprot.readBool();
  struct.setHasResultSetIsSet(true);
  BitSet incoming = iprot.readBitSet(1);
  if (incoming.get(0)) {
    struct.queryDataSet = new TSQueryDataSet();
    struct.queryDataSet.read(iprot);
    struct.setQueryDataSetIsSet(true);
  }
}
 
開發者ID:thulab,項目名稱:iotdb-jdbc,代碼行數:16,代碼來源:TSFetchResultsResp.java

示例8: 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:xuraylei,項目名稱:fresco_floodlight,代碼行數:16,代碼來源:Store.java

示例9: read

import org.apache.thrift.protocol.TTupleProtocol; //導入方法依賴的package包/類
@Override
public void read(org.apache.thrift.protocol.TProtocol prot, Message struct) throws org.apache.thrift.TException {
  TTupleProtocol iprot = (TTupleProtocol) prot;
  BitSet incoming = iprot.readBitSet(4);
  if (incoming.get(0)) {
    struct.i = iprot.readI32();
    struct.setIIsSet(true);
  }
  if (incoming.get(1)) {
    struct.b = iprot.readBool();
    struct.setBIsSet(true);
  }
  if (incoming.get(2)) {
    struct.s = iprot.readString();
    struct.setSIsSet(true);
  }
  if (incoming.get(3)) {
    {
      org.apache.thrift.protocol.TList _list5 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I32, iprot.readI32());
      struct.l = new ArrayList<Integer>(_list5.size);
      int _elem6;
      for (int _i7 = 0; _i7 < _list5.size; ++_i7)
      {
        _elem6 = iprot.readI32();
        struct.l.add(_elem6);
      }
    }
    struct.setLIsSet(true);
  }
}
 
開發者ID:grpc-ecosystem,項目名稱:grift,代碼行數:31,代碼來源:Message.java

示例10: read

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

示例11: read

import org.apache.thrift.protocol.TTupleProtocol; //導入方法依賴的package包/類
@Override
public void read(org.apache.thrift.protocol.TProtocol prot, TSOperationHandle struct) throws org.apache.thrift.TException {
  TTupleProtocol iprot = (TTupleProtocol) prot;
  struct.operationId = new TSHandleIdentifier();
  struct.operationId.read(iprot);
  struct.setOperationIdIsSet(true);
  struct.hasResultSet = iprot.readBool();
  struct.setHasResultSetIsSet(true);
}
 
開發者ID:thulab,項目名稱:iotdb-jdbc,代碼行數:10,代碼來源:TSOperationHandle.java

示例12: read

import org.apache.thrift.protocol.TTupleProtocol; //導入方法依賴的package包/類
@Override
public void read(org.apache.thrift.protocol.TProtocol prot, ColumnDescriptor struct) throws org.apache.thrift.TException {
  TTupleProtocol iprot = (TTupleProtocol) prot;
  BitSet incoming = iprot.readBitSet(9);
  if (incoming.get(0)) {
    struct.name = iprot.readBinary();
    struct.setNameIsSet(true);
  }
  if (incoming.get(1)) {
    struct.maxVersions = iprot.readI32();
    struct.setMaxVersionsIsSet(true);
  }
  if (incoming.get(2)) {
    struct.compression = iprot.readString();
    struct.setCompressionIsSet(true);
  }
  if (incoming.get(3)) {
    struct.inMemory = iprot.readBool();
    struct.setInMemoryIsSet(true);
  }
  if (incoming.get(4)) {
    struct.bloomFilterType = iprot.readString();
    struct.setBloomFilterTypeIsSet(true);
  }
  if (incoming.get(5)) {
    struct.bloomFilterVectorSize = iprot.readI32();
    struct.setBloomFilterVectorSizeIsSet(true);
  }
  if (incoming.get(6)) {
    struct.bloomFilterNbHashes = iprot.readI32();
    struct.setBloomFilterNbHashesIsSet(true);
  }
  if (incoming.get(7)) {
    struct.blockCacheEnabled = iprot.readBool();
    struct.setBlockCacheEnabledIsSet(true);
  }
  if (incoming.get(8)) {
    struct.timeToLive = iprot.readI32();
    struct.setTimeToLiveIsSet(true);
  }
}
 
開發者ID:fengchen8086,項目名稱:ditb,代碼行數:42,代碼來源:ColumnDescriptor.java

示例13: read

import org.apache.thrift.protocol.TTupleProtocol; //導入方法依賴的package包/類
@Override
public void read(org.apache.thrift.protocol.TProtocol prot, TScan struct) throws org.apache.thrift.TException {
  TTupleProtocol iprot = (TTupleProtocol) prot;
  BitSet incoming = iprot.readBitSet(9);
  if (incoming.get(0)) {
    struct.startRow = iprot.readBinary();
    struct.setStartRowIsSet(true);
  }
  if (incoming.get(1)) {
    struct.stopRow = iprot.readBinary();
    struct.setStopRowIsSet(true);
  }
  if (incoming.get(2)) {
    struct.timestamp = iprot.readI64();
    struct.setTimestampIsSet(true);
  }
  if (incoming.get(3)) {
    {
      org.apache.thrift.protocol.TList _list31 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32());
      struct.columns = new ArrayList<ByteBuffer>(_list31.size);
      ByteBuffer _elem32;
      for (int _i33 = 0; _i33 < _list31.size; ++_i33)
      {
        _elem32 = iprot.readBinary();
        struct.columns.add(_elem32);
      }
    }
    struct.setColumnsIsSet(true);
  }
  if (incoming.get(4)) {
    struct.caching = iprot.readI32();
    struct.setCachingIsSet(true);
  }
  if (incoming.get(5)) {
    struct.filterString = iprot.readBinary();
    struct.setFilterStringIsSet(true);
  }
  if (incoming.get(6)) {
    struct.batchSize = iprot.readI32();
    struct.setBatchSizeIsSet(true);
  }
  if (incoming.get(7)) {
    struct.sortColumns = iprot.readBool();
    struct.setSortColumnsIsSet(true);
  }
  if (incoming.get(8)) {
    struct.reversed = iprot.readBool();
    struct.setReversedIsSet(true);
  }
}
 
開發者ID:fengchen8086,項目名稱:ditb,代碼行數:51,代碼來源:TScan.java


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