public class IgfsPathIds extends Object
| Constructor and Description |
|---|
IgfsPathIds(IgfsPath path,
String[] parts,
IgniteUuid[] ids)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addExistingIds(Collection<IgniteUuid> col,
boolean relaxed)
Add existing IDs to provided collection.
|
void |
addSurrogateIds(Collection<IgniteUuid> col)
Add surrogate IDs to provided collection potentially creating them on demand.
|
boolean |
allExists()
Whether all parts exists.
|
int |
count()
Get number of elements.
|
IgniteUuid |
id(int idx)
Get ID at the give index.
|
boolean |
isLastIndex(int idx)
Whether provided index denotes last entry in the path.
|
IgniteUuid |
lastExistingId()
Get ID of the last existing entry.
|
int |
lastExistingIndex()
Get index of the last existing entry.
|
IgfsPath |
lastExistingPath()
Get path of the last existing element.
|
boolean |
lastExists()
Whether last entry exists.
|
IgniteUuid |
lastId()
Get last ID.
|
boolean |
lastParentExists()
Whether parent of the last entry exists.
|
IgniteUuid |
lastParentId()
Get last parent ID.
|
String |
lastPart()
Get last part of original path.
|
IgfsPathIds |
parent()
Get parent entity.
|
String |
part(int idx)
Get path part at the given index.
|
IgfsPath |
path()
Get original path.
|
IgniteUuid |
surrogateId(int idx)
Get surrogate ID at the given index.
|
boolean |
verifyIntegrity(Map<IgniteUuid,IgfsEntryInfo> infos,
boolean relaxed)
Verify that observed paths are found in provided infos in the right order.
|
public IgfsPathIds(IgfsPath path, String[] parts, IgniteUuid[] ids)
path - Path.parts - Path parts.ids - IDs.public IgfsPathIds parent()
public int count()
public IgfsPath path()
public String part(int idx)
idx - Index.public String lastPart()
public IgniteUuid lastId()
@Nullable public IgniteUuid lastParentId()
public boolean isLastIndex(int idx)
idx - Index.True if last.public IgfsPath lastExistingPath()
public boolean allExists()
True if all parts were found.public boolean lastExists()
True if exists.public boolean lastParentExists()
True if exists.public IgniteUuid lastExistingId()
public int lastExistingIndex()
public void addExistingIds(Collection<IgniteUuid> col, boolean relaxed)
col - Collection.relaxed - Relaxed mode flag.public void addSurrogateIds(Collection<IgniteUuid> col)
col - Collection.public IgniteUuid id(int idx)
idx - Index.public IgniteUuid surrogateId(int idx)
idx - Index.public boolean verifyIntegrity(Map<IgniteUuid,IgfsEntryInfo> infos, boolean relaxed)
infos - Info.relaxed - Whether to perform check in relaxed mode.True if full integrity is preserved.
Follow @ApacheIgnite
Ignite Fabric : ver. 2.1.0 Release Date : July 20 2017