public interface ReadOnlyInodeStore extends Closeable
Modifier and Type | Method and Description |
---|---|
Set<EdgeEntry> |
allEdges() |
Set<MutableInode<?>> |
allInodes() |
default Optional<Inode> |
get(long id) |
Optional<Inode> |
get(long id,
ReadOption option) |
default Optional<Inode> |
getChild(InodeDirectoryView inode,
String name) |
default Optional<Inode> |
getChild(InodeDirectoryView inode,
String name,
ReadOption option) |
default Optional<Inode> |
getChild(Long inodeId,
String name) |
Optional<Inode> |
getChild(Long inodeId,
String name,
ReadOption option) |
default Optional<Long> |
getChildId(InodeDirectoryView inode,
String name,
ReadOption option) |
default Optional<Long> |
getChildId(Long inodeId,
String name) |
Optional<Long> |
getChildId(Long inodeId,
String name,
ReadOption option) |
default CloseableIterator<Long> |
getChildIds(InodeDirectoryView inode,
ReadOption option)
Returns an iterable for the ids of the children of the given directory.
|
default CloseableIterator<Long> |
getChildIds(Long inodeId) |
CloseableIterator<Long> |
getChildIds(Long inodeId,
ReadOption option)
Returns an iterable for the ids of the children of the given directory.
|
default CloseableIterator<? extends Inode> |
getChildren(InodeDirectoryView inode) |
default CloseableIterator<? extends Inode> |
getChildren(InodeDirectoryView inode,
ReadOption option) |
default CloseableIterator<? extends Inode> |
getChildren(Long inodeId) |
default CloseableIterator<? extends Inode> |
getChildren(Long inodeId,
ReadOption option)
Returns an iterator over the children of the specified inode.
|
default CloseableIterator<? extends Inode> |
getChildrenFrom(long parentId,
String fromName)
Returns a closeable stream of the inodes sorted by filename of the children of the given
directory that come after and including fromName.
|
default CloseableIterator<? extends Inode> |
getChildrenPrefix(long parentId,
String prefix)
Returns a closeable stream of the inodes sorted by filename of the children of the given
directory that come after and including fromName.
|
default CloseableIterator<? extends Inode> |
getChildrenPrefixFrom(long parentId,
String prefix,
String fromName)
Returns a closeable stream of the inodes sorted by filename of the children of the given
directory that come after and including fromName, and matching the prefix.
|
default boolean |
hasChildren(InodeDirectoryView inode) |
boolean |
hasChildren(InodeDirectoryView inode,
ReadOption option) |
Optional<Inode> get(long id, ReadOption option)
id
- an inode idoption
- the optionsdefault Optional<Inode> get(long id)
id
- an inode idget(long, ReadOption)
with default optiondefault CloseableIterator<? extends Inode> getChildrenFrom(long parentId, String fromName)
parentId
- the inode id of the parent directoryfromName
- the inode from which to start listingdefault CloseableIterator<? extends Inode> getChildrenPrefix(long parentId, String prefix)
parentId
- the inode id of the parent directoryprefix
- the prefix to matchdefault CloseableIterator<? extends Inode> getChildrenPrefixFrom(long parentId, String prefix, String fromName)
parentId
- the inode id of the parent directoryprefix
- the prefix to matchfromName
- the inode from which to start listingCloseableIterator<Long> getChildIds(Long inodeId, ReadOption option)
inodeId
- an inode id to list child ids foroption
- the optionsdefault CloseableIterator<Long> getChildIds(Long inodeId)
inodeId
- an inode id to list child ids forgetChildIds(Long, ReadOption)
with default optiondefault CloseableIterator<Long> getChildIds(InodeDirectoryView inode, ReadOption option)
inode
- the inode to list child ids foroption
- the optionsdefault CloseableIterator<? extends Inode> getChildren(Long inodeId, ReadOption option)
inodeId
- an inode idoption
- the optionsdefault CloseableIterator<? extends Inode> getChildren(Long inodeId)
inodeId
- an inode idgetChildren(Long, ReadOption)
with default optiondefault CloseableIterator<? extends Inode> getChildren(InodeDirectoryView inode, ReadOption option)
inode
- an inode directoryoption
- the optionsdefault CloseableIterator<? extends Inode> getChildren(InodeDirectoryView inode)
inode
- an inode directorygetChildren(InodeDirectoryView, ReadOption)
with default optionOptional<Long> getChildId(Long inodeId, String name, ReadOption option)
inodeId
- an inode idname
- an inode nameoption
- the optionsdefault Optional<Long> getChildId(Long inodeId, String name)
inodeId
- an inode idname
- an inode namegetChildId(Long, String, ReadOption)
with default optiondefault Optional<Long> getChildId(InodeDirectoryView inode, String name, ReadOption option)
inode
- an inode directoryname
- an inode nameoption
- the optionsOptional<Inode> getChild(Long inodeId, String name, ReadOption option)
inodeId
- an inode idname
- an inode nameoption
- the optionsdefault Optional<Inode> getChild(Long inodeId, String name)
inodeId
- an inode idname
- an inode namegetChild(Long, String, ReadOption)
with default optiondefault Optional<Inode> getChild(InodeDirectoryView inode, String name, ReadOption option)
inode
- an inode directoryname
- an inode nameoption
- the optionsdefault Optional<Inode> getChild(InodeDirectoryView inode, String name)
inode
- an inode directoryname
- an inode namegetChild(InodeDirectoryView, String, ReadOption)
with default
optionboolean hasChildren(InodeDirectoryView inode, ReadOption option)
inode
- an inode directoryoption
- the optionsdefault boolean hasChildren(InodeDirectoryView inode)
inode
- an inode directoryhasChildren(InodeDirectoryView, ReadOption)
with default optionSet<MutableInode<?>> allInodes()
Copyright © 2023. All Rights Reserved.