use of org.apache.drill.exec.record.BatchSchema.SelectionVectorMode in project drill by apache.
the class RecordBatchData method canonicalize.
public void canonicalize() {
SelectionVectorMode mode = container.getSchema().getSelectionVectorMode();
container = VectorContainer.canonicalize(container);
container.buildSchema(mode);
}
use of org.apache.drill.exec.record.BatchSchema.SelectionVectorMode in project drill by apache.
the class RowSetPrinter method print.
public void print(PrintStream out) {
SelectionVectorMode selectionMode = rowSet.indirectionType();
RowSetReader reader = rowSet.reader();
int colCount = reader.schema().count();
printSchema(out, selectionMode);
while (reader.next()) {
printHeader(out, reader, selectionMode);
for (int i = 0; i < colCount; i++) {
if (i > 0) {
out.print(", ");
}
out.print(reader.getAsString(i));
}
out.println();
}
}
Aggregations