Uploaded image for project: 'Cassandra'
  1. Cassandra
  2. CASSANDRA-9768

Expose ConsistencyLevel.fromCode()

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Normal
    • Resolution: Invalid
    • Fix Version/s: 2.1.6
    • Component/s: None
    • Labels:
      None
    • Environment:

      Cassandra 2.0.16
      Java driver 2.1.6
      Ubuntu 15.04

    • Severity:
      Normal

      Description

      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.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              ajaygarga Ajay
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: