|
@@ -18,10 +18,6 @@ public class CreateUtilsDBServiceImpl implements CreateUtilsDBService {
|
|
|
|
|
|
@Override
|
|
|
public String bufferTable(String tableName, float radius) {
|
|
|
- long timestamp = System.currentTimeMillis();
|
|
|
- String[] tableNames = Strings.split(tableName, '_');
|
|
|
-
|
|
|
-
|
|
|
String newTableName = StringUtils.getTemporaryTableName();
|
|
|
createUtilsDBMapper.bufferTable(tableName, radius, newTableName);
|
|
|
return newTableName;
|
|
@@ -29,11 +25,6 @@ public class CreateUtilsDBServiceImpl implements CreateUtilsDBService {
|
|
|
|
|
|
@Override
|
|
|
public String bufferTable(String tableName, String column) {
|
|
|
- long timestamp = System.currentTimeMillis();
|
|
|
- String[] tableNames = Strings.split(tableName, '_');
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
String newTableName = StringUtils.getTemporaryTableName();
|
|
|
createUtilsDBMapper.bufferColumnTable(tableName, column, newTableName);
|
|
|
return newTableName;
|
|
@@ -41,20 +32,16 @@ public class CreateUtilsDBServiceImpl implements CreateUtilsDBService {
|
|
|
|
|
|
@Override
|
|
|
public String bufferEekt(String ewkt, float radius) {
|
|
|
- ewkt= createUtilsDBMapper.bufferEwkt(ewkt, radius);
|
|
|
+ ewkt = createUtilsDBMapper.bufferEwkt(ewkt, radius);
|
|
|
return ewkt;
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
public String differenceTableWkt(String tableName, List<String> tableIds, String ewkt) {
|
|
|
|
|
|
- if(ewkt.equals("")){
|
|
|
- return tableName;
|
|
|
- }
|
|
|
- long timestamp = System.currentTimeMillis();
|
|
|
- String[] tableNames = Strings.split(tableName, '_');
|
|
|
-
|
|
|
-
|
|
|
+ if (ewkt.equals("")) {
|
|
|
+ return tableName;
|
|
|
+ }
|
|
|
String newTableName = StringUtils.getTemporaryTableName();
|
|
|
createUtilsDBMapper.differenceTableWkt(tableName, tableIds, ewkt, newTableName);
|
|
|
return newTableName;
|
|
@@ -63,14 +50,8 @@ public class CreateUtilsDBServiceImpl implements CreateUtilsDBService {
|
|
|
@Override
|
|
|
public String differenceTables(String tableNameA, List<String> tableIdsA, String tableNameB) {
|
|
|
long timestamp = System.currentTimeMillis();
|
|
|
- String[] tableNamesA = Strings.split(tableNameA, '_');
|
|
|
- String[] tableNamesB = Strings.split(tableNameB, '_');
|
|
|
-
|
|
|
-
|
|
|
String newTableName = StringUtils.getTemporaryTableName();
|
|
|
|
|
|
-
|
|
|
-
|
|
|
String temporaryTable = "temporaryTable_" + timestamp;
|
|
|
createUtilsDBMapper.differenceTables(tableNameA, tableIdsA, tableNameB, newTableName, temporaryTable);
|
|
|
return newTableName;
|
|
@@ -80,13 +61,9 @@ public class CreateUtilsDBServiceImpl implements CreateUtilsDBService {
|
|
|
@Override
|
|
|
public String intersectionTableWkt(String tableName, List<String> tableIds, String ewkt) {
|
|
|
|
|
|
- if(ewkt.equals("")){
|
|
|
+ if (ewkt.equals("")) {
|
|
|
return tableName;
|
|
|
}
|
|
|
- long timestamp = System.currentTimeMillis();
|
|
|
- String[] tableNames = Strings.split(tableName, '_');
|
|
|
-
|
|
|
-
|
|
|
String newTableName = StringUtils.getTemporaryTableName();
|
|
|
|
|
|
createUtilsDBMapper.intersectionTableWkt(tableName, tableIds, ewkt, newTableName);
|
|
@@ -95,13 +72,22 @@ public class CreateUtilsDBServiceImpl implements CreateUtilsDBService {
|
|
|
|
|
|
@Override
|
|
|
public String intersectionTables(String tableNameA, List<String> tableIdsA, String tableNameB) {
|
|
|
- long timestamp = System.currentTimeMillis();
|
|
|
- String[] tableNamesA = Strings.split(tableNameA, '_');
|
|
|
- String[] tableNamesB = Strings.split(tableNameB, '_');
|
|
|
-
|
|
|
-
|
|
|
String newTableName = StringUtils.getTemporaryTableName();
|
|
|
createUtilsDBMapper.intersectionTables(tableNameA, tableIdsA, tableNameB, newTableName);
|
|
|
return newTableName;
|
|
|
}
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public String getLtBandValue(String tableNameA, String tableNameB, Double value) {
|
|
|
+ String newTableName = StringUtils.getTemporaryTableName();
|
|
|
+ createUtilsDBMapper.getLtBandValue(tableNameA, tableNameB, newTableName, value);
|
|
|
+ return newTableName;
|
|
|
+ }
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public String getGtBandValue(String tableNameA, String tableNameB, Double value) {
|
|
|
+ String newTableName = StringUtils.getTemporaryTableName();
|
|
|
+ createUtilsDBMapper.getGtBandValue(tableNameA, tableNameB, newTableName, value);
|
|
|
+ return newTableName;
|
|
|
+ }
|
|
|
}
|