@Test public void testRawTaskResults() throws OdpsException { Instance i = SQLTask.run(odps, "select count(*) from " + TABLE_NAME + ";"); i.waitForSuccess(); InstanceResultModel.TaskResult taskResult = i.getRawTaskResults().get(0); Instance.TaskStatus.Status taskStatus = Instance.TaskStatus.Status.valueOf(taskResult.status.toUpperCase()); assertEquals(Instance.TaskStatus.Status.SUCCESS, taskStatus); assertNotNull(taskResult.name); assertNotNull(taskResult.type); assertNotNull(taskResult.result.text); }
public Instance get(String id) { return get(getDefaultProjectName(), id); }
Instances implements Iterable<Instance> { public Instance get(String id) { return get(getDefaultProjectName(), id); } }
Instances implements Iterable<Instance> { public Instance get(String id) { return get(getDefaultProjectName(), id); } Instances(Odps odps); }
Instances implements Iterable<Instance> { public Instance get(String id) { return get(getDefaultProjectName(), id); } Instances(Odps odps); String getDefaultRunningCluster(); void setDefaultRunningCluster(String defaultRunningCluster); Instance create(Job job); Instance create(Task task); Instance create(Task task, int priority); Instance create(Task task, int priority, String runningCluster); Instance get(String id); Instance get(String projectName, String id); boolean exists(String id); boolean exists(String projectName, String id); Instance create(String projectName, Task task); Instance create(String projectName, Task task, int priority); Instance create(String projectName, Task task, int priority, String runningCluster); Instance create(String projectName, Task task, Integer priority, String runningCluster); Instance create(String projectName, Task task, Integer priority, String runningCluster,
                         String jobName); Iterator<Instance> iterator(); Iterator<Instance> iterator(final String project); Iterator<Instance> iterator(final InstanceFilter filter); Iterator<Instance> iterator(final String project,
                                     final InstanceFilter filter); Iterable<Instance> iterable(); Iterable<Instance> iterable(final String project); Iterable<Instance> iterable(final InstanceFilter filter); Iterable<Instance> iterable(final String project,
                                     final InstanceFilter filter); Iterator<Instance.InstanceQueueingInfo> iteratorQueueing(); Iterator<Instance.InstanceQueueingInfo> iteratorQueueing(String project); Iterator<Instance.InstanceQueueingInfo> iteratorQueueing(InstanceFilter filter); Iterator<Instance.InstanceQueueingInfo> iteratorQueueing(String project, InstanceFilter filter); Iterator<Instance.InstanceQueueingInfo> iteratorQueueing(
      String project, InstanceFilter filter, Integer maxItemsPerRequest); }
Instances implements Iterable<Instance> { public Instance get(String id) { return get(getDefaultProjectName(), id); } Instances(Odps odps); String getDefaultRunningCluster(); void setDefaultRunningCluster(String defaultRunningCluster); Instance create(Job job); Instance create(Task task); Instance create(Task task, int priority); Instance create(Task task, int priority, String runningCluster); Instance get(String id); Instance get(String projectName, String id); boolean exists(String id); boolean exists(String projectName, String id); Instance create(String projectName, Task task); Instance create(String projectName, Task task, int priority); Instance create(String projectName, Task task, int priority, String runningCluster); Instance create(String projectName, Task task, Integer priority, String runningCluster); Instance create(String projectName, Task task, Integer priority, String runningCluster,
                         String jobName); Iterator<Instance> iterator(); Iterator<Instance> iterator(final String project); Iterator<Instance> iterator(final InstanceFilter filter); Iterator<Instance> iterator(final String project,
                                     final InstanceFilter filter); Iterable<Instance> iterable(); Iterable<Instance> iterable(final String project); Iterable<Instance> iterable(final InstanceFilter filter); Iterable<Instance> iterable(final String project,
                                     final InstanceFilter filter); Iterator<Instance.InstanceQueueingInfo> iteratorQueueing(); Iterator<Instance.InstanceQueueingInfo> iteratorQueueing(String project); Iterator<Instance.InstanceQueueingInfo> iteratorQueueing(InstanceFilter filter); Iterator<Instance.InstanceQueueingInfo> iteratorQueueing(String project, InstanceFilter filter); Iterator<Instance.InstanceQueueingInfo> iteratorQueueing(
      String project, InstanceFilter filter, Integer maxItemsPerRequest);  }