I'm trying to query a Cassandra table using the IN clause and the @Query annotation from Spring Data
My query in init method-
session = cassandraSessionFactory.getSession();
statementmyList = session.prepare("select * from my_file_content where my_content IN (?);");
Tried to bind the query with boundStatement-
final BoundStatement boundStatement = DaoConstants.getBoundStatement(statementmyList);
try
{
List<Row> rowList =
session
.execute(
boundStatement
.bind(myList))
.all();
// myList = "'04748558-0eb3','531aaf2bf6b782f95e2e','6fc98ac2'"
}
rowList returns empty Array. What am i doing wrong here?