|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectnet.nutch.fs.Block
A Block is a Nutch FS primitive, identified by a long.
| Constructor Summary | |
Block()
|
|
Block(File f)
Find the blockid from the given filename |
|
Block(long blkid)
|
|
| Method Summary | |
int |
compareTo(Object o)
|
long |
getBlockId()
|
String |
getBlockName()
|
static boolean |
isBlockFilename(File f)
|
void |
readFields(DataInput in)
Reads the fields of this object from in. |
String |
toString()
|
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, wait, wait, wait |
| Constructor Detail |
public Block()
public Block(long blkid)
public Block(File f)
| Method Detail |
public static boolean isBlockFilename(File f)
public long getBlockId()
public String getBlockName()
public String toString()
public void write(DataOutput out)
throws IOException
Writableout.
write in interface WritableIOException
public void readFields(DataInput in)
throws IOException
Writablein. For efficiency,
implementations should attempt to re-use storage in the existing object
where possible.
readFields in interface WritableIOExceptionpublic int compareTo(Object o)
compareTo in interface Comparable
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||