org.apache.hadoop.fs.s3
Class INode
java.lang.Object
org.apache.hadoop.fs.s3.INode
public class INode
- extends java.lang.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 java.io.InputStream serialize()
throws java.io.IOException
- Throws:
java.io.IOException
deserialize
public static INode deserialize(java.io.InputStream in)
throws java.io.IOException
- Throws:
java.io.IOException
Copyright © 2009 The Apache Software Foundation