Examples of FunctionReference


Examples of org.apache.chemistry.opencmis.server.support.query.FunctionReference

        List<CmisSelector> selects = queryObj.getSelectReferences();
        assertTrue(1 == selects.size());
        assertTrue(selects.get(0) instanceof FunctionReference);

        FunctionReference funcRef = ((FunctionReference)selects.get(0));
        assertTrue(FunctionReference.CmisQlFunction.SCORE == funcRef.getFunction());
    }
View Full Code Here

Examples of org.apache.chemistry.opencmis.server.support.query.FunctionReference

        List<CmisSelector> selects = queryObj.getSelectReferences();
        assertTrue(1 == selects.size());
        assertTrue(selects.get(0) instanceof FunctionReference);

        FunctionReference funcRef = ((FunctionReference)selects.get(0));
        assertTrue(FunctionReference.CmisQlFunction.SCORE == funcRef.getFunction());
    }
View Full Code Here

Examples of org.apache.chemistry.opencmis.server.support.query.FunctionReference

        CmisQueryWalker walker = traverseStatementAndCatchExc(statement);
        QueryObject select = walker.queryObj;
        List<CmisSelector> selects = select.getSelectReferences();
        assertTrue(1 == selects.size());
        assertTrue(selects.get(0) instanceof FunctionReference);
        FunctionReference funcRef = ((FunctionReference)selects.get(0));
        assertTrue(FunctionReference.CmisQlFunction.SCORE == funcRef.getFunction());
    }
View Full Code Here

Examples of org.apache.chemistry.opencmis.server.support.query.FunctionReference

        List<CmisSelector> selects = queryObj.getSelectReferences();
        assertTrue(1 == selects.size());
        assertTrue(selects.get(0) instanceof FunctionReference);

        FunctionReference funcRef = ((FunctionReference)selects.get(0));
        assertTrue(FunctionReference.CmisQlFunction.SCORE == funcRef.getFunction());
    }
View Full Code Here

Examples of org.apache.chemistry.opencmis.server.support.query.FunctionReference

        CmisQueryWalker walker = traverseStatementAndCatchExc(statement);
        assertNotNull(walker);
        List<CmisSelector> selects = queryObj.getSelectReferences();
        assertTrue(1 == selects.size());
        assertTrue(selects.get(0) instanceof FunctionReference);
        FunctionReference funcRef = ((FunctionReference)selects.get(0));
        assertTrue(FunctionReference.CmisQlFunction.SCORE == funcRef.getFunction());
    }
View Full Code Here

Examples of org.exist.xquery.value.FunctionReference

   
    final FunctionCall call = new FunctionCall(context, function);
    call.setLocation(function.getLine(), function.getColumn());
    function.setCaller(call);
    function.analyze(cachedContextInfo);
    return new FunctionReference(call);
  }
View Full Code Here

Examples of org.exist.xquery.value.FunctionReference

  }

  @Override
  public Sequence eval(Sequence contextSequence, Item contextItem)
      throws XPathException {
    return new FunctionReference(resolvedFunction);
  }
View Full Code Here

Examples of org.exist.xquery.value.FunctionReference

  }

  @Override
  public Sequence eval(Sequence contextSequence, Item contextItem)
      throws XPathException {
    final FunctionReference newRef = createPartial(contextSequence, contextItem, function);
    return newRef;
  }
View Full Code Here

Examples of org.exist.xquery.value.FunctionReference

   
    func.setFunctionBody(innerCall);
   
    final FunctionCall newCall = new FunctionCall(context, func);
    newCall.setLocation(staticCall.getLine(), staticCall.getColumn());
    return new FunctionReference(newCall);
  }
View Full Code Here

Examples of org.exist.xquery.value.FunctionReference

            /* binary content */
            BinaryValue binary = (BinaryValue) args[0].itemAt(0);

            /* callback function */
            FunctionReference ref = (FunctionReference) args[2].itemAt(0);

            Map<String, String> mappings = new HashMap<>();
            if (args[3].hasOne()) {
                NodeValue namespaces = (NodeValue) args[3].itemAt(0);
                parseMappings(namespaces, mappings);
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.