Commit a7b76387 by qiuchaofei

1.在指定schema下搜索表2

parent 1712fa28
......@@ -205,7 +205,8 @@ public class TableServiceImpl implements ITableService {
// match(n) where (n:Neo4jTable or n:Neo4jSchema ) and (n.name =~'.*部门1.*' or n.cnName =~'.*部门1.*') return n
//match (n:MetaData) where n.name=~'(?i).*APP.*' return n
String cypher = // "match (n) where ( n:Neo4jTable or n:Neo4jSchema ) and (n.name=~'(?i).*"+name+".*' or n.name=~'(?i).*"+name+".*') return n skip "+offsetInt+" limit "+countInt;
"match (n:Neo4jSchema)-[r:Composition]->(m:Neo4jTable) where m.name =~'.*"+keyWord+".*' or m.name =~'.*"+keyWord+".*' return m ";
"match (n:Neo4jSchema{metadataId:\""+schemaId+"\"})-[r:Composition]->(m:Neo4jTable) " +
" where m.name =~'.*"+keyWord+".*' or m.cnName =~'.*"+keyWord+".*' return m ";
long starttime = System.currentTimeMillis();
StatementResult result = session.run(cypher);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment