String condition = clause.getCondition();
List<Object> value = clause.getValue();
if (value != null && value.size() > 1)
{
log.error("IN clause is not enabled for thrift, use cql3.");
throw new QueryHandlerException("IN clause is not enabled for thrift, use cql3.");
}
IndexOperator operator = getOperator(condition, idPresent);
IndexExpression expression = new IndexExpression(ByteBufferUtil.bytes(fieldName), operator,
getBytesValue(fieldName, m, value.get(0)));
expr.add(expression);
}
else
{
// Case of AND and OR clause.
String opr = o.toString();
if (opr.equalsIgnoreCase("or"))
{
log.error("Support for OR clause is not enabled within cassandra.");
throw new QueryHandlerException("Unsupported clause " + opr + " for cassandra.");
}
}
}
if (!StringUtils.isBlank(getKunderaQuery().getFilter()))