ajfabbri commented on a change in pull request #568: HADOOP-15691 Add 
PathCapabilities to FS and FC to complement StreamCapabilities
URL: https://github.com/apache/hadoop/pull/568#discussion_r326421016
 
 

 ##########
 File path: 
hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/AbstractFileSystem.java
 ##########
 @@ -1371,4 +1373,16 @@ public boolean equals(Object other) {
         new CompletableFuture<>(), () -> open(path, bufferSize));
   }
 
+  public boolean hasPathCapability(final Path path,
+      final String capability)
 
 Review comment:
   Been talking about something like this for years, thanks for working on 
this.  Taking a `Path` instead of a `scheme` seems right: it is flexible 
(general design, specific implementation applies here). Was curious about 
examples where different paths in the same FS would have different 
capabilities. I suppose S3A could have different buckets in different regions 
or with different configurations (e.g. permissions, or S3Guard 
enabled/disabled, etc.)  Just noticed you mentioned ViewFS as well. Another 
good case for per-path capabilities.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to