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 |
getHeader()
Get text output for the header line.
|
protected org.apache.hadoop.fs.permission.PermissionStatus |
getPermission(long perm) |
int |
getStoragePolicy(FsImageProto.INodeSection.XAttrFeatureProto xattrFeatureProto) |
void |
visit(RandomAccessFile file) |
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()
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
IOException
public void visit(RandomAccessFile file) 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)
Copyright © 2008–2023 Apache Software Foundation. All rights reserved.