public final class BlockInfo extends Object
| Constructor and Description |
|---|
BlockInfo(long start,
long end,
String[] hosts)
Creates a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
long |
getEnd()
Returns the end byte position of this block in the file.
|
List<String> |
getHosts()
Returns the host names.
|
long |
getStart()
Returns the start byte position of this block in the file.
|
boolean |
isSameOwner(BlockInfo other)
Returns whether this and the other block has same owner(s).
|
String |
toString() |
public BlockInfo(long start,
long end,
String[] hosts)
start - start byte position (inclusive)end - end byte position (exclusive)hosts - host names, or null for emptypublic long getStart()
public long getEnd()
public List<String> getHosts()
public boolean isSameOwner(BlockInfo other)
true.other - the other blocktrue if the both has same owner, otherwise falseIllegalArgumentException - if some parameters were nullCopyright © 2011–2018 Asakusa Framework Team. All rights reserved.