@Test public void getJobConfigs() { HiveLayout from = TableTestUtils.createLayout("/from"); HiveLayout to = TableTestUtils.createLayout("/to"); TransformDefinition definition = TransformDefinition.parse("file.count.max=12"); TransformPlan plan = new TransformPlan(from, to, definition); assertEquals(from, plan.getBaseLayout()); assertEquals(to, plan.getTransformedLayout()); ArrayList<JobConfig> jobs = plan.getJobConfigs(); assertEquals(1, jobs.size()); assertEquals(CompactConfig.class, jobs.get(0).getClass()); CompactConfig compact = (CompactConfig) jobs.get(0); assertEquals("/from", compact.getInput()); assertEquals("/to", compact.getOutput()); assertEquals(12, compact.getMaxNumFiles()); }
public ArrayList<JobConfig> getJobConfigs() { return mJobConfigs; }
TransformPlan { public ArrayList<JobConfig> getJobConfigs() { return mJobConfigs; } }
TransformPlan { public ArrayList<JobConfig> getJobConfigs() { return mJobConfigs; } TransformPlan(Layout baseLayout, Layout transformedLayout,
                       TransformDefinition definition); }
TransformPlan { public ArrayList<JobConfig> getJobConfigs() { return mJobConfigs; } TransformPlan(Layout baseLayout, Layout transformedLayout,
                       TransformDefinition definition); Layout getBaseLayout(); Layout getTransformedLayout(); ArrayList<JobConfig> getJobConfigs(); }
TransformPlan { public ArrayList<JobConfig> getJobConfigs() { return mJobConfigs; } TransformPlan(Layout baseLayout, Layout transformedLayout,
                       TransformDefinition definition); Layout getBaseLayout(); Layout getTransformedLayout(); ArrayList<JobConfig> getJobConfigs();  }