use of org.apache.gobblin.data.management.version.TimestampedDatasetStateStoreVersion in project incubator-gobblin by apache.
the class TimestampedDatasetStateStoreVersionFinder method findDatasetVersions.
@Override
public Collection<TimestampedDatasetStateStoreVersion> findDatasetVersions(Dataset dataset) throws IOException {
DatasetStoreDataset storeDataset = ((DatasetStoreDataset) dataset);
List<TimestampedDatasetStateStoreVersion> versions = Lists.newArrayList();
for (DatasetStateStoreEntryManager entry : storeDataset.getDatasetStateStoreMetadataEntries()) {
versions.add(new TimestampedDatasetStateStoreVersion(entry));
}
return versions;
}
Aggregations