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()
IgfsBlockLocation
start
in interface IgfsBlockLocation
public long length()
IgfsBlockLocation
length
in interface IgfsBlockLocation
public Collection<UUID> nodeIds()
IgfsBlockLocation
nodeIds
in interface IgfsBlockLocation
public Collection<String> names()
names
in interface IgfsBlockLocation
public Collection<String> hosts()
hosts
in interface IgfsBlockLocation
public void writeExternal(ObjectOutput out) throws IOException
writeExternal
in interface Externalizable
IOException
public void readExternal(ObjectInput in) throws IOException
readExternal
in interface Externalizable
IOException
public void writeBinary(BinaryWriter writer) throws BinaryObjectException
writeBinary
in interface Binarylizable
writer
- Binary object writer.BinaryObjectException
- In case of error.public void readBinary(BinaryReader reader) throws BinaryObjectException
readBinary
in interface Binarylizable
reader
- Binary object reader.BinaryObjectException
- In case of error.
Follow @ApacheIgnite
Ignite Fabric : ver. 1.9.0 Release Date : March 2 2017