public class BlockInfo extends Object
Modifier and Type | Field and Description |
---|---|
long |
BLOCK_ID |
int |
BLOCK_INDEX |
long |
LENGTH |
long |
OFFSET |
Modifier and Type | Method and Description |
---|---|
void |
addLocation(long workerId,
NetAddress workerAddress) |
static long |
computeBlockId(int inodeId,
int blockIndex) |
static int |
computeBlockIndex(long blockId) |
static int |
computeInodeId(long blockId) |
ClientBlockInfo |
generateClientBlockInfo() |
List<Pair<Long,Long>> |
getBlockIdWorkerIdPairs() |
InodeFile |
getInodeFile() |
List<NetAddress> |
getLocations() |
boolean |
isInMemory() |
void |
removeLocation(long workerId) |
String |
toString() |
public final int BLOCK_INDEX
public final long BLOCK_ID
public final long OFFSET
public final long LENGTH
public void addLocation(long workerId, NetAddress workerAddress)
public InodeFile getInodeFile()
public List<NetAddress> getLocations()
public ClientBlockInfo generateClientBlockInfo()
public boolean isInMemory()
public void removeLocation(long workerId)
public static long computeBlockId(int inodeId, int blockIndex)
public static int computeBlockIndex(long blockId)
public static int computeInodeId(long blockId)
Copyright © 2013. All rights reserved.