Package com.foundationdb.qp.row

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


        private void advanceInput()
        {
            Row currentRow = input.next();
            if (currentRow != null) {
                if (currentRow.rowType() == inputRowType) {
                    findAncestors(currentRow);
                    lookupState = LookupState.ANCESTOR;
                }
                if (keepInput) {
                    pending.add(currentRow);
View Full Code Here


            Row currentLookupRow = lookupCursor.next();
            lookupRow = null;
            if (currentLookupRow == null) {
                lookupState = LookupState.BETWEEN;
                lookupCursor.close();
            } else if (branchOutputRowTypes.contains(currentLookupRow.rowType())) {
                lookupRow = currentLookupRow;
            }
            if (lookupRow != null) {
                pending.add(lookupRow);
            }
View Full Code Here

                    {
                        // If duplicates are preserved, the label is different for each row. Otherwise, it stays at 0.
                        int label = 0;
                        Row row;
                        while ((row = input.next()) != null) {
                            assert row.rowType() == sortType : row;
                            Holder holder;
                            holder = new Holder(label, row, tEvaluations);
                            if (preserveDuplicates) {
                                label++;
                            }
View Full Code Here

            }
            try {
                checkQueryCancelation();
                Row row;
                while ((row = input.next()) != null) {
                    assert row.rowType() == distinctType : row;
                    if (isDistinctP(row)) break;
                }
                if (row == null) {
                    setIdle();
                }
View Full Code Here

                if (CURSOR_LIFECYCLE_ENABLED) {
                    CursorLifecycle.checkIdleOrActive(this);
                }
                Row next = sorter.next();
                if(next != null) {
                    assert next.rowType() == bufferRowType;
                    // Common case coming out of default Sorters
                    if(next instanceof ValuesHolderRow) {
                        ValuesHolderRow valuesRow = (ValuesHolderRow)next;
                        RowType realRowType = bufferRowType.second();
                        List<Value> values = valuesRow.values();
View Full Code Here

                }
                checkQueryCancelation();
                Row row = null;
                Row inputRow = input.next();
                while (row == null && inputRow != null) {
                    if (inputRow.rowType() == predicateRowType) {
                        pEvaluation.with(inputRow);
                        pEvaluation.evaluate();
                        if (pEvaluation.resultValue().getBoolean(false)) {
                            // New row of predicateRowType
                            if (groupScanInput) {
View Full Code Here

                            if (groupScanInput) {
                                selectedRow = inputRow;
                            }
                            row = inputRow;
                        }
                    } else if (predicateRowType.ancestorOf(inputRow.rowType())) {
                        // Row's type is a descendent of predicateRowType.
                        if (selectedRow != null && selectedRow.ancestorOf(inputRow)) {
                            row = inputRow;
                        } else {
                            selectedRow = null;
View Full Code Here

            runTapEntered = true;
            cursor.openTopLevel();
            Row row;
            while ((row = cursor.next()) != null) {
                boolean actioned = false;
                if (row.rowType().equals(planOperator.rowType())) {
                    doAction(action, handler, row);
                    actioned = true;
                }
                else if (storePlan.incomingRowIsWithinGI) {
                    // "Natural" index cleanup. Look for the left half, but only if we need to
View Full Code Here

                else if (storePlan.incomingRowIsWithinGI) {
                    // "Natural" index cleanup. Look for the left half, but only if we need to
                    Index.JoinType giJoin = groupIndex.getJoinType();
                    switch (giJoin) {
                    case LEFT:
                        if (row.rowType().equals(storePlan.leftHalf) && useInvertType(action, context, bindings) &&
                                !skipCascadeRow(action, row, handler)) {
                            Row outerRow = new FlattenedRow(storePlan.topLevelFlattenType, row, null, row.hKey());
                            doAction(invert(action), handler, outerRow);
                            actioned = true;
                        }
View Full Code Here

        {
            TAP_OPEN.in();
            try {
                super.open();
                Row rowFromBindings = bindings.getRow(inputBindingPosition);
                assert rowFromBindings.rowType() == inputRowType : rowFromBindings;
                if (inputRowType != sourceRowType) {
                    rowFromBindings = rowFromBindings.subRow(sourceRowType);
                }
                if (LOG_EXECUTION) {
                    LOG.debug("BranchLookup_Nested: open using {}", rowFromBindings);
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.