145
145
import org .polypheny .db .ddl .DdlManager ;
146
146
import org .polypheny .db .ddl .exception .ColumnNotExistsException ;
147
147
import org .polypheny .db .docker .DockerManager ;
148
- import org .polypheny .db .exploreByExample .Explore ;
149
- import org .polypheny .db .exploreByExample .ExploreManager ;
150
148
import org .polypheny .db .iface .QueryInterface ;
151
149
import org .polypheny .db .iface .QueryInterfaceManager ;
152
150
import org .polypheny .db .iface .QueryInterfaceManager .QueryInterfaceInformation ;
186
184
import org .polypheny .db .webui .models .AdapterModel ;
187
185
import org .polypheny .db .webui .models .DbColumn ;
188
186
import org .polypheny .db .webui .models .DbTable ;
189
- import org .polypheny .db .webui .models .ExploreResult ;
190
187
import org .polypheny .db .webui .models .ForeignKey ;
191
188
import org .polypheny .db .webui .models .HubMeta ;
192
189
import org .polypheny .db .webui .models .HubMeta .TableMapping ;
210
207
import org .polypheny .db .webui .models .UnderlyingTables ;
211
208
import org .polypheny .db .webui .models .requests .BatchUpdateRequest ;
212
209
import org .polypheny .db .webui .models .requests .BatchUpdateRequest .Update ;
213
- import org .polypheny .db .webui .models .requests .ClassifyAllData ;
214
210
import org .polypheny .db .webui .models .requests .ColumnRequest ;
215
211
import org .polypheny .db .webui .models .requests .ConstraintRequest ;
216
212
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 ;
219
213
import org .polypheny .db .webui .models .requests .HubRequest ;
220
214
import org .polypheny .db .webui .models .requests .PartitioningRequest ;
221
215
import org .polypheny .db .webui .models .requests .PartitioningRequest .ModifyPartitionRequest ;
222
- import org .polypheny .db .webui .models .requests .QueryExplorationRequest ;
223
216
import org .polypheny .db .webui .models .requests .QueryRequest ;
224
217
import org .polypheny .db .webui .models .requests .RelAlgRequest ;
225
218
import org .polypheny .db .webui .models .requests .SchemaTreeRequest ;
@@ -920,7 +913,7 @@ public static void attachQueryAnalyzer( InformationManager queryAnalyzer, long e
920
913
* return possibly interesting Data to User
921
914
*/
922
915
public void classifyData ( final Context ctx ) {
923
- ClassifyAllData classifyAllData = ctx .bodyAsClass ( ClassifyAllData .class );
916
+ /* ClassifyAllData classifyAllData = ctx.bodyAsClass( ClassifyAllData.class );
924
917
ExploreManager exploreManager = ExploreManager.getInstance();
925
918
926
919
boolean isConvertedToSql = isClassificationToSql();
@@ -964,15 +957,15 @@ public void classifyData( final Context ctx ) {
964
957
result.setConvertedToSql( isConvertedToSql );
965
958
ctx.json( result );
966
959
}
967
-
960
+ */
968
961
}
969
962
970
963
971
964
/**
972
965
* For pagination within the Explore-by-Example table
973
966
*/
974
967
public void getExploreTables ( final Context ctx ) {
975
- ExploreTables exploreTables = ctx .bodyAsClass ( ExploreTables .class );
968
+ /* ExploreTables exploreTables = ctx.bodyAsClass( ExploreTables.class );
976
969
Transaction transaction = getTransaction();
977
970
Statement statement = transaction.createStatement();
978
971
@@ -1049,15 +1042,15 @@ public void getExploreTables( final Context ctx ) {
1049
1042
result.setClassifiedData( paginationData );
1050
1043
}
1051
1044
ctx.json( result );
1052
-
1045
+ */
1053
1046
}
1054
1047
1055
1048
1056
1049
/**
1057
1050
* Creates the initial query for the Explore-by-Example process
1058
1051
*/
1059
1052
public void createInitialExploreQuery ( final Context ctx ) {
1060
- QueryExplorationRequest queryExplorationRequest = ctx .bodyAsClass ( QueryExplorationRequest .class );
1053
+ /* QueryExplorationRequest queryExplorationRequest = ctx.bodyAsClass( QueryExplorationRequest.class );
1061
1054
ExploreManager exploreManager = ExploreManager.getInstance();
1062
1055
1063
1056
Result result;
@@ -1094,15 +1087,15 @@ public void createInitialExploreQuery( final Context ctx ) {
1094
1087
result.setCurrentPage( queryExplorationRequest.cPage ).setTable( queryExplorationRequest.tableId );
1095
1088
result.setHighestPage( (int) Math.ceil( (double) explore.getTableSize() / getPageSize() ) );
1096
1089
1097
- ctx .json ( result );
1090
+ ctx.json( result );*/
1098
1091
}
1099
1092
1100
1093
1101
1094
/**
1102
1095
* Start Classification, classifies the initial dataset, to show what would be within the final result set
1103
1096
*/
1104
1097
public void exploration ( final Context ctx ) {
1105
- ExploreData exploreData = ctx .bodyAsClass ( ExploreData .class );
1098
+ /* ExploreData exploreData = ctx.bodyAsClass( ExploreData.class );
1106
1099
1107
1100
String[] dataType = new String[exploreData.header.length + 1];
1108
1101
for ( int i = 0; i < exploreData.header.length; i++ ) {
@@ -1113,7 +1106,7 @@ public void exploration( final Context ctx ) {
1113
1106
ExploreManager e = ExploreManager.getInstance();
1114
1107
Explore explore = e.exploreData( exploreData.id, exploreData.classified, dataType );
1115
1108
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() ) );*/
1117
1110
}
1118
1111
1119
1112
0 commit comments