public class RecentTablesListManager
extends java.lang.Object
MAX_RECENT_TABLES_LIST_SIZE
Author: smarella| Constructor and Description |
|---|
RecentTablesListManager(java.lang.String user) |
| Modifier and Type | Method and Description |
|---|---|
void |
add(java.lang.String newTable)
Adds to the top of recent tables list.
|
void |
delete(java.lang.String tablePath)
Deletes from the recent tables list.
|
void |
deleteIfNotExist(java.lang.String tablePath,
com.mapr.fs.MapRFileSystem mfs) |
protected java.lang.String |
getHomeDir() |
java.util.List<java.lang.String> |
getListFromFile() |
protected java.lang.String |
getPathForRecentList() |
boolean |
hasHomeDir()
Check if
user has a home directory or not. |
void |
moveToTop(java.lang.String mostRecentTable)
Move up the to the top of the recent tables list, if it exists.
|
public boolean hasHomeDir()
user has a home directory or not.public void add(java.lang.String newTable)
MAX_RECENT_TABLES_LIST_SIZEnewTable - public void moveToTop(java.lang.String mostRecentTable)
mostRecentTable - public void delete(java.lang.String tablePath)
tablePath - public void deleteIfNotExist(java.lang.String tablePath,
com.mapr.fs.MapRFileSystem mfs)
public java.util.List<java.lang.String> getListFromFile()
protected java.lang.String getPathForRecentList()
protected java.lang.String getHomeDir()