-
-
Save daschl/95368606a18107ea2871 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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