本文整理匯總了Java中org.apache.thrift.protocol.TTupleProtocol.readI32方法的典型用法代碼示例。如果您正苦於以下問題:Java TTupleProtocol.readI32方法的具體用法?Java TTupleProtocol.readI32怎麽用?Java TTupleProtocol.readI32使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類org.apache.thrift.protocol.TTupleProtocol
的用法示例。
在下文中一共展示了TTupleProtocol.readI32方法的14個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: read
import org.apache.thrift.protocol.TTupleProtocol; //導入方法依賴的package包/類
@Override
public void read(org.apache.thrift.protocol.TProtocol prot, Log_args struct)
throws TException
{
TTupleProtocol iprot = (TTupleProtocol) prot;
BitSet incoming = iprot.readBitSet(1);
if (incoming.get(0)) {
{
org.apache.thrift.protocol.TList _list5 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
struct.messages = new ArrayList<>(_list5.size);
for (int _i6 = 0; _i6 < _list5.size; ++_i6) {
LogEntry _elem7; // required
_elem7 = new LogEntry();
_elem7.read(iprot);
struct.messages.add(_elem7);
}
}
struct.setMessagesIsSet(true);
}
}
示例2: read
import org.apache.thrift.protocol.TTupleProtocol; //導入方法依賴的package包/類
@Override
public void read(org.apache.thrift.protocol.TProtocol prot, KeyedValues struct) throws org.apache.thrift.TException {
TTupleProtocol iprot = (TTupleProtocol) prot;
struct.key = iprot.readBinary();
struct.setKeyIsSet(true);
{
org.apache.thrift.protocol.TList _list13 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
struct.values = new ArrayList<VersionedValue>(_list13.size);
for (int _i14 = 0; _i14 < _list13.size; ++_i14)
{
VersionedValue _elem15; // required
_elem15 = new VersionedValue();
_elem15.read(iprot);
struct.values.add(_elem15);
}
}
struct.setValuesIsSet(true);
}
示例3: read
import org.apache.thrift.protocol.TTupleProtocol; //導入方法依賴的package包/類
@Override
public void read(org.apache.thrift.protocol.TProtocol prot, Node struct) throws org.apache.thrift.TException {
TTupleProtocol iprot = (TTupleProtocol) prot;
BitSet incoming = iprot.readBitSet(4);
if (incoming.get(0)) {
struct.nodeId = iprot.readI16();
struct.setNodeIdIsSet(true);
}
if (incoming.get(1)) {
struct.domainId = iprot.readI16();
struct.setDomainIdIsSet(true);
}
if (incoming.get(2)) {
struct.hostname = iprot.readString();
struct.setHostnameIsSet(true);
}
if (incoming.get(3)) {
struct.port = iprot.readI32();
struct.setPortIsSet(true);
}
}
示例4: read
import org.apache.thrift.protocol.TTupleProtocol; //導入方法依賴的package包/類
@Override
public void read(org.apache.thrift.protocol.TProtocol prot, getRowWithColumns_result struct) throws org.apache.thrift.TException {
TTupleProtocol iprot = (TTupleProtocol) prot;
BitSet incoming = iprot.readBitSet(2);
if (incoming.get(0)) {
{
org.apache.thrift.protocol.TList _list179 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
struct.success = new ArrayList<TRowResult>(_list179.size);
TRowResult _elem180;
for (int _i181 = 0; _i181 < _list179.size; ++_i181)
{
_elem180 = new TRowResult();
_elem180.read(iprot);
struct.success.add(_elem180);
}
}
struct.setSuccessIsSet(true);
}
if (incoming.get(1)) {
struct.io = new IOError();
struct.io.read(iprot);
struct.setIoIsSet(true);
}
}
示例5: read
import org.apache.thrift.protocol.TTupleProtocol; //導入方法依賴的package包/類
@Override
public void read(org.apache.thrift.protocol.TProtocol prot, VectorClock struct) throws org.apache.thrift.TException {
TTupleProtocol iprot = (TTupleProtocol) prot;
BitSet incoming = iprot.readBitSet(2);
if (incoming.get(0)) {
{
org.apache.thrift.protocol.TList _list5 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
struct.versions = new ArrayList<ClockEntry>(_list5.size);
for (int _i6 = 0; _i6 < _list5.size; ++_i6)
{
ClockEntry _elem7; // required
_elem7 = new ClockEntry();
_elem7.read(iprot);
struct.versions.add(_elem7);
}
}
struct.setVersionsIsSet(true);
}
if (incoming.get(1)) {
struct.timestamp = iprot.readI64();
struct.setTimestampIsSet(true);
}
}
示例6: read
import org.apache.thrift.protocol.TTupleProtocol; //導入方法依賴的package包/類
@Override
public void read(org.apache.thrift.protocol.TProtocol prot, KeyedVersions struct) throws org.apache.thrift.TException {
TTupleProtocol iprot = (TTupleProtocol) prot;
struct.key = iprot.readBinary();
struct.setKeyIsSet(true);
{
org.apache.thrift.protocol.TList _list21 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
struct.versions = new ArrayList<VectorClock>(_list21.size);
for (int _i22 = 0; _i22 < _list21.size; ++_i22)
{
VectorClock _elem23; // required
_elem23 = new VectorClock();
_elem23.read(iprot);
struct.versions.add(_elem23);
}
}
struct.setVersionsIsSet(true);
}
示例7: read
import org.apache.thrift.protocol.TTupleProtocol; //導入方法依賴的package包/類
@Override
public void read(org.apache.thrift.protocol.TProtocol prot, TServerName struct) throws org.apache.thrift.TException {
TTupleProtocol iprot = (TTupleProtocol) prot;
struct.hostName = iprot.readString();
struct.setHostNameIsSet(true);
BitSet incoming = iprot.readBitSet(2);
if (incoming.get(0)) {
struct.port = iprot.readI32();
struct.setPortIsSet(true);
}
if (incoming.get(1)) {
struct.startCode = iprot.readI64();
struct.setStartCodeIsSet(true);
}
}
示例8: read
import org.apache.thrift.protocol.TTupleProtocol; //導入方法依賴的package包/類
@Override
public void read(org.apache.thrift.protocol.TProtocol prot, TSOpenSessionResp struct) throws org.apache.thrift.TException {
TTupleProtocol iprot = (TTupleProtocol) prot;
struct.status = new TS_Status();
struct.status.read(iprot);
struct.setStatusIsSet(true);
struct.serverProtocolVersion = TSProtocolVersion.findByValue(iprot.readI32());
struct.setServerProtocolVersionIsSet(true);
BitSet incoming = iprot.readBitSet(2);
if (incoming.get(0)) {
struct.sessionHandle = new TS_SessionHandle();
struct.sessionHandle.read(iprot);
struct.setSessionHandleIsSet(true);
}
if (incoming.get(1)) {
{
org.apache.thrift.protocol.TMap _map22 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32());
struct.configuration = new HashMap<String,String>(2*_map22.size);
for (int _i23 = 0; _i23 < _map22.size; ++_i23)
{
String _key24;
String _val25;
_key24 = iprot.readString();
_val25 = iprot.readString();
struct.configuration.put(_key24, _val25);
}
}
struct.setConfigurationIsSet(true);
}
}
示例9: read
import org.apache.thrift.protocol.TTupleProtocol; //導入方法依賴的package包/類
@Override
public void read(org.apache.thrift.protocol.TProtocol prot, getLastProgressRate_result struct) throws org.apache.thrift.TException {
TTupleProtocol iprot = (TTupleProtocol) prot;
BitSet incoming = iprot.readBitSet(1);
if (incoming.get(0)) {
struct.success = iprot.readI32();
struct.setSuccessIsSet(true);
}
}
示例10: read
import org.apache.thrift.protocol.TTupleProtocol; //導入方法依賴的package包/類
@Override
public void read(org.apache.thrift.protocol.TProtocol prot, SyncError struct) throws org.apache.thrift.TException {
TTupleProtocol iprot = (TTupleProtocol) prot;
BitSet incoming = iprot.readBitSet(2);
if (incoming.get(0)) {
struct.errorCode = iprot.readI32();
struct.setErrorCodeIsSet(true);
}
if (incoming.get(1)) {
struct.message = iprot.readString();
struct.setMessageIsSet(true);
}
}
示例11: read
import org.apache.thrift.protocol.TTupleProtocol; //導入方法依賴的package包/類
@Override
public void read(org.apache.thrift.protocol.TProtocol prot, getScannerRows_result struct) throws org.apache.thrift.TException {
TTupleProtocol iprot = (TTupleProtocol) prot;
BitSet incoming = iprot.readBitSet(3);
if (incoming.get(0)) {
{
org.apache.thrift.protocol.TList _list177 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
struct.success = new ArrayList<TResult>(_list177.size);
TResult _elem178;
for (int _i179 = 0; _i179 < _list177.size; ++_i179)
{
_elem178 = new TResult();
_elem178.read(iprot);
struct.success.add(_elem178);
}
}
struct.setSuccessIsSet(true);
}
if (incoming.get(1)) {
struct.io = new TIOError();
struct.io.read(iprot);
struct.setIoIsSet(true);
}
if (incoming.get(2)) {
struct.ia = new TIllegalArgument();
struct.ia.read(iprot);
struct.setIaIsSet(true);
}
}
示例12: read
import org.apache.thrift.protocol.TTupleProtocol; //導入方法依賴的package包/類
@Override
public void read(org.apache.thrift.protocol.TProtocol prot, TSFetchResultsReq struct) throws org.apache.thrift.TException {
TTupleProtocol iprot = (TTupleProtocol) prot;
struct.statement = iprot.readString();
struct.setStatementIsSet(true);
struct.fetch_size = iprot.readI32();
struct.setFetch_sizeIsSet(true);
}
示例13: 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);
}
}
示例14: 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);
}
}