Skip to content

Commit fb58769

Browse files
committed
Remove explore-by-example, mysql, and cassandra
1 parent 7e847d9 commit fb58769

File tree

10 files changed

+27
-140
lines changed

10 files changed

+27
-140
lines changed

core/src/main/java/org/polypheny/db/catalog/Adapter.java

+3-3
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ public enum Adapter {
2626
MONGODB( "org.polypheny.db.adapter.mongodb.MongoStore" ),
2727
HSQLDB( "org.polypheny.db.adapter.jdbc.stores.HsqldbStore" ),
2828
CSV( "org.polypheny.db.adapter.csv.CsvSource" ),
29-
CASSANDRA( "org.polypheny.db.adapter.cassandra.CassandraStore" ),
29+
//CASSANDRA( "org.polypheny.db.adapter.cassandra.CassandraStore" ),
3030
MONETDB( "org.polypheny.db.adapter.jdbc.stores.MonetdbStore" ),
3131
COTTONTAIL( "org.polypheny.db.adapter.cottontail.CottontailStore" ),
3232
POSTGRESQL( "org.polypheny.db.adapter.jdbc.stores.PostgresqlStore" ),
@@ -86,11 +86,11 @@ public Map<String, String> getDefaultSettings() {
8686
settings.put( "directory", "classpath://hr" );
8787
settings.put( "maxStringLength", "255" );
8888
break;
89-
case CASSANDRA:
89+
/*case CASSANDRA:
9090
settings.put( "mode", "docker" );
9191
settings.put( "instanceId", "0" );
9292
settings.put( "port", "9042" );
93-
break;
93+
break;*/
9494
case MONETDB:
9595
settings.put( "mode", "docker" );
9696
settings.put( "instanceId", "0" );

dbms/build.gradle

+4-4
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ dependencies {
3131
implementation project(":cypher-language")
3232
implementation project(":pig-language")
3333
implementation project(":cql-language")
34-
implementation project(":cassandra-adapter")
34+
//implementation project(":cassandra-adapter")
3535
implementation project(":cottontail-adapter")
3636
implementation project(":csv-adapter")
3737
implementation project(":ethereum-adapter")
@@ -44,7 +44,7 @@ dependencies {
4444
implementation project(":avatica-interface")
4545
implementation project(":http-interface")
4646
implementation project(":rest-interface")
47-
implementation project(":explore-by-example")
47+
//implementation project(":explore-by-example")
4848
implementation project(":monitoring")
4949

5050
////// Logging
@@ -216,12 +216,12 @@ licensee {
216216

217217
compileJava {
218218
dependsOn(":avatica-interface:processResources")
219-
dependsOn(":cassandra-adapter:processResources")
219+
//dependsOn(":cassandra-adapter:processResources")
220220
dependsOn(":catalog:processResources")
221221
dependsOn(":cql-language:processResources")
222222
dependsOn(":csv-adapter:processResources")
223223
dependsOn(":ethereum-adapter:processResources")
224-
dependsOn(":explore-by-example:processResources")
224+
//dependsOn(":explore-by-example:processResources")
225225
dependsOn(":file-adapter:processResources")
226226
dependsOn(":http-interface:processResources")
227227
dependsOn(":jdbc-adapter:processResources")

dbms/src/main/java/org/polypheny/db/PolyphenyDb.java

+2-4
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,6 @@
4545
import org.polypheny.db.ddl.DdlManager;
4646
import org.polypheny.db.ddl.DdlManagerImpl;
4747
import org.polypheny.db.docker.DockerManager;
48-
import org.polypheny.db.exploreByExample.ExploreManager;
49-
import org.polypheny.db.exploreByExample.ExploreQueryProcessor;
5048
import org.polypheny.db.gui.GuiUtils;
5149
import org.polypheny.db.gui.SplashHelper;
5250
import org.polypheny.db.gui.TrayGui;
@@ -379,9 +377,9 @@ public void join( final long millis ) throws InterruptedException {
379377
// Call DockerManager once to remove old containers
380378
DockerManager.getInstance();
381379

382-
final ExploreQueryProcessor exploreQueryProcessor = new ExploreQueryProcessor( transactionManager, authenticator ); // Explore-by-Example
380+
/*final ExploreQueryProcessor exploreQueryProcessor = new ExploreQueryProcessor( transactionManager, authenticator ); // Explore-by-Example
383381
ExploreManager explore = ExploreManager.getInstance();
384-
explore.setExploreQueryProcessor( exploreQueryProcessor );
382+
explore.setExploreQueryProcessor( exploreQueryProcessor );*/
385383

386384
// Add config and monitoring test page for UI testing
387385
if ( testMode ) {

gradle.properties

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
versionMajor = 0
2-
versionMinor = 7
3-
versionMicro = 1
2+
versionMinor = 8
3+
versionMicro = 0
44
isRelease = false
55

66
# org.gradle.parallel = true

information/src/main/java/org/polypheny/db/webui/InformationServer.java

+3-2
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
import io.javalin.http.Context;
2929
import io.javalin.plugin.json.JsonMapper;
3030
import java.io.IOException;
31-
import java.util.Collections;
31+
import java.util.List;
3232
import lombok.extern.slf4j.Slf4j;
3333
import org.eclipse.jetty.websocket.api.Session;
3434
import org.jetbrains.annotations.NotNull;
@@ -180,7 +180,8 @@ private void informationRoutes( final Javalin http ) {
180180

181181

182182
public void getEnabledPlugins( final Context ctx ) {
183-
ctx.json( Collections.singletonList( "Explore-By-Example" ) );
183+
//ctx.json( Collections.singletonList( "Explore-By-Example" ) );
184+
ctx.json( List.of() );
184185
}
185186

186187

jdbc-adapter/build.gradle

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ dependencies {
99
implementation group: "org.hsqldb", name: "hsqldb", version: hsqldb_version // HSQLDB License (BSD-style)
1010
implementation group: "org.postgresql", name: "postgresql", version: postgresql_version // BSD 2-clause
1111
implementation group: "monetdb", name: "monetdb-jdbc-new", version: monetdb_version
12-
implementation group: "org.mariadb.jdbc", name: "mariadb-java-client", version: mariadb_version // LGPL 2.1
12+
//implementation group: "org.mariadb.jdbc", name: "mariadb-java-client", version: mariadb_version // LGPL 2.1
1313

1414

1515
// --- Test Compile ---

jdbc-adapter/src/main/java/org/polypheny/db/adapter/jdbc/sources/MysqlSource.java

-105
This file was deleted.

settings.gradle

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ include 'mql-language'
66
include 'pig-language'
77
include 'cql-language'
88
include 'cypher-language'
9-
include 'cassandra-adapter'
9+
//include 'cassandra-adapter'
1010
include 'csv-adapter'
1111
include 'druid-adapter'
1212
include 'elasticsearch-adapter'
@@ -24,7 +24,7 @@ include 'catalog'
2424
include 'config'
2525
include 'information'
2626
include 'monitoring'
27-
include 'explore-by-example'
27+
//include 'explore-by-example'
2828
include 'rest-interface'
2929
include 'cottontail-adapter'
3030
include 'ethereum-adapter'

webui/build.gradle

+2-2
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ dependencies {
2020
implementation project(":cql-language")
2121
implementation project(":cypher-language")
2222
implementation project(":monitoring")
23-
implementation project(":explore-by-example")
23+
//implementation project(":explore-by-example")
2424

2525
uiFiles group: "org.polypheny", name: "polypheny-ui", version: polypheny_ui_version
2626

@@ -66,7 +66,7 @@ sourceSets {
6666
compileJava {
6767
dependsOn(":cql-language:processResources")
6868
dependsOn(":cypher-language:processResources")
69-
dependsOn(":explore-by-example:processResources")
69+
//dependsOn(":explore-by-example:processResources")
7070
dependsOn(":mql-language:processResources")
7171
dependsOn(":pig-language:processResources")
7272
}

webui/src/main/java/org/polypheny/db/webui/Crud.java

+8-15
Original file line numberDiff line numberDiff line change
@@ -145,8 +145,6 @@
145145
import org.polypheny.db.ddl.DdlManager;
146146
import org.polypheny.db.ddl.exception.ColumnNotExistsException;
147147
import org.polypheny.db.docker.DockerManager;
148-
import org.polypheny.db.exploreByExample.Explore;
149-
import org.polypheny.db.exploreByExample.ExploreManager;
150148
import org.polypheny.db.iface.QueryInterface;
151149
import org.polypheny.db.iface.QueryInterfaceManager;
152150
import org.polypheny.db.iface.QueryInterfaceManager.QueryInterfaceInformation;
@@ -186,7 +184,6 @@
186184
import org.polypheny.db.webui.models.AdapterModel;
187185
import org.polypheny.db.webui.models.DbColumn;
188186
import org.polypheny.db.webui.models.DbTable;
189-
import org.polypheny.db.webui.models.ExploreResult;
190187
import org.polypheny.db.webui.models.ForeignKey;
191188
import org.polypheny.db.webui.models.HubMeta;
192189
import org.polypheny.db.webui.models.HubMeta.TableMapping;
@@ -210,16 +207,12 @@
210207
import org.polypheny.db.webui.models.UnderlyingTables;
211208
import org.polypheny.db.webui.models.requests.BatchUpdateRequest;
212209
import org.polypheny.db.webui.models.requests.BatchUpdateRequest.Update;
213-
import org.polypheny.db.webui.models.requests.ClassifyAllData;
214210
import org.polypheny.db.webui.models.requests.ColumnRequest;
215211
import org.polypheny.db.webui.models.requests.ConstraintRequest;
216212
import org.polypheny.db.webui.models.requests.EditTableRequest;
217-
import org.polypheny.db.webui.models.requests.ExploreData;
218-
import org.polypheny.db.webui.models.requests.ExploreTables;
219213
import org.polypheny.db.webui.models.requests.HubRequest;
220214
import org.polypheny.db.webui.models.requests.PartitioningRequest;
221215
import org.polypheny.db.webui.models.requests.PartitioningRequest.ModifyPartitionRequest;
222-
import org.polypheny.db.webui.models.requests.QueryExplorationRequest;
223216
import org.polypheny.db.webui.models.requests.QueryRequest;
224217
import org.polypheny.db.webui.models.requests.RelAlgRequest;
225218
import org.polypheny.db.webui.models.requests.SchemaTreeRequest;
@@ -920,7 +913,7 @@ public static void attachQueryAnalyzer( InformationManager queryAnalyzer, long e
920913
* return possibly interesting Data to User
921914
*/
922915
public void classifyData( final Context ctx ) {
923-
ClassifyAllData classifyAllData = ctx.bodyAsClass( ClassifyAllData.class );
916+
/*ClassifyAllData classifyAllData = ctx.bodyAsClass( ClassifyAllData.class );
924917
ExploreManager exploreManager = ExploreManager.getInstance();
925918
926919
boolean isConvertedToSql = isClassificationToSql();
@@ -964,15 +957,15 @@ public void classifyData( final Context ctx ) {
964957
result.setConvertedToSql( isConvertedToSql );
965958
ctx.json( result );
966959
}
967-
960+
*/
968961
}
969962

970963

971964
/**
972965
* For pagination within the Explore-by-Example table
973966
*/
974967
public void getExploreTables( final Context ctx ) {
975-
ExploreTables exploreTables = ctx.bodyAsClass( ExploreTables.class );
968+
/*ExploreTables exploreTables = ctx.bodyAsClass( ExploreTables.class );
976969
Transaction transaction = getTransaction();
977970
Statement statement = transaction.createStatement();
978971
@@ -1049,15 +1042,15 @@ public void getExploreTables( final Context ctx ) {
10491042
result.setClassifiedData( paginationData );
10501043
}
10511044
ctx.json( result );
1052-
1045+
*/
10531046
}
10541047

10551048

10561049
/**
10571050
* Creates the initial query for the Explore-by-Example process
10581051
*/
10591052
public void createInitialExploreQuery( final Context ctx ) {
1060-
QueryExplorationRequest queryExplorationRequest = ctx.bodyAsClass( QueryExplorationRequest.class );
1053+
/* QueryExplorationRequest queryExplorationRequest = ctx.bodyAsClass( QueryExplorationRequest.class );
10611054
ExploreManager exploreManager = ExploreManager.getInstance();
10621055
10631056
Result result;
@@ -1094,15 +1087,15 @@ public void createInitialExploreQuery( final Context ctx ) {
10941087
result.setCurrentPage( queryExplorationRequest.cPage ).setTable( queryExplorationRequest.tableId );
10951088
result.setHighestPage( (int) Math.ceil( (double) explore.getTableSize() / getPageSize() ) );
10961089
1097-
ctx.json( result );
1090+
ctx.json( result );*/
10981091
}
10991092

11001093

11011094
/**
11021095
* Start Classification, classifies the initial dataset, to show what would be within the final result set
11031096
*/
11041097
public void exploration( final Context ctx ) {
1105-
ExploreData exploreData = ctx.bodyAsClass( ExploreData.class );
1098+
/*ExploreData exploreData = ctx.bodyAsClass( ExploreData.class );
11061099
11071100
String[] dataType = new String[exploreData.header.length + 1];
11081101
for ( int i = 0; i < exploreData.header.length; i++ ) {
@@ -1113,7 +1106,7 @@ public void exploration( final Context ctx ) {
11131106
ExploreManager e = ExploreManager.getInstance();
11141107
Explore explore = e.exploreData( exploreData.id, exploreData.classified, dataType );
11151108
1116-
ctx.json( new ExploreResult( exploreData.header, explore.getDataAfterClassification(), explore.getId(), explore.getBuildGraph() ) );
1109+
ctx.json( new ExploreResult( exploreData.header, explore.getDataAfterClassification(), explore.getId(), explore.getBuildGraph() ) );*/
11171110
}
11181111

11191112

0 commit comments

Comments
 (0)