net.nutch.util
Class NutchFile

java.lang.Object
  extended bynet.nutch.util.NutchFile

public class NutchFile
extends Object

A class that names a file in the "NutchFileSpace". You can convert a NutchFile to a real file with the help of an instance of NutchFileSystem.

Author:
Mike Cafarella

Constructor Summary
NutchFile(NutchFile dir, String name)
          Create a NutchFile from a previous one that is a directory.
NutchFile(NutchFileSystem nfs, String dbName, String shareGroupName, File name)
          A NutchFile contains: dbName, which labels the cooperating NutchFileSystem it belongs to.
 
Method Summary
 String getCompleteFlagName()
          Get the almost-fully-qualified name for this NutchFile's 'completed' flag file.
 String getDBName()
          DB Name the NutchFile lives in.
 String getFilename()
          Get the almost-fully-qualified name for this NutchFile.
 NutchFileSystem getFS()
          Grab a handle to the NutchFileSystem
 File getName()
          Terminating filename for the NutchFile.
 String getShareGroupName()
          Get the name of the sharegroup this file belongs to.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NutchFile

public NutchFile(NutchFileSystem nfs,
                 String dbName,
                 String shareGroupName,
                 File name)
A NutchFile contains: dbName, which labels the cooperating NutchFileSystem it belongs to. shareGroupName, which tells the NutchFileSystem which group should get access to this file. If the value is null, then no remote group will get access. name, which gives the file a unique name.


NutchFile

public NutchFile(NutchFile dir,
                 String name)
Create a NutchFile from a previous one that is a directory.

Method Detail

getDBName

public String getDBName()
DB Name the NutchFile lives in.


getShareGroupName

public String getShareGroupName()
Get the name of the sharegroup this file belongs to.


getName

public File getName()
Terminating filename for the NutchFile.


getFS

public NutchFileSystem getFS()
Grab a handle to the NutchFileSystem


getFilename

public String getFilename()
Get the almost-fully-qualified name for this NutchFile.


getCompleteFlagName

public String getCompleteFlagName()
Get the almost-fully-qualified name for this NutchFile's 'completed' flag file.


toString

public String toString()


Copyright © 2004 The Nutch Organization.