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) |
IgfsBlockLocationImpl(long start,
long len,
Collection<String> names,
Collection<String> hosts) |
IgfsBlockLocationImpl(long start,
long len,
IgfsBlockLocation block) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
int |
hashCode() |
Collection<String> |
hosts()
Compliant with Hadoop interface.
|
void |
increaseLength(long addLen) |
long |
length()
Length of the data block in the file.
|
void |
length(long len) |
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 IgfsBlockLocationImpl(long start,
long len,
IgfsBlockLocation block)
start - Start.len - Length.block - Block.public IgfsBlockLocationImpl(long start,
long len,
Collection<String> names,
Collection<String> hosts)
start - Start.len - Length.names - Collection of host:port addresses.hosts - Collection of host:port addresses.public long start()
IgfsBlockLocationstart in interface IgfsBlockLocationpublic long length()
IgfsBlockLocationlength in interface IgfsBlockLocationpublic void increaseLength(long addLen)
addLen - Length to increase.public void length(long len)
len - Block length.public 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. 2.1.0 Release Date : July 20 2017