@Internal public class LocalBlockLocation extends Object implements BlockLocation
BlockLocation interface for a local file system.| Constructor and Description |
|---|
LocalBlockLocation(String host,
long length) |
public LocalBlockLocation(String host, long length)
public String[] getHosts() throws IOException
BlockLocationgetHosts in interface BlockLocationIOException - thrown if the list of hosts could not be retrievedpublic long getLength()
BlockLocationgetLength in interface BlockLocationpublic long getOffset()
BlockLocationgetOffset in interface BlockLocationpublic int compareTo(BlockLocation o)
compareTo in interface Comparable<BlockLocation>Copyright © 2014–2017 The Apache Software Foundation. All rights reserved.