Package com.foundationdb.server.error

Examples of com.foundationdb.server.error.AkibanInternalException


                Subquery subquery = ((SubquerySource)right).getSubquery();
                PlanNode input = subquery.getInput();
                subquery.replaceInput(input, new Distinct(input));
            }
            else {
                throw new AkibanInternalException("Could not make distinct " +
                                                  right);
            }
        }
        else {
            assert (join.getJoinType() == JoinType.SEMI_INNER_ALREADY_DISTINCT);
View Full Code Here


            if (e instanceof IOException)
                throw (IOException)e;
            else if (e instanceof InvalidOperationException) {
                throw (InvalidOperationException)e;
            }
            throw new AkibanInternalException ("PostgrsServerStatement execute failed.", e);
        }
        return 0;
    }
View Full Code Here

                   
                    TClass topClass = tclass(instances[field]);
                    TClass botClass = tclass(botInstance);
                    TClass commonTClass = registry.getCastsResolver().commonTClass(topClass, botClass);
                    if (commonTClass == null) {
                        throw new AkibanInternalException("no common type found found between row " + (rownum-1)
                        + " and " + rownum + " at field " + field);
                    }
                    // The two rows have different TClasses at this index, so we'll need at least one of them to
                    // be casted. Also the common class will be the widest comparable.
                    needCasts.set(field);
View Full Code Here

                                ? zScanCost
                                : costEstimate.union(zScanCost);
                        }
                    }
                } else {
                    throw new AkibanInternalException("Operands for spatial index must all be constant numbers: " + func);
                }
            } else {
                throw new AkibanInternalException("Unexpected function for spatial index: " + func);
            }
            index.setScanCostEstimate(costEstimate);
            long totalRows = costEstimate.getRowCount();
            long nrows = totalRows;
            if (hasLimit() && (limit < totalRows)) {
View Full Code Here

                return new ValuesPlanClass(this, s, (ExpressionsSource)joinable, picker);
            }
            if (joinable instanceof CreateAs){
                return new CreateAsPlanClass(this, s, (CreateAs)joinable, picker);
            }
            throw new AkibanInternalException("Unknown join element: " + joinable);
        }
View Full Code Here

            }
            if (joinable instanceof ExpressionsSource) {
                CostEstimator costEstimator = this.getCostEstimator();
                return new ValuesPlan((ExpressionsSource)joinable, costEstimator.costValues((ExpressionsSource)joinable, false));
            }
            throw new AkibanInternalException("Unknown join element: " + joinable);
        }
View Full Code Here

                scan = new AncestorLookup(scan, indexSource, ancestors);
            scan = flatten(scan, indexTable, rootTable);
            scan = fillSideBranches(scan, indexTable, rootTable);
        }
        else {
            throw new AkibanInternalException("Unknown TableGroupJoinTree scan");
        }
        for (TableGroupJoinNode table : tableGroup) {
            assert !isPending(table) : table;
        }
        return scan;
View Full Code Here

                        return getScanOnlyCost(scan);
                    }
                });
            }
            else {
                throw new AkibanInternalException("unknown index type: " + index + "(" + index.getClass() + ")");
            }
            index.setScanCostEstimate(result);
        }
        return result;
    }
View Full Code Here

        logger.debug("Did not find {} from {} in {}",
                     new Object[] {
                         column, column.getTable(), columnContext.getBoundRows()
                     });
        throw new AkibanInternalException("Column not found " + column);
    }
View Full Code Here

            return new ScriptFunctionJavaRoutineTExpression(routine, inputs);
        case SCRIPT_BINDINGS:
        case SCRIPT_BINDINGS_JSON:
            return new ScriptBindingsRoutineTExpression(routine, inputs);
        default:
            throw new AkibanInternalException("Unimplemented routine " + routine.getName());
        }
    }
View Full Code Here

TOP

Related Classes of com.foundationdb.server.error.AkibanInternalException

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.