| java.lang.Object com.quadcap.sql.TupleImpl com.quadcap.sql.CursorImpl com.quadcap.sql.JoinCursor com.quadcap.sql.JoinInnerCursor
JoinInnerCursor | public class JoinInnerCursor extends JoinCursor (Code) | | Cursor implementing INNER JOIN using nested loops (optimized using
the inner index)
author: Stan Bailes |
Constructor Summary | |
public | JoinInnerCursor(Session session, Cursor outer, Cursor ca, int[] caCols, Cursor cb, int[] cbCols, Expression where, Tuple tuple, JoinMapRow row, boolean left, boolean inner) Constructor takes a whole shitload of parameters. |
caCols | int[] caCols(Code) | | The join columns in the outer table.
|
caKey | byte[] caKey(Code) | | The current join key.
|
caMap | int[] caMap(Code) | | Map outer columns from join cursor to outer cursor pos
|
cbCnt | int cbCnt(Code) | | Cache number of columns in inner table.
|
cbCols | int[] cbCols(Code) | | The join columns in the inner table.
|
cbMap | int[] cbMap(Code) | | Map inner, non-join-key columns from join cursor to inner cursor pos
|
cbTable | Table cbTable(Code) | | If the inner is really a table, or null if it's a view.
|
index | Btree index(Code) | | Either the index from above, or a temporary one we create.
|
mapRow | MapRow mapRow(Code) | | Temporary used to build keys for inner table index
|
mustFreeRows | boolean mustFreeRows(Code) | | Did we make create new (temporary) rows for the inner index?
|
tempIndex | boolean tempIndex(Code) | | Did we make 'index', or were the columns already indexed?
|
JoinInnerCursor | public 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(Code) | | Constructor takes a whole shitload of parameters.
Parameters: session - my execution session context (transaction, etc) Parameters: ca - the outer join cursor Parameters: caCols - the join columns in the outer cursor Parameters: cb - the inner join cursor Parameters: cbCols - the join columns in the inner cursor Parameters: where - the ON/WHERE predicate expression Parameters: tuple - the format we're supposed to return Parameters: row - A mapping between the inner/outer rows and the join row Parameters: left - Include non-matching outer rows with nulls for inner Parameters: inner - Include matching rows Parameters: flip - Left is Right, Right is Left |
intArrayToBitSet | final static BitSet intArrayToBitSet(int[] a)(Code) | | |
|
|