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


Java TTupleProtocol.writeBool方法代碼示例

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


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

示例1: write

import org.apache.thrift.protocol.TTupleProtocol; //導入方法依賴的package包/類
@Override
public void write(org.apache.thrift.protocol.TProtocol prot, exists_result struct) throws org.apache.thrift.TException {
  TTupleProtocol oprot = (TTupleProtocol) prot;
  BitSet optionals = new BitSet();
  if (struct.isSetSuccess()) {
    optionals.set(0);
  }
  if (struct.isSetIo()) {
    optionals.set(1);
  }
  oprot.writeBitSet(optionals, 2);
  if (struct.isSetSuccess()) {
    oprot.writeBool(struct.success);
  }
  if (struct.isSetIo()) {
    struct.io.write(oprot);
  }
}
 
開發者ID:fengchen8086,項目名稱:ditb,代碼行數:19,代碼來源:THBaseService.java

示例2: write

import org.apache.thrift.protocol.TTupleProtocol; //導入方法依賴的package包/類
@Override
public void write(org.apache.thrift.protocol.TProtocol prot, checkAndPut_result struct) throws org.apache.thrift.TException {
  TTupleProtocol oprot = (TTupleProtocol) prot;
  BitSet optionals = new BitSet();
  if (struct.isSetSuccess()) {
    optionals.set(0);
  }
  if (struct.isSetIo()) {
    optionals.set(1);
  }
  if (struct.isSetIa()) {
    optionals.set(2);
  }
  oprot.writeBitSet(optionals, 3);
  if (struct.isSetSuccess()) {
    oprot.writeBool(struct.success);
  }
  if (struct.isSetIo()) {
    struct.io.write(oprot);
  }
  if (struct.isSetIa()) {
    struct.ia.write(oprot);
  }
}
 
開發者ID:fengchen8086,項目名稱:ditb,代碼行數:25,代碼來源:Hbase.java

示例3: write

import org.apache.thrift.protocol.TTupleProtocol; //導入方法依賴的package包/類
@Override
public void write(org.apache.thrift.protocol.TProtocol prot, DeleteResponseMessage struct) throws org.apache.thrift.TException {
  TTupleProtocol oprot = (TTupleProtocol) prot;
  BitSet optionals = new BitSet();
  if (struct.isSetHeader()) {
    optionals.set(0);
  }
  if (struct.isSetDeleted()) {
    optionals.set(1);
  }
  oprot.writeBitSet(optionals, 2);
  if (struct.isSetHeader()) {
    struct.header.write(oprot);
  }
  if (struct.isSetDeleted()) {
    oprot.writeBool(struct.deleted);
  }
}
 
開發者ID:xuraylei,項目名稱:fresco_floodlight,代碼行數:19,代碼來源:DeleteResponseMessage.java

示例4: write

import org.apache.thrift.protocol.TTupleProtocol; //導入方法依賴的package包/類
@Override
public void write(org.apache.thrift.protocol.TProtocol prot, CursorRequestMessage struct) throws org.apache.thrift.TException {
  TTupleProtocol oprot = (TTupleProtocol) prot;
  struct.header.write(oprot);
  BitSet optionals = new BitSet();
  if (struct.isSetStoreName()) {
    optionals.set(0);
  }
  if (struct.isSetCursorId()) {
    optionals.set(1);
  }
  if (struct.isSetClose()) {
    optionals.set(2);
  }
  oprot.writeBitSet(optionals, 3);
  if (struct.isSetStoreName()) {
    oprot.writeString(struct.storeName);
  }
  if (struct.isSetCursorId()) {
    oprot.writeI32(struct.cursorId);
  }
  if (struct.isSetClose()) {
    oprot.writeBool(struct.close);
  }
}
 
開發者ID:xuraylei,項目名稱:fresco_floodlight,代碼行數:26,代碼來源:CursorRequestMessage.java

示例5: write

import org.apache.thrift.protocol.TTupleProtocol; //導入方法依賴的package包/類
@Override
public void write(org.apache.thrift.protocol.TProtocol prot, Store struct) throws org.apache.thrift.TException {
  TTupleProtocol oprot = (TTupleProtocol) prot;
  oprot.writeString(struct.storeName);
  BitSet optionals = new BitSet();
  if (struct.isSetScope()) {
    optionals.set(0);
  }
  if (struct.isSetPersist()) {
    optionals.set(1);
  }
  oprot.writeBitSet(optionals, 2);
  if (struct.isSetScope()) {
    oprot.writeI32(struct.scope.getValue());
  }
  if (struct.isSetPersist()) {
    oprot.writeBool(struct.persist);
  }
}
 
開發者ID:nsg-ethz,項目名稱:iTAP-controller,代碼行數:20,代碼來源:Store.java

示例6: write

import org.apache.thrift.protocol.TTupleProtocol; //導入方法依賴的package包/類
@Override
public void write(org.apache.thrift.protocol.TProtocol prot, addToBlackList_result struct) throws TException {
    TTupleProtocol oprot = (TTupleProtocol) prot;
    BitSet optionals = new BitSet();
    if (struct.isSetSuccess()) {
        optionals.set(0);
    }
    oprot.writeBitSet(optionals, 1);
    if (struct.isSetSuccess()) {
        oprot.writeBool(struct.success);
    }
}
 
開發者ID:xiongbeer,項目名稱:Cobweb,代碼行數:13,代碼來源:LocalWorkerCrawlerServiceBase.java

示例7: write

import org.apache.thrift.protocol.TTupleProtocol; //導入方法依賴的package包/類
@Override
public void write(org.apache.thrift.protocol.TProtocol prot, giveUpTask_result struct) throws org.apache.thrift.TException {
  TTupleProtocol oprot = (TTupleProtocol) prot;
  BitSet optionals = new BitSet();
  if (struct.isSetSuccess()) {
    optionals.set(0);
  }
  oprot.writeBitSet(optionals, 1);
  if (struct.isSetSuccess()) {
    oprot.writeBool(struct.success);
  }
}
 
開發者ID:xiongbeer,項目名稱:Cobweb,代碼行數:13,代碼來源:LocalWorkerCrawlerService.java

示例8: write

import org.apache.thrift.protocol.TTupleProtocol; //導入方法依賴的package包/類
@Override
public void write(org.apache.thrift.protocol.TProtocol prot, TSFetchResultsResp struct) throws org.apache.thrift.TException {
  TTupleProtocol oprot = (TTupleProtocol) prot;
  struct.status.write(oprot);
  oprot.writeBool(struct.hasResultSet);
  BitSet optionals = new BitSet();
  if (struct.isSetQueryDataSet()) {
    optionals.set(0);
  }
  oprot.writeBitSet(optionals, 1);
  if (struct.isSetQueryDataSet()) {
    struct.queryDataSet.write(oprot);
  }
}
 
開發者ID:thulab,項目名稱:iotdb-jdbc,代碼行數:15,代碼來源:TSFetchResultsResp.java

示例9: write

import org.apache.thrift.protocol.TTupleProtocol; //導入方法依賴的package包/類
@Override
public void write(org.apache.thrift.protocol.TProtocol prot, Message struct) throws org.apache.thrift.TException {
  TTupleProtocol oprot = (TTupleProtocol) prot;
  BitSet optionals = new BitSet();
  if (struct.isSetI()) {
    optionals.set(0);
  }
  if (struct.isSetB()) {
    optionals.set(1);
  }
  if (struct.isSetS()) {
    optionals.set(2);
  }
  if (struct.isSetL()) {
    optionals.set(3);
  }
  oprot.writeBitSet(optionals, 4);
  if (struct.isSetI()) {
    oprot.writeI32(struct.i);
  }
  if (struct.isSetB()) {
    oprot.writeBool(struct.b);
  }
  if (struct.isSetS()) {
    oprot.writeString(struct.s);
  }
  if (struct.isSetL()) {
    {
      oprot.writeI32(struct.l.size());
      for (int _iter4 : struct.l)
      {
        oprot.writeI32(_iter4);
      }
    }
  }
}
 
開發者ID:grpc-ecosystem,項目名稱:grift,代碼行數:37,代碼來源:Message.java

示例10: write

import org.apache.thrift.protocol.TTupleProtocol; //導入方法依賴的package包/類
@Override
public void write(org.apache.thrift.protocol.TProtocol prot, ColumnDescriptor struct) throws org.apache.thrift.TException {
  TTupleProtocol oprot = (TTupleProtocol) prot;
  BitSet optionals = new BitSet();
  if (struct.isSetName()) {
    optionals.set(0);
  }
  if (struct.isSetMaxVersions()) {
    optionals.set(1);
  }
  if (struct.isSetCompression()) {
    optionals.set(2);
  }
  if (struct.isSetInMemory()) {
    optionals.set(3);
  }
  if (struct.isSetBloomFilterType()) {
    optionals.set(4);
  }
  if (struct.isSetBloomFilterVectorSize()) {
    optionals.set(5);
  }
  if (struct.isSetBloomFilterNbHashes()) {
    optionals.set(6);
  }
  if (struct.isSetBlockCacheEnabled()) {
    optionals.set(7);
  }
  if (struct.isSetTimeToLive()) {
    optionals.set(8);
  }
  oprot.writeBitSet(optionals, 9);
  if (struct.isSetName()) {
    oprot.writeBinary(struct.name);
  }
  if (struct.isSetMaxVersions()) {
    oprot.writeI32(struct.maxVersions);
  }
  if (struct.isSetCompression()) {
    oprot.writeString(struct.compression);
  }
  if (struct.isSetInMemory()) {
    oprot.writeBool(struct.inMemory);
  }
  if (struct.isSetBloomFilterType()) {
    oprot.writeString(struct.bloomFilterType);
  }
  if (struct.isSetBloomFilterVectorSize()) {
    oprot.writeI32(struct.bloomFilterVectorSize);
  }
  if (struct.isSetBloomFilterNbHashes()) {
    oprot.writeI32(struct.bloomFilterNbHashes);
  }
  if (struct.isSetBlockCacheEnabled()) {
    oprot.writeBool(struct.blockCacheEnabled);
  }
  if (struct.isSetTimeToLive()) {
    oprot.writeI32(struct.timeToLive);
  }
}
 
開發者ID:fengchen8086,項目名稱:ditb,代碼行數:61,代碼來源:ColumnDescriptor.java

示例11: write

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


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