java.io.Closeable, java.lang.AutoCloseablepublic class PBImageDelimitedTextWriter
extends java.lang.Object
| Modifier and Type | Method | Description |
|---|---|---|
void |
afterOutput() |
Method called at the end of output() phase after all the inodes
with known parentPath has been printed out.
|
protected void |
buildNamespace(java.io.InputStream in,
java.util.List<java.lang.Long> refIdList) |
Scan the INodeDirectory section to construct the namespace.
|
protected void |
checkNode(FsImageProto.INodeSection.INode p,
java.util.concurrent.atomic.AtomicInteger numDirs) |
Checks the inode (saves if directory), and counts them.
|
void |
close() |
|
java.lang.String |
getEntry(java.lang.String parent,
FsImageProto.INodeSection.INode inode) |
Get text output for the given inode.
|
java.lang.String |
getErasureCodingPolicyName(FsImageProto.INodeSection.XAttrFeatureProto xattrFeatureProto) |
|
java.lang.String |
getHeader() |
Get text output for the header line.
|
protected org.apache.hadoop.fs.permission.PermissionStatus |
getPermission(long perm) |
|
int |
getStoragePolicy(FsImageProto.INodeSection.XAttrFeatureProto xattrFeatureProto) |
|
static void |
mergeFiles(java.lang.String[] srcPaths,
java.lang.String resultPath) |
|
protected java.io.PrintStream |
serialOutStream() |
|
void |
visit(java.lang.String filePath) |
public java.lang.String getEntry(java.lang.String parent,
FsImageProto.INodeSection.INode inode)
parent - the path of parent directoryinode - the INode object to output.public java.lang.String getHeader()
public void afterOutput()
protected java.io.PrintStream serialOutStream()
public void close()
throws java.io.IOException
close in interface java.lang.AutoCloseableclose in interface java.io.Closeablejava.io.IOExceptionpublic void visit(java.lang.String filePath)
throws java.io.IOException
java.io.IOExceptionprotected org.apache.hadoop.fs.permission.PermissionStatus getPermission(long perm)
protected void checkNode(FsImageProto.INodeSection.INode p, java.util.concurrent.atomic.AtomicInteger numDirs) throws java.io.IOException
java.io.IOExceptionprotected void buildNamespace(java.io.InputStream in,
java.util.List<java.lang.Long> refIdList)
throws java.io.IOException
java.io.IOExceptionpublic int getStoragePolicy(FsImageProto.INodeSection.XAttrFeatureProto xattrFeatureProto)
public static void mergeFiles(java.lang.String[] srcPaths,
java.lang.String resultPath)
throws java.io.IOException
srcPaths - Source files of contents to be mergedresultPath - Merged file pathjava.io.IOExceptionpublic java.lang.String getErasureCodingPolicyName(FsImageProto.INodeSection.XAttrFeatureProto xattrFeatureProto)
Copyright © 2008–2025 Apache Software Foundation. All rights reserved.