Java Code Examples for org.apache.thrift.protocol.TTupleProtocol#readByte()
The following examples show how to use
org.apache.thrift.protocol.TTupleProtocol#readByte() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: TMessageSet.java From suro with Apache License 2.0 | 6 votes |
@Override public void read(org.apache.thrift.protocol.TProtocol prot, TMessageSet struct) throws TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(5); if (incoming.get(0)) { struct.app = iprot.readString(); struct.setAppIsSet(true); } if (incoming.get(1)) { struct.numMessages = iprot.readI32(); struct.setNumMessagesIsSet(true); } if (incoming.get(2)) { struct.compression = iprot.readByte(); struct.setCompressionIsSet(true); } if (incoming.get(3)) { struct.crc = iprot.readI64(); struct.setCrcIsSet(true); } if (incoming.get(4)) { struct.messages = iprot.readBinary(); struct.setMessagesIsSet(true); } }
Example 2
Source File: TMessagePack.java From luxun with Apache License 2.0 | 6 votes |
@Override public void read(org.apache.thrift.protocol.TProtocol prot, TMessagePack struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; struct.messageList = iprot.readBinary(); struct.setMessageListIsSet(true); BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { struct.magic = iprot.readByte(); struct.setMagicIsSet(true); } if (incoming.get(1)) { struct.attribute = iprot.readByte(); struct.setAttributeIsSet(true); } if (incoming.get(2)) { struct.crc32 = iprot.readI32(); struct.setCrc32IsSet(true); } }
Example 3
Source File: EntityId.java From gemfirexd-oss with Apache License 2.0 | 5 votes |
@Override public void read(org.apache.thrift.protocol.TProtocol prot, EntityId struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; struct.id = iprot.readI32(); struct.setIdIsSet(true); struct.type = iprot.readByte(); struct.setTypeIsSet(true); struct.connId = iprot.readI32(); struct.setConnIdIsSet(true); BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { struct.token = iprot.readBinary(); struct.setTokenIsSet(true); } }
Example 4
Source File: TPathEntry.java From incubator-sentry with Apache License 2.0 | 5 votes |
@Override public void read(org.apache.thrift.protocol.TProtocol prot, TPathEntry struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; struct.type = iprot.readByte(); struct.setTypeIsSet(true); struct.pathElement = iprot.readString(); struct.setPathElementIsSet(true); { org.apache.thrift.protocol.TSet _set42 = new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.I32, iprot.readI32()); struct.children = new HashSet<Integer>(2*_set42.size); for (int _i43 = 0; _i43 < _set42.size; ++_i43) { int _elem44; // required _elem44 = iprot.readI32(); struct.children.add(_elem44); } } struct.setChildrenIsSet(true); BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { { org.apache.thrift.protocol.TSet _set45 = new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); struct.authzObjs = new HashSet<String>(2*_set45.size); for (int _i46 = 0; _i46 < _set45.size; ++_i46) { String _elem47; // required _elem47 = iprot.readString(); struct.authzObjs.add(_elem47); } } struct.setAuthzObjsIsSet(true); } }
Example 5
Source File: EntityId.java From gemfirexd-oss with Apache License 2.0 | 5 votes |
@Override public void read(org.apache.thrift.protocol.TProtocol prot, EntityId struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; struct.id = iprot.readI32(); struct.setIdIsSet(true); struct.type = iprot.readByte(); struct.setTypeIsSet(true); struct.connId = iprot.readI32(); struct.setConnIdIsSet(true); BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { struct.token = iprot.readBinary(); struct.setTokenIsSet(true); } }
Example 6
Source File: Decimal.java From gemfirexd-oss with Apache License 2.0 | 5 votes |
@Override public void read(org.apache.thrift.protocol.TProtocol prot, Decimal struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; struct.signum = iprot.readByte(); struct.setSignumIsSet(true); struct.scale = iprot.readI32(); struct.setScaleIsSet(true); struct.magnitude = iprot.readBinary(); struct.setMagnitudeIsSet(true); }
Example 7
Source File: Decimal.java From gemfirexd-oss with Apache License 2.0 | 5 votes |
@Override public void read(org.apache.thrift.protocol.TProtocol prot, Decimal struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; struct.signum = iprot.readByte(); struct.setSignumIsSet(true); struct.scale = iprot.readI32(); struct.setScaleIsSet(true); struct.magnitude = iprot.readBinary(); struct.setMagnitudeIsSet(true); }
Example 8
Source File: ResponseInfo.java From octo-rpc with Apache License 2.0 | 5 votes |
@Override public void read(org.apache.thrift.protocol.TProtocol prot, ResponseInfo struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; struct.sequenceId = iprot.readI64(); struct.setSequenceIdIsSet(true); struct.status = iprot.readByte(); struct.setStatusIsSet(true); BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { struct.message = iprot.readString(); struct.setMessageIsSet(true); } }
Example 9
Source File: RequestInfo.java From octo-rpc with Apache License 2.0 | 5 votes |
@Override public void read(org.apache.thrift.protocol.TProtocol prot, RequestInfo struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; struct.serviceName = iprot.readString(); struct.setServiceNameIsSet(true); struct.sequenceId = iprot.readI64(); struct.setSequenceIdIsSet(true); struct.callType = iprot.readByte(); struct.setCallTypeIsSet(true); struct.timeout = iprot.readI32(); struct.setTimeoutIsSet(true); }
Example 10
Source File: ServiceMetaDataArgs.java From gemfirexd-oss with Apache License 2.0 | 4 votes |
@Override public void read(org.apache.thrift.protocol.TProtocol prot, ServiceMetaDataArgs struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; struct.connId = iprot.readI32(); struct.setConnIdIsSet(true); struct.driverType = iprot.readByte(); struct.setDriverTypeIsSet(true); BitSet incoming = iprot.readBitSet(12); if (incoming.get(0)) { struct.token = iprot.readBinary(); struct.setTokenIsSet(true); } if (incoming.get(1)) { struct.schema = iprot.readString(); struct.setSchemaIsSet(true); } if (incoming.get(2)) { struct.table = iprot.readString(); struct.setTableIsSet(true); } if (incoming.get(3)) { { org.apache.thrift.protocol.TList _list237 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); struct.tableTypes = new ArrayList<String>(_list237.size); for (int _i238 = 0; _i238 < _list237.size; ++_i238) { String _elem239; _elem239 = iprot.readString(); struct.tableTypes.add(_elem239); } } struct.setTableTypesIsSet(true); } if (incoming.get(4)) { struct.columnName = iprot.readString(); struct.setColumnNameIsSet(true); } if (incoming.get(5)) { struct.foreignSchema = iprot.readString(); struct.setForeignSchemaIsSet(true); } if (incoming.get(6)) { struct.foreignTable = iprot.readString(); struct.setForeignTableIsSet(true); } if (incoming.get(7)) { struct.procedureName = iprot.readString(); struct.setProcedureNameIsSet(true); } if (incoming.get(8)) { struct.functionName = iprot.readString(); struct.setFunctionNameIsSet(true); } if (incoming.get(9)) { struct.attributeName = iprot.readString(); struct.setAttributeNameIsSet(true); } if (incoming.get(10)) { struct.typeName = iprot.readString(); struct.setTypeNameIsSet(true); } if (incoming.get(11)) { struct.typeId = GFXDType.findByValue(iprot.readI32()); struct.setTypeIdIsSet(true); } }
Example 11
Source File: RestMessage.java From DDMQ with Apache License 2.0 | 4 votes |
@Override public void read(org.apache.thrift.protocol.TProtocol prot, RestMessage struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(9); if (incoming.get(0)) { struct.type = iprot.readByte(); struct.setTypeIsSet(true); } if (incoming.get(1)) { struct.mode = iprot.readByte(); struct.setModeIsSet(true); } if (incoming.get(2)) { struct.url = iprot.readString(); struct.setUrlIsSet(true); } if (incoming.get(3)) { { org.apache.thrift.protocol.TMap _map12 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32()); struct.params = new HashMap<String,String>(2*_map12.size); String _key13; String _val14; for (int _i15 = 0; _i15 < _map12.size; ++_i15) { _key13 = iprot.readString(); _val14 = iprot.readString(); struct.params.put(_key13, _val14); } } struct.setParamsIsSet(true); } if (incoming.get(4)) { { org.apache.thrift.protocol.TMap _map16 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32()); struct.headers = new HashMap<String,String>(2*_map16.size); String _key17; String _val18; for (int _i19 = 0; _i19 < _map16.size; ++_i19) { _key17 = iprot.readString(); _val18 = iprot.readString(); struct.headers.put(_key17, _val18); } } struct.setHeadersIsSet(true); } if (incoming.get(5)) { struct.timestamp = iprot.readI64(); struct.setTimestampIsSet(true); } if (incoming.get(6)) { struct.expire = iprot.readI64(); struct.setExpireIsSet(true); } if (incoming.get(7)) { struct.timeout = iprot.readI64(); struct.setTimeoutIsSet(true); } if (incoming.get(8)) { struct.retryCnt = iprot.readI32(); struct.setRetryCntIsSet(true); } }
Example 12
Source File: RowSet.java From gemfirexd-oss with Apache License 2.0 | 4 votes |
@Override public void read(org.apache.thrift.protocol.TProtocol prot, RowSet struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; { org.apache.thrift.protocol.TList _list307 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); struct.rows = new ArrayList<Row>(_list307.size); for (int _i308 = 0; _i308 < _list307.size; ++_i308) { Row _elem309; _elem309 = new Row(); _elem309.read(iprot); struct.rows.add(_elem309); } } struct.setRowsIsSet(true); struct.flags = iprot.readByte(); struct.setFlagsIsSet(true); struct.cursorId = iprot.readI32(); struct.setCursorIdIsSet(true); struct.statementId = iprot.readI32(); struct.setStatementIdIsSet(true); struct.connId = iprot.readI32(); struct.setConnIdIsSet(true); BitSet incoming = iprot.readBitSet(7); if (incoming.get(0)) { struct.token = iprot.readBinary(); struct.setTokenIsSet(true); } if (incoming.get(1)) { struct.source = new HostAddress(); struct.source.read(iprot); struct.setSourceIsSet(true); } if (incoming.get(2)) { struct.offset = iprot.readI32(); struct.setOffsetIsSet(true); } if (incoming.get(3)) { { org.apache.thrift.protocol.TList _list310 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); struct.metadata = new ArrayList<ColumnDescriptor>(_list310.size); for (int _i311 = 0; _i311 < _list310.size; ++_i311) { ColumnDescriptor _elem312; _elem312 = new ColumnDescriptor(); _elem312.read(iprot); struct.metadata.add(_elem312); } } struct.setMetadataIsSet(true); } if (incoming.get(4)) { struct.cursorName = iprot.readString(); struct.setCursorNameIsSet(true); } if (incoming.get(5)) { struct.warnings = new GFXDExceptionData(); struct.warnings.read(iprot); struct.setWarningsIsSet(true); } if (incoming.get(6)) { { org.apache.thrift.protocol.TList _list313 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, iprot.readI32()); struct.rowIdsForUpdateOrDelete = new ArrayList<Long>(_list313.size); for (int _i314 = 0; _i314 < _list313.size; ++_i314) { long _elem315; _elem315 = iprot.readI64(); struct.rowIdsForUpdateOrDelete.add(_elem315); } } struct.setRowIdsForUpdateOrDeleteIsSet(true); } }
Example 13
Source File: RestMessage.java From DDMQ with Apache License 2.0 | 4 votes |
@Override public void read(org.apache.thrift.protocol.TProtocol prot, RestMessage struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(9); if (incoming.get(0)) { struct.type = iprot.readByte(); struct.setTypeIsSet(true); } if (incoming.get(1)) { struct.mode = iprot.readByte(); struct.setModeIsSet(true); } if (incoming.get(2)) { struct.url = iprot.readString(); struct.setUrlIsSet(true); } if (incoming.get(3)) { { org.apache.thrift.protocol.TMap _map12 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32()); struct.params = new HashMap<String,String>(2*_map12.size); String _key13; String _val14; for (int _i15 = 0; _i15 < _map12.size; ++_i15) { _key13 = iprot.readString(); _val14 = iprot.readString(); struct.params.put(_key13, _val14); } } struct.setParamsIsSet(true); } if (incoming.get(4)) { { org.apache.thrift.protocol.TMap _map16 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32()); struct.headers = new HashMap<String,String>(2*_map16.size); String _key17; String _val18; for (int _i19 = 0; _i19 < _map16.size; ++_i19) { _key17 = iprot.readString(); _val18 = iprot.readString(); struct.headers.put(_key17, _val18); } } struct.setHeadersIsSet(true); } if (incoming.get(5)) { struct.timestamp = iprot.readI64(); struct.setTimestampIsSet(true); } if (incoming.get(6)) { struct.expire = iprot.readI64(); struct.setExpireIsSet(true); } if (incoming.get(7)) { struct.timeout = iprot.readI64(); struct.setTimeoutIsSet(true); } if (incoming.get(8)) { struct.retryCnt = iprot.readI32(); struct.setRetryCntIsSet(true); } }
Example 14
Source File: ColumnValue.java From gemfirexd-oss with Apache License 2.0 | 4 votes |
@Override public void read(org.apache.thrift.protocol.TProtocol prot, ColumnValue struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(19); if (incoming.get(0)) { struct.bool_val = iprot.readBool(); struct.setBool_valIsSet(true); } if (incoming.get(1)) { struct.byte_val = iprot.readByte(); struct.setByte_valIsSet(true); } if (incoming.get(2)) { struct.i16_val = iprot.readI16(); struct.setI16_valIsSet(true); } if (incoming.get(3)) { struct.i32_val = iprot.readI32(); struct.setI32_valIsSet(true); } if (incoming.get(4)) { struct.i64_val = iprot.readI64(); struct.setI64_valIsSet(true); } if (incoming.get(5)) { struct.float_val = iprot.readI32(); struct.setFloat_valIsSet(true); } if (incoming.get(6)) { struct.double_val = iprot.readDouble(); struct.setDouble_valIsSet(true); } if (incoming.get(7)) { struct.string_val = iprot.readString(); struct.setString_valIsSet(true); } if (incoming.get(8)) { struct.decimal_val = new Decimal(); struct.decimal_val.read(iprot); struct.setDecimal_valIsSet(true); } if (incoming.get(9)) { struct.date_val = new DateTime(); struct.date_val.read(iprot); struct.setDate_valIsSet(true); } if (incoming.get(10)) { struct.time_val = new DateTime(); struct.time_val.read(iprot); struct.setTime_valIsSet(true); } if (incoming.get(11)) { struct.timestamp_val = new Timestamp(); struct.timestamp_val.read(iprot); struct.setTimestamp_valIsSet(true); } if (incoming.get(12)) { struct.binary_val = iprot.readBinary(); struct.setBinary_valIsSet(true); } if (incoming.get(13)) { struct.blob_val = new BlobChunk(); struct.blob_val.read(iprot); struct.setBlob_valIsSet(true); } if (incoming.get(14)) { struct.clob_val = new ClobChunk(); struct.clob_val.read(iprot); struct.setClob_valIsSet(true); } if (incoming.get(15)) { struct.null_val = iprot.readBool(); struct.setNull_valIsSet(true); } if (incoming.get(16)) { struct.pdx_val = new PDXObject(); struct.pdx_val.read(iprot); struct.setPdx_valIsSet(true); } if (incoming.get(17)) { struct.json_val = new JSONObject(); struct.json_val.read(iprot); struct.setJson_valIsSet(true); } if (incoming.get(18)) { struct.java_val = iprot.readBinary(); struct.setJava_valIsSet(true); } }
Example 15
Source File: ServiceMetaDataArgs.java From gemfirexd-oss with Apache License 2.0 | 4 votes |
@Override public void read(org.apache.thrift.protocol.TProtocol prot, ServiceMetaDataArgs struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; struct.connId = iprot.readI32(); struct.setConnIdIsSet(true); struct.driverType = iprot.readByte(); struct.setDriverTypeIsSet(true); BitSet incoming = iprot.readBitSet(12); if (incoming.get(0)) { struct.token = iprot.readBinary(); struct.setTokenIsSet(true); } if (incoming.get(1)) { struct.schema = iprot.readString(); struct.setSchemaIsSet(true); } if (incoming.get(2)) { struct.table = iprot.readString(); struct.setTableIsSet(true); } if (incoming.get(3)) { { org.apache.thrift.protocol.TList _list237 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); struct.tableTypes = new ArrayList<String>(_list237.size); for (int _i238 = 0; _i238 < _list237.size; ++_i238) { String _elem239; _elem239 = iprot.readString(); struct.tableTypes.add(_elem239); } } struct.setTableTypesIsSet(true); } if (incoming.get(4)) { struct.columnName = iprot.readString(); struct.setColumnNameIsSet(true); } if (incoming.get(5)) { struct.foreignSchema = iprot.readString(); struct.setForeignSchemaIsSet(true); } if (incoming.get(6)) { struct.foreignTable = iprot.readString(); struct.setForeignTableIsSet(true); } if (incoming.get(7)) { struct.procedureName = iprot.readString(); struct.setProcedureNameIsSet(true); } if (incoming.get(8)) { struct.functionName = iprot.readString(); struct.setFunctionNameIsSet(true); } if (incoming.get(9)) { struct.attributeName = iprot.readString(); struct.setAttributeNameIsSet(true); } if (incoming.get(10)) { struct.typeName = iprot.readString(); struct.setTypeNameIsSet(true); } if (incoming.get(11)) { struct.typeId = GFXDType.findByValue(iprot.readI32()); struct.setTypeIdIsSet(true); } }
Example 16
Source File: RestMessage.java From DDMQ with Apache License 2.0 | 4 votes |
@Override public void read(org.apache.thrift.protocol.TProtocol prot, RestMessage struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(9); if (incoming.get(0)) { struct.type = iprot.readByte(); struct.setTypeIsSet(true); } if (incoming.get(1)) { struct.mode = iprot.readByte(); struct.setModeIsSet(true); } if (incoming.get(2)) { struct.url = iprot.readString(); struct.setUrlIsSet(true); } if (incoming.get(3)) { { org.apache.thrift.protocol.TMap _map12 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32()); struct.params = new HashMap<String,String>(2*_map12.size); String _key13; String _val14; for (int _i15 = 0; _i15 < _map12.size; ++_i15) { _key13 = iprot.readString(); _val14 = iprot.readString(); struct.params.put(_key13, _val14); } } struct.setParamsIsSet(true); } if (incoming.get(4)) { { org.apache.thrift.protocol.TMap _map16 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32()); struct.headers = new HashMap<String,String>(2*_map16.size); String _key17; String _val18; for (int _i19 = 0; _i19 < _map16.size; ++_i19) { _key17 = iprot.readString(); _val18 = iprot.readString(); struct.headers.put(_key17, _val18); } } struct.setHeadersIsSet(true); } if (incoming.get(5)) { struct.timestamp = iprot.readI64(); struct.setTimestampIsSet(true); } if (incoming.get(6)) { struct.expire = iprot.readI64(); struct.setExpireIsSet(true); } if (incoming.get(7)) { struct.timeout = iprot.readI64(); struct.setTimeoutIsSet(true); } if (incoming.get(8)) { struct.retryCnt = iprot.readI32(); struct.setRetryCntIsSet(true); } }
Example 17
Source File: RowSet.java From gemfirexd-oss with Apache License 2.0 | 4 votes |
@Override public void read(org.apache.thrift.protocol.TProtocol prot, RowSet struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; { org.apache.thrift.protocol.TList _list307 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); struct.rows = new ArrayList<Row>(_list307.size); for (int _i308 = 0; _i308 < _list307.size; ++_i308) { Row _elem309; _elem309 = new Row(); _elem309.read(iprot); struct.rows.add(_elem309); } } struct.setRowsIsSet(true); struct.flags = iprot.readByte(); struct.setFlagsIsSet(true); struct.cursorId = iprot.readI32(); struct.setCursorIdIsSet(true); struct.statementId = iprot.readI32(); struct.setStatementIdIsSet(true); struct.connId = iprot.readI32(); struct.setConnIdIsSet(true); BitSet incoming = iprot.readBitSet(7); if (incoming.get(0)) { struct.token = iprot.readBinary(); struct.setTokenIsSet(true); } if (incoming.get(1)) { struct.source = new HostAddress(); struct.source.read(iprot); struct.setSourceIsSet(true); } if (incoming.get(2)) { struct.offset = iprot.readI32(); struct.setOffsetIsSet(true); } if (incoming.get(3)) { { org.apache.thrift.protocol.TList _list310 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); struct.metadata = new ArrayList<ColumnDescriptor>(_list310.size); for (int _i311 = 0; _i311 < _list310.size; ++_i311) { ColumnDescriptor _elem312; _elem312 = new ColumnDescriptor(); _elem312.read(iprot); struct.metadata.add(_elem312); } } struct.setMetadataIsSet(true); } if (incoming.get(4)) { struct.cursorName = iprot.readString(); struct.setCursorNameIsSet(true); } if (incoming.get(5)) { struct.warnings = new GFXDExceptionData(); struct.warnings.read(iprot); struct.setWarningsIsSet(true); } if (incoming.get(6)) { { org.apache.thrift.protocol.TList _list313 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, iprot.readI32()); struct.rowIdsForUpdateOrDelete = new ArrayList<Long>(_list313.size); for (int _i314 = 0; _i314 < _list313.size; ++_i314) { long _elem315; _elem315 = iprot.readI64(); struct.rowIdsForUpdateOrDelete.add(_elem315); } } struct.setRowIdsForUpdateOrDeleteIsSet(true); } }
Example 18
Source File: ColumnValue.java From gemfirexd-oss with Apache License 2.0 | 4 votes |
@Override public void read(org.apache.thrift.protocol.TProtocol prot, ColumnValue struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(19); if (incoming.get(0)) { struct.bool_val = iprot.readBool(); struct.setBool_valIsSet(true); } if (incoming.get(1)) { struct.byte_val = iprot.readByte(); struct.setByte_valIsSet(true); } if (incoming.get(2)) { struct.i16_val = iprot.readI16(); struct.setI16_valIsSet(true); } if (incoming.get(3)) { struct.i32_val = iprot.readI32(); struct.setI32_valIsSet(true); } if (incoming.get(4)) { struct.i64_val = iprot.readI64(); struct.setI64_valIsSet(true); } if (incoming.get(5)) { struct.float_val = iprot.readI32(); struct.setFloat_valIsSet(true); } if (incoming.get(6)) { struct.double_val = iprot.readDouble(); struct.setDouble_valIsSet(true); } if (incoming.get(7)) { struct.string_val = iprot.readString(); struct.setString_valIsSet(true); } if (incoming.get(8)) { struct.decimal_val = new Decimal(); struct.decimal_val.read(iprot); struct.setDecimal_valIsSet(true); } if (incoming.get(9)) { struct.date_val = new DateTime(); struct.date_val.read(iprot); struct.setDate_valIsSet(true); } if (incoming.get(10)) { struct.time_val = new DateTime(); struct.time_val.read(iprot); struct.setTime_valIsSet(true); } if (incoming.get(11)) { struct.timestamp_val = new Timestamp(); struct.timestamp_val.read(iprot); struct.setTimestamp_valIsSet(true); } if (incoming.get(12)) { struct.binary_val = iprot.readBinary(); struct.setBinary_valIsSet(true); } if (incoming.get(13)) { struct.blob_val = new BlobChunk(); struct.blob_val.read(iprot); struct.setBlob_valIsSet(true); } if (incoming.get(14)) { struct.clob_val = new ClobChunk(); struct.clob_val.read(iprot); struct.setClob_valIsSet(true); } if (incoming.get(15)) { struct.null_val = iprot.readBool(); struct.setNull_valIsSet(true); } if (incoming.get(16)) { struct.pdx_val = new PDXObject(); struct.pdx_val.read(iprot); struct.setPdx_valIsSet(true); } if (incoming.get(17)) { struct.json_val = new JSONObject(); struct.json_val.read(iprot); struct.setJson_valIsSet(true); } if (incoming.get(18)) { struct.java_val = iprot.readBinary(); struct.setJava_valIsSet(true); } }
Example 19
Source File: Header.java From octo-rpc with Apache License 2.0 | 4 votes |
@Override public void read(org.apache.thrift.protocol.TProtocol prot, Header struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(7); if (incoming.get(0)) { struct.messageType = iprot.readByte(); struct.setMessageTypeIsSet(true); } if (incoming.get(1)) { struct.requestInfo = new RequestInfo(); struct.requestInfo.read(iprot); struct.setRequestInfoIsSet(true); } if (incoming.get(2)) { struct.responseInfo = new ResponseInfo(); struct.responseInfo.read(iprot); struct.setResponseInfoIsSet(true); } if (incoming.get(3)) { struct.traceInfo = new TraceInfo(); struct.traceInfo.read(iprot); struct.setTraceInfoIsSet(true); } if (incoming.get(4)) { { 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.globalContext = new HashMap<String,String>(2*_map22.size); String _key23; String _val24; for (int _i25 = 0; _i25 < _map22.size; ++_i25) { _key23 = iprot.readString(); _val24 = iprot.readString(); struct.globalContext.put(_key23, _val24); } } struct.setGlobalContextIsSet(true); } if (incoming.get(5)) { { org.apache.thrift.protocol.TMap _map26 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32()); struct.localContext = new HashMap<String,String>(2*_map26.size); String _key27; String _val28; for (int _i29 = 0; _i29 < _map26.size; ++_i29) { _key27 = iprot.readString(); _val28 = iprot.readString(); struct.localContext.put(_key27, _val28); } } struct.setLocalContextIsSet(true); } if (incoming.get(6)) { struct.heartbeatInfo = new HeartbeatInfo(); struct.heartbeatInfo.read(iprot); struct.setHeartbeatInfoIsSet(true); } }
Example 20
Source File: RestMessage.java From DDMQ with Apache License 2.0 | 4 votes |
@Override public void read(org.apache.thrift.protocol.TProtocol prot, RestMessage struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(9); if (incoming.get(0)) { struct.type = iprot.readByte(); struct.setTypeIsSet(true); } if (incoming.get(1)) { struct.mode = iprot.readByte(); struct.setModeIsSet(true); } if (incoming.get(2)) { struct.url = iprot.readString(); struct.setUrlIsSet(true); } if (incoming.get(3)) { { org.apache.thrift.protocol.TMap _map12 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32()); struct.params = new HashMap<String,String>(2*_map12.size); String _key13; String _val14; for (int _i15 = 0; _i15 < _map12.size; ++_i15) { _key13 = iprot.readString(); _val14 = iprot.readString(); struct.params.put(_key13, _val14); } } struct.setParamsIsSet(true); } if (incoming.get(4)) { { org.apache.thrift.protocol.TMap _map16 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32()); struct.headers = new HashMap<String,String>(2*_map16.size); String _key17; String _val18; for (int _i19 = 0; _i19 < _map16.size; ++_i19) { _key17 = iprot.readString(); _val18 = iprot.readString(); struct.headers.put(_key17, _val18); } } struct.setHeadersIsSet(true); } if (incoming.get(5)) { struct.timestamp = iprot.readI64(); struct.setTimestampIsSet(true); } if (incoming.get(6)) { struct.expire = iprot.readI64(); struct.setExpireIsSet(true); } if (incoming.get(7)) { struct.timeout = iprot.readI64(); struct.setTimeoutIsSet(true); } if (incoming.get(8)) { struct.retryCnt = iprot.readI32(); struct.setRetryCntIsSet(true); } }