Java Code Examples for org.apache.thrift.protocol.TTupleProtocol#readI64()
The following examples show how to use
org.apache.thrift.protocol.TTupleProtocol#readI64() .
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: VectorClock.java From floodlight_with_topoguard with Apache License 2.0 | 6 votes |
@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); } }
Example 2
Source File: ConsumeResponse.java From luxun with Apache License 2.0 | 6 votes |
@Override public void read(org.apache.thrift.protocol.TProtocol prot, ConsumeResponse struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; struct.result = new Result(); struct.result.read(iprot); struct.setResultIsSet(true); 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.STRING, iprot.readI32()); struct.itemList = new ArrayList<ByteBuffer>(_list5.size); ByteBuffer _elem6; for (int _i7 = 0; _i7 < _list5.size; ++_i7) { _elem6 = iprot.readBinary(); struct.itemList.add(_elem6); } } struct.setItemListIsSet(true); } if (incoming.get(1)) { struct.lastConsumedIndex = iprot.readI64(); struct.setLastConsumedIndexIsSet(true); } }
Example 3
Source File: FindClosestIndexByTimeResponse.java From luxun with Apache License 2.0 | 6 votes |
@Override public void read(org.apache.thrift.protocol.TProtocol prot, FindClosestIndexByTimeResponse struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; struct.result = new Result(); struct.result.read(iprot); struct.setResultIsSet(true); BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { struct.index = iprot.readI64(); struct.setIndexIsSet(true); } if (incoming.get(1)) { struct.timestampOfIndex = iprot.readI64(); struct.setTimestampOfIndexIsSet(true); } }
Example 4
Source File: Deletion.java From stratio-cassandra with Apache License 2.0 | 6 votes |
@Override public void read(org.apache.thrift.protocol.TProtocol prot, Deletion struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { struct.timestamp = iprot.readI64(); struct.setTimestampIsSet(true); } if (incoming.get(1)) { struct.super_column = iprot.readBinary(); struct.setSuper_columnIsSet(true); } if (incoming.get(2)) { struct.predicate = new SlicePredicate(); struct.predicate.read(iprot); struct.setPredicateIsSet(true); } }
Example 5
Source File: TPathsUpdate.java From incubator-sentry with Apache License 2.0 | 6 votes |
@Override public void read(org.apache.thrift.protocol.TProtocol prot, TPathsUpdate struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; struct.hasFullImage = iprot.readBool(); struct.setHasFullImageIsSet(true); struct.seqNum = iprot.readI64(); struct.setSeqNumIsSet(true); { org.apache.thrift.protocol.TList _list63 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); struct.pathChanges = new ArrayList<TPathChanges>(_list63.size); for (int _i64 = 0; _i64 < _list63.size; ++_i64) { TPathChanges _elem65; // required _elem65 = new TPathChanges(); _elem65.read(iprot); struct.pathChanges.add(_elem65); } } struct.setPathChangesIsSet(true); BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { struct.pathsDump = new TPathsDump(); struct.pathsDump.read(iprot); struct.setPathsDumpIsSet(true); } }
Example 6
Source File: leafrpc.java From leaf-snowflake with Apache License 2.0 | 5 votes |
@Override public void read(org.apache.thrift.protocol.TProtocol prot, gettimestamp_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { struct.success = iprot.readI64(); struct.setSuccessIsSet(true); } }
Example 7
Source File: GetSizeResponse.java From luxun with Apache License 2.0 | 5 votes |
@Override public void read(org.apache.thrift.protocol.TProtocol prot, GetSizeResponse struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; struct.result = new Result(); struct.result.read(iprot); struct.setResultIsSet(true); BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { struct.size = iprot.readI64(); struct.setSizeIsSet(true); } }
Example 8
Source File: FindClosestIndexByTimeRequest.java From luxun with Apache License 2.0 | 5 votes |
@Override public void read(org.apache.thrift.protocol.TProtocol prot, FindClosestIndexByTimeRequest struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; struct.timestamp = iprot.readI64(); struct.setTimestampIsSet(true); struct.topic = iprot.readString(); struct.setTopicIsSet(true); }
Example 9
Source File: ProducerService.java From DDMQ with Apache License 2.0 | 5 votes |
@Override public void read(org.apache.thrift.protocol.TProtocol prot, sendDelaySync_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { struct.delayMessage = new DelayMessage(); struct.delayMessage.read(iprot); struct.setDelayMessageIsSet(true); } if (incoming.get(1)) { struct.timeout = iprot.readI64(); struct.setTimeoutIsSet(true); } }
Example 10
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 11
Source File: SentryHDFSService.java From incubator-sentry with Apache License 2.0 | 5 votes |
@Override public void read(org.apache.thrift.protocol.TProtocol prot, check_hms_seq_num_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { struct.success = iprot.readI64(); struct.setSuccessIsSet(true); } }
Example 12
Source File: ProducerService.java From DDMQ with Apache License 2.0 | 5 votes |
@Override public void read(org.apache.thrift.protocol.TProtocol prot, sendDelaySync_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { struct.delayMessage = new DelayMessage(); struct.delayMessage.read(iprot); struct.setDelayMessageIsSet(true); } if (incoming.get(1)) { struct.timeout = iprot.readI64(); struct.setTimeoutIsSet(true); } }
Example 13
Source File: Pistachios.java From Pistachio with Apache License 2.0 | 5 votes |
@Override public void read(org.apache.thrift.protocol.TProtocol prot, store_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { struct.id = iprot.readI64(); struct.setIdIsSet(true); } if (incoming.get(1)) { struct.value = iprot.readBinary(); struct.setValueIsSet(true); } }
Example 14
Source File: BeginDownloadResult.java From jstorm with Apache License 2.0 | 5 votes |
@Override public void read(org.apache.thrift.protocol.TProtocol prot, BeginDownloadResult struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; struct.version = iprot.readI64(); struct.set_version_isSet(true); struct.session = iprot.readString(); struct.set_session_isSet(true); BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { struct.data_size = iprot.readI64(); struct.set_data_size_isSet(true); } }
Example 15
Source File: ClockEntry.java From floodlight_with_topoguard with Apache License 2.0 | 5 votes |
@Override public void read(org.apache.thrift.protocol.TProtocol prot, ClockEntry struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; struct.nodeId = iprot.readI16(); struct.setNodeIdIsSet(true); struct.version = iprot.readI64(); struct.setVersionIsSet(true); }
Example 16
Source File: Message.java From DDMQ with Apache License 2.0 | 4 votes |
@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(9); if (incoming.get(0)) { struct.topic = iprot.readString(); struct.setTopicIsSet(true); } if (incoming.get(1)) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } if (incoming.get(2)) { struct.value = iprot.readString(); struct.setValueIsSet(true); } if (incoming.get(3)) { struct.hashId = iprot.readI64(); struct.setHashIdIsSet(true); } if (incoming.get(4)) { struct.tags = iprot.readString(); struct.setTagsIsSet(true); } if (incoming.get(5)) { struct.partitionId = iprot.readI32(); struct.setPartitionIdIsSet(true); } if (incoming.get(6)) { struct.body = iprot.readBinary(); struct.setBodyIsSet(true); } if (incoming.get(7)) { struct.version = iprot.readString(); struct.setVersionIsSet(true); } if (incoming.get(8)) { { 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.properties = 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.properties.put(_key27, _val28); } } struct.setPropertiesIsSet(true); } }
Example 17
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 18
Source File: Span.java From incubator-retired-htrace with Apache License 2.0 | 4 votes |
@Override public void read(org.apache.thrift.protocol.TProtocol prot, Span struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(7); if (incoming.get(0)) { struct.trace_id = iprot.readI64(); struct.setTrace_idIsSet(true); } if (incoming.get(1)) { struct.name = iprot.readString(); struct.setNameIsSet(true); } if (incoming.get(2)) { struct.id = iprot.readI64(); struct.setIdIsSet(true); } if (incoming.get(3)) { struct.parent_id = iprot.readI64(); struct.setParent_idIsSet(true); } if (incoming.get(4)) { { org.apache.thrift.protocol.TList _list10 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); struct.annotations = new ArrayList<Annotation>(_list10.size); for (int _i11 = 0; _i11 < _list10.size; ++_i11) { Annotation _elem12; // required _elem12 = new Annotation(); _elem12.read(iprot); struct.annotations.add(_elem12); } } struct.setAnnotationsIsSet(true); } if (incoming.get(5)) { { org.apache.thrift.protocol.TList _list13 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); struct.binary_annotations = new ArrayList<BinaryAnnotation>(_list13.size); for (int _i14 = 0; _i14 < _list13.size; ++_i14) { BinaryAnnotation _elem15; // required _elem15 = new BinaryAnnotation(); _elem15.read(iprot); struct.binary_annotations.add(_elem15); } } struct.setBinary_annotationsIsSet(true); } if (incoming.get(6)) { struct.debug = iprot.readBool(); struct.setDebugIsSet(true); } }
Example 19
Source File: FetchRequest.java From DDMQ with Apache License 2.0 | 4 votes |
@Override public void read(org.apache.thrift.protocol.TProtocol prot, FetchRequest struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; struct.consumerId = iprot.readString(); struct.setConsumerIdIsSet(true); struct.groupId = iprot.readString(); struct.setGroupIdIsSet(true); struct.cluster = iprot.readString(); struct.setClusterIsSet(true); BitSet incoming = iprot.readBitSet(4); if (incoming.get(0)) { { org.apache.thrift.protocol.TMap _map46 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.MAP, iprot.readI32()); struct.fetchOffset = new HashMap<String,Map<String,Long>>(2*_map46.size); String _key47; Map<String,Long> _val48; for (int _i49 = 0; _i49 < _map46.size; ++_i49) { _key47 = iprot.readString(); { org.apache.thrift.protocol.TMap _map50 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.I64, iprot.readI32()); _val48 = new HashMap<String,Long>(2*_map50.size); String _key51; long _val52; for (int _i53 = 0; _i53 < _map50.size; ++_i53) { _key51 = iprot.readString(); _val52 = iprot.readI64(); _val48.put(_key51, _val52); } } struct.fetchOffset.put(_key47, _val48); } } struct.setFetchOffsetIsSet(true); } if (incoming.get(1)) { struct.maxBatchSize = iprot.readI32(); struct.setMaxBatchSizeIsSet(true); } if (incoming.get(2)) { struct.maxLingerTime = iprot.readI32(); struct.setMaxLingerTimeIsSet(true); } if (incoming.get(3)) { struct.version = iprot.readString(); struct.setVersionIsSet(true); } }
Example 20
Source File: ConsumeResult.java From DDMQ with Apache License 2.0 | 4 votes |
@Override public void read(org.apache.thrift.protocol.TProtocol prot, ConsumeResult struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(4); if (incoming.get(0)) { struct.context = new Context(); struct.context.read(iprot); struct.setContextIsSet(true); } if (incoming.get(1)) { { org.apache.thrift.protocol.TList _list20 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, iprot.readI32()); struct.successOffsets = new ArrayList<Long>(_list20.size); long _elem21; for (int _i22 = 0; _i22 < _list20.size; ++_i22) { _elem21 = iprot.readI64(); struct.successOffsets.add(_elem21); } } struct.setSuccessOffsetsIsSet(true); } if (incoming.get(2)) { { org.apache.thrift.protocol.TList _list23 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, iprot.readI32()); struct.failOffsets = new ArrayList<Long>(_list23.size); long _elem24; for (int _i25 = 0; _i25 < _list23.size; ++_i25) { _elem24 = iprot.readI64(); struct.failOffsets.add(_elem24); } } struct.setFailOffsetsIsSet(true); } if (incoming.get(3)) { struct.nextResult = new ConsumeResult(); struct.nextResult.read(iprot); struct.setNextResultIsSet(true); } }