Convert SQLite where clause to couchbase where clause

Hi there. I’m using couchbase for Android version 2.
I have select statements in SQLite format and I want to convert them to couch format. My problem is how to convert the where clause, for example "…Where (col=2 and row='hi) or XT=1 to expression format of course, dynamically.
Is there a stringToExpression (stringWhere) function?

You will have to construct your query like this -
(Expression.property("col").equalTo(2).and(Expression.property("row").equalTo("hi"))).or(Expression.property("XT").equalTo(1))