public interface InodeView extends JournalEntryRepresentable, Comparable<InodeView>
toJournalEntry
long getCreationTimeMs()
String getGroup()
long getId()
long getTtl()
long getLastModificationTimeMs()
long getLastAccessTimeMs()
String getName()
short getMode()
PersistenceState getPersistenceState()
PersistenceState
of the inodelong getParentId()
String getOwner()
boolean isDeleted()
boolean isDirectory()
boolean isFile()
boolean isPinned()
boolean isPersisted()
com.google.common.collect.ImmutableSet<String> getMediumTypes()
String getUfsFingerprint()
AccessControlList getACL()
DefaultAccessControlList getDefaultACL() throws UnsupportedOperationException
UnsupportedOperationException
- if the inode is a fileFileInfo generateClientFileInfo(String path)
FileInfo
of the file or folder.path
- the path of the fileFileInfo
boolean checkPermission(String user, List<String> groups, AclAction action)
user
- the user checking permissiongroups
- the groups the user belongs toaction
- the action to takeAccessControlList.checkPermission(String, List, AclAction)
AclActions getPermission(String user, List<String> groups)
user
- the usergroups
- the groups the user belongs toAccessControlList.getPermission(String, List)
InodeMeta.Inode toProto()
default int compareTo(InodeView o)
compareTo
in interface Comparable<InodeView>
Copyright © 2023. All Rights Reserved.