public interface BlockLocation extends java.lang.Comparable<BlockLocation>
Modifier and Type | Method and Description |
---|---|
java.lang.String[] |
getHosts()
Get the list of hosts (hostname) hosting this block.
|
long |
getLength()
Get the length of the block.
|
long |
getOffset()
Get the start offset of the file associated with this block.
|
java.lang.String[] getHosts() throws java.io.IOException
java.io.IOException
- thrown if the list of hosts could not be retrievedlong getOffset()
long getLength()