私はたくさん読んでグーグルで調べましたが、条件に基づいてカウンターデータをスライスしてダイスする方法を見つけることができませんでした。Cassandraでこれを行う方法はありますか? もしそうなら、私を助けてください。例: カウンタを使用して合計ページ ビューを保存している場合、特定のページ URL のページ ビューの数を取得する方法や、特定の日付のすべてのページ ビューを取得する方法はありますか?
前もって感謝します!
I'm working with a system that has both the features you are asking for. We are using HBase (not Cassandra) and we write the URL + date in the key for every counter.
Then you can easily get the two reports you are looking for.
To get all page views for one URL, scan for keys beginning with and then add the counter values you find with that scan.
To get pageviews per day for one URL, scan for the key beginning with + date.