-
-
Save lenards/e97ce13347e7ad454b86 to your computer and use it in GitHub Desktop.
from cascor-r2 vm
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
student@cascor:~$ ccm node1 cqlsh | |
Connected to cascor at 127.0.0.1:9042. | |
[cqlsh 5.0.1 | Cassandra 2.1.2-SNAPSHOT | CQL spec 3.2.0 | Native protocol v3] | |
Use HELP for help. | |
cqlsh> CONSISTENCY; | |
Current consistency level is 1. | |
cqlsh> CONSISTENCY QUORUM; | |
Consistency level set to QUORUM. | |
cqlsh> CONSISTENCY; | |
Current consistency level is 4. | |
cqlsh> CONSISTENCY TWO; | |
Consistency level set to TWO. | |
cqlsh> CONSISTENCY; | |
Current consistency level is 2. | |
cqlsh> CONSISTENCY THREE; | |
Consistency level set to THREE. | |
cqlsh> CONSISTENCY; | |
Current consistency level is 3. | |
cqlsh> CONSISTENCY ALL; | |
Consistency level set to ALL. | |
cqlsh> CONSISTENCY; | |
Current consistency level is 5. |
Actually, cqlsh
is using the DataStax python-driver under the covers, but the integer=>enum values are the same:
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
https://github.com/datastax/java-driver/blob/55b60db5767af26d4cf4618c495e0f760096c25c/driver-core/src/main/java/com/datastax/driver/core/ConsistencyLevel.java#L20-L32