Java org.apache.hadoop.fs BlockLocation fields, constructors, methods, implement or subclass

Example usage for Java org.apache.hadoop.fs BlockLocation fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for org.apache.hadoop.fs BlockLocation.

The text is from its open source code.

Constructor

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

Method

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
longgetLength()
Get the length of the block
String[]getNames()
Get the list of names (IP:xferPort) hosting this block
longgetOffset()
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.
booleanisCorrupt()
Get the corrupt flag.
StringtoString()