* Manages the various URIs inside an array directory, considering * various versions of the on-disk TileDB format. */
| 67 | * various versions of the on-disk TileDB format. |
| 68 | */ |
| 69 | class ArrayDirectory { |
| 70 | /** |
| 71 | * Friends with its whitebox testing class. |
| 72 | */ |
| 73 | friend class WhiteboxArrayDirectory; |
| 74 | |
| 75 | public: |
| 76 | /** |
| 77 | * Class to return the URIs that need to be processed after the schema have |
| 78 | * been created. |
| 79 | */ |
| 80 | class FilteredFragmentUris { |
| 81 | public: |
| 82 | /** |
| 83 | * Type alias for a set of fragment_uris. |
| 84 | */ |
| 85 | using FragmentSet = std::set<URI>; |
| 86 | |
| 87 | /* ********************************* */ |
| 88 | /* CONSTRUCTORS & DESTRUCTORS */ |
| 89 | /* ********************************* */ |
| 90 | |
| 91 | /** |
| 92 | * Constructor. |
| 93 | */ |
| 94 | FilteredFragmentUris( |
| 95 | std::vector<URI> fragment_uris_to_vacuum, |
| 96 | std::vector<URI> commit_uris_to_vacuum, |
| 97 | std::vector<URI> commit_uris_to_ignore, |
| 98 | std::vector<URI> fragment_vac_uris_to_vacuum, |
| 99 | std::vector<TimestampedURI> fragment_uris) |
| 100 | : fragment_uris_to_vacuum_(fragment_uris_to_vacuum) |
| 101 | , commit_uris_to_vacuum_(commit_uris_to_vacuum) |
| 102 | , commit_uris_to_ignore_(commit_uris_to_ignore) |
| 103 | , fragment_vac_uris_to_vacuum_(fragment_vac_uris_to_vacuum) |
| 104 | , fragment_uris_(fragment_uris) { |
| 105 | } |
| 106 | |
| 107 | /** Destructor. */ |
| 108 | ~FilteredFragmentUris() = default; |
| 109 | |
| 110 | /* ********************************* */ |
| 111 | /* API */ |
| 112 | /* ********************************* */ |
| 113 | |
| 114 | /** Returns the fragment URIs to vacuum. */ |
| 115 | const std::vector<URI>& fragment_uris_to_vacuum() const { |
| 116 | return fragment_uris_to_vacuum_; |
| 117 | }; |
| 118 | |
| 119 | /** Returns the commit URIs to vacuum for fragment vacuuming. */ |
| 120 | const std::vector<URI>& commit_uris_to_vacuum() const { |
| 121 | return commit_uris_to_vacuum_; |
| 122 | } |
| 123 | |
| 124 | /** Returns the commit URIs to ignore for fragment vacuuming. */ |
| 125 | const std::vector<URI>& commit_uris_to_ignore() const { |
| 126 | return commit_uris_to_ignore_; |
no outgoing calls
no test coverage detected