270271272273274275276277278279280
for (int i = 0; i < accessor.getValueCount(); i++) { assertEquals(sortOutput[i], accessor.getObject(i).toString()); } assertEquals(10, accessor.getValueCount()); batchLoader.clear(); for (QueryResultBatch result : results) { result.release(); } } }
221222223224225226227228229230231
assertEquals("Record count incorrect for column: " + s, totalRecords, (long) valuesChecked.get(s)); } catch (AssertionError e) { submissionFailed(new RpcException(e)); } } assert valuesChecked.keySet().size() > 0; batchLoader.clear(); result.release(); future.set(null); } batchLoader.clear();
226227228229230231232233234235236
batchLoader.clear(); result.release(); future.set(null); } batchLoader.clear(); result.release(); } public void getResults() throws RpcException{ try{
311312313314315316317318319320321
count += result.getHeader().getRowCount(); loader.load(result.getHeader().getDef(), result.getData()); if (loader.getRecordCount() > 0) { VectorUtil.showVectorAccessibleContent(loader); } loader.clear(); result.release(); } assertTrue(count == 10); }
385386387388389390391392393394395
res.add(new String(((VarCharVector) v).getAccessor().get(j))); } else { res.add(v.getAccessor().getObject(j)); } } loader.clear(); result.release(); } } return res.toArray();
131132133134135136137138139
} for(QueryResultBatch b : results){ b.release(); } batchLoader.clear(); } } }
7879808182838485868788
if (b.getHeader().getRowCount() != 0) { count += b.getHeader().getRowCount(); } loader.load(b.getHeader().getDef(), b.getData()); VectorUtil.showVectorAccessibleContent(loader); loader.clear(); b.release(); } assertEquals(5, count); } }
7778798081828384858687
} // break; } System.out.println(); } loader.clear(); b.release(); } client.close(); System.out.println(String.format("Got %d total results", count)); }
8283848586878889909192
output.get(last).add(accessor.getObject(i).toString()); } ++last; } } loader.clear(); batch.release(); } return output; }
717273747576777879