// print headers.
if (schemaChanged) {
} // do not believe any change is needed for when the schema changes, with the current mock scan use case
for (VectorWrapper<?> vw : batchLoader) {
ValueVector vv = vw.getValueVector();
currentField = fields.get(vv.getField().getName());
if (VERBOSE_DEBUG){
System.out.println("\n" + (String) currentField.name);
}
if ( ! valuesChecked.containsKey(vv.getField().getName())){
valuesChecked.put(vv.getField().getName(), (long) 0);
columnValCounter = 0;
} else {
columnValCounter = valuesChecked.get(vv.getField().getName());
}
for (int j = 0; j < ((BaseDataValueVector)vv).getAccessor().getValueCount(); j++) {
if (VERBOSE_DEBUG){
System.out.print(vv.getAccessor().getObject(j) + ", " + (j % 25 == 0 ? "\n batch:" + batchCounter + " v:" + j + " - " : ""));
}
if (checkValues) {
try {
assertField(vv, j, (TypeProtos.MinorType) currentField.type,
currentField.values[(int) (columnValCounter % 3)], (String) currentField.name + "/");
} catch (AssertionError e) { submissionFailed(new RpcException(e)); }
}
columnValCounter++;
}
if (VERBOSE_DEBUG){
System.out.println("\n" + ((BaseDataValueVector)vv).getAccessor().getValueCount());
}
valuesChecked.remove(vv.getField().getName());
valuesChecked.put(vv.getField().getName(), columnValCounter);
}
if (VERBOSE_DEBUG){
for (i = 0; i < batchLoader.getRecordCount(); i++) {
if (i % 50 == 0){
System.out.println();
for (VectorWrapper<?> vw : batchLoader) {
ValueVector v = vw.getValueVector();
System.out.print(pad(v.getField().getName(), 20) + " ");
}
System.out.println();
System.out.println();
}
for (VectorWrapper<?> vw : batchLoader) {
ValueVector v = vw.getValueVector();
System.out.print(pad(v.getAccessor().getObject(i).toString(), 20) + " ");
}
System.out.println(
);
}