@Override
public void dumpBranchAsJson(Session session, PrintWriter writer,
String schemaName, String tableName,
Operator scan, RowType scanType, int depth,
boolean withTransaction, FormatOptions options) {
AkibanInformationSchema ais = dxlService.ddlFunctions().getAIS(session);
Table table = getTable(ais, schemaName, tableName);
logger.debug("Writing from {}: {}", table, scan);
PlanGenerator generator = ais.getCachedValue(this, CACHED_PLAN_GENERATOR);
Operator plan = generator.generateBranchPlan(table, scan, scanType);
dumpAsJson(session, writer, table, Collections.singletonList(Collections.emptyList()), depth, withTransaction, generator.getSchema(), plan, options);
}