Package com.foundationdb.qp.row

Examples of com.foundationdb.qp.row.Row.rowType()


                    row = inputRow;
                    inputRow = null;
                } else {
                    do {
                        row = cursor.next();
                    } while ((row != null) && !outputRowTypes.contains(row.rowType()));
                    if (row == null) {
                        if (keepInput && !inputPrecedesBranch) {
                            assert inputRow != null;
                            row = inputRow;
                            inputRow = null;
View Full Code Here


        @Override
        public void open() {
            super.open();
            Row rowFromBindings = bindings.getRow(inputBindingPosition);
            assert rowFromBindings.rowType() == inputRowType : rowFromBindings;
            if (inputRowType != sourceRowType) {
                rowFromBindings = rowFromBindings.subRow(sourceRowType);
            }
            computeLookupRowHKey(rowFromBindings);
            cursor.rebind(hKey, true);
View Full Code Here

                row = inputRow;
                inputRow = null;
            } else {
                do {
                    row = cursor.next();
                } while ((row != null) && !outputRowTypes.contains(row.rowType()));
                if (row == null) {
                    if (keepInput && !inputPrecedesBranch) {
                        assert inputRow != null;
                        row = inputRow;
                        inputRow = null;
View Full Code Here

                Row row;
                do {
                    row = input.next();
                    if (row == null) {
                        setIdle();
                    } else if (!keepTypes.contains(row.rowType())) {
                        row = null;
                    }
                } while (row == null && isActive());
                if (LOG_EXECUTION) {
                    LOG.debug("Filter_Default: yield {}", row);
View Full Code Here

        @Override
        public void open()
        {
            super.open();
            Row row = bindings.getRow(bindingPosition);
            assert (row.rowType() == outerType) : row;
            boundRow = row;
        }

        @Override
        public Row next()
View Full Code Here

                if (CURSOR_LIFECYCLE_ENABLED) {
                    CursorLifecycle.checkIdleOrActive(this);
                }
                checkQueryCancelation();
                Row row = input.next();
                if ((row != null) && (row.rowType() == inputType)) {
                    row = new ProductRow(productType, boundRow, row);
                }
                if (LOG_EXECUTION) {
                    LOG.debug("Product_Nested: yield {}", row);
                }
View Full Code Here

            lookupState = LookupState.BEFORE;
            lookupRow = null;
            lookupCursor.close();
            Row currentInputRow = input.next();
            if (currentInputRow != null) {
                if (currentInputRow.rowType() == inputRowType) {
                    lookupRow = null;
                    computeLookupRowHKey(currentInputRow);
                    lookupCursor.rebind(lookupRowHKey, true);
                    lookupCursor.open();
                }
View Full Code Here

            Operator plan = indexScan_Default(latLonIndexRowType, box, lookaheadQuantum());
            Cursor cursor = API.cursor(plan, queryContext, queryBindings);
            cursor.openTopLevel();
            Row row;
            while ((row = cursor.next()) != null) {
                assertSame(latLonIndexRowType.physicalRowType(), row.rowType());
                long z = getLong(row, 0);
                Integer expectedId = zToId.get(z);
                assertNotNull(expectedId);
                int id = getLong(row, 1).intValue();
                assertEquals(expectedId.intValue(), id);
View Full Code Here

            Operator plan = indexScan_Default(latLonIndexRowType, box, lookaheadQuantum());
            Cursor cursor = API.cursor(plan, queryContext, queryBindings);
            cursor.openTopLevel();
            Row row;
            while ((row = cursor.next()) != null) {
                assertSame(latLonIndexRowType.physicalRowType(), row.rowType());
                long z = getLong(row, 0);
                Integer expectedId = zToId.get(z);
                assertNotNull(expectedId);
                int id = getLong(row, 1).intValue();
                assertEquals(expectedId.intValue(), id);
View Full Code Here

                Operator plan = indexScan_Default(beforeLatLonIndexRowType, box, lookaheadQuantum());
                Cursor cursor = API.cursor(plan, queryContext, queryBindings);
                cursor.openTopLevel();
                Row row;
                while ((row = cursor.next()) != null) {
                    assertSame(beforeLatLonIndexRowType.physicalRowType(), row.rowType());
                    int rowBefore = getLong(row, 0).intValue();
                    long z = getLong(row, 1);
                    Integer expectedId = zToId.get(z);
                    assertNotNull(expectedId);
                    int rowId = getLong(row, 2).intValue();
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.