prime

Primes a response for a given query for a particular node

post/prime/{clusterId}/{dataCenterId}/{nodeId}

Path parameters

clusterIdstring required

Id or name of the cluster

dataCenterIdstring required

Id or name of the datacenter

nodeIdstring required

Id or name of the node

Request body

Example request

{
  "when": {
    "query": "SELECT * FROM tbl",
    "consistency_level": [
      "LOCAL_QUORUM"
    ],
    "params": {
      "param_name_1": "value1",
      "param_name_2": 2
    },
    "param_types": {
      "param_name_1": "ascii",
      "param_name_2": "bigint"
    }
  },
  "then": {
    "result": "success",
    "rows": [
      {
        "key": 0,
        "description": "Important dates",
        "dates": {
          "independence day": "1776-07-04",
          "washington's birthday": "1732-02-22"
        }
      },
      {
        "key": 1,
        "description": "Other fun dates",
        "dates": {
          "new years day": "2017-01-01",
          "leap day": "2020-02-29",
          "end of mayan calendar": "2012-12-21"
        }
      }
    ],
    "column_types": {
      "key": "bigint",
      "description": "ascii",
      "dates": "map<ascii,date>"
    }
  }
}

Response

PrimedQuery

Example response

{
  "when": {
    "query": "SELECT * FROM tbl",
    "consistency_level": [
      "LOCAL_QUORUM"
    ],
    "params": {
      "param_name_1": "value1",
      "param_name_2": 2
    },
    "param_types": {
      "param_name_1": "ascii",
      "param_name_2": "bigint"
    }
  },
  "then": {
    "result": "success",
    "rows": [
      {
        "key": 0,
        "description": "Important dates",
        "dates": {
          "independence day": "1776-07-04",
          "washington's birthday": "1732-02-22"
        }
      },
      {
        "key": 1,
        "description": "Other fun dates",
        "dates": {
          "new years day": "2017-01-01",
          "leap day": "2020-02-29",
          "end of mayan calendar": "2012-12-21"
        }
      }
    ],
    "column_types": {
      "key": "bigint",
      "description": "ascii",
      "dates": "map<ascii,date>"
    }
  }
}

Changes