org.apache.hadoop.fs.s3
Class INode
java.lang.Object
org.apache.hadoop.fs.s3.INode
public class INode
- extends Object
Holds file metadata including type (regular file, or directory),
and the list of blocks that are pointers to the data.
Constructor Summary |
INode(org.apache.hadoop.fs.s3.INode.FileType fileType,
Block[] blocks)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FILE_TYPES
public static final org.apache.hadoop.fs.s3.INode.FileType[] FILE_TYPES
DIRECTORY_INODE
public static final INode DIRECTORY_INODE
INode
public INode(org.apache.hadoop.fs.s3.INode.FileType fileType,
Block[] blocks)
getBlocks
public Block[] getBlocks()
getFileType
public org.apache.hadoop.fs.s3.INode.FileType getFileType()
isDirectory
public boolean isDirectory()
isFile
public boolean isFile()
getSerializedLength
public long getSerializedLength()
serialize
public InputStream serialize()
throws IOException
- Throws:
IOException
deserialize
public static INode deserialize(InputStream in)
throws IOException
- Throws:
IOException
Copyright © 2009 The Apache Software Foundation