Example usage for Java org.apache.hadoop.fs BlockLocation fields, constructors, methods, implement or subclass
The text is from its open source code.
BlockLocation(String[] names, String[] hosts, long offset, long length) Constructor with host, name, offset and length | |
BlockLocation() Default Constructor | |
BlockLocation(String[] names, String[] hosts, long offset, long length, boolean corrupt) Constructor with host, name, offset, length and corrupt flag | |
BlockLocation(String[] names, String[] hosts, String[] topologyPaths, long offset, long length) Constructor with host, name, network topology, offset and length |
String[] | getCachedHosts() Get the list of hosts (hostname) hosting a cached replica of the block |
String[] | getHosts() Get the list of hosts (hostname) hosting this block |
long | getLength() Get the length of the block |
String[] | getNames() Get the list of names (IP:xferPort) hosting this block |
long | getOffset() Get the start offset of file associated with this block |
String[] | getStorageIds() Get the storageID of each replica of the block. |
String[] | getTopologyPaths() Get the list of network topology paths for each of the hosts. |
boolean | isCorrupt() Get the corrupt flag. |
String | toString() |