Last active
August 29, 2015 14:05
-
-
Save weilliu/c4b834babf36f63a013a to your computer and use it in GitHub Desktop.
1.4
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 = new Query(); | |
processViewOptions(queryTemplate, vopts.getInner()); | |
long iterRemaining = getPrivopts().iterCount; | |
while (isCancelled == false) { | |
Query curquery = queryTemplate.copy(); | |
boolean gotException = false; | |
long beginTime = System.currentTimeMillis(); | |
View curView; | |
ViewResponse vresp; | |
try { | |
curView = sdkHandle.getView(designDoc, viewName); | |
vresp = sdkHandle.query(curView, curquery); | |
Iterator<ViewRow> viter = vresp.iterator(); | |
while (viter.hasNext()) { | |
CommandResult res = scanSingleRow(viter.next(), 0); | |
updateStats(res); | |
doThinkTime(); | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment