public interface NamespaceVisitor
Modifier and Type | Interface and Description |
---|---|
static class |
NamespaceVisitor.Element
Snapshot and INode.
|
static interface |
NamespaceVisitor.INodeVisitor
For visiting any
INode . |
Modifier and Type | Method and Description |
---|---|
static Iterable<NamespaceVisitor.Element> |
getChildren(INodeDirectory dir,
int snapshot) |
default NamespaceVisitor.INodeVisitor |
getDefaultVisitor() |
static Iterable<NamespaceVisitor.Element> |
getSnapshots(org.apache.hadoop.hdfs.server.namenode.snapshot.DirectorySnapshottableFeature snapshottable) |
default void |
postVisitReferred(org.apache.hadoop.hdfs.server.namenode.INode referred)
Right after visiting the given referred
INode . |
default void |
postVisitSub(NamespaceVisitor.Element sub,
int index,
boolean isLast)
Right after visiting the given sub
NamespaceVisitor.Element . |
default void |
preVisitReferred(org.apache.hadoop.hdfs.server.namenode.INode referred)
Right before visiting the given referred
INode . |
default void |
preVisitSub(NamespaceVisitor.Element sub,
int index,
boolean isLast)
Right before visiting the given sub
NamespaceVisitor.Element . |
default void |
visitDirectory(INodeDirectory dir,
int snapshot)
Visiting the given
INodeDirectory (non-recursively). |
default void |
visitDirectoryRecursively(INodeDirectory dir,
int snapshot)
First visit the given
INodeDirectory ;
then the children;
and then, if snapshottable, the snapshots. |
default void |
visitFile(org.apache.hadoop.hdfs.server.namenode.INodeFile file,
int snapshot)
Visiting the given
INodeFile . |
default void |
visitReference(INodeReference ref,
int snapshot)
Visiting the given
INodeReference (non-recursively). |
default void |
visitReferenceRecursively(INodeReference ref,
int snapshot)
First visit the given
INodeReference and then the referred. |
default void |
visitSnapshottable(INodeDirectory dir,
org.apache.hadoop.hdfs.server.namenode.snapshot.DirectorySnapshottableFeature snapshottable)
Visiting a
DirectorySnapshottableFeature . |
default void |
visitSubs(Iterable<NamespaceVisitor.Element> subs)
Visiting the sub
NamespaceVisitor.Element s recursively. |
default void |
visitSymlink(org.apache.hadoop.hdfs.server.namenode.INodeSymlink symlink,
int snapshot)
Visiting the given
INodeSymlink . |
default NamespaceVisitor.INodeVisitor getDefaultVisitor()
NamespaceVisitor.INodeVisitor
.default void visitFile(org.apache.hadoop.hdfs.server.namenode.INodeFile file, int snapshot)
INodeFile
.default void visitSymlink(org.apache.hadoop.hdfs.server.namenode.INodeSymlink symlink, int snapshot)
INodeSymlink
.default void visitReference(INodeReference ref, int snapshot)
INodeReference
(non-recursively).default void visitReferenceRecursively(INodeReference ref, int snapshot)
INodeReference
and then the referred.default void preVisitReferred(org.apache.hadoop.hdfs.server.namenode.INode referred)
INode
.default void postVisitReferred(org.apache.hadoop.hdfs.server.namenode.INode referred)
INode
.default void visitDirectory(INodeDirectory dir, int snapshot)
INodeDirectory
(non-recursively).default void visitDirectoryRecursively(INodeDirectory dir, int snapshot)
INodeDirectory
;
then the children;
and then, if snapshottable, the snapshots.default void preVisitSub(NamespaceVisitor.Element sub, int index, boolean isLast)
NamespaceVisitor.Element
.
The sub element may be a child of an INodeDirectory
or a snapshot in DirectorySnapshottableFeature
.sub
- the element to be visited.index
- the index of the sub element.isLast
- is the sub element the last element?default void postVisitSub(NamespaceVisitor.Element sub, int index, boolean isLast)
NamespaceVisitor.Element
.
The sub element may be a child of an INodeDirectory
or a snapshot in DirectorySnapshottableFeature
.sub
- the element just visited.index
- the index of the sub element.isLast
- is the sub element the last element?default void visitSnapshottable(INodeDirectory dir, org.apache.hadoop.hdfs.server.namenode.snapshot.DirectorySnapshottableFeature snapshottable)
DirectorySnapshottableFeature
.default void visitSubs(Iterable<NamespaceVisitor.Element> subs)
NamespaceVisitor.Element
s recursively.subs
- the children of an INodeDirectory
or the snapshots in DirectorySnapshottableFeature
.static Iterable<NamespaceVisitor.Element> getChildren(INodeDirectory dir, int snapshot)
NamespaceVisitor.Element
s.static Iterable<NamespaceVisitor.Element> getSnapshots(org.apache.hadoop.hdfs.server.namenode.snapshot.DirectorySnapshottableFeature snapshottable)
NamespaceVisitor.Element
s.Copyright © 2008–2024 Apache Software Foundation. All rights reserved.