Examples of SDBInternalError


Examples of com.hp.hpl.jena.sdb.shared.SDBInternalError

    public SqlDistinct asDistinct() { return this ; }
   
    //@Override
    @Override
    public void visit(SqlNodeVisitor visitor)
    { throw new SDBInternalError("SqlDistinct.visit") ; /*visitor.visit(this) ;*/ }
View Full Code Here

Examples of com.hp.hpl.jena.sdb.shared.SDBInternalError

    public void visit(SqlNodeVisitor visitor)
    { throw new SDBInternalError("SqlDistinct.visit") ; /*visitor.visit(this) ;*/ }
   
    @Override
    public SqlNode apply(SqlTransform transform, SqlNode subNode)
    { throw new SDBInternalError("SqlDistinct.transform") ; /* return transform.transform(this, subNode) ; */ }
View Full Code Here

Examples of com.hp.hpl.jena.sdb.shared.SDBInternalError

                       Var[] vars,
                       ActionMatch[] actions)
    {
        this.pattern = ExprUtils.parse(pattern) ;
        if ( vars.length != actions.length )
            throw new SDBInternalError("Variable and action arrays are different lengths")
        mapAction = new MapAction() ;
        for ( int i = 0 ; i < vars.length ; i++ )
        {
            Var var = vars[i] ;
            ActionMatch a = actions[i] ;
View Full Code Here

Examples of com.hp.hpl.jena.sdb.shared.SDBInternalError

    {
        if ( row.length != getTableWidth() )
        {
            String fmt = "TupleLoaderOne(%s) Expected row length: %d but got %d" ;
            String msg = String.format(fmt, getTableName(), getTableWidth(), row.length) ;
            throw new SDBInternalError(msg) ;
        }

        // Process nodes.
        String[] vals = prepareNodes(row) ;
       
View Full Code Here

Examples of com.hp.hpl.jena.sdb.shared.SDBInternalError

    }

    private void setProjectVars(Collection<Var> projectVars)
    {
        if ( this.projectVars != null )
            throw new SDBInternalError("SQLBridgeBase: Project vars already set") ;
        this.projectVars = projectVars ;
    }
View Full Code Here

Examples of com.hp.hpl.jena.sdb.shared.SDBInternalError

                // Removes current quad
                SqlStage stage = patternTable.process(i, quads) ;
                if ( stage != null )
                {
                    if ( quads.get(i) == q )
                        throw new SDBInternalError("Pattern table returned a stage but did not remove the first quad") ;
                    sList.add(stage) ;
                    continue ;
                }
            }
            sList.add(new SqlStageBasicQuad(q)) ;
View Full Code Here

Examples of com.hp.hpl.jena.sdb.shared.SDBInternalError

    /** The loader must be for a triple table of some kind */
    public TupleGraphLoader(TupleLoader loader)
    {
        if ( loader.getTableDesc() == null )
            throw new SDBInternalError("No table description for loader") ;
        if ( loader.getTableDesc().getWidth() != 3 )
        {
            String x = String.format("Table description width is %d, not 3",
                                     loader.getTableDesc().getWidth()) ;
            throw new SDBInternalError(x) ;
        }
        this.loader = loader ;
    }
View Full Code Here

Examples of com.hp.hpl.jena.sdb.shared.SDBInternalError

            return super.transform(opDatasetNames) ;
       
        // Basically, an implementation of "GRAPH ?g {}"
        Node g  = opDatasetNames.getGraphNode() ;
        if ( ! Var.isVar(g) )
            throw new SDBInternalError("OpDatasetNames - not a variable: "+g) ;
        Var v = Var.alloc(g) ;

        // Inner SELECT SQL: (SELECT DISTINCT g FROM Quads)
        TableDescQuads quads = request.getStore().getQuadTableDesc() ;
        SqlTable sqlTableQ = new SqlTable(quads.getTableName()) ;
View Full Code Here

Examples of com.hp.hpl.jena.sdb.shared.SDBInternalError

            Op op2 = Substitute.substitute(opSQL.getOriginal(), binding) ;
            Op op = qc.compile(op2) ;
            if ( op instanceof OpSQL )
                execSQL = (OpSQL)op ;
            else
                throw new SDBInternalError("Failed to recompile the OpSQL to an OpSQL") ;
        }

        return execSQL.exec(binding, getExecContext()) ;
    }
View Full Code Here

Examples of com.hp.hpl.jena.sdb.shared.SDBInternalError

    }

    public static SqlNode leftJoin(SDBRequest request, SqlNode left, SqlNode right, SqlExpr expr)
    {
        if ( left == null )
            throw new SDBInternalError("Attempt to leftJoin to null") ;
        SqlJoin j = join(request, LEFT, left, right, null) ;
        if ( expr != null )
            j.addCondition(expr) ;
        return j ;
    }
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.