public class GridGgfsBlockLocationImpl extends Object implements org.gridgain.grid.ggfs.GridGgfsBlockLocation, Externalizable
| Constructor and Description |
|---|
GridGgfsBlockLocationImpl()
Empty constructor for externalizable.
|
GridGgfsBlockLocationImpl(org.apache.hadoop.fs.BlockLocation location) |
GridGgfsBlockLocationImpl(org.gridgain.grid.ggfs.GridGgfsBlockLocation location,
long len) |
GridGgfsBlockLocationImpl(long start,
long len,
Collection<org.gridgain.grid.GridNode> nodes) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
int |
hashCode() |
Collection<String> |
hosts() |
long |
length() |
Collection<String> |
names() |
Collection<UUID> |
nodeIds() |
void |
readExternal(ObjectInput in)
Reads object from data input.
|
long |
start() |
String |
toString() |
void |
writeExternal(ObjectOutput out)
Writes this object to data output.
|
public GridGgfsBlockLocationImpl()
public GridGgfsBlockLocationImpl(org.apache.hadoop.fs.BlockLocation location)
throws IOException
location - HDFS block location.IOException - In case of any IO exception.public GridGgfsBlockLocationImpl(org.gridgain.grid.ggfs.GridGgfsBlockLocation location,
long len)
location - HDFS block location.len - New length.public GridGgfsBlockLocationImpl(long start,
long len,
Collection<org.gridgain.grid.GridNode> nodes)
start - Start.len - Length.nodes - Affinity nodes.public long start()
start in interface org.gridgain.grid.ggfs.GridGgfsBlockLocationpublic long length()
length in interface org.gridgain.grid.ggfs.GridGgfsBlockLocationpublic Collection<UUID> nodeIds()
nodeIds in interface org.gridgain.grid.ggfs.GridGgfsBlockLocationpublic Collection<String> names()
names in interface org.gridgain.grid.ggfs.GridGgfsBlockLocationpublic Collection<String> hosts()
hosts in interface org.gridgain.grid.ggfs.GridGgfsBlockLocationpublic 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.Copyright © 2014. All rights reserved.