public class PBImageDelimitedTextWriter extends Object
Modifier and Type | Method and 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(InputStream in,
List<Long> refIdList)
Scan the INodeDirectory section to construct the namespace.
|
protected void |
checkNode(FsImageProto.INodeSection.INode p,
AtomicInteger numDirs)
Checks the inode (saves if directory), and counts them.
|
void |
close() |
String |
getEntry(String parent,
FsImageProto.INodeSection.INode inode)
Get text output for the given inode.
|
String |
getErasureCodingPolicyName(FsImageProto.INodeSection.XAttrFeatureProto xattrFeatureProto) |
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(String[] srcPaths,
String resultPath) |
protected PrintStream |
serialOutStream() |
void |
visit(String filePath) |
public String getEntry(String parent, FsImageProto.INodeSection.INode inode)
parent
- the path of parent directoryinode
- the INode object to output.public String getHeader()
public void afterOutput()
protected PrintStream serialOutStream()
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
IOException
public void visit(String filePath) throws IOException
IOException
protected org.apache.hadoop.fs.permission.PermissionStatus getPermission(long perm)
protected void checkNode(FsImageProto.INodeSection.INode p, AtomicInteger numDirs) throws IOException
IOException
protected void buildNamespace(InputStream in, List<Long> refIdList) throws IOException
IOException
public int getStoragePolicy(FsImageProto.INodeSection.XAttrFeatureProto xattrFeatureProto)
public static void mergeFiles(String[] srcPaths, String resultPath) throws IOException
srcPaths
- Source files of contents to be mergedresultPath
- Merged file pathIOException
public String getErasureCodingPolicyName(FsImageProto.INodeSection.XAttrFeatureProto xattrFeatureProto)
Copyright © 2008–2024 Apache Software Foundation. All rights reserved.