org.apache.hadoop.nfs.nfs3
Class FileHandle
java.lang.Object
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.
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)
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