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 BlockLocation
IOException
public long getLength()
getLength
in interface BlockLocation
public long getOffset()
getOffset
in interface BlockLocation
public int compareTo(BlockLocation o)
compareTo
in interface Comparable<BlockLocation>
Copyright © 2014–2016 The Apache Software Foundation. All rights reserved.