public class DelegatingReadOnlyInodeStore extends java.lang.Object implements ReadOnlyInodeStore
| Constructor and Description |
|---|
DelegatingReadOnlyInodeStore(InodeStore delegate) |
| Modifier and Type | Method and Description |
|---|---|
java.util.Set<EdgeEntry> |
allEdges() |
java.util.Set<MutableInode<?>> |
allInodes() |
void |
close() |
java.util.Optional<Inode> |
get(long id,
ReadOption option) |
java.util.Optional<Inode> |
getChild(InodeDirectoryView inode,
java.lang.String name,
ReadOption option) |
java.util.Optional<Inode> |
getChild(java.lang.Long inodeId,
java.lang.String name,
ReadOption option) |
java.util.Optional<java.lang.Long> |
getChildId(InodeDirectoryView inode,
java.lang.String name,
ReadOption option) |
java.util.Optional<java.lang.Long> |
getChildId(java.lang.Long inodeId,
java.lang.String name,
ReadOption option) |
java.lang.Iterable<java.lang.Long> |
getChildIds(InodeDirectoryView inode,
ReadOption option)
Returns an iterable for the ids of the children of the given directory.
|
java.lang.Iterable<java.lang.Long> |
getChildIds(java.lang.Long inodeId,
ReadOption option)
Returns an iterable for the ids of the children of the given directory.
|
java.lang.Iterable<? extends Inode> |
getChildren(InodeDirectoryView inode,
ReadOption option) |
java.lang.Iterable<? extends Inode> |
getChildren(java.lang.Long inodeId,
ReadOption option)
Returns an iterator over the children of the specified inode.
|
boolean |
hasChildren(InodeDirectoryView inode,
ReadOption option) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitget, getChild, getChild, getChildId, getChildId, getChildIds, getChildIds, getChildren, getChildren, hasChildrenpublic DelegatingReadOnlyInodeStore(InodeStore delegate)
delegate - the delegate inode storepublic java.util.Optional<Inode> get(long id, ReadOption option)
get in interface ReadOnlyInodeStoreid - an inode idoption - the optionspublic java.lang.Iterable<java.lang.Long> getChildIds(java.lang.Long inodeId,
ReadOption option)
ReadOnlyInodeStoregetChildIds in interface ReadOnlyInodeStoreinodeId - an inode id to list child ids foroption - the optionspublic java.lang.Iterable<java.lang.Long> getChildIds(InodeDirectoryView inode, ReadOption option)
ReadOnlyInodeStoregetChildIds in interface ReadOnlyInodeStoreinode - the inode to list child ids foroption - the optionspublic java.lang.Iterable<? extends Inode> getChildren(java.lang.Long inodeId, ReadOption option)
ReadOnlyInodeStoregetChildren in interface ReadOnlyInodeStoreinodeId - an inode idoption - the optionspublic java.lang.Iterable<? extends Inode> getChildren(InodeDirectoryView inode, ReadOption option)
getChildren in interface ReadOnlyInodeStoreinode - an inode directoryoption - the optionspublic java.util.Optional<java.lang.Long> getChildId(java.lang.Long inodeId,
java.lang.String name,
ReadOption option)
getChildId in interface ReadOnlyInodeStoreinodeId - an inode idname - an inode nameoption - the optionspublic java.util.Optional<java.lang.Long> getChildId(InodeDirectoryView inode, java.lang.String name, ReadOption option)
getChildId in interface ReadOnlyInodeStoreinode - an inode directoryname - an inode nameoption - the optionspublic java.util.Optional<Inode> getChild(java.lang.Long inodeId, java.lang.String name, ReadOption option)
getChild in interface ReadOnlyInodeStoreinodeId - an inode idname - an inode nameoption - the optionspublic java.util.Optional<Inode> getChild(InodeDirectoryView inode, java.lang.String name, ReadOption option)
getChild in interface ReadOnlyInodeStoreinode - an inode directoryname - an inode nameoption - the optionspublic boolean hasChildren(InodeDirectoryView inode, ReadOption option)
hasChildren in interface ReadOnlyInodeStoreinode - an inode directoryoption - the optionspublic java.util.Set<EdgeEntry> allEdges()
allEdges in interface ReadOnlyInodeStorepublic java.util.Set<MutableInode<?>> allInodes()
allInodes in interface ReadOnlyInodeStorepublic void close()
throws java.io.IOException
close in interface java.io.Closeableclose in interface java.lang.AutoCloseablejava.io.IOExceptionCopyright © 2020. All Rights Reserved.