public class IgfsBlockLocationImpl extends Object implements IgfsBlockLocation, Externalizable, Binarylizable
| 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 |
readBinary(BinaryReader reader)
Reads fields from provided reader.
|
void |
readExternal(ObjectInput in) |
long |
start()
Start position in the file this block relates to.
|
String |
toString() |
void |
writeBinary(BinaryWriter writer)
Writes fields to provided writer.
|
void |
writeExternal(ObjectOutput out) |
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 ExternalizableIOExceptionpublic void readExternal(ObjectInput in) throws IOException
readExternal in interface ExternalizableIOExceptionpublic void writeBinary(BinaryWriter writer) throws BinaryObjectException
writeBinary in interface Binarylizablewriter - Binary object writer.BinaryObjectException - In case of error.public void readBinary(BinaryReader reader) throws BinaryObjectException
readBinary in interface Binarylizablereader - Binary object reader.BinaryObjectException - In case of error.
Follow @ApacheIgnite
Ignite Fabric : ver. 1.7.0 Release Date : August 1 2016