cshannon commented on code in PR #3476:
URL: https://github.com/apache/accumulo/pull/3476#discussion_r1224524333


##########
core/src/main/java/org/apache/accumulo/core/metadata/TabletFile.java:
##########
@@ -20,15 +20,25 @@
 
 import org.apache.hadoop.fs.Path;
 
+/**
+ * An interface that represents different types of file references that are 
handled by code that
+ * processes tablet files.
+ */
 public interface TabletFile {
 
   /**
-   * @return The file name of the TabletFile
+   * Returns the fileName of the TabletFile. The value return is the name 
itself and not the entire
+   * path.
+   *
+   * For example, if the full path for a TabletFile is
+   * 'hdfs://nn1/accumulo/tables/5a/t-0001/F0002.rf', this method returns 
'F0002.rf'.

Review Comment:
   You are actually right, there's probably not a reason to have getFileName(). 
The caller can just use tabletFile.getPath().getName().
   
   If I drop that method should I open a new PR or just do it here?



-- 
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.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to