/** * Get the {@link SourceState} of the previous job run. * * <p> * This is a convenient method for existing jobs that do not use the new feature that allows output data to * be committed on a per-dataset basis. Use of this method assumes that the job deals with a single dataset, * which uses the default data URN defined by {@link ConfigurationKeys#DEFAULT_DATASET_URN}. * </p> * * @return {@link SourceState} of the previous job run or {@code null} if no previous {@link SourceState} is found */ public SourceState getPreviousSourceState() { return getPreviousDatasetState(ConfigurationKeys.DEFAULT_DATASET_URN); }
/** * Get the {@link SourceState} of the previous job run. * * <p> * This is a convenient method for existing jobs that do not use the new feature that allows output data to * be committed on a per-dataset basis. Use of this method assumes that the job deals with a single dataset, * which uses the default data URN defined by {@link ConfigurationKeys#DEFAULT_DATASET_URN}. * </p> * * @return {@link SourceState} of the previous job run or {@code null} if no previous {@link SourceState} is found */ public SourceState getPreviousSourceState() { return getPreviousDatasetState(ConfigurationKeys.DEFAULT_DATASET_URN); }