| 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.hadoop.fs.BlockLocation
public class BlockLocation
| Constructor Summary | |
|---|---|
BlockLocation()
Default Constructor  | 
|
BlockLocation(String[] names,
              String[] hosts,
              long offset,
              long length)
Constructor with host, name, offset and length  | 
|
| Method Summary | |
|---|---|
 String[] | 
getHosts()
Get the list of hosts (hostname) hosting this block  | 
 long | 
getLength()
Get the length of the block  | 
 String[] | 
getNames()
Get the list of names (hostname:port) hosting this block  | 
 long | 
getOffset()
Get the start offset of file associated with this block  | 
 void | 
readFields(DataInput in)
Implement readFields of Writable  | 
 void | 
setHosts(String[] hosts)
Set the hosts hosting this block  | 
 void | 
setLength(long length)
Set the length of block  | 
 void | 
setNames(String[] names)
Set the names (host:port) hosting this block  | 
 void | 
setOffset(long offset)
Set the start offset of file associated with this block  | 
 String | 
toString()
 | 
 void | 
write(DataOutput out)
Implement write of Writable  | 
| Methods inherited from class java.lang.Object | 
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait | 
| Constructor Detail | 
|---|
public BlockLocation()
public BlockLocation(String[] names,
                     String[] hosts,
                     long offset,
                     long length)
| Method Detail | 
|---|
public String[] getHosts()
                  throws IOException
IOException
public String[] getNames()
                  throws IOException
IOExceptionpublic long getOffset()
public long getLength()
public void setOffset(long offset)
public void setLength(long length)
public void setHosts(String[] hosts)
              throws IOException
IOException
public void setNames(String[] names)
              throws IOException
IOException
public void write(DataOutput out)
           throws IOException
write in interface Writableout - DataOuput to serialize this object into.
IOException
public void readFields(DataInput in)
                throws IOException
readFields in interface Writablein - DataInput to deseriablize this object from.
IOExceptionpublic String toString()
toString in class Object
  | 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||