public class IgfsFileMap extends Object implements Externalizable
| Constructor and Description |
|---|
IgfsFileMap()
Empty constructor.
|
IgfsFileMap(IgfsFileMap old)
Constructs same file map as passed in.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addRange(IgfsFileAffinityRange range)
Adds range to the list of already existing ranges.
|
IgniteUuid |
affinityKey(long blockOff,
boolean includeMoved)
Gets affinity key from file map based on block start offset.
|
void |
deleteRange(IgfsFileAffinityRange range)
Deletes range from map.
|
List<IgfsFileAffinityRange> |
ranges()
Gets full list of ranges present in this map.
|
void |
readExternal(ObjectInput in) |
String |
toString() |
void |
updateRangeStatus(IgfsFileAffinityRange range,
int status)
Updates range status in file map.
|
void |
writeExternal(ObjectOutput out) |
public IgfsFileMap()
public IgfsFileMap(@Nullable IgfsFileMap old)
old - Old map.public IgniteUuid affinityKey(long blockOff, boolean includeMoved)
blockOff - Block start offset (divisible by block size).includeMoved - If true then will return affinity key for ranges marked as moved.
Otherwise will return null for such ranges.public void updateRangeStatus(IgfsFileAffinityRange range, int status) throws IgniteCheckedException
range - Range to update status.status - New range status.IgniteCheckedException - If range was not found.public void deleteRange(IgfsFileAffinityRange range) throws IgniteCheckedException
range - Range to delete.IgniteCheckedExceptionpublic List<IgfsFileAffinityRange> ranges()
public void addRange(IgfsFileAffinityRange range)
range - Range to add.public void writeExternal(ObjectOutput out) throws IOException
writeExternal in interface ExternalizableIOExceptionpublic void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal in interface ExternalizableIOExceptionClassNotFoundException
Follow @ApacheIgnite
Ignite Fabric : ver. 1.1.0-incubating Release Date : May 20 2015