asterixdb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Till Westmann" <>
Subject Re: ATypeTag.UUID_STRING vs ATypeTag.UUID
Date Fri, 22 Jan 2016 16:49:26 GMT
Hi Taewoo,

I’m still a little confused. To me the type tag is about the type of 
the value and it is independent of the serialization. I think that the 
serialization should be orthogonal to the type of the value. I.e. we can 
a) the binary serialization/deserialization that we use internally to 
ship/store UUIDs in AsterixDB or we can have
b) the string serialization/deserialization that is used when parsing 
external data or printing results.
So in the case of UUIDs we have AUUIDSerializerDeserialize for a) and 
code for b) in AUUID.fromString, AUUIDFromStringConstructorDescriptor, 
AMutableUUID.fromStringToAMuatbleUUID, and AUUIDPrinter.
So I think that we should be covered (actually a little but too much ..) 
for both cases and it seems to me that we should be able to remove 
ATypeTag.UUID_STRING without causing damage.

Would you agree or is there something I’m missing?


On 21 Jan 2016, at 11:42, Taewoo Kim wrote:

> One more clarification: I have created UUID_STRING for mainly 
> Serializer -
> deserializer issues. Since UUID serializer/deserializer assumes that 
> two
> long values. It was not sufficient to serialize/deserialize a 
> canonical
> string notation. So, when parsing the outside data, UUID_STRING is 
> used to
> serialize/deserialize a UUID. And internally, we use UUID, not 
> Best,
> Taewoo
> On Thu, Jan 21, 2016 at 11:36 AM, Taewoo Kim <> 
> wrote:
>> I have created UUID_string.
>> Internally, a UUID is represented as two long values. However, 
>> generally
>> we use a canonical string notation. So, when we parse a UUID, I had 
>> to
>> create a type that can represent a canonical form of UUID. So, 
>> mainly exists for the parsers.
>> Best,
>> Taewoo
>> On Thu, Jan 21, 2016 at 11:32 AM, Till Westmann <> 
>> wrote:
>>> Hi,
>>> who knows
>>> a) what the difference between ATypeTag.UUID_STRING and 
>>> ATypeTag.UUID is
>>> and
>>> b) why we need both?
>>> Cheers,
>>> Till

View raw message