本文整理匯總了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);
}
}
示例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);
}
}
示例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);
}
}
示例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);
}
}
示例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);
}
}
示例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);
}
}
示例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);
}
}
示例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);
}
}
示例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);
}
}
示例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);
}
}
示例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);
}
示例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);
}
}
示例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);
}
}