Package com.foundationdb.qp.operator

Examples of com.foundationdb.qp.operator.Cursor.closeTopLevel()


            Operator plan = indexScan_Default(idxRowType, bounded(1, 11, true, 13, false), ordering);
            Cursor cursor = cursor(plan, queryContext, queryBindings);
            cursor.openTopLevel();
            testJump(cursor, last4(idOrdering), 0);
            testJump(cursor, last4(idOrdering), 1);
            cursor.closeTopLevel();
        }
        {
            Operator plan = indexScan_Default(idxRowType, bounded(1, 11, false, 13, true), ordering);
            Cursor cursor = cursor(plan, queryContext, queryBindings);
            cursor.openTopLevel();
View Full Code Here


            Operator plan = indexScan_Default(idxRowType, bounded(1, 11, false, 13, true), ordering);
            Cursor cursor = cursor(plan, queryContext, queryBindings);
            cursor.openTopLevel();
            testJump(cursor, first4(idOrdering), 0);
            testJump(cursor, first4(idOrdering), 1);
            cursor.closeTopLevel();
        }
        {
            Operator plan = indexScan_Default(idxRowType, bounded(1, 11, false, 13, false), ordering);
            Cursor cursor = cursor(plan, queryContext, queryBindings);
            cursor.openTopLevel();
View Full Code Here

            Operator plan = indexScan_Default(idxRowType, bounded(1, 11, false, 13, false), ordering);
            Cursor cursor = cursor(plan, queryContext, queryBindings);
            cursor.openTopLevel();
            testJump(cursor, middle2(idOrdering), 0);
            testJump(cursor, middle2(idOrdering), 1);
            cursor.closeTopLevel();
        }
    }

    @Test
    public void testDDDDLegalRange()
View Full Code Here

        cursor.openTopLevel();
        testJump(cursor,
                 idOrdering,
                 nudge,
                 expectedArs);
        cursor.closeTopLevel();
    }

    private void testJump(Cursor cursor, long idOrdering[], int nudge, long expectedsAr[][])
    {
        List<List<Long>> expecteds = new ArrayList<>(expectedsAr.length);
View Full Code Here

            runtimeException = ex;
        }
        finally {
            try {
                if (cursor != null) {
                    cursor.closeTopLevel();
                }
            }
            catch (RuntimeException ex) {
                if (runtimeException == null)
                    runtimeException = ex;
View Full Code Here

       
        while ((row = cursor.next()) != null)
        {
            actualRows.add(row);
        }
        cursor.closeTopLevel();

             // check the list of rows
        checkRows(actualRows, expected);
    }
View Full Code Here

       
        while ((row = cursor.next()) != null)
        {
            actualRows.add(row);
        }
        cursor.closeTopLevel();

        // find the row with given id
        List<Row> expectedRows = new ArrayList<>(expected.length);
        for (long val : expected)
            expectedRows.add(indexRowWithId(val));
View Full Code Here

                transaction = false;
            }
        }
        finally {
            if (cursor != null && !cursor.isClosed())
                cursor.closeTopLevel();
            if (transaction)
                transactionService.rollbackTransaction(session);
        }
    }
View Full Code Here

                                     null,
                                     StoreGIHandler.forTable(this, session, table),
                                     StoreGIHandler.Action.CASCADE);
            }
        } finally {
            cursor.closeTopLevel();
        }
    }

    /** Be very careful using this, most methods should take it explicitly and pass it down. */
    private RowDef getGlobalRowDef(Session session, RowData rowData) {
View Full Code Here

                while ((row = cursor.next()) != null) {
                    // Do Nothing - the act of reading the cursor
                    // does the delete row processing.
                    // TODO: Check that we got 1 row through.
                }
                cursor.closeTopLevel();
            }
        } finally {
            if (cursor != null && !cursor.isClosed())
                cursor.close();
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.