public class IgfsBlockLocationImpl extends Object implements IgfsBlockLocation, Externalizable
| Constructor and Description |
|---|
IgfsBlockLocationImpl()
Empty constructor for externalizable.
|
IgfsBlockLocationImpl(IgfsBlockLocation location,
long len) |
IgfsBlockLocationImpl(long start,
long len,
Collection<ClusterNode> nodes) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
int |
hashCode() |
Collection<String> |
hosts()
Compliant with Hadoop interface.
|
long |
length()
Length of the data block in the file.
|
Collection<String> |
names()
Compliant with Hadoop interface.
|
Collection<UUID> |
nodeIds()
Nodes this block belongs to.
|
void |
readExternal(ObjectInput in)
Reads object from data input.
|
long |
start()
Start position in the file this block relates to.
|
String |
toString() |
void |
writeExternal(ObjectOutput out)
Writes this object to data output.
|
public IgfsBlockLocationImpl()
public IgfsBlockLocationImpl(IgfsBlockLocation location, long len)
location - HDFS block location.len - New length.public IgfsBlockLocationImpl(long start,
long len,
Collection<ClusterNode> nodes)
start - Start.len - Length.nodes - Affinity nodes.public long start()
IgfsBlockLocationstart in interface IgfsBlockLocationpublic long length()
IgfsBlockLocationlength in interface IgfsBlockLocationpublic Collection<UUID> nodeIds()
IgfsBlockLocationnodeIds in interface IgfsBlockLocationpublic Collection<String> names()
names in interface IgfsBlockLocationpublic Collection<String> hosts()
hosts in interface IgfsBlockLocationpublic void writeExternal(ObjectOutput out) throws IOException
writeExternal in interface Externalizableout - Data output to write.IOException - If write failed.public void readExternal(ObjectInput in) throws IOException
readExternal in interface Externalizablein - Data input.IOException - If read failed.
Follow @ApacheIgnite
Ignite Fabric : ver. 1.0.0 Release Date : March 31 2015