public final class HadoopBlockLocation extends Object implements BlockLocation
BlockLocation interface for the
Hadoop Distributed File System.| Constructor and Description |
|---|
HadoopBlockLocation(org.apache.hadoop.fs.BlockLocation blockLocation)
Creates a new block location
|
public HadoopBlockLocation(org.apache.hadoop.fs.BlockLocation blockLocation)
blockLocation - the original HDFS block locationpublic String[] getHosts() throws IOException
getHosts in interface BlockLocationIOExceptionpublic long getLength()
getLength in interface BlockLocationpublic long getOffset()
getOffset in interface BlockLocationpublic int compareTo(BlockLocation o)
compareTo in interface Comparable<BlockLocation>Copyright © 2015 The Apache Software Foundation. All rights reserved.