示例#1
0
 /**
  * Method getAdjacentLinksQueryString
  *
  * @param config
  * @return
  */
 public static final String getAdjacentLinksQueryString(Config config) {
   if (config.isIncoming()) {
     return "SELECT ID,SOURCE NODE_ID,SOURCE_OUTDEGREE NODE_DEGREE,LENGTH,EDGE_MODE,ROUTE_ID FROM "
         + config.getEdgeTable()
         + " WHERE TARGET=?";
   } else {
     return "SELECT ID,TARGET NODE_ID,TARGET_INDEGREE NODE_DEGREE, LENGTH,EDGE_MODE,ROUTE_ID FROM "
         + config.getEdgeTable()
         + " WHERE SOURCE=?";
   }
 }
示例#2
0
 /**
  * Method getNodeQueryString
  *
  * @param config
  * @return
  */
 public static final String getNodeQueryString(Config config) {
   if (config.isIncoming()) {
     return "SELECT SOURCE_C_OUTDEGREE NODE_DEGREE FROM "
         + config.getEdgeTable()
         + " WHERE SOURCE=?";
   } else {
     return "SELECT TARGET_C_INDEGREE  NODE_DEGREE FROM "
         + config.getEdgeTable()
         + " WHERE TARGET=?";
   }
 }
示例#3
0
 /**
  * Method getLinkQueryString
  *
  * @param config
  * @return
  */
 public static String getLinkQueryString(Config config) {
   if (config.isIncoming()) {
     return "SELECT SOURCE,TARGET,SOURCE_OUTDEGREE NODE_DEGREE,LENGTH FROM "
         + config.getEdgeTable()
         + " WHERE ID = ? AND EDGE_MODE="
         + NWMode.CONTINUOUS;
   } else {
     return "SELECT SOURCE,TARGET,TARGET_INDEGREE  NODE_DEGREE, LENGTH FROM "
         + config.getEdgeTable()
         + " WHERE ID = ? AND EDGE_MODE="
         + NWMode.CONTINUOUS;
   }
 }
示例#4
0
 /**
  * Method getContinuousNodeQueryString
  *
  * @param config
  * @return
  */
 public static final String getContinuousNodeQueryString(Config config) {
   if (config.isIncoming()) {
     return "SELECT SOURCE_C_OUTDEGREE NODE_DEGREE FROM "
         + config.getEdgeTable()
         + " WHERE SOURCE=? AND EDGE_MODE="
         + NWMode.CONTINUOUS;
   } else {
     return "SELECT TARGET_C_INDEGREE  NODE_DEGREE FROM "
         + config.getEdgeTable()
         + " WHERE TARGET=? AND EDGE_MODE="
         + NWMode.CONTINUOUS;
   }
 }
示例#5
0
 /**
  * Method getAdjacentContinuousLinksQueryString
  *
  * @param config
  * @return
  */
 public static final String getAdjacentContinuousLinksQueryString(Config config) {
   if (config.isIncoming()) {
     return "SELECT ID,SOURCE NODE_ID,SOURCE_C_OUTDEGREE NODE_DEGREE,LENGTH FROM "
         + config.getEdgeTable()
         + " WHERE TARGET=? AND EDGE_MODE="
         + NWMode.CONTINUOUS;
   } else {
     return "SELECT ID,TARGET NODE_ID, TARGET_C_INDEGREE NODE_DEGREE,LENGTH FROM "
         + config.getEdgeTable()
         + " WHERE SOURCE=? AND EDGE_MODE="
         + NWMode.CONTINUOUS;
   }
 }