org.apache.hadoop.nfs.nfs3
Class FileHandle

java.lang.Object
  extended by org.apache.hadoop.nfs.nfs3.FileHandle

public class FileHandle
extends Object

This is a file handle use by the NFS clients. Server returns this handle to the client, which is used by the client on subsequent operations to reference the file.


Constructor Summary
FileHandle()
           
FileHandle(long v)
          Handle is a 32 bytes number.
FileHandle(String s)
           
 
Method Summary
 boolean deserialize(XDR xdr)
           
 boolean equals(Object o)
           
 byte[] getContent()
           
 long getFileId()
           
 int hashCode()
           
 boolean serialize(XDR out)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FileHandle

public FileHandle()

FileHandle

public FileHandle(long v)
Handle is a 32 bytes number. For HDFS, the last 8 bytes is fileId.


FileHandle

public FileHandle(String s)
Method Detail

serialize

public boolean serialize(XDR out)

deserialize

public boolean deserialize(XDR xdr)

getFileId

public long getFileId()

getContent

public byte[] getContent()

toString

public String toString()
Overrides:
toString in class Object

equals

public boolean equals(Object o)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object


Copyright © 2009 The Apache Software Foundation