File tree Expand file tree Collapse file tree
src/main/java/com/datastax/driver/core Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -5,6 +5,8 @@ CHANGELOG
55------
66
77- [new] OSGi bundle (JAVA-142)
8+ - [new] Add support for ConsistencyLevel.LOCAL_ONE; note that this
9+ require Cassandra 1.2.12+ (JAVA-207)
810- [improvement] Make collections returned by Row immutable (JAVA-205)
911- [improvement] Limit internal thread pool size (JAVA-203)
1012- [improvement] New getter to obtain a snapshot of the scores maintained by
Original file line number Diff line number Diff line change @@ -24,7 +24,8 @@ public enum ConsistencyLevel
2424 QUORUM ,
2525 ALL ,
2626 LOCAL_QUORUM ,
27- EACH_QUORUM ;
27+ EACH_QUORUM ,
28+ LOCAL_ONE ;
2829
2930 static org .apache .cassandra .db .ConsistencyLevel DEFAULT_CASSANDRA_CL = org .apache .cassandra .db .ConsistencyLevel .ONE ;
3031
@@ -38,6 +39,7 @@ static ConsistencyLevel from(org.apache.cassandra.db.ConsistencyLevel cl) {
3839 case ALL : return ALL ;
3940 case LOCAL_QUORUM : return LOCAL_QUORUM ;
4041 case EACH_QUORUM : return EACH_QUORUM ;
42+ case LOCAL_ONE : return LOCAL_ONE ;
4143 }
4244 throw new AssertionError ();
4345 }
@@ -55,6 +57,7 @@ static org.apache.cassandra.db.ConsistencyLevel toCassandraCL(ConsistencyLevel c
5557 case ALL : return org .apache .cassandra .db .ConsistencyLevel .ALL ;
5658 case LOCAL_QUORUM : return org .apache .cassandra .db .ConsistencyLevel .LOCAL_QUORUM ;
5759 case EACH_QUORUM : return org .apache .cassandra .db .ConsistencyLevel .EACH_QUORUM ;
60+ case LOCAL_ONE : return org .apache .cassandra .db .ConsistencyLevel .LOCAL_ONE ;
5861 }
5962 throw new AssertionError ();
6063 }
Original file line number Diff line number Diff line change 3434
3535 <properties >
3636 <project .build.sourceEncoding>UTF-8</project .build.sourceEncoding>
37- <cassandra .version>1.2.11 </cassandra .version>
38- <cassandra-dependency .version>1.2.11 </cassandra-dependency .version>
37+ <cassandra .version>1.2.12 </cassandra .version>
38+ <cassandra-dependency .version>1.2.12 </cassandra-dependency .version>
3939 </properties >
4040
4141 <dependencies >
You can’t perform that action at this time.
0 commit comments