Skip to content

Instantly share code, notes, and snippets.

@daschl
Forked from weilliu/gist:bb20479df37b81fd29dc
Created August 29, 2014 08:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save daschl/95368606a18107ea2871 to your computer and use it in GitHub Desktop.
Save daschl/95368606a18107ea2871 to your computer and use it in GitHub Desktop.
queryTemplate = ViewQuery.from("design", "view");
processViewOptions(queryTemplate, vopts.getInner());
long iterRemaining = getPrivopts().iterCount;
while (isCancelled == false) {
boolean gotException = false;
long beginTime = System.currentTimeMillis();
String curView;
try {
curView = queryTemplate.getView();
Observable<ViewResult> vresp = sdkHandle.query(queryTemplate);
while (vresp.toBlocking().getIterator().hasNext()) {
ViewResult res = vresp.toBlocking().single();
CommandResult cmdres = new CommandResult(res.totalRows());
updateStats(cmdres);
doThinkTime();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment