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


Java TTupleProtocol.readI64方法代碼示例

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


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

示例1: read

import org.apache.thrift.protocol.TTupleProtocol; //導入方法依賴的package包/類
@Override
public void read(org.apache.thrift.protocol.TProtocol prot, ProcessData struct) throws org.apache.thrift.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, atomicIncrement_result struct) throws org.apache.thrift.TException {
  TTupleProtocol iprot = (TTupleProtocol) prot;
  BitSet incoming = iprot.readBitSet(3);
  if (incoming.get(0)) {
    struct.success = iprot.readI64();
    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, CountValue struct) throws org.apache.thrift.TException {
  TTupleProtocol iprot = (TTupleProtocol) prot;
  BitSet incoming = iprot.readBitSet(1);
  if (incoming.get(0)) {
    struct.i64Value = iprot.readI64();
    struct.setI64ValueIsSet(true);
  }
}
 
開發者ID:uber-java,項目名稱:tally,代碼行數:10,代碼來源:CountValue.java

示例4: read

import org.apache.thrift.protocol.TTupleProtocol; //導入方法依賴的package包/類
@Override
public void read(org.apache.thrift.protocol.TProtocol prot, GaugeValue struct) throws org.apache.thrift.TException {
  TTupleProtocol iprot = (TTupleProtocol) prot;
  BitSet incoming = iprot.readBitSet(2);
  if (incoming.get(0)) {
    struct.i64Value = iprot.readI64();
    struct.setI64ValueIsSet(true);
  }
  if (incoming.get(1)) {
    struct.dValue = iprot.readDouble();
    struct.setDValueIsSet(true);
  }
}
 
開發者ID:uber-java,項目名稱:tally,代碼行數:14,代碼來源:GaugeValue.java

示例5: read

import org.apache.thrift.protocol.TTupleProtocol; //導入方法依賴的package包/類
@Override
public void read(org.apache.thrift.protocol.TProtocol prot, Metric 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.metricValue = new MetricValue();
    struct.metricValue.read(iprot);
    struct.setMetricValueIsSet(true);
  }
  if (incoming.get(2)) {
    struct.timestamp = iprot.readI64();
    struct.setTimestampIsSet(true);
  }
  if (incoming.get(3)) {
    {
      org.apache.thrift.protocol.TSet _set5 = new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
      struct.tags = new HashSet<MetricTag>(2*_set5.size);
      for (int _i6 = 0; _i6 < _set5.size; ++_i6)
      {
        MetricTag _elem7; // required
        _elem7 = new MetricTag();
        _elem7.read(iprot);
        struct.tags.add(_elem7);
      }
    }
    struct.setTagsIsSet(true);
  }
}
 
開發者ID:uber-java,項目名稱:tally,代碼行數:33,代碼來源:Metric.java

示例6: read

import org.apache.thrift.protocol.TTupleProtocol; //導入方法依賴的package包/類
@Override
public void read(org.apache.thrift.protocol.TProtocol prot, ClockEntry struct) throws org.apache.thrift.TException {
  TTupleProtocol iprot = (TTupleProtocol) prot;
  struct.nodeId = iprot.readI16();
  struct.setNodeIdIsSet(true);
  struct.version = iprot.readI64();
  struct.setVersionIsSet(true);
}
 
開發者ID:xuraylei,項目名稱:fresco_floodlight,代碼行數:9,代碼來源:ClockEntry.java

示例7: read

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

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

示例9: read

import org.apache.thrift.protocol.TTupleProtocol; //導入方法依賴的package包/類
@Override
public void read(org.apache.thrift.protocol.TProtocol prot, TColumn struct) throws org.apache.thrift.TException {
  TTupleProtocol iprot = (TTupleProtocol) prot;
  struct.family = iprot.readBinary();
  struct.setFamilyIsSet(true);
  BitSet incoming = iprot.readBitSet(2);
  if (incoming.get(0)) {
    struct.qualifier = iprot.readBinary();
    struct.setQualifierIsSet(true);
  }
  if (incoming.get(1)) {
    struct.timestamp = iprot.readI64();
    struct.setTimestampIsSet(true);
  }
}
 
開發者ID:fengchen8086,項目名稱:ditb,代碼行數:16,代碼來源:TColumn.java

示例10: read

import org.apache.thrift.protocol.TTupleProtocol; //導入方法依賴的package包/類
@Override
public void read(org.apache.thrift.protocol.TProtocol prot, TDelete struct) throws org.apache.thrift.TException {
  TTupleProtocol iprot = (TTupleProtocol) prot;
  struct.row = iprot.readBinary();
  struct.setRowIsSet(true);
  BitSet incoming = iprot.readBitSet(5);
  if (incoming.get(0)) {
    {
      org.apache.thrift.protocol.TList _list63 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
      struct.columns = new ArrayList<TColumn>(_list63.size);
      TColumn _elem64;
      for (int _i65 = 0; _i65 < _list63.size; ++_i65)
      {
        _elem64 = new TColumn();
        _elem64.read(iprot);
        struct.columns.add(_elem64);
      }
    }
    struct.setColumnsIsSet(true);
  }
  if (incoming.get(1)) {
    struct.timestamp = iprot.readI64();
    struct.setTimestampIsSet(true);
  }
  if (incoming.get(2)) {
    struct.deleteType = org.apache.hadoop.hbase.thrift2.generated.TDeleteType.findByValue(iprot.readI32());
    struct.setDeleteTypeIsSet(true);
  }
  if (incoming.get(3)) {
    {
      org.apache.thrift.protocol.TMap _map66 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32());
      struct.attributes = new HashMap<ByteBuffer,ByteBuffer>(2*_map66.size);
      ByteBuffer _key67;
      ByteBuffer _val68;
      for (int _i69 = 0; _i69 < _map66.size; ++_i69)
      {
        _key67 = iprot.readBinary();
        _val68 = iprot.readBinary();
        struct.attributes.put(_key67, _val68);
      }
    }
    struct.setAttributesIsSet(true);
  }
  if (incoming.get(4)) {
    struct.durability = org.apache.hadoop.hbase.thrift2.generated.TDurability.findByValue(iprot.readI32());
    struct.setDurabilityIsSet(true);
  }
}
 
開發者ID:fengchen8086,項目名稱:ditb,代碼行數:49,代碼來源:TDelete.java

示例11: read

import org.apache.thrift.protocol.TTupleProtocol; //導入方法依賴的package包/類
@Override
public void read(org.apache.thrift.protocol.TProtocol prot, TPut struct) throws org.apache.thrift.TException {
  TTupleProtocol iprot = (TTupleProtocol) prot;
  struct.row = iprot.readBinary();
  struct.setRowIsSet(true);
  {
    org.apache.thrift.protocol.TList _list45 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
    struct.columnValues = new ArrayList<TColumnValue>(_list45.size);
    TColumnValue _elem46;
    for (int _i47 = 0; _i47 < _list45.size; ++_i47)
    {
      _elem46 = new TColumnValue();
      _elem46.read(iprot);
      struct.columnValues.add(_elem46);
    }
  }
  struct.setColumnValuesIsSet(true);
  BitSet incoming = iprot.readBitSet(4);
  if (incoming.get(0)) {
    struct.timestamp = iprot.readI64();
    struct.setTimestampIsSet(true);
  }
  if (incoming.get(1)) {
    {
      org.apache.thrift.protocol.TMap _map48 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32());
      struct.attributes = new HashMap<ByteBuffer,ByteBuffer>(2*_map48.size);
      ByteBuffer _key49;
      ByteBuffer _val50;
      for (int _i51 = 0; _i51 < _map48.size; ++_i51)
      {
        _key49 = iprot.readBinary();
        _val50 = iprot.readBinary();
        struct.attributes.put(_key49, _val50);
      }
    }
    struct.setAttributesIsSet(true);
  }
  if (incoming.get(2)) {
    struct.durability = org.apache.hadoop.hbase.thrift2.generated.TDurability.findByValue(iprot.readI32());
    struct.setDurabilityIsSet(true);
  }
  if (incoming.get(3)) {
    struct.cellVisibility = new TCellVisibility();
    struct.cellVisibility.read(iprot);
    struct.setCellVisibilityIsSet(true);
  }
}
 
開發者ID:fengchen8086,項目名稱:ditb,代碼行數:48,代碼來源:TPut.java

示例12: read

import org.apache.thrift.protocol.TTupleProtocol; //導入方法依賴的package包/類
@Override
public void read(org.apache.thrift.protocol.TProtocol prot, TGet struct) throws org.apache.thrift.TException {
  TTupleProtocol iprot = (TTupleProtocol) prot;
  struct.row = iprot.readBinary();
  struct.setRowIsSet(true);
  BitSet incoming = iprot.readBitSet(7);
  if (incoming.get(0)) {
    {
      org.apache.thrift.protocol.TList _list27 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
      struct.columns = new ArrayList<TColumn>(_list27.size);
      TColumn _elem28;
      for (int _i29 = 0; _i29 < _list27.size; ++_i29)
      {
        _elem28 = new TColumn();
        _elem28.read(iprot);
        struct.columns.add(_elem28);
      }
    }
    struct.setColumnsIsSet(true);
  }
  if (incoming.get(1)) {
    struct.timestamp = iprot.readI64();
    struct.setTimestampIsSet(true);
  }
  if (incoming.get(2)) {
    struct.timeRange = new TTimeRange();
    struct.timeRange.read(iprot);
    struct.setTimeRangeIsSet(true);
  }
  if (incoming.get(3)) {
    struct.maxVersions = iprot.readI32();
    struct.setMaxVersionsIsSet(true);
  }
  if (incoming.get(4)) {
    struct.filterString = iprot.readBinary();
    struct.setFilterStringIsSet(true);
  }
  if (incoming.get(5)) {
    {
      org.apache.thrift.protocol.TMap _map30 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32());
      struct.attributes = new HashMap<ByteBuffer,ByteBuffer>(2*_map30.size);
      ByteBuffer _key31;
      ByteBuffer _val32;
      for (int _i33 = 0; _i33 < _map30.size; ++_i33)
      {
        _key31 = iprot.readBinary();
        _val32 = iprot.readBinary();
        struct.attributes.put(_key31, _val32);
      }
    }
    struct.setAttributesIsSet(true);
  }
  if (incoming.get(6)) {
    struct.authorizations = new TAuthorization();
    struct.authorizations.read(iprot);
    struct.setAuthorizationsIsSet(true);
  }
}
 
開發者ID:fengchen8086,項目名稱:ditb,代碼行數:59,代碼來源:TGet.java


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