Skip to content
This repository was archived by the owner on Jun 7, 2023. It is now read-only.

Commit 2ae88e4

Browse files
author
Rustam Aliyev
committed
Minor updates for Cassandra 1.2 support
1 parent d880ebf commit 2ae88e4

File tree

3 files changed

+37
-28
lines changed

3 files changed

+37
-28
lines changed

config/elasticinbox.cml

Lines changed: 24 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# ElasticInbox Schema v1.0
1+
# ElasticInbox Schema v1.2
22
#
33
# To create schema, first you will need to create keyspace:
44
#
@@ -11,30 +11,31 @@
1111
# % cassandra-cli --host 10.0.1.1 < elasticinbox.cml
1212
#
1313

14-
use ElasticInbox;
14+
USE ElasticInbox;
1515

16-
create column family Accounts with
17-
key_validation_class=UTF8Type and
18-
rows_cached=100000 and
19-
comment='Basic information about accounts';
16+
CREATE COLUMN FAMILY Accounts WITH
17+
key_validation_class = UTF8Type AND
18+
caching = all AND
19+
comment = 'Basic information about accounts';
2020

21-
create column family MessageMetadata with
22-
column_type=Super and
23-
key_validation_class=UTF8Type and
24-
comparator=TimeUUIDType and
25-
subcomparator=BytesType and
21+
CREATE COLUMN FAMILY MessageMetadata WITH
22+
column_type = Super AND
23+
key_validation_class = UTF8Type AND
24+
comparator = TimeUUIDType AND
25+
subcomparator = BytesType AND
26+
caching = keys_only AND
2627
comment='Message metadata including headers, labels, markers, physical location, etc.';
2728

28-
create column family IndexLabels with
29-
key_validation_class=UTF8Type and
30-
comparator=TimeUUIDType and
31-
rows_cached=100000 and
32-
comment='Message ID indexes grouped by labels and ordered by time';
29+
CREATE COLUMN FAMILY IndexLabels WITH
30+
key_validation_class = UTF8Type AND
31+
comparator = TimeUUIDType AND
32+
caching = all AND
33+
comment = 'Message ID indexes grouped by labels and ordered by time';
3334

34-
create column family Counters with
35-
comparator='CompositeType(UTF8Type,UTF8Type,UTF8Type)' and
36-
key_validation_class=UTF8Type and
37-
default_validation_class=CounterColumnType and
38-
replicate_on_write=true and
39-
rows_cached=300000 and
40-
comment='All counters for an account';
35+
CREATE COLUMN FAMILY Counters WITH
36+
comparator = 'CompositeType(UTF8Type,UTF8Type,UTF8Type)' AND
37+
key_validation_class = UTF8Type AND
38+
default_validation_class = CounterColumnType AND
39+
replicate_on_write = true AND
40+
caching = all AND
41+
comment = 'All counters for an account';

modules/core/pom.xml

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -136,18 +136,26 @@
136136
<dependency>
137137
<groupId>org.hectorclient</groupId>
138138
<artifactId>hector-core</artifactId>
139-
<version>1.1-1</version>
139+
<version>1.1-3</version>
140140
<type>jar</type>
141141
<scope>compile</scope>
142142
<exclusions>
143143
<exclusion>
144144
<groupId>org.apache.cassandra</groupId>
145145
<artifactId>cassandra-all</artifactId>
146146
</exclusion>
147+
<exclusion>
148+
<groupId>org.apache.cassandra</groupId>
149+
<artifactId>cassandra-thrift</artifactId>
150+
</exclusion>
147151
<exclusion>
148152
<groupId>com.ecyrd.speed4j</groupId>
149153
<artifactId>speed4j</artifactId>
150154
</exclusion>
155+
<exclusion>
156+
<groupId>com.google.guava</groupId>
157+
<artifactId>guava</artifactId>
158+
</exclusion>
151159
<exclusion>
152160
<groupId>org.slf4j</groupId>
153161
<artifactId>slf4j-log4j12</artifactId>
@@ -164,14 +172,14 @@
164172
<dependency>
165173
<groupId>org.apache.cassandra</groupId>
166174
<artifactId>cassandra-thrift</artifactId>
167-
<version>1.1.5</version>
175+
<version>1.2.0</version>
168176
<type>jar</type>
169177
<scope>compile</scope>
170178
</dependency>
171179
<dependency>
172180
<groupId>com.github.stephenc.eaio-uuid</groupId>
173181
<artifactId>uuid</artifactId>
174-
<version>3.2.0</version>
182+
<version>3.3.0</version>
175183
<type>jar</type>
176184
<scope>compile</scope>
177185
</dependency>

modules/core/src/main/java/com/elasticinbox/core/cassandra/utils/Speed4jOpTimer.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,8 @@ public Speed4jOpTimer()
5959
}
6060

6161
@Override
62-
public Object start() {
63-
return stopWatchFactory.getStopWatch();
62+
public Object start(String tagName) {
63+
return stopWatchFactory.getStopWatch(tagName);
6464
}
6565

6666
@Override

0 commit comments

Comments
 (0)