Search in sources :

Example 1 with TimestampedDatasetStateStoreVersion

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;
}
Also used : DatasetStateStoreEntryManager(org.apache.gobblin.metastore.metadata.DatasetStateStoreEntryManager) DatasetStoreDataset(org.apache.gobblin.metastore.DatasetStoreDataset) TimestampedDatasetStateStoreVersion(org.apache.gobblin.data.management.version.TimestampedDatasetStateStoreVersion)

Aggregations

TimestampedDatasetStateStoreVersion (org.apache.gobblin.data.management.version.TimestampedDatasetStateStoreVersion)1 DatasetStoreDataset (org.apache.gobblin.metastore.DatasetStoreDataset)1 DatasetStateStoreEntryManager (org.apache.gobblin.metastore.metadata.DatasetStateStoreEntryManager)1