public class UuidToLeachSalzBinaryEncodingThriftCodec extends Object implements ThriftCodec<UUID>
| Constructor and Description |
|---|
UuidToLeachSalzBinaryEncodingThriftCodec(ThriftCatalog thriftCatalog) |
| Modifier and Type | Method and Description |
|---|---|
static UUID |
byteToUuid(ByteBuffer bytes) |
ThriftType |
getType() |
UUID |
read(TProtocolReader protocol) |
static ByteBuffer |
uuidToBytes(UUID uuid) |
void |
write(UUID uuid,
TProtocolWriter protocol) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitisNull@Inject public UuidToLeachSalzBinaryEncodingThriftCodec(ThriftCatalog thriftCatalog)
public ThriftType getType()
getType in interface ThriftCodec<UUID>public UUID read(TProtocolReader protocol) throws Exception
read in interface ThriftCodec<UUID>Exceptionpublic void write(UUID uuid, TProtocolWriter protocol) throws Exception
write in interface ThriftCodec<UUID>Exception@FromThrift public static UUID byteToUuid(ByteBuffer bytes)
@ToThrift public static ByteBuffer uuidToBytes(UUID uuid)
Copyright © 2012–2021. All rights reserved.