Class SharedDataStoreUtils

    • Constructor Detail

      • SharedDataStoreUtils

        public SharedDataStoreUtils()
    • Method Detail

      • isShared

        public static boolean isShared​(BlobStore blobStore)
        Checks if the blob store shared.
        Parameters:
        blobStore - the blob store
        Returns:
        true if shared
      • getEarliestRecord

        public static DataRecord getEarliestRecord​(List<DataRecord> recs)
        Gets the earliest record of the available reference records.
        Parameters:
        recs - the recs
        Returns:
        the earliest record
      • refsNotAvailableFromRepos

        public static Set<String> refsNotAvailableFromRepos​(List<DataRecord> repos,
                                                            List<DataRecord> refs)
        Repositories from which marked references not available.
        Parameters:
        repos - the repos
        refs - the refs
        Returns:
        the sets the sets whose references not available
      • refsNotOld

        public static Set<String> refsNotOld​(List<DataRecord> repos,
                                             List<DataRecord> refs,
                                             long referenceTime)
        Repositories from which marked references older than retention time are not available.
        Parameters:
        repos - the repos
        refs - the refs
        referenceTime - the retention time
        Returns:
        the sets the sets whose references not available