|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.apache.nutch.ndfs.Block
A Block is a Nutch FS primitive, identified by a long.
| Constructor Summary | |
Block()
|
|
Block(File f,
long len)
Find the blockid from the given filename |
|
Block(long blkid,
long len)
|
|
| Method Summary | |
int |
compareTo(Object o)
|
long |
getBlockId()
|
String |
getBlockName()
|
long |
getNumBytes()
|
static boolean |
isBlockFilename(File f)
|
void |
readFields(DataInput in)
Reads the fields of this object from in. |
void |
setNumBytes(long len)
|
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,
long len)
public Block(File f,
long len)
| Method Detail |
public static boolean isBlockFilename(File f)
public long getBlockId()
public String getBlockName()
public long getNumBytes()
public void setNumBytes(long len)
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 | ||||||||||