2.0.0-beta
Bugfix
- fix: #329 correct the return value type and clearly the interface generic.#335
- fix: remove JDK8's internal API: ParameterizedTypeImpl
Feature
-
feat: Entity Direct Search. (#319, via: @xYLiuuuuuu)
-
Entities can extend
GraphBaseVertex
orGraphBaseEdge
to support direct search.- GraphBaseVertex:
API Usage instructions queryIdsByProperties() Query a collection of vertex ids for a particular Tag or attribute queryVertexById() Query a single vertex for a specific vertex Id queryVertexByTag() Query a collection of vertices for a specific Tag queryVertexByProperties() Query a collection of vertexes for a specific property queryAllAdjacentVertex(Class<?>... edgeClass) Query a collection of all neighboring vertexes of a particular vertex, specifying one or more edge types that connect the two vertexes queryIncomingAdjacentVertex(Class<?>... edgeClass) Query the set of adjacent vertexes in the direction of the incoming edge of a particular vertex, specifying one or more edge types that connect two vertexes queryOutgoingAdjacentVertex(Class<?>... edgeClass) Query the set of adjacent vertexes in the direction of the edge of a particular vertex, specifying one or more edge types that connect two vertexes queryNeighborIdsWithHopById(int m, int n, Class<?>... edgeClass) Query a collection of vertex ids within a specified number of hops for a particular vertex, specifying one or more edge types that connect two vertexes queryConnectedEdgesById(Direction direction) Query the set of all edges associated with a particular vertex, specifying the direction and type of the edge queryPathFromVertex(Direction direction) Query the collection of all paths associated with a particular vertex, specifying the direction of the edge queryFixedLengthPathFromVertex(Integer maxHop, Direction direction, Class<?>... edgeClass) Query a set of fixed-length paths from a specific vertex, specifying the maximum number of steps, the direction of the edge, and the type of the edge queryVariableLengthPathFromVertex(Integer minHop, Integer maxHop, Direction direction, Class<?>... edgeClass) Query a set of variable-length paths from a specific vertex, specifying the minimum number of steps, the maximum number of steps, the direction of the edge, and the type of the edge queryShortestPathFromSrcAndDst(Integer maxHop, Direction direction, T v2) Query any shortest path from a specific vertex, specifying the number of steps, the direction of the edge, and the end vertex entity queryAllShortestPathsFromSrcAndDst(Integer maxHop, Direction direction, T v2) Query the set of all shortest paths from this vertex, specifying the number of steps, the direction of the edge, and the end vertex entity queryVertexCountByTag() Query the number of vertexes for a specific Tag - GraphBaseEdge:
API Usage instructions queryEdgeByType(Direction direction) Query a set of edges of a specific type and direction queryEdgeWithSrcAndDstByProperties(T srcVertex, Direction direction, T dstVertex) Query a set of edges for a particular property queryEdgePropertiesBySrcAndDstId() Query a set of edges for a specific always vertex id queryEdgeCountByType() Query the number of edges for a specific Type
-
-
feat: fix #324 add insertForce(v) insertSelectiveForce(v) into NebulaDaoBasic.#335
-
feat:
@Space
annotation and space config in mapper xml supports dynamic configuration. (#318, via: @charle004)@Space
注解的 name 属性值和 xml 文件中 Mapper 标签指定的 Space 可通过 spring 配置文件自定义配置。 -
feat: support multiple mapper-locations in yml. (#318, via: @charle004)
-
feat: SessionPool support
spaceFromParam
.
2.0.0-beta
Bug修复
新特性
-
feat: 实体直接搜索。 (#319, 来自:@xYLiuuuuuu)
-
实体可以继承
GraphBaseVertex
或GraphBaseEdge
来支持直接搜索。- GraphBaseVertex:
API 用法说明 queryIdsByProperties() 查询特定Tag或者属性的点Id集合 queryVertexById() 查询特定点Id的单个点 queryVertexByTag() 查询特定Tag的点集合 queryVertexByProperties() 查询特定属性的点集合 queryAllAdjacentVertex(Class<?>... edgeClass) 查询特定点的所有邻点集合,可指定一个或多个连接两点的边类型 queryIncomingAdjacentVertex(Class<?>... edgeClass) 查询特定点入边方向的邻点集合,可指定一个或多个连接两点的边类型 queryOutgoingAdjacentVertex(Class<?>... edgeClass) 查询特定点出边方向的邻点集合,可指定一个或多个连接两点的边类型 queryNeighborIdsWithHopById(int m, int n, Class<?>... edgeClass) 查询特定点指定跳数内的点Id集合,可指定一个或多个连接两点的边类型 queryConnectedEdgesById(Direction direction) 查询特定点关联的所有边集合,可指定边的方向和类型 queryPathFromVertex(Direction direction) 查询特定点关联的所有路径集合,可指定边的方向 queryFixedLengthPathFromVertex(Integer maxHop, Direction direction, Class<?>... edgeClass) 查询特定点出发的定长路径集合,可指定最大步数、边的方向、边的类型 queryVariableLengthPathFromVertex(Integer minHop, Integer maxHop, Direction direction, Class<?>... edgeClass) 查询特定点出发的变长路径集合,可指定最小步数、最大步数、边的方向、边的类型 queryShortestPathFromSrcAndDst(Integer maxHop, Direction direction, T v2) 查询特定点出发的任意一条最短路径,可指定步数、边的方向、终点实体 queryAllShortestPathsFromSrcAndDst(Integer maxHop, Direction direction, T v2) 查询从该点出发的所有最短路径集合,可指定步数、边的方向、终点实体 queryVertexCountByTag() 查询特定Tag的点的数量 - GraphBaseEdge:
API 用法说明 queryEdgeByType(Direction direction) 查询特定类型、方向的边集合 queryEdgeWithSrcAndDstByProperties(T srcVertex, Direction direction, T dstVertex) 查询特定属性的边集合 queryEdgePropertiesBySrcAndDstId() 查询特定始终点id的边集合 queryEdgeCountByType() 查询特定Type的边的数量
-
-
feat: 修复 #324 在 NebulaDaoBasic 中增加 insertForce(v) insertSelectiveForce(v)。#335
-
feat:
@Space
注解和 Mapper xml 中的 space 配置支持动态配置。 (#318, 来自:@charle004) -
feat: 支持 yml 中配置多个 mapper-locations。 (#318, 来自:@charle004)
-
feat: SessionPool 支持使用
spaceFromParam
进行运行时的图空间切换,包括运行后才创建的图空间。
Full Changelog: v1.3.0...v2.0.0-beta