|
Once the data is added, you can query and retrieve it. To get the name-value pairs or column names and values for a row identified by Prius, use the following command: get Cars['Prius']. The output should be like so:- [default@CarDataStore] get Cars['Prius'];
- => (column=make, value=746f796f7461, timestamp=1301824068109000)
- => (column=model, value=70726975732033, timestamp=1301824129807000)
- Returned 2 results.
复制代码 Be careful while constructing your queries because the row-keys, column-family identifiers, and column keys are case sensitive. Therefore, passing in 'prius' instead of 'Prius' does not return any name-value tuples. Try running get Cars['prius'] via the CLI. You will receive a response that reads Returned 0 results. Also, before you query, remember to issue use CarDataStore to make CarDataStore the current keyspace. |
|