1 21 22 package org.apache.derby.iapi.sql.execute; 23 24 import org.apache.derby.iapi.error.StandardException; 25 26 import org.apache.derby.iapi.sql.ResultDescription; 27 import org.apache.derby.iapi.sql.ResultSet; 28 import org.apache.derby.iapi.sql.Activation; 29 30 import org.apache.derby.iapi.services.loader.GeneratedMethod; 31 32 import org.apache.derby.iapi.store.access.Qualifier; 33 34 45 public interface ResultSetFactory { 46 49 String MODULE = "org.apache.derby.iapi.sql.execute.ResultSetFactory"; 50 51 55 65 ResultSet getDDLResultSet(Activation activation) 66 throws StandardException; 67 68 69 73 83 ResultSet getMiscResultSet(Activation activation) 84 throws StandardException; 85 86 98 ResultSet getSetTransactionResultSet(Activation activation) 99 throws StandardException; 100 101 116 ResultSet getInsertResultSet(NoPutResultSet source, 117 GeneratedMethod checkGM) 118 throws StandardException; 119 120 132 ResultSet getInsertVTIResultSet(NoPutResultSet source, 133 NoPutResultSet vtiRS) 134 throws StandardException; 135 136 147 ResultSet getDeleteVTIResultSet(NoPutResultSet source) 148 throws StandardException; 149 150 163 ResultSet getDeleteResultSet(NoPutResultSet source) 164 throws StandardException; 165 166 185 ResultSet getDeleteCascadeResultSet(NoPutResultSet source, 186 int constantActionItem, 187 ResultSet[] dependentResultSets, 188 String resultSetId) 189 throws StandardException; 190 191 205 ResultSet getUpdateResultSet(NoPutResultSet source, 206 GeneratedMethod checkGM) 207 throws StandardException; 208 209 215 public ResultSet getUpdateVTIResultSet(NoPutResultSet source) 216 throws StandardException; 217 218 234 ResultSet getDeleteCascadeUpdateResultSet(NoPutResultSet source, 235 GeneratedMethod checkGM, 236 int constantActionItem, 237 int rsdItem) 238 throws StandardException; 239 240 251 ResultSet getCallStatementResultSet(GeneratedMethod methodCall, 252 Activation activation) 253 throws StandardException; 254 255 259 300 NoPutResultSet getProjectRestrictResultSet(NoPutResultSet source, 301 GeneratedMethod restriction, 302 GeneratedMethod projection, int resultSetNumber, 303 GeneratedMethod constantRestriction, 304 int mapArrayItem, 305 boolean reuseResult, 306 boolean doesProjection, 307 double optimizerEstimatedRowCount, 308 double optimizerEstimatedCost) throws StandardException; 309 310 345 public NoPutResultSet getHashTableResultSet(NoPutResultSet source, 346 GeneratedMethod singleTableRestriction, 347 Qualifier[][] equijoinQualifiers, 348 GeneratedMethod projection, int resultSetNumber, 349 int mapRefItem, 350 boolean reuseResult, 351 int keyColItem, 352 boolean removeDuplicates, 353 long maxInMemoryRowCount, 354 int initialCapacity, 355 float loadFactor, 356 double optimizerEstimatedRowCount, 357 double optimizerEstimatedCost) 358 throws StandardException; 359 360 388 NoPutResultSet getSortResultSet(NoPutResultSet source, 389 boolean distinct, 390 boolean isInSortedOrder, 391 int orderItem, 392 GeneratedMethod rowAllocator, 393 int rowSize, 394 int resultSetNumber, 395 double optimizerEstimatedRowCount, 396 double optimizerEstimatedCost) 397 throws StandardException; 398 399 420 NoPutResultSet getScalarAggregateResultSet(NoPutResultSet source, 421 boolean isInSortedOrder, 422 int aggregateItem, 423 int orderingItem, 424 GeneratedMethod rowAllocator, 425 int rowSize, 426 int resultSetNumber, 427 boolean singleInputRow, 428 double optimizerEstimatedRowCount, 429 double optimizerEstimatedCost) 430 throws StandardException; 431 432 456 NoPutResultSet getDistinctScalarAggregateResultSet(NoPutResultSet source, 457 boolean isInSortedOrder, 458 int aggregateItem, 459 int orderingItem, 460 GeneratedMethod rowAllocator, 461 int rowSize, 462 int resultSetNumber, 463 boolean singleInputRow, 464 double optimizerEstimatedRowCount, 465 double optimizerEstimatedCost) 466 throws StandardException; 467 468 488 NoPutResultSet getGroupedAggregateResultSet(NoPutResultSet source, 489 boolean isInSortedOrder, 490 int aggregateItem, 491 int orderingItem, 492 GeneratedMethod rowAllocator, 493 int rowSize, 494 int resultSetNumber, 495 double optimizerEstimatedRowCount, 496 double optimizerEstimatedCost) 497 throws StandardException; 498 499 522 NoPutResultSet getDistinctGroupedAggregateResultSet(NoPutResultSet source, 523 boolean isInSortedOrder, 524 int aggregateItem, 525 int orderingItem, 526 GeneratedMethod rowAllocator, 527 int rowSize, 528 int resultSetNumber, 529 double optimizerEstimatedRowCount, 530 double optimizerEstimatedCost) 531 throws StandardException; 532 533 552 NoPutResultSet getAnyResultSet(NoPutResultSet source, 553 GeneratedMethod emptyRowFun, int resultSetNumber, 554 int subqueryNumber, int pointOfAttachment, 555 double optimizerEstimatedRowCount, 556 double optimizerEstimatedCost) 557 throws StandardException; 558 559 581 NoPutResultSet getOnceResultSet(NoPutResultSet source, 582 GeneratedMethod emptyRowFun, 583 int cardinalityCheck, int resultSetNumber, 584 int subqueryNumber, int pointOfAttachment, 585 double optimizerEstimatedRowCount, 586 double optimizerEstimatedCost) 587 throws StandardException; 588 589 616 NoPutResultSet getRowResultSet(Activation activation, GeneratedMethod row, 617 boolean canCacheRow, 618 int resultSetNumber, 619 double optimizerEstimatedRowCount, 620 double optimizerEstimatedCost) 621 throws StandardException; 622 623 648 public NoPutResultSet getVTIResultSet(Activation activation, GeneratedMethod row, 649 int resultSetNumber, 650 GeneratedMethod constructor, 651 String javaClassName, 652 Qualifier[][] pushedQualifiers, 653 int erdNumber, 654 boolean version2, boolean reuseablePs, 655 int ctcNumber, 656 boolean isTarget, 657 int scanIsolationLevel, 658 double optimizerEstimatedRowCount, 659 double optimizerEstimatedCost) 660 throws StandardException; 661 662 723 NoPutResultSet getHashScanResultSet( 724 Activation activation, 725 long conglomId, 726 int scociItem, 727 GeneratedMethod resultRowAllocator, 728 int resultSetNumber, 729 GeneratedMethod startKeyGetter, 730 int startSearchOperator, 731 GeneratedMethod stopKeyGetter, 732 int stopSearchOperator, 733 boolean sameStartStopPosition, 734 Qualifier[][] scanQualifiers, 735 Qualifier[][] nextQualifiers, 736 int initialCapacity, 737 float loadFactor, 738 int maxCapacity, 739 int hashKeyColumn, 740 String tableName, 741 String userSuppliedOptimizerOverrides, 742 String indexName, 743 boolean isConstraint, 744 boolean forUpdate, 745 int colRefItem, 746 int indexColItem, 747 int lockMode, 748 boolean tableLocked, 749 int isolationLevel, 750 double optimizerEstimatedRowCount, 751 double optimizerEstimatedCost) 752 throws StandardException; 753 754 789 NoPutResultSet getDistinctScanResultSet( 790 Activation activation, 791 long conglomId, 792 int scociItem, 793 GeneratedMethod resultRowAllocator, 794 int resultSetNumber, 795 int hashKeyColumn, 796 String tableName, 797 String userSuppliedOptimizerOverrides, 798 String indexName, 799 boolean isConstraint, 800 int colRefItem, 801 int lockMode, 802 boolean tableLocked, 803 int isolationLevel, 804 double optimizerEstimatedRowCount, 805 double optimizerEstimatedCost) 806 throws StandardException; 807 808 871 NoPutResultSet getTableScanResultSet( 872 Activation activation, 873 long conglomId, 874 int scociItem, 875 GeneratedMethod resultRowAllocator, 876 int resultSetNumber, 877 GeneratedMethod startKeyGetter, 878 int startSearchOperator, 879 GeneratedMethod stopKeyGetter, 880 int stopSearchOperator, 881 boolean sameStartStopPosition, 882 Qualifier[][] qualifiers, 883 String tableName, 884 String userSuppliedOptimizerOverrides, 885 String indexName, 886 boolean isConstraint, 887 boolean forUpdate, 888 int colRefItem, 889 int indexColItem, 890 int lockMode, 891 boolean tableLocked, 892 int isolationLevel, 893 boolean oneRowScan, 894 double optimizerEstimatedRowCount, 895 double optimizerEstimatedCost) 896 throws StandardException; 897 898 962 NoPutResultSet getBulkTableScanResultSet( 963 Activation activation, 964 long conglomId, 965 int scociItem, 966 GeneratedMethod resultRowAllocator, 967 int resultSetNumber, 968 GeneratedMethod startKeyGetter, 969 int startSearchOperator, 970 GeneratedMethod stopKeyGetter, 971 int stopSearchOperator, 972 boolean sameStartStopPosition, 973 Qualifier[][] qualifiers, 974 String tableName, 975 String userSuppliedOptimizerOverrides, 976 String indexName, 977 boolean isConstraint, 978 boolean forUpdate, 979 int colRefItem, 980 int indexColItem, 981 int lockMode, 982 boolean tableLocked, 983 int isolationLevel, 984 int rowsPerRead, 985 boolean oneRowScan, 986 double optimizerEstimatedRowCount, 987 double optimizerEstimatedCost) 988 throws StandardException; 989 1024 public NoPutResultSet getIndexRowToBaseRowResultSet( 1025 long conglomId, 1026 int scoci, 1027 NoPutResultSet source, 1028 GeneratedMethod resultRowAllocator, 1029 int resultSetNumber, 1030 String indexName, 1031 int heapColRefItem, 1032 int indexColRefItem, 1033 int indexColMapItem, 1034 GeneratedMethod restriction, 1035 boolean forUpdate, 1036 double optimizerEstimatedRowCount, 1037 double optimizerEstimatedCost) 1038 throws StandardException; 1039 1040 1074 public NoPutResultSet getNestedLoopJoinResultSet(NoPutResultSet leftResultSet, 1075 int leftNumCols, 1076 NoPutResultSet rightResultSet, 1077 int rightNumCols, 1078 GeneratedMethod joinClause, 1079 int resultSetNumber, 1080 boolean oneRowRightSide, 1081 boolean notExistsRightSide, 1082 double optimizerEstimatedRowCount, 1083 double optimizerEstimatedCost, 1084 String userSuppliedOptimizerOverrides) 1085 throws StandardException; 1086 1087 1114 public NoPutResultSet getHashJoinResultSet(NoPutResultSet leftResultSet, 1115 int leftNumCols, 1116 NoPutResultSet rightResultSet, 1117 int rightNumCols, 1118 GeneratedMethod joinClause, 1119 int resultSetNumber, 1120 boolean oneRowRightSide, 1121 boolean notExistsRightSide, 1122 double optimizerEstimatedRowCount, 1123 double optimizerEstimatedCost, 1124 String userSuppliedOptimizerOverrides) 1125 throws StandardException; 1126 1127 1128 1165 public NoPutResultSet getNestedLoopLeftOuterJoinResultSet(NoPutResultSet leftResultSet, 1166 int leftNumCols, 1167 NoPutResultSet rightResultSet, 1168 int rightNumCols, 1169 GeneratedMethod joinClause, 1170 int resultSetNumber, 1171 GeneratedMethod emptyRowFun, 1172 boolean wasRightOuterJoin, 1173 boolean oneRowRightSide, 1174 boolean notExistsRightSide, 1175 double optimizerEstimatedRowCount, 1176 double optimizerEstimatedCost, 1177 String userSuppliedOptimizerOverrides) 1178 throws StandardException; 1179 1180 1210 public NoPutResultSet getHashLeftOuterJoinResultSet(NoPutResultSet leftResultSet, 1211 int leftNumCols, 1212 NoPutResultSet rightResultSet, 1213 int rightNumCols, 1214 GeneratedMethod joinClause, 1215 int resultSetNumber, 1216 GeneratedMethod emptyRowFun, 1217 boolean wasRightOuterJoin, 1218 boolean oneRowRightSide, 1219 boolean notExistsRightSide, 1220 double optimizerEstimatedRowCount, 1221 double optimizerEstimatedCost, 1222 String userSuppliedOptimizerOverrides) 1223 throws StandardException; 1224 1225 1239 NoPutResultSet getMaterializedResultSet(NoPutResultSet source, 1240 int resultSetNumber, 1241 double optimizerEstimatedRowCount, 1242 double optimizerEstimatedCost) 1243 throws StandardException; 1244 1245 1262 NoPutResultSet getScrollInsensitiveResultSet(NoPutResultSet source, Activation activation, 1263 int resultSetNumber, 1264 int sourceRowWidth, 1265 boolean scrollable, 1266 double optimizerEstimatedRowCount, 1267 double optimizerEstimatedCost) 1268 throws StandardException; 1269 1270 1284 NoPutResultSet getNormalizeResultSet(NoPutResultSet source, 1285 int resultSetNumber, int erdNumber, 1286 double optimizerEstimatedRowCount, 1287 double optimizerEstimatedCost, 1288 boolean forUpdate) 1289 throws StandardException; 1290 1291 1302 NoPutResultSet getCurrentOfResultSet(String cursorName, Activation activation, 1303 int resultSetNumber, String psName); 1304 1305 1326 NoPutResultSet getUnionResultSet(NoPutResultSet source1, 1327 NoPutResultSet source2, 1328 int resultSetNumber, 1329 double optimizerEstimatedRowCount, 1330 double optimizerEstimatedCost) 1331 throws StandardException; 1332 1333 1334 1358 NoPutResultSet getSetOpResultSet( NoPutResultSet leftSource, 1359 NoPutResultSet rightSource, 1360 Activation activation, 1361 int resultSetNumber, 1362 long optimizerEstimatedRowCount, 1363 double optimizerEstimatedCost, 1364 int opType, 1365 boolean all, 1366 int intermediateOrderByColumnsSavedObject, 1367 int intermediateOrderByDirectionSavedObject) 1368 throws StandardException; 1369 1370 1371 1375 1376 1377 1409 NoPutResultSet getLastIndexKeyResultSet 1410 ( 1411 Activation activation, 1412 int resultSetNumber, 1413 GeneratedMethod resultRowAllocator, 1414 long conglomId, 1415 String tableName, 1416 String userSuppliedOptimizerOverrides, 1417 String indexName, 1418 int colRefItem, 1419 int lockMode, 1420 boolean tableLocked, 1421 int isolationLevel, 1422 double optimizerEstimatedRowCount, 1423 double optimizerEstimatedCost 1424 ) throws StandardException; 1425 1426 1427 1492 public NoPutResultSet getRaDependentTableScanResultSet( 1493 Activation activation, 1494 long conglomId, 1495 int scociItem, 1496 GeneratedMethod resultRowAllocator, 1497 int resultSetNumber, 1498 GeneratedMethod startKeyGetter, 1499 int startSearchOperator, 1500 GeneratedMethod stopKeyGetter, 1501 int stopSearchOperator, 1502 boolean sameStartStopPosition, 1503 Qualifier[][] qualifiers, 1504 String tableName, 1505 String userSuppliedOptimizerOverrides, 1506 String indexName, 1507 boolean isConstraint, 1508 boolean forUpdate, 1509 int colRefItem, 1510 int indexColItem, 1511 int lockMode, 1512 boolean tableLocked, 1513 int isolationLevel, 1514 boolean oneRowScan, 1515 double optimizerEstimatedRowCount, 1516 double optimizerEstimatedCost, 1517 String parentResultSetId, 1518 long fkIndexConglomId, 1519 int fkColArrayItem, 1520 int rltItem) 1521 throws StandardException; 1522} 1523 | Popular Tags |