@@ -155,7 +155,7 @@ public R newRevision() throws IOException {
155155
156156 @ Override
157157 public @ Nullable R getLastSnapshotRevision () throws IOException {
158- Pattern pattern = fileNamingScheme .snapshotGlob ();
158+ Pattern pattern = fileNamingScheme .snapshotPattern ();
159159 Map <String , FileMetadata > list = fileSystem .list ("*" );
160160 R best = null ;
161161 for (String s : list .keySet ()) {
@@ -172,7 +172,7 @@ public R newRevision() throws IOException {
172172 @ Override
173173 public @ Nullable R getLastDiffRevision (R currentRevision ) throws IOException {
174174 if (!hasDiffsSupport ()) throw new UnsupportedOperationException ();
175- Pattern pattern = fileNamingScheme .diffGlob ();
175+ Pattern pattern = fileNamingScheme .diffPattern ();
176176 Map <String , FileMetadata > list = fileSystem .list ("*" );
177177 R best = null ;
178178 for (String s : list .keySet ()) {
@@ -254,7 +254,7 @@ public void save(T state, R revision) throws IOException {
254254
255255 private void doSave (T state , R revision ) throws IOException {
256256 if (hasDiffsSupport () && maxSaveDiffs != 0 ) {
257- Pattern pattern = fileNamingScheme .snapshotGlob ();
257+ Pattern pattern = fileNamingScheme .snapshotPattern ();
258258 Map <String , FileMetadata > filenames = fileSystem .list ("*" );
259259 PriorityQueue <R > top = new PriorityQueue <>(maxSaveDiffs );
260260 for (var filename : filenames .keySet ()) {
@@ -317,7 +317,7 @@ private void safeUpload(String filename, StreamOutputConsumer consumer) throws I
317317
318318 public void cleanup (int maxRevisions ) throws IOException {
319319 Map <String , FileMetadata > filenames = fileSystem .list ("**" );
320- Pattern snapshotPattern = fileNamingScheme .snapshotGlob ();
320+ Pattern snapshotPattern = fileNamingScheme .snapshotPattern ();
321321
322322 PriorityQueue <R > top = new PriorityQueue <>(maxRevisions );
323323 for (var filename : filenames .keySet ()) {
@@ -330,7 +330,7 @@ public void cleanup(int maxRevisions) throws IOException {
330330 if (top .isEmpty ()) return ;
331331 R minRetainedRevision = top .poll ();
332332 if (hasDiffsSupport ()) {
333- Pattern diffPattern = fileNamingScheme .diffGlob ();
333+ Pattern diffPattern = fileNamingScheme .diffPattern ();
334334 for (String filename : filenames .keySet ()) {
335335 if (!diffPattern .matcher (filename ).matches ()) continue ;
336336 FileNamingScheme .Diff <R > diff = fileNamingScheme .decodeDiff (filename );
0 commit comments