You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Ajay (JIRA)" <ji...@apache.org> on 2015/07/09 14:01:04 UTC

[jira] [Commented] (CASSANDRA-9768) Expose ConsistencyLevel.fromCode()

    [ https://issues.apache.org/jira/browse/CASSANDRA-9768?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14620388#comment-14620388 ] 

Ajay commented on CASSANDRA-9768:
---------------------------------

I meant the ConsistencyLevel of Java driver and not Cassandra. This bug is for Java driver.

> Expose ConsistencyLevel.fromCode()
> ----------------------------------
>
>                 Key: CASSANDRA-9768
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-9768
>             Project: Cassandra
>          Issue Type: Bug
>          Components: Drivers (now out of tree)
>         Environment: Cassandra 2.0.16
> Java driver 2.1.6
> Ubuntu 15.04
>            Reporter: Ajay
>             Fix For: 2.1.6
>
>
> Currently ConsistencyLevel is exposed as enum. But for REST APIs or configuration, it will be a  number. Expose ConsistencyLevel.fromCode() as a public API so that we can get the enum based on the provided configuration.
> Right to workaround, we having another enum or map to hold the number and ConsistencyLevel num of Java driver.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)