Skip to content
Browse files

Add support to LOCAL_ONE consistency level

  • Loading branch information...
1 parent ba20ca9 commit 504b60ff3476a43a5017e70f01c94834f68d4694 @pauloricardomg pauloricardomg committed
View
1 CHANGELOG
@@ -17,6 +17,7 @@ Modify retryDownedHosts() to only delete hosts not in the ring if autoDiscoverHo
Fix all hosts down check (@jancona)
don't use an iterator just to get item 0 of a List (@mebigfatguy)
Upgrade Cassandra dependencies to 1.2.11 (@pauloricardomg)
+Add support to LOCAL_ONE consistency level (@pauloricardomg)
1.1-4
=====
View
6 core/src/main/java/me/prettyprint/cassandra/model/thrift/ThriftConverter.java
@@ -33,11 +33,13 @@ public static ConsistencyLevel consistencyLevel(HConsistencyLevel c) {
return ConsistencyLevel.EACH_QUORUM;
case LOCAL_QUORUM:
return ConsistencyLevel.LOCAL_QUORUM;
+ case LOCAL_ONE:
+ return ConsistencyLevel.LOCAL_ONE;
default:
throw new RuntimeException("Unregornized consistency level " + c);
}
}
-
+
/**
* Converts a list of ColumnOrSuperColumn to Column
* @param columns
@@ -50,5 +52,5 @@ public static ConsistencyLevel consistencyLevel(HConsistencyLevel c) {
}
return list;
}
-
+
}
View
2 core/src/main/java/me/prettyprint/hector/api/HConsistencyLevel.java
@@ -7,5 +7,5 @@
* @author zznate
*/
public enum HConsistencyLevel {
- ONE, TWO, THREE, QUORUM, ALL, ANY, EACH_QUORUM, LOCAL_QUORUM;
+ ONE, TWO, THREE, QUORUM, ALL, ANY, EACH_QUORUM, LOCAL_QUORUM, LOCAL_ONE;
}

0 comments on commit 504b60f

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