Package edu.mit.simile.backstage.model

Examples of edu.mit.simile.backstage.model.TupleQueryBuilder


    }

    @Override
    public Scriptable getComponentState() {
        _logger.debug("> getComponentState");
        TupleQueryBuilder builder = new TupleQueryBuilder();
        Var itemVar = getCollection().getRestrictedItems(builder, null);

        String key = "tile-view-rendering:" + builder.getStringSerialization();
        _logger.debug("component: " + key);
        Scriptable result = (Scriptable)
          _context.getDatabase().cacheAndRun(key, new ViewRenderingCacheableQuery(builder, itemVar));
       
        _logger.debug("< getComponentState");
View Full Code Here


        Value value,
        Database database,
        SailRepositoryConnection connection
    ) throws ExpressionException {
       
        TupleQueryBuilder builder = new TupleQueryBuilder();
        Var valueVar = builder.makeVar("value", value);
       
    ExpressionResult expressionResult = computeOutputOnItem(database, builder, valueVar);
        if (expressionResult.valueExpr instanceof Var) {
          Var resultVar = (Var) expressionResult.valueExpr;
         
            ProjectionElemList projectionElements = new ProjectionElemList();
            projectionElements.addElement(new ProjectionElem(resultVar.getName()));
           
            TupleExpr t = builder.makeFilterTupleExpr();
            if (t == null) {
              // TODO[dfhuynh]: This happens if the expression is just "value". I'm not sure what to do here.
              return null;
            }
           
View Full Code Here

        }
        fireOnItemsChanged(backChannel);
    }
   
    protected void updateOneFacet(Facet facet, BackChannel backChannel) {
        TupleQueryBuilder builder = new TupleQueryBuilder();
        Var itemVar = getAllItems(builder, null);
       
        computeRestrictedItems(builder, itemVar, facet);
       
        try {
View Full Code Here

TOP

Related Classes of edu.mit.simile.backstage.model.TupleQueryBuilder

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.