Package xbird.xquery.meta

Examples of xbird.xquery.meta.Profiler


        XQExpression body = module.getExpression();
        dynEnv.setQueryExpression(body);
        evalHook(dynEnv);
        Sequence<? extends Item> result = body.eval(contextItem, dynEnv);
        if(PROFILE_LOG.isInfoEnabled()) {
            Profiler profiler = dynEnv.getProfiler();
            if(profiler != null && profiler.getDTMReads() > 0) {
                PROFILE_LOG.info(profiler);
            }
        }
        return result;
    }
View Full Code Here


        XQExpression body = module.getExpression();
        dynEnv.setQueryExpression(body);
        evalHook(dynEnv);
        body.evalAsEvents(handler, contextItem, dynEnv);
        if(PROFILE_LOG.isInfoEnabled()) {
            Profiler profiler = dynEnv.getProfiler();
            if(profiler != null && profiler.getDTMReads() > 0) {
                PROFILE_LOG.info(profiler);
            }
        }
    }
View Full Code Here

            try {
                doctbl = DocumentTableLoader.load(_col, _fileName, _dynEnv);
            } catch (IOException e) {
                throw new XQRTException("failed loading document: " + _fileName, e);
            }
            Profiler profiler = _dynEnv.getProfiler();
            if(profiler != null) {
                PagingProfile profile = doctbl.getPagingProfile();
                if(profile != null) {
                    profile.setProfiler(profiler);
                }
View Full Code Here

                DocumentTableModel dtm = ffcous.getDocumentTableModel();
                XQNode node = dtm.createNode(ptr);
                ffcous.setContextItem(node);
                return true;
            }
            final Profiler profiler = _dynEnv.getProfiler();
            final Iterator<Pair<DbCollection, String>> itor = ffcous.eachDocument();
            while(itor.hasNext()) {
                final Pair<DbCollection, String> pair = itor.next();
                final DbCollection col = pair.getFirst();
                final String docName = pair.getSecond();
View Full Code Here

                DocumentTableModel dtm = ffcous.getDocumentTableModel();
                XQNode node = dtm.createNode(ptr);
                ffcous.setContextItem(node);
                return true;
            }
            final Profiler profiler = _dynEnv.getProfiler();
            final Iterator<Pair<DbCollection, String>> itor = ffcous.eachDocument();
            while(itor.hasNext()) {
                final Pair<DbCollection, String> pair = itor.next();
                final DbCollection col = pair.getFirst();
                final String docName = pair.getSecond();
View Full Code Here

            try {
                doctbl = DocumentTableLoader.load(_col, _fileName, _dynEnv);
            } catch (IOException e) {
                throw new XQRTException("failed loading document: " + _fileName, e);
            }
            Profiler profiler = _dynEnv.getProfiler();
            if(profiler != null) {
                PagingProfile profile = doctbl.getPagingProfile();
                if(profile != null) {
                    profile.setProfiler(profiler);
                }
View Full Code Here

TOP

Related Classes of xbird.xquery.meta.Profiler

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.