|
|
@ -11,8 +11,8 @@ import com.supervision.nebula.dto.graph.GraphSpace;
|
|
|
|
import com.supervision.nebula.dto.graph.GraphVertexTatAttributeQuery;
|
|
|
|
import com.supervision.nebula.dto.graph.GraphVertexTatAttributeQuery;
|
|
|
|
import com.supervision.nebula.dto.graph.GraphVertexTatsQuery;
|
|
|
|
import com.supervision.nebula.dto.graph.GraphVertexTatsQuery;
|
|
|
|
import com.supervision.nebula.util.NebulaUtil;
|
|
|
|
import com.supervision.nebula.util.NebulaUtil;
|
|
|
|
|
|
|
|
import lombok.RequiredArgsConstructor;
|
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
|
|
|
|
|
import org.springframework.stereotype.Service;
|
|
|
|
import org.springframework.stereotype.Service;
|
|
|
|
|
|
|
|
|
|
|
|
import java.util.List;
|
|
|
|
import java.util.List;
|
|
|
@ -24,10 +24,10 @@ import java.util.Map;
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
@Service
|
|
|
|
@Service
|
|
|
|
@Slf4j
|
|
|
|
@Slf4j
|
|
|
|
|
|
|
|
@RequiredArgsConstructor
|
|
|
|
public class VertexService {
|
|
|
|
public class VertexService {
|
|
|
|
|
|
|
|
|
|
|
|
@Autowired
|
|
|
|
private final GraphCommonService graphCommonService;
|
|
|
|
GraphCommonService graphCommonService;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public List<NebulaVertexJsonResult> vertexList(String space) {
|
|
|
|
public List<NebulaVertexJsonResult> vertexList(String space) {
|
|
|
|
return graphCommonService.executeJson(NebulaUtil.queryMatch(space), NebulaVertexJsonResult.class);
|
|
|
|
return graphCommonService.executeJson(NebulaUtil.queryMatch(space), NebulaVertexJsonResult.class);
|
|
|
@ -40,9 +40,6 @@ public class VertexService {
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* tag查询
|
|
|
|
* tag查询
|
|
|
|
*
|
|
|
|
|
|
|
|
* @param graphVertexTatsQuery
|
|
|
|
|
|
|
|
* @return
|
|
|
|
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
public List<NebulaVertexJsonResult> vertexTagsQuery(GraphVertexTatsQuery graphVertexTatsQuery) {
|
|
|
|
public List<NebulaVertexJsonResult> vertexTagsQuery(GraphVertexTatsQuery graphVertexTatsQuery) {
|
|
|
|
String vidType = graphCommonService.getVidType(graphVertexTatsQuery.getSpace());
|
|
|
|
String vidType = graphCommonService.getVidType(graphVertexTatsQuery.getSpace());
|
|
|
@ -51,9 +48,6 @@ public class VertexService {
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* tag根据属性查询
|
|
|
|
* tag根据属性查询
|
|
|
|
*
|
|
|
|
|
|
|
|
* @param graphVertexTatAttributeQuery
|
|
|
|
|
|
|
|
* @return
|
|
|
|
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
public List<NebulaVertexJsonResult> vertexTagAttributeQuery(GraphVertexTatAttributeQuery graphVertexTatAttributeQuery) {
|
|
|
|
public List<NebulaVertexJsonResult> vertexTagAttributeQuery(GraphVertexTatAttributeQuery graphVertexTatAttributeQuery) {
|
|
|
|
return graphCommonService.executeJson(NebulaUtil.vertexTagAttributeQuery(graphVertexTatAttributeQuery), NebulaVertexJsonResult.class);
|
|
|
|
return graphCommonService.executeJson(NebulaUtil.vertexTagAttributeQuery(graphVertexTatAttributeQuery), NebulaVertexJsonResult.class);
|
|
|
@ -61,9 +55,6 @@ public class VertexService {
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* 点分页查询
|
|
|
|
* 点分页查询
|
|
|
|
*
|
|
|
|
|
|
|
|
* @param graphVertexTatsQuery
|
|
|
|
|
|
|
|
* @return
|
|
|
|
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
public Map<String, Object> vertexPage(GraphVertexTatsQuery graphVertexTatsQuery) {
|
|
|
|
public Map<String, Object> vertexPage(GraphVertexTatsQuery graphVertexTatsQuery) {
|
|
|
|
List<NebulaVertexJsonResult> list;
|
|
|
|
List<NebulaVertexJsonResult> list;
|
|
|
@ -88,9 +79,6 @@ public class VertexService {
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* 获取随机点列表
|
|
|
|
* 获取随机点列表
|
|
|
|
*
|
|
|
|
|
|
|
|
* @param graphSpace
|
|
|
|
|
|
|
|
* @return
|
|
|
|
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
public List<NebulaVertexJsonResult> randomList(GraphSpace graphSpace) {
|
|
|
|
public List<NebulaVertexJsonResult> randomList(GraphSpace graphSpace) {
|
|
|
|
|
|
|
|
|
|
|
|