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


Java TTupleProtocol.readBitSet方法代碼示例

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


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

示例1: read

import org.apache.thrift.protocol.TTupleProtocol; //導入方法依賴的package包/類
@Override
public void read(org.apache.thrift.protocol.TProtocol prot, ProcessData struct) throws TException {
  TTupleProtocol iprot = (TTupleProtocol) prot;
  BitSet incoming = iprot.readBitSet(4);
  if (incoming.get(0)) {
    struct.type = iprot.readI32();
    struct.setTypeIsSet(true);
  }
  if (incoming.get(1)) {
    struct.crcCode = iprot.readI32();
    struct.setCrcCodeIsSet(true);
  }
  if (incoming.get(2)) {
    struct.length = iprot.readI32();
    struct.setLengthIsSet(true);
  }
  if (incoming.get(3)) {
    struct.sessionId = iprot.readI64();
    struct.setSessionIdIsSet(true);
  }
}
 
開發者ID:xiongbeer,項目名稱:Cobweb,代碼行數:22,代碼來源:ProcessData.java

示例2: read

import org.apache.thrift.protocol.TTupleProtocol; //導入方法依賴的package包/類
@Override
public void read(org.apache.thrift.protocol.TProtocol prot, createTable_args struct) throws org.apache.thrift.TException {
  TTupleProtocol iprot = (TTupleProtocol) prot;
  BitSet incoming = iprot.readBitSet(2);
  if (incoming.get(0)) {
    struct.tableName = iprot.readBinary();
    struct.setTableNameIsSet(true);
  }
  if (incoming.get(1)) {
    {
      org.apache.thrift.protocol.TList _list81 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
      struct.columnFamilies = new ArrayList<ColumnDescriptor>(_list81.size);
      ColumnDescriptor _elem82;
      for (int _i83 = 0; _i83 < _list81.size; ++_i83)
      {
        _elem82 = new ColumnDescriptor();
        _elem82.read(iprot);
        struct.columnFamilies.add(_elem82);
      }
    }
    struct.setColumnFamiliesIsSet(true);
  }
}
 
開發者ID:fengchen8086,項目名稱:ditb,代碼行數:24,代碼來源:Hbase.java

示例3: read

import org.apache.thrift.protocol.TTupleProtocol; //導入方法依賴的package包/類
@Override
public void read(org.apache.thrift.protocol.TProtocol prot, finishTask_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

示例4: read

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

示例5: read

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

示例6: read

import org.apache.thrift.protocol.TTupleProtocol; //導入方法依賴的package包/類
@Override
public void read(org.apache.thrift.protocol.TProtocol prot, IOError 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,代碼來源:IOError.java

示例7: read

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

示例8: 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

示例9: 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

示例10: read

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

示例11: read

import org.apache.thrift.protocol.TTupleProtocol; //導入方法依賴的package包/類
@Override
public void read(org.apache.thrift.protocol.TProtocol prot, GetResponseMessage 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(2);
  if (incoming.get(0)) {
    {
      org.apache.thrift.protocol.TList _list29 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
      struct.values = new ArrayList<VersionedValue>(_list29.size);
      for (int _i30 = 0; _i30 < _list29.size; ++_i30)
      {
        VersionedValue _elem31; // required
        _elem31 = new VersionedValue();
        _elem31.read(iprot);
        struct.values.add(_elem31);
      }
    }
    struct.setValuesIsSet(true);
  }
  if (incoming.get(1)) {
    struct.error = new SyncError();
    struct.error.read(iprot);
    struct.setErrorIsSet(true);
  }
}
 
開發者ID:xuraylei,項目名稱:fresco_floodlight,代碼行數:28,代碼來源:GetResponseMessage.java

示例12: read

import org.apache.thrift.protocol.TTupleProtocol; //導入方法依賴的package包/類
@Override
public void read(org.apache.thrift.protocol.TProtocol prot, MetricBatch struct) throws org.apache.thrift.TException {
  TTupleProtocol iprot = (TTupleProtocol) prot;
  BitSet incoming = iprot.readBitSet(2);
  if (incoming.get(0)) {
    {
      org.apache.thrift.protocol.TList _list18 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
      struct.metrics = new ArrayList<Metric>(_list18.size);
      for (int _i19 = 0; _i19 < _list18.size; ++_i19)
      {
        Metric _elem20; // required
        _elem20 = new Metric();
        _elem20.read(iprot);
        struct.metrics.add(_elem20);
      }
    }
    struct.setMetricsIsSet(true);
  }
  if (incoming.get(1)) {
    {
      org.apache.thrift.protocol.TSet _set21 = new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
      struct.commonTags = new HashSet<MetricTag>(2*_set21.size);
      for (int _i22 = 0; _i22 < _set21.size; ++_i22)
      {
        MetricTag _elem23; // required
        _elem23 = new MetricTag();
        _elem23.read(iprot);
        struct.commonTags.add(_elem23);
      }
    }
    struct.setCommonTagsIsSet(true);
  }
}
 
開發者ID:uber-java,項目名稱:tally,代碼行數:34,代碼來源:MetricBatch.java

示例13: read

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

示例14: read

import org.apache.thrift.protocol.TTupleProtocol; //導入方法依賴的package包/類
@Override
public void read(org.apache.thrift.protocol.TProtocol prot, dataTransport_args struct) throws org.apache.thrift.TException {
  TTupleProtocol iprot = (TTupleProtocol) prot;
  BitSet incoming = iprot.readBitSet(1);
  if (incoming.get(0)) {
    struct.reins = new Reinstruct();
    struct.reins.read(iprot);
    struct.setReinsIsSet(true);
  }
}
 
開發者ID:elves-project,項目名稱:scheduler,代碼行數:11,代碼來源:SchedulerService.java

示例15: read

import org.apache.thrift.protocol.TTupleProtocol; //導入方法依賴的package包/類
@Override
public void read(org.apache.thrift.protocol.TProtocol prot, TRegionInfo struct) throws org.apache.thrift.TException {
  TTupleProtocol iprot = (TTupleProtocol) prot;
  BitSet incoming = iprot.readBitSet(7);
  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.id = iprot.readI64();
    struct.setIdIsSet(true);
  }
  if (incoming.get(3)) {
    struct.name = iprot.readBinary();
    struct.setNameIsSet(true);
  }
  if (incoming.get(4)) {
    struct.version = iprot.readByte();
    struct.setVersionIsSet(true);
  }
  if (incoming.get(5)) {
    struct.serverName = iprot.readBinary();
    struct.setServerNameIsSet(true);
  }
  if (incoming.get(6)) {
    struct.port = iprot.readI32();
    struct.setPortIsSet(true);
  }
}
 
開發者ID:fengchen8086,項目名稱:ditb,代碼行數:34,代碼來源:TRegionInfo.java


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