public class DelegatingReadOnlyInodeStore extends Object implements ReadOnlyInodeStore
Constructor and Description |
---|
DelegatingReadOnlyInodeStore(InodeStore delegate) |
Modifier and Type | Method and Description |
---|---|
Set<EdgeEntry> |
allEdges() |
Set<MutableInode<?>> |
allInodes() |
void |
close() |
Optional<Inode> |
get(long id,
ReadOption option) |
Optional<Inode> |
getChild(InodeDirectoryView inode,
String name,
ReadOption option) |
Optional<Inode> |
getChild(Long inodeId,
String name,
ReadOption option) |
Optional<Long> |
getChildId(InodeDirectoryView inode,
String name,
ReadOption option) |
Optional<Long> |
getChildId(Long inodeId,
String name,
ReadOption option) |
CloseableIterator<Long> |
getChildIds(InodeDirectoryView inode,
ReadOption option)
Returns an iterable for the ids of the children of the given directory.
|
CloseableIterator<Long> |
getChildIds(Long inodeId,
ReadOption option)
Returns an iterable for the ids of the children of the given directory.
|
CloseableIterator<? extends Inode> |
getChildren(InodeDirectoryView inode,
ReadOption option) |
CloseableIterator<? extends Inode> |
getChildren(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, wait
get, getChild, getChild, getChildId, getChildIds, getChildren, getChildren, getChildrenFrom, getChildrenPrefix, getChildrenPrefixFrom, hasChildren
public DelegatingReadOnlyInodeStore(InodeStore delegate)
delegate
- the delegate inode storepublic Optional<Inode> get(long id, ReadOption option)
get
in interface ReadOnlyInodeStore
id
- an inode idoption
- the optionspublic CloseableIterator<Long> getChildIds(Long inodeId, ReadOption option)
ReadOnlyInodeStore
getChildIds
in interface ReadOnlyInodeStore
inodeId
- an inode id to list child ids foroption
- the optionspublic CloseableIterator<Long> getChildIds(InodeDirectoryView inode, ReadOption option)
ReadOnlyInodeStore
getChildIds
in interface ReadOnlyInodeStore
inode
- the inode to list child ids foroption
- the optionspublic CloseableIterator<? extends Inode> getChildren(Long inodeId, ReadOption option)
ReadOnlyInodeStore
getChildren
in interface ReadOnlyInodeStore
inodeId
- an inode idoption
- the optionspublic CloseableIterator<? extends Inode> getChildren(InodeDirectoryView inode, ReadOption option)
getChildren
in interface ReadOnlyInodeStore
inode
- an inode directoryoption
- the optionspublic Optional<Long> getChildId(Long inodeId, String name, ReadOption option)
getChildId
in interface ReadOnlyInodeStore
inodeId
- an inode idname
- an inode nameoption
- the optionspublic Optional<Long> getChildId(InodeDirectoryView inode, String name, ReadOption option)
getChildId
in interface ReadOnlyInodeStore
inode
- an inode directoryname
- an inode nameoption
- the optionspublic Optional<Inode> getChild(Long inodeId, String name, ReadOption option)
getChild
in interface ReadOnlyInodeStore
inodeId
- an inode idname
- an inode nameoption
- the optionspublic Optional<Inode> getChild(InodeDirectoryView inode, String name, ReadOption option)
getChild
in interface ReadOnlyInodeStore
inode
- an inode directoryname
- an inode nameoption
- the optionspublic boolean hasChildren(InodeDirectoryView inode, ReadOption option)
hasChildren
in interface ReadOnlyInodeStore
inode
- an inode directoryoption
- the optionspublic Set<EdgeEntry> allEdges()
allEdges
in interface ReadOnlyInodeStore
public Set<MutableInode<?>> allInodes()
allInodes
in interface ReadOnlyInodeStore
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
IOException
Copyright © 2023. All Rights Reserved.