This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
http://docs.marklogic.com/guide/performance/perftune -- performance tuning | |
xquery version "1.0-ml"; | |
(: xquery memoization example for use with MarkLogic :) | |
declare variable $cache := map:map(); | |
declare function local:books-by-author($a as element(b:author)) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
steps | |
1.Create a simple java program that either call or embed an xquery | |
2.Input the java program into Altova UML/any open source available for java for creating sequence diagram | |
import javax.xml.xquery.*; | |
import net.cfoster.sedna.xqj.SednaXQDataSource; | |
public class SimpleQuery | |
{ | |
/** |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.lang.reflect.Method; | |
import javassist.*; | |
import java.security.*; | |
import java.lang.instrument.*; | |
class Hello { | |
public void say(int a) { | |
System.out.println("Hello"+a); |