Package com.foundationdb.server.types.texpressions

Examples of com.foundationdb.server.types.texpressions.TEvaluatableExpression.evaluate()


            values = new Comparable[ordering.sortColumns()];
            for (int i = 0; i < values.length; i++) {
                TEvaluatableExpression evaluation = evaluations.get(i);
                evaluation.with(arow);
                evaluation.evaluate();
                values[i] = toObject(evaluation.resultValue());
            }
        }

        public Row empty() {
View Full Code Here


                                return value;
                            }

                            @Override
                            public void evaluate() {
                                eval.evaluate();
                                ValueSource inSrc = eval.resultValue();
                                if (inSrc.isNull())
                                    value.putNull();
                                else
                                    value.putString(inSrc.getString(), null);
View Full Code Here

            rowCreator.put(value, row, columnIndex);
        }
        for (int i = 0; i < evalColumns.length; i++) {
            int columnIndex = evalColumns[i];
            TEvaluatableExpression expr = expressions[i];
            expr.evaluate();
            ValueSource value = expr.resultValue();
            rowCreator.put(value, row, columnIndex);
        }
        return row;
    }
View Full Code Here

                @Override
                public Query getQuery(QueryContext context, QueryBindings bindings) {
                    TEvaluatableExpression qeval = qexpr.build();
                    qeval.with(context);
                    qeval.with(bindings);
                    qeval.evaluate();
                    if (qeval.resultValue().isNull())
                        return null;
                    String query = qeval.resultValue().getString();
                    return infos.parseQuery(context, indexName, fieldName, query);
                }
View Full Code Here

                @Override
                public Query getQuery(QueryContext context, QueryBindings bindings) {
                    TEvaluatableExpression qeval = qexpr.build();
                    qeval.with(context);
                    qeval.with(bindings);
                    qeval.evaluate();
                    if (qeval.resultValue().isNull())
                        return null;
                    String query = qeval.resultValue().getString();
                    return new TermQuery(new Term(fieldName, query));
                }
View Full Code Here

        TEvaluatableExpression evaluatableExpression = pEvaluatableExpressions.get(index);
        if (!evaluated[index]) {
            evaluatableExpression.with(context);
            evaluatableExpression.with(bindings);
            evaluatableExpression.with(row);
            evaluatableExpression.evaluate();
            evaluated[index] = true;
        }
        return evaluatableExpression.resultValue();
    }
View Full Code Here

                for (HKeySegment segment : rowType.hKey().segments()) {
                    for (HKeyColumn column : segment.columns()) {
                        TEvaluatableExpression evalExpr = evalExprs.get(columnIndex);
                        evalExpr.with(context);
                        evalExpr.with(bindings);
                        evalExpr.evaluate();
                        ((ValuesHKey)hkey).copyValueTo(evalExpr.resultValue(), columnIndex++);
                    }
                }
                return (Row)hkey;
            } else {
View Full Code Here

            if (expression != null) {
                TEvaluatableExpression evaluation = expression.build();
                evaluation.with(original);
                evaluation.with(context);
                evaluation.with(bindings);
                evaluation.evaluate();
                result.overlay(i, evaluation.resultValue());
            }
        }
        return result;
    }
View Full Code Here

            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

            if (expression != null) {
                TEvaluatableExpression evaluation = expression.build();
                evaluation.with(original);
                evaluation.with(context);
                evaluation.with(bindings);
                evaluation.evaluate();
                result.overlay(i, evaluation.resultValue());
            }
        }
        return result;
    }
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.