@Override
public int next() {
int recordCount = inner.next();
if (mutator.isSchemaChanged()) {
newSchema();
}
incoming.setAllCount(recordCount);
if (DEBUG_PRINT) {
FragmentHandle h = context.getFragmentHandle();
outgoing.buildSchema();
String op = String.format("CoercionReader:%d:%d:%d --> (%d), %s", h.getMajorFragmentId(), h.getMinorFragmentId(), context.getStats().getOperatorId(), recordCount, outgoing.getSchema());
System.out.println(op);
BatchPrinter.printBatch(mutator.getContainer());
}
if (projector != null) {
projector.projectRecords(recordCount);
for (final ValueVector v : allocationVectors) {
v.setValueCount(recordCount);
}
}
return recordCount;
}