Package org.apache.thrift.protocol
Class TLegacyUuidProtocolDecorator
java.lang.Object
org.apache.thrift.protocol.TProtocol
org.apache.thrift.protocol.TProtocolDecorator
org.apache.thrift.protocol.TLegacyUuidProtocolDecorator
- All Implemented Interfaces:
TReadProtocol,TWriteProtocol
The TLegacyUuidProtocolDecorator that decorates an existing TProtocol to provide backwards
compatibility with the old UUID format that the Java library used on the wire.
The initial UUID implementation in Java was not according to the protocol specification. This was fixed in THRIFT-5925 and as a result would break backwards compatibility with existing implementations that depends on that format.
This decorator is especially useful where migration is not needed and interop between other languages, that follows the specification, are not needed.
For usage see the TestTLegacyUuidProtocolDecorator tests.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.thrift.protocol.TProtocol
TProtocol.ReadCallback<T,R>, TProtocol.ReadCollectionCallback<R>, TProtocol.ReadMapEntryCallback<K, V>, TProtocol.WriteCallback<T> -
Field Summary
Fields inherited from class org.apache.thrift.protocol.TProtocol
skippedBytes, trans_ -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.apache.thrift.protocol.TProtocolDecorator
getMinSerializedSize, readBinary, readBool, readByte, readDouble, readFieldBegin, readFieldBeginData, readFieldEnd, readI16, readI32, readI64, readListBegin, readListEnd, readMapBegin, readMapEnd, readMessageBegin, readMessageEnd, readSetBegin, readSetEnd, readString, readStructBegin, readStructEnd, reset, skipBinary, skipBool, skipByte, skipDouble, skipI16, skipI32, skipI64, writeBinary, writeBool, writeByte, writeDouble, writeFieldBegin, writeFieldEnd, writeFieldStop, writeI16, writeI32, writeI64, writeListBegin, writeListEnd, writeMapBegin, writeMapEnd, writeMessageBegin, writeMessageEnd, writeSetBegin, writeSetEnd, writeString, writeStructBegin, writeStructEndMethods inherited from class org.apache.thrift.protocol.TProtocol
checkReadBytesAvailable, checkReadBytesAvailable, checkReadBytesAvailable, decrementRecursionDepth, getScheme, getTransport, incrementRecursionDepth, readField, readList, readList, readList, readMap, readMap, readMap, readMap, readMap, readMessage, readSet, readSet, readSet, readStruct, skip, skip, skipBytes, writeField, writeList, writeMap, writeMessage, writeSet, writeStruct
-
Constructor Details
-
TLegacyUuidProtocolDecorator
-
-
Method Details
-
writeUuid
- Specified by:
writeUuidin interfaceTWriteProtocol- Overrides:
writeUuidin classTProtocolDecorator- Throws:
TException
-
readUuid
- Specified by:
readUuidin interfaceTReadProtocol- Overrides:
readUuidin classTProtocolDecorator- Throws:
TException
-