문제

I want to achieve the following query in hector

SELECT * FROM column_family WHERE row_keys IN (List) AND indexed_col BETWEEN x AND y

I am not able to find any API which can do this. I am using hector 1.01 version

도움이 되었습니까?

해결책

You can try it with cql3 which has support for this

SELECT * FROM column_family WHERE row_keys IN (List) AND indexed_col >= x AND  index_col <= y;

and datastax java driver which has good support for cql3.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top