NamespaceVisitorpublic final class NamespacePrintVisitor extends java.lang.Object implements NamespaceVisitor
NamespaceVisitor.Element, NamespaceVisitor.INodeVisitor| Modifier and Type | Method | Description |
|---|---|---|
void |
postVisitReferred(INode referred) |
Right after visiting the given referred
INode. |
void |
postVisitSub(NamespaceVisitor.Element sub,
int index,
boolean isLast) |
Right after visiting the given sub
NamespaceVisitor.Element. |
void |
preVisitReferred(INode referred) |
Right before visiting the given referred
INode. |
void |
preVisitSub(NamespaceVisitor.Element sub,
int index,
boolean isLast) |
Right before visiting the given sub
NamespaceVisitor.Element. |
static java.lang.String |
print2Sting(FSNamesystem ns) |
|
static java.lang.String |
print2Sting(INode root) |
|
void |
visitDirectory(INodeDirectory dir,
int snapshot) |
Visiting the given
INodeDirectory (non-recursively). |
void |
visitFile(INodeFile file,
int snapshot) |
Visiting the given
INodeFile. |
void |
visitReference(INodeReference ref,
int snapshot) |
Visiting the given
INodeReference (non-recursively). |
void |
visitSnapshottable(INodeDirectory dir,
DirectorySnapshottableFeature snapshottable) |
Visiting a
DirectorySnapshottableFeature. |
void |
visitSymlink(INodeSymlink symlink,
int snapshot) |
Visiting the given
INodeSymlink. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetDefaultVisitor, visitDirectoryRecursively, visitReferenceRecursively, visitSubspublic static java.lang.String print2Sting(FSNamesystem ns)
FSNamesystem.public static java.lang.String print2Sting(INode root)
public void visitFile(INodeFile file, int snapshot)
NamespaceVisitorINodeFile.visitFile in interface NamespaceVisitorpublic void visitSymlink(INodeSymlink symlink, int snapshot)
NamespaceVisitorINodeSymlink.visitSymlink in interface NamespaceVisitorpublic void visitReference(INodeReference ref, int snapshot)
NamespaceVisitorINodeReference (non-recursively).visitReference in interface NamespaceVisitorpublic void preVisitReferred(INode referred)
NamespaceVisitorINode.preVisitReferred in interface NamespaceVisitorpublic void postVisitReferred(INode referred)
NamespaceVisitorINode.postVisitReferred in interface NamespaceVisitorpublic void visitDirectory(INodeDirectory dir, int snapshot)
NamespaceVisitorINodeDirectory (non-recursively).visitDirectory in interface NamespaceVisitorpublic void visitSnapshottable(INodeDirectory dir, DirectorySnapshottableFeature snapshottable)
NamespaceVisitorDirectorySnapshottableFeature.visitSnapshottable in interface NamespaceVisitorpublic void preVisitSub(NamespaceVisitor.Element sub, int index, boolean isLast)
NamespaceVisitorNamespaceVisitor.Element.
The sub element may be a child of an INodeDirectory
or a snapshot in DirectorySnapshottableFeature.preVisitSub in interface NamespaceVisitorsub - the element to be visited.index - the index of the sub element.isLast - is the sub element the last element?public void postVisitSub(NamespaceVisitor.Element sub, int index, boolean isLast)
NamespaceVisitorNamespaceVisitor.Element.
The sub element may be a child of an INodeDirectory
or a snapshot in DirectorySnapshottableFeature.postVisitSub in interface NamespaceVisitorsub - the element just visited.index - the index of the sub element.isLast - is the sub element the last element?Copyright © 2008–2025 Apache Software Foundation. All rights reserved.