public interface Node extends Entity<java.lang.Long>
Modifier and Type | Method and Description |
---|---|
Relationship |
createRelationshipTo(Node otherNode,
RelationshipType type)
创建并返回此点与另一点的指定边类型的边
|
void |
delete()
删除此点
|
int |
getDegree()
返回所有与此点连接的边数量
|
int |
getDegree(Direction direction)
返回此点指定方向的边数量
|
int |
getDegree(RelationshipType type)
返回指定类型此点的边数量
|
int |
getDegree(RelationshipType type,
Direction direction)
返回此点指定类型指定方向的边数量
|
java.lang.Long |
getId()
返回实体唯一标识ID=
|
java.lang.String |
getNodeType()
返回此点的类型名
|
java.lang.String |
getPkName(java.lang.String typeName)
获取此点的主键名
|
java.lang.String |
getPkValue()
返回此点的主键值
|
java.lang.Iterable<Relationship> |
getRelationships()
返回此点上的所有边的迭代器
|
java.lang.Iterable<Relationship> |
getRelationships(Direction dir)
返回此点指定方向的边迭代器
|
java.lang.Iterable<Relationship> |
getRelationships(Direction direction,
RelationshipType... types)
返回此点指定某些类型指定方向的边的迭代器
|
java.lang.Iterable<Relationship> |
getRelationships(RelationshipType... types)
返回此点指定某些类型的边的迭代器
|
java.lang.Iterable<Relationship> |
getRelationships(RelationshipType type,
Direction dir)
返回此点指定方向的某些类型的边迭代器
|
java.lang.Iterable<RelationshipType> |
getRelationshipTypes()
返回此点边类型的迭代器
|
Relationship |
getSingleRelationship(RelationshipType type,
Direction dir)
返回此点指定方向和边类型的一条边
|
boolean |
hasRelationship()
查看此点是否存在边
|
boolean |
hasRelationship(Direction dir)
查看此点是否存在指定方向的边
|
boolean |
hasRelationship(Direction direction,
RelationshipType... types)
查看此点是否存在某类指定方向的边
|
boolean |
hasRelationship(RelationshipType... types)
查看此点是否存在某类边
|
boolean |
isType(NodeType type)
判断是否为指定的点类型
|
getAllProperties, getProperties, getProperty, getProperty, getPropertyKeys, hasProperty, removeProperty, setProperty
java.lang.Long getId()
void delete()
java.lang.Iterable<Relationship> getRelationships()
boolean hasRelationship()
java.lang.Iterable<Relationship> getRelationships(RelationshipType... types)
types
- 边的某些类型java.lang.Iterable<Relationship> getRelationships(Direction direction, RelationshipType... types)
types
- 边的某些类型direction
- 边的方向boolean hasRelationship(RelationshipType... types)
types
- 边的某些类型boolean hasRelationship(Direction direction, RelationshipType... types)
types
- 边的某些类型direction
- 边的方向java.lang.Iterable<Relationship> getRelationships(Direction dir)
dir
- 边的方向boolean hasRelationship(Direction dir)
dir
- 边的方向java.lang.Iterable<Relationship> getRelationships(RelationshipType type, Direction dir)
dir
- 边的方向type
- 边的某些类型Relationship getSingleRelationship(RelationshipType type, Direction dir)
type
- 边的类型dir
- 边的方向Relationship createRelationshipTo(Node otherNode, RelationshipType type)
otherNode
- 新边的终止点type
- 新边的类型java.lang.Iterable<RelationshipType> getRelationshipTypes()
int getDegree()
int getDegree(RelationshipType type)
type
- 边的类型int getDegree(Direction direction)
direction
- 边方向int getDegree(RelationshipType type, Direction direction)
direction
- 边方向type
- 边的类型boolean isType(NodeType type)
type
- 点的类型java.lang.String getNodeType()
java.lang.String getPkValue()
java.lang.String getPkName(java.lang.String typeName)
typeName
- 类型名