Permalink
Browse files

Convert java.util.uuid to byte array

  • Loading branch information...
1 parent 88e9d29 commit d4cd56d9293a57d5cf15800679aa4ada3ff79e2f Roy Camp committed Jan 10, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/java/org/apache/cassandra/plugins/SimpleCassandraSink.java
@@ -67,7 +67,7 @@ public void append(Event event) throws IOException, InterruptedException {
// Make the index column
UUID uuid = TimeUUIDUtils.getTimeUUID(timestamp);
Column indexColumn = new Column();
- indexColumn.setName(uuid.toByteArray());
+ indexColumn.setName(TimeUUIDUtils.asByteArray(uuid));
indexColumn.setValue(new byte[0]);
indexColumn.setTimestamp(timestamp);

0 comments on commit d4cd56d

Please sign in to comment.