![]() |
Quadcap Embeddable Database |
Inheritance diagram for com.quadcap.sql.JoinInnerCursor:

Definition at line 79 of file JoinInnerCursor.java.
Public Member Functions | |
| JoinInnerCursor (Session session, Cursor outer, Cursor ca, int[] caCols, Cursor cb, int[] cbCols, Expression where, Tuple tuple, JoinMapRow row, boolean left, boolean inner) throws SQLException | |
| Constructor takes a whole shitload of parameters. | |
| void | freeRows (Btree index, BlockFile file) throws IOException |
| void | close () throws SQLException |
| Close the cursor and free up any resources (including closing the cursor's transaction if that is feasible) used by the cursor. | |
Protected Member Functions | |
| void | bfirst () throws SQLException |
| final boolean | bnext () throws SQLException |
Package Functions | |
| final IndexConstraint | findIndex (Cursor r, int[] cols) throws SQLException |
| final byte[] | makeInnerKey (Cursor cursor, Row row, long rowId) throws IOException, SQLException |
| final byte[] | makeOuterKey (Cursor cursor, Row row) throws IOException, SQLException |
| final void | makeTemporaryIndexForTable () throws IOException, SQLException |
| final void | makeTemporaryIndexForView () throws IOException, SQLException |
| final Btree | makeInnerIndex () throws IOException, SQLException |
Static Package Functions | |
| final BitSet | intArrayToBitSet (int[] a) |
Package Attributes | |
| Database | db |
| BlockFile | file |
| BlockFile | tempFile |
| int[] | caCols |
| The join columns in the outer table. | |
| byte[] | caKey |
| The current join key. | |
| int | cbCnt |
| Cache number of columns in inner table. | |
| int[] | cbCols |
| The join columns in the inner table. | |
| int[] | cbMap |
| Map inner, non-join-key columns from join cursor to inner cursor pos. | |
| int[] | caMap |
| Map outer columns from join cursor to outer cursor pos. | |
| Table | cbTable |
| If the inner is really a table, or null if it's a view. | |
| IndexConstraint | cbIndex |
| If there's an index on the join columns of the inner table. | |
| Btree | index |
| Either the index from above, or a temporary one we create. | |
| boolean | tempIndex |
| Did we make 'index', or were the columns already indexed? | |
| boolean | mustFreeRows = false |
| Did we make create new (temporary) rows for the inner index? | |
| BCursor | cbKeys |
| Comparator | compare |
| Used to compare the inner and outer join keys. | |
| MapRow | mapRow |
| Temporary used to build keys for inner table index. | |
|
||||||||||||||||||||||||||||||||||||||||||||||||
|
Constructor takes a whole shitload of parameters.
Definition at line 140 of file JoinInnerCursor.java. References com.quadcap.sql.JoinInnerCursor.caCols, com.quadcap.sql.JoinInnerCursor.cbCols, com.quadcap.sql.JoinInnerCursor.db, com.quadcap.sql.JoinInnerCursor.findIndex(), com.quadcap.sql.Tuple.getColumnCount(), and com.quadcap.sql.Session.getDatabase(). |
|
|
Reimplemented from com.quadcap.sql.JoinCursor. Definition at line 218 of file JoinInnerCursor.java. References com.quadcap.sql.JoinInnerCursor.caKey, com.quadcap.sql.JoinInnerCursor.cbCnt, com.quadcap.sql.JoinInnerCursor.cbKeys, com.quadcap.sql.JoinInnerCursor.index, com.quadcap.sql.JoinInnerCursor.makeInnerIndex(), and com.quadcap.sql.JoinMapRow.setB(). |
|
|
Reimplemented from com.quadcap.sql.JoinCursor. Definition at line 233 of file JoinInnerCursor.java. References com.quadcap.sql.JoinInnerCursor.caKey, com.quadcap.sql.JoinInnerCursor.cbKeys, com.quadcap.sql.JoinInnerCursor.cbTable, com.quadcap.sql.JoinInnerCursor.compare, com.quadcap.sql.JoinInnerCursor.db, com.quadcap.sql.Database.getRow(), and com.quadcap.sql.JoinMapRow.setB(). |
|
|
Close the cursor and free up any resources (including closing the cursor's transaction if that is feasible) used by the cursor.
Reimplemented from com.quadcap.sql.JoinCursor. Definition at line 329 of file JoinInnerCursor.java. References com.quadcap.sql.JoinInnerCursor.cbKeys, com.quadcap.sql.Session.getDatabase(), com.quadcap.sql.JoinInnerCursor.index, com.quadcap.sql.JoinInnerCursor.mustFreeRows, com.quadcap.sql.JoinInnerCursor.tempFile, and com.quadcap.sql.JoinInnerCursor.tempIndex. |
|
||||||||||||
|
||||||||||||
|
Definition at line 315 of file JoinInnerCursor.java. References com.quadcap.sql.JoinInnerCursor.db, com.quadcap.sql.JoinInnerCursor.file, com.quadcap.sql.JoinInnerCursor.freeRows(), com.quadcap.sql.JoinInnerCursor.index, and com.quadcap.sql.Database.removeRow(). Referenced by com.quadcap.sql.JoinInnerCursor.freeRows(). |
|
|
Definition at line 192 of file JoinInnerCursor.java. References com.quadcap.sql.JoinInnerCursor.intArrayToBitSet(). Referenced by com.quadcap.sql.JoinInnerCursor.findIndex(), and com.quadcap.sql.JoinInnerCursor.intArrayToBitSet(). |
|
|
||||||||||||||||
|
Definition at line 200 of file JoinInnerCursor.java. References com.quadcap.sql.JoinInnerCursor.cbCols, and com.quadcap.sql.JoinInnerCursor.makeInnerKey(). Referenced by com.quadcap.sql.JoinInnerCursor.makeInnerKey(). |
|
||||||||||||
|
|
|
|
The join columns in the outer table.
Definition at line 85 of file JoinInnerCursor.java. Referenced by com.quadcap.sql.JoinInnerCursor.JoinInnerCursor(), com.quadcap.sql.JoinInnerCursor.makeInnerIndex(), and com.quadcap.sql.JoinInnerCursor.makeOuterKey(). |
|
|
The current join key.
Definition at line 88 of file JoinInnerCursor.java. Referenced by com.quadcap.sql.JoinInnerCursor.bfirst(), and com.quadcap.sql.JoinInnerCursor.bnext(). |
|
|
Map outer columns from join cursor to outer cursor pos.
Definition at line 100 of file JoinInnerCursor.java. |
|
|
Cache number of columns in inner table.
Definition at line 91 of file JoinInnerCursor.java. Referenced by com.quadcap.sql.JoinInnerCursor.bfirst(). |
|
|
The join columns in the inner table.
Definition at line 94 of file JoinInnerCursor.java. Referenced by com.quadcap.sql.JoinInnerCursor.JoinInnerCursor(), com.quadcap.sql.JoinInnerCursor.makeInnerIndex(), com.quadcap.sql.JoinInnerCursor.makeInnerKey(), com.quadcap.sql.JoinInnerCursor.makeTemporaryIndexForTable(), and com.quadcap.sql.JoinInnerCursor.makeTemporaryIndexForView(). |
|
|
If there's an index on the join columns of the inner table.
Definition at line 106 of file JoinInnerCursor.java. Referenced by com.quadcap.sql.JoinInnerCursor.makeInnerIndex(), and com.quadcap.sql.JoinInnerCursor.makeOuterKey(). |
|
|
Definition at line 117 of file JoinInnerCursor.java. Referenced by com.quadcap.sql.JoinInnerCursor.bfirst(), com.quadcap.sql.JoinInnerCursor.bnext(), and com.quadcap.sql.JoinInnerCursor.close(). |
|
|
Map inner, non-join-key columns from join cursor to inner cursor pos.
Definition at line 97 of file JoinInnerCursor.java. |
|
|
If the inner is really a table, or null if it's a view.
Definition at line 103 of file JoinInnerCursor.java. Referenced by com.quadcap.sql.JoinInnerCursor.bnext(), com.quadcap.sql.JoinInnerCursor.findIndex(), and com.quadcap.sql.JoinInnerCursor.makeInnerIndex(). |
|
|
Used to compare the inner and outer join keys.
Definition at line 120 of file JoinInnerCursor.java. Referenced by com.quadcap.sql.JoinInnerCursor.bnext(). |
|
|
Definition at line 80 of file JoinInnerCursor.java. Referenced by com.quadcap.sql.JoinInnerCursor.bnext(), com.quadcap.sql.JoinInnerCursor.freeRows(), com.quadcap.sql.JoinInnerCursor.JoinInnerCursor(), and com.quadcap.sql.JoinInnerCursor.makeInnerIndex(). |
|
|
Definition at line 81 of file JoinInnerCursor.java. Referenced by com.quadcap.sql.JoinInnerCursor.freeRows(). |
|
|
Either the index from above, or a temporary one we create.
Definition at line 109 of file JoinInnerCursor.java. Referenced by com.quadcap.sql.JoinInnerCursor.bfirst(), com.quadcap.sql.JoinInnerCursor.close(), com.quadcap.sql.JoinInnerCursor.freeRows(), com.quadcap.sql.JoinInnerCursor.makeInnerIndex(), com.quadcap.sql.JoinInnerCursor.makeTemporaryIndexForTable(), and com.quadcap.sql.JoinInnerCursor.makeTemporaryIndexForView(). |
|
|
Temporary used to build keys for inner table index.
Definition at line 123 of file JoinInnerCursor.java. Referenced by com.quadcap.sql.JoinInnerCursor.makeInnerIndex(), and com.quadcap.sql.JoinInnerCursor.makeOuterKey(). |
|
|
Did we make create new (temporary) rows for the inner index?
Definition at line 115 of file JoinInnerCursor.java. Referenced by com.quadcap.sql.JoinInnerCursor.close(), and com.quadcap.sql.JoinInnerCursor.makeTemporaryIndexForView(). |
|
|
Definition at line 82 of file JoinInnerCursor.java. Referenced by com.quadcap.sql.JoinInnerCursor.close(), and com.quadcap.sql.JoinInnerCursor.makeTemporaryIndexForView(). |
|
|
Did we make 'index', or were the columns already indexed?
Definition at line 112 of file JoinInnerCursor.java. Referenced by com.quadcap.sql.JoinInnerCursor.close(), and com.quadcap.sql.JoinInnerCursor.makeInnerIndex(). |