Skip to content

Instantly share code, notes, and snippets.

View philshon's full-sized avatar

Phil Shon philshon

  • Credera
  • Dallas, TX
View GitHub Profile
@philshon
philshon / Working.java
Created February 29, 2012 21:39 — forked from emaxerrno/Working.java
Working full example of a working composite type for row keys.
import java.util.Arrays;
import me.prettyprint.cassandra.model.HColumnImpl;
import me.prettyprint.cassandra.serializers.CompositeSerializer;
import me.prettyprint.cassandra.serializers.StringSerializer;
import me.prettyprint.cassandra.utils.TimeUUIDUtils;
import me.prettyprint.hector.api.Cluster;
import me.prettyprint.hector.api.Keyspace;
import me.prettyprint.hector.api.beans.Composite;
import me.prettyprint.hector.api.ddl.ColumnFamilyDefinition;