Examples of XQEventEncoder


Examples of xbird.xquery.dm.coder.XQEventEncoder

        return newDecoder;
    }

    private static void pipedOut(ObjectOutput out, Sequence<Item> entity, boolean remotePaing)
            throws IOException {
        final XQEventEncoder encoder = new XQEventEncoder(out);
        if(remotePaing) {
            encoder.setRemotePaging(true);
        }
        try {
            encoder.emit(entity);
        } catch (XQueryException xqe) {
            throw new IllegalStateException("failed encoding", xqe);
        } catch (Throwable e) {
            LOG.fatal(PrintUtils.prettyPrintStackTrace(e));
            throw new IllegalStateException("failed encoding", e);
View Full Code Here

Examples of xbird.xquery.dm.coder.XQEventEncoder

    private static void bulkOut(ObjectOutput out, Sequence<Item> entity, boolean remotePaing)
            throws IOException {
        final FastByteArrayOutputStream bufOut = new FastByteArrayOutputStream(16384);
        final ObjectOutputStream objOut = new ObjectOutputStream(bufOut);
        final XQEventEncoder encoder = new XQEventEncoder(objOut);
        if(remotePaing) {
            encoder.setRemotePaging(true);
        }
        try {
            encoder.emit(entity);
            objOut.flush();
        } catch (XQueryException xqe) {
            throw new IllegalStateException("failed encoding", xqe);
        } catch (Throwable e) {
            LOG.fatal(e);
View Full Code Here

Examples of xbird.xquery.dm.coder.XQEventEncoder

            this._model = null;
            this._store = null;
        }

        public void writeExternal(ObjectOutput out) throws IOException {
            final XQEventEncoder encoder = new XQEventEncoder(out);
            try {
                encoder.emit(this);
            } catch (XQueryException xqe) {
                throw new XQRTException(xqe);
            } catch (Throwable e) {
                LOG.fatal(e);
                throw new IllegalStateException("failed encoding", e);
View Full Code Here

Examples of xbird.xquery.dm.coder.XQEventEncoder

                remote.writeExternal(out);
            } else {
                out.writeBoolean(false);
                final StopWatch sw = new StopWatch("Elapsed time for encoding `$" + getName()
                        + '\'');
                final XQEventEncoder encoder = new XQEventEncoder(out);
                try {
                    encoder.emit(result);
                } catch (XQueryException xqe) {
                    throw new IllegalStateException("failed encoding `$" + getName() + '\'', xqe);
                } catch (Throwable e) {
                    LOG.fatal(e);
                    throw new IllegalStateException("failed encoding `$" + getName() + '\'', e);
View Full Code Here

Examples of xbird.xquery.dm.coder.XQEventEncoder

    public synchronized void doEncode() throws IOException {
        if(encodedSequence != null) {
            final FastByteArrayOutputStream bufOut = new FastByteArrayOutputStream(16384);
            final ObjectOutputStream objOut = new ObjectOutputStream(bufOut);
            final XQEventEncoder encoder = new XQEventEncoder(objOut);
            try {
                encoder.emit(actualSequence);
                objOut.flush();
            } catch (XQueryException xqe) {
                throw new IOException(PrintUtils.prettyPrintStackTrace(xqe));
            } catch (Throwable e) {
                LOG.fatal(e);
View Full Code Here

Examples of xbird.xquery.dm.coder.XQEventEncoder

                remote.writeExternal(out);
            } else {
                out.writeBoolean(false);
                final StopWatch sw = new StopWatch("Elapsed time for encoding `$" + getName()
                        + '\'');
                final XQEventEncoder encoder = new XQEventEncoder(out);
                try {
                    encoder.emit(result);
                } catch (XQueryException xqe) {
                    throw new IllegalStateException("failed encoding `$" + getName() + '\'', xqe);
                } catch (Throwable e) {
                    LOG.fatal(e);
                    throw new IllegalStateException("failed encoding `$" + getName() + '\'', e);
View Full Code Here

Examples of xbird.xquery.dm.coder.XQEventEncoder

            this._model = null;
            this._store = null;
        }

        public void writeExternal(ObjectOutput out) throws IOException {
            final XQEventEncoder encoder = new XQEventEncoder(out);
            try {
                encoder.emit(this);
            } catch (XQueryException xqe) {
                throw new XQRTException(xqe);
            } catch (Throwable e) {
                LOG.fatal(e);
                throw new IllegalStateException("failed encoding", e);
View Full Code Here

Examples of xbird.xquery.dm.coder.XQEventEncoder

        return newDecoder;
    }

    private static void pipedOut(ObjectOutput out, Sequence<Item> entity, boolean remotePaing)
            throws IOException {
        final XQEventEncoder encoder = new XQEventEncoder(out);
        if(remotePaing) {
            encoder.setRemotePaging(true);
        }
        try {
            encoder.emit(entity);
        } catch (XQueryException xqe) {
            throw new IllegalStateException("failed encoding", xqe);
        } catch (Throwable e) {
            LOG.fatal(PrintUtils.prettyPrintStackTrace(e));
            throw new IllegalStateException("failed encoding", e);
View Full Code Here

Examples of xbird.xquery.dm.coder.XQEventEncoder

    private static void bulkOut(ObjectOutput out, Sequence<Item> entity, boolean remotePaing)
            throws IOException {
        final FastByteArrayOutputStream bufOut = new FastByteArrayOutputStream(16384);
        final ObjectOutputStream objOut = new ObjectOutputStream(bufOut);
        final XQEventEncoder encoder = new XQEventEncoder(objOut);
        if(remotePaing) {
            encoder.setRemotePaging(true);
        }
        try {
            encoder.emit(entity);
        } catch (XQueryException xqe) {
            throw new IllegalStateException("failed encoding", xqe);
        } catch (Throwable e) {
            LOG.fatal(e);
            throw new IllegalStateException("failed encoding", e);
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.