Hello,
Take a look to this sample code:
https://github.com/couchbaselabs/DeveloperDay/blob/master/Java/basic-ope…
View view = cb.getView(“brewery”, “by_name”);
Query query = new Query();
query.setLimit(10);
ViewResponse viewResponse = cb.query(view, query);
for (ViewRow row : viewResponse) {
System.out.println(row.getKey());
}
You should use the client.getView()
I am surprised that you see a getViews() in your client API, the only place I see a getViews is part of the designDocument API
Regards