From f98b402c3aa05c0852cb0b4abe527b088af09b6d Mon Sep 17 00:00:00 2001 From: Todd Gruben Date: Wed, 20 Nov 2013 12:08:59 -0600 Subject: [PATCH] cass storage --- index/storage_cass.go | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/index/storage_cass.go b/index/storage_cass.go index 5accf6026..d4d6b9b7c 100644 --- a/index/storage_cass.go +++ b/index/storage_cass.go @@ -10,6 +10,13 @@ import ( type CassandraStorage struct{ db *gocql.Session } +func BuildSchema(){ + /* + "CREATE KEYSPACE IF NOT EXISTS hotbox WITH strategy_class = SimpleStrategy AND strategy_options:replication_factor = 1" + "CREATE TABLE IF NOT EXISTS bitmap ( bitmap_id bigint, shard_id int, ChunkKey bigint, BlockIndex int, block bigint, PRIMARY KEY ((bitmap_id, shard_id),ChunkKey,BlockIndex) )" + */ + +} func NewCassStorage() Storage{ obj := new(CassandraStorage) cluster := gocql.NewCluster("127.0.0.1")