*/
public static Operator generateBranchPlan (AkibanInformationSchema ais, Table table) {
final Operator indexScan = generateIndexScan(ais, table);
final Schema schema = SchemaCache.globalSchema(ais);
PrimaryKey pkey = table.getPrimaryKeyIncludingInternal();
IndexRowType indexType = schema.indexRowType(pkey.getIndex());
return generateBranchPlan(table, indexScan, indexType);
}
public static Operator generateBranchPlan (Table table, Operator scan, RowType scanType) {
final Schema schema = (Schema)scanType.schema();