@Public public interface BlockLocation extends Comparable<BlockLocation>
Modifier and Type | Method and Description |
---|---|
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.
|
compareTo
String[] getHosts() throws IOException
IOException
- thrown if the list of hosts could not be retrievedlong getOffset()
long getLength()
Copyright © 2014–2020 The Apache Software Foundation. All rights reserved.