This project is read-only.

Error using TimeUUID

Oct 25, 2011 at 6:01 PM

I created at Cassandra a column Family with:


create column family MyFamily
  with column_type = 'Standard'
  and comparator = 'TimeUUIDType'
  and default_validation_class = 'BytesType'
  and key_validation_class = 'BytesType'


And then I created this insert code:


CassandraEntity<List<Column>> userLastPartnerEntityColumns = new CassandraEntity<List<Column>>()
                        .SetData(new Column().SetNameValue(TimeGenerator.GetTimeUUID(), "MyValue"));

But I receive this error:

TimeUUID should be 16 or 0 bytes (4)

Can anyone help me?


Thanks :)


Oct 25, 2011 at 9:16 PM

Let's try next code :)

.SetData(new []{new Column().SetNameValue(TimeGenerator.GetTimeUUID(), "MyValue")}.ToList())