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