Package com.foundationdb.qp.row

Examples of com.foundationdb.qp.row.ValuesHolderRow


        // For use by this class

        private Row emptySubstitute()
        {
            ValuesHolderRow valuesHolderRow = new ValuesHolderRow(rowType);
            int nFields = rowType.nFields();
            for (int i = 0; i < nFields; i++) {
                TEvaluatableExpression outerJoinRowColumnEvaluation = pEvaluations.get(i);
                outerJoinRowColumnEvaluation.with(context);
                outerJoinRowColumnEvaluation.with(bindings);
                outerJoinRowColumnEvaluation.evaluate();
                ValueTargets.copyFrom(
                        outerJoinRowColumnEvaluation.resultValue(),
                        valuesHolderRow.valueAt(i));
            }
            return valuesHolderRow;
        }
View Full Code Here


    private class SorterIterationHelper implements IterationHelper
    {
        @Override
        public Row row()
        {
            ValuesHolderRow row = new ValuesHolderRow(rowType);
            value.setStreamMode(true);
            for (int i = 0; i < rowFields; i++) {
                valueAdapter.putToHolders(row, i, sorterAdapter.tFieldTypes());
            }
            return row;
View Full Code Here

                }
            }
        }
       
        private Row createRow (SortKey key) {
            ValuesHolderRow rowCopy = new ValuesHolderRow(rowType);
            valueSource.attach(key.rowValue);
            for(int i = 0 ; i < rowType.nFields(); ++i) {
                valueSource.getReady(rowType.typeAt(i));
                if (valueSource.isNull()) {
                    rowCopy.valueAt(i).putNull();
                } else {
                    rowType.typeAt(i).writeCanonical(valueSource, rowCopy.valueAt(i));
                }
            }
            return rowCopy;
        }
View Full Code Here

    protected Row row(IndexRowType indexRowType, Object... objs) {
/*
        try {
*/
            ValuesHolderRow row = new ValuesHolderRow(indexRowType);
            for (int i = 0; i < objs.length; i++) {
                Object obj = objs[i];
                Value value = row.valueAt(i);
                if (obj == null) {
                    value.putNull();
                } else if (obj instanceof Integer) {
                    if (ValueSources.underlyingType(value) == UnderlyingType.INT_64)
                        value.putInt64(((Integer) obj).longValue());
View Full Code Here

                while((row = input.next()) != null) {
                    ++rowCount;
                    context.checkQueryCancelation();
                    KeyState[] states = createKey(row, rowCount);
                    // Copy instead of hold as ProjectedRow cannot be held
                    ValuesHolderRow rowCopy = new ValuesHolderRow(row.rowType());
                    for(int i = 0 ; i < row.rowType().nFields(); ++i) {
                        ValueTargets.copyFrom(row.value(i), rowCopy.valueAt(i));
                    }
                    navigableMap.put(states, rowCopy);
                    loadTap.out();
                    loadTap.in();
                }
View Full Code Here

     * Describes a full index scan.
     * @param indexRowType The row type of index keys.
     * @return IndexKeyRange covering all keys of the index.
     */
    public static IndexKeyRange unbounded(IndexRowType indexRowType) {
        IndexBound unbounded = new IndexBound(new ValuesHolderRow(indexRowType), ConstantColumnSelector.ALL_OFF);
        return new IndexKeyRange(indexRowType, unbounded, false, unbounded, false, IndexKind.CONVENTIONAL);
    }
View Full Code Here

TOP

Related Classes of com.foundationdb.qp.row.ValuesHolderRow

Copyright © 2018 www.massapicom. 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.