public final class Path extends Entity
Constructor and Description |
---|
Path()
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
addEntityName(java.lang.String name,
java.lang.String entityId)
Add entity data i.e (id and the type of node (e1 --> author of)).
|
void |
addSubPath(int pathsInclude,
java.util.Queue<Triple> subPath)
Add a sub path to path node.
|
java.util.Map<java.lang.Integer,java.util.Queue<Triple>> |
getData()
Get the path and its all nodes and edges.
|
java.util.Map<java.lang.String,java.util.List<java.lang.String>> |
getEntitiesId()
Get the list of all entities and their ids.
|
java.lang.String |
getId()
Get the path node id.
|
java.lang.String |
getSqlCommand() |
void |
setId(java.lang.String id)
Set the path node id.
|
addAttribute, getAttributed
public java.lang.String getId()
public void setId(java.lang.String id)
id
- String contains the id of path node.public java.util.Map<java.lang.Integer,java.util.Queue<Triple>> getData()
public void addSubPath(int pathsInclude, java.util.Queue<Triple> subPath)
pathsInclude
- id of path in path node.subPath
- sub path that to be added to path node.public void addEntityName(java.lang.String name, java.lang.String entityId)
name
- Type of node i.e(author of).entityId
- Id of node in entity store.public java.util.Map<java.lang.String,java.util.List<java.lang.String>> getEntitiesId()
public java.lang.String getSqlCommand()
getSqlCommand
in class Entity