org.apache.nutch.ndfs
Class NDFSFileInfo

java.lang.Object
  extended byorg.apache.nutch.ndfs.NDFSFileInfo
All Implemented Interfaces:
Writable

public class NDFSFileInfo
extends Object
implements Writable

NDFSFileInfo tracks info about remote files, including name, size, etc.

Author:
Mike Cafarella

Constructor Summary
NDFSFileInfo()
           
NDFSFileInfo(UTF8 path, long len, long contentsLen, boolean isDir)
           
 
Method Summary
 long getContentsLen()
           
 long getLen()
           
 String getName()
           
 String getParent()
           
 String getPath()
           
 boolean isDir()
           
 void readFields(DataInput in)
          Reads the fields of this object from in.
 void write(DataOutput out)
          Writes the fields of this object to out.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NDFSFileInfo

public NDFSFileInfo()

NDFSFileInfo

public NDFSFileInfo(UTF8 path,
                    long len,
                    long contentsLen,
                    boolean isDir)
Method Detail

getPath

public String getPath()

getName

public String getName()

getParent

public String getParent()

getLen

public long getLen()

getContentsLen

public long getContentsLen()

isDir

public boolean isDir()

write

public void write(DataOutput out)
           throws IOException
Description copied from interface: Writable
Writes the fields of this object to out.

Specified by:
write in interface Writable
Throws:
IOException

readFields

public void readFields(DataInput in)
                throws IOException
Description copied from interface: Writable
Reads the fields of this object from in. For efficiency, implementations should attempt to re-use storage in the existing object where possible.

Specified by:
readFields in interface Writable
Throws:
IOException


Copyright © 2006 The Apache Software Foundation