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