SQLTask extends Task { public static Instance run(Odps odps, String sql) throws OdpsException { String project = odps.getDefaultProject(); if (project == null) { throw new OdpsException("default project required."); } return run(odps, project, sql, "AnonymousSQLTask", null, null, "sql"); }  String getQuery(); static void setDefaultHints(Map<String,String> hints); static void removeDefaultHints(); void setQuery(String query); static List<Record> parseCsvRecord(String csvResult); static List<Record> getResult(Instance instance, String taskName); @Survey static List<Record> getResultByInstanceTunnel(Instance instance, String taskName,
                                                       Long limit); @Survey static List<Record> getResultByInstanceTunnel(Instance instance, Long limit); @Survey static List<Record> getResultByInstanceTunnel(Instance instance, String taskName); @Survey static List<Record> getResultByInstanceTunnel(Instance instance); static List<Record> getResult(Instance instance); static ResultSet getResultSet(Instance instance); static ResultSet getResultSet(Instance instance, String taskName); static ResultSet getResultSet(Instance instance, Long limit); static ResultSet getResultSet(Instance instance, String taskName, Long limit); static ResultSet getResultSet(Instance instance, String taskName, Long limit, boolean limitHint); static ResultSet getResultSet(Instance instance, String taskName, Long limit,
                                       boolean limitHint, URI tunnelEndpoint); @Override String getCommandText(); static List<String> getSqlWarning(Instance instance); static List<String> getSqlWarning(Instance instance, String taskName); static Instance run(Odps odps, String sql); static Instance run(Odps odps, String project, String sql,
                             Map<String, String> hints, Map<String, String> aliases); static Instance run(Odps odps, String project, String sql,
                             String taskName, Map<String, String> hints,
                             Map<String, String> aliases); static Instance run(Odps odps, String project, String sql,
                             String taskName, Map<String, String> hints,
                             Map<String, String> aliases, int priority);  }
@Test public void testCreatePriority() throws OdpsException { Instance i = SQLTask.run(odps, odps.getDefaultProject(), "select * from src;", "testsql", null, null, 3); assertEquals(i.getPriority(), 3); }