Spring boot couchbase 4.1.1 reading dynamic field names

Hi Team,

I am using sdk 3.0 and spring boot data couchbase 4.1.1 versions in my application.

here i want to use distinct, count n1ql queries and also i need to fetch the fieldnames from Document.
By using the latest 3.0 and spring boot couchbase 4.1.1, we were not able to write the query in java 1.8. Could some one help me on this.

Thanks in Advance.
K Kumaravel