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 ( 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 ) ; }
scan a group starting with primary key of a table , then get all of the children ( if any ) . primary key is set as parameters to the query context . generates a plan : branch lookup index scan ( table , pk - > ? [ , ? . . . ] )
