}
public boolean findIndexRow(String table, String rowKey, byte[] key, Object indValue) {
Select selectQuery = QueryBuilder.select().all().from(keys, table).allowFiltering();
Where selectWhere = selectQuery.where();
Clause rkClause = QueryBuilder.eq("id", rowKey);
selectWhere.and(rkClause);
Clause indClause = null;
if (indValue != null) {
indClause = QueryBuilder.eq("colname", indValue);
} else {
if (table.equalsIgnoreCase("IntegerIndice")) {
indClause = QueryBuilder.eq("colname", ByteBuffer.wrap(new byte[0]));
} else {
indClause = QueryBuilder.eq("colname", "");
}
}
selectWhere.and(indClause);
Clause keyClause = QueryBuilder.eq("colvalue", ByteBuffer.wrap(key));
selectWhere.and(keyClause);
Query query = selectWhere.limit(1);
ResultSet resultSet = session.execute(query);
return !resultSet.isExhausted();
}