Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

updated to fix issue via https://github.com/rantav/hector/issues/405

…thanks to GH user @quorg for the submission
  • Loading branch information...
commit a855ab2a8d772d4cedda0ebdee4e1e92d83cf572 1 parent 550cbb4
authored January 30, 2012
8  src/main/java/com/riptano/cassandra/hector/example/SchemaManipulation.java
@@ -7,13 +7,8 @@
7 7
 import me.prettyprint.cassandra.model.BasicColumnFamilyDefinition;
8 8
 import me.prettyprint.cassandra.serializers.StringSerializer;
9 9
 import me.prettyprint.cassandra.service.ThriftCfDef;
10  
-import me.prettyprint.cassandra.service.ThriftKsDef;
11 10
 import me.prettyprint.hector.api.Cluster;
12  
-import me.prettyprint.hector.api.ddl.ColumnFamilyDefinition;
13  
-import me.prettyprint.hector.api.ddl.ColumnIndexType;
14  
-import me.prettyprint.hector.api.ddl.ColumnType;
15  
-import me.prettyprint.hector.api.ddl.ComparatorType;
16  
-import me.prettyprint.hector.api.ddl.KeyspaceDefinition;
  11
+import me.prettyprint.hector.api.ddl.*;
17 12
 import me.prettyprint.hector.api.exceptions.HectorException;
18 13
 import me.prettyprint.hector.api.factory.HFactory;
19 14
 
@@ -47,6 +42,7 @@ public static void main(String[] args) throws Exception {
47 42
             
48 43
             BasicColumnDefinition columnDefinition = new BasicColumnDefinition();
49 44
             columnDefinition.setName(stringSerializer.toByteBuffer("birthdate"));
  45
+            columnDefinition.setIndexName("birthdate_idx");
50 46
             columnDefinition.setIndexType(ColumnIndexType.KEYS);
51 47
             columnDefinition.setValidationClass(ComparatorType.LONGTYPE.getClassName());
52 48
             

0 notes on commit a855ab2

Please sign in to comment.
Something went wrong with that request. Please try again.