Examples of writeExternal()


Examples of org.jgroups.blocks.MethodCall.writeExternal()

        int a=10;
        String b="Bela";
        MethodCall m=new MethodCall("foo", new Object[]{new Integer(a),b}, new Class[]{int.class, String.class});
        ByteArrayOutputStream msg_data=new ByteArrayOutputStream();
        ObjectOutputStream msg_out=new ObjectOutputStream(msg_data);
        m.writeExternal(msg_out);
        msg_out.flush();
        msg_out.close();
        byte[] data=msg_data.toByteArray();
        ByteArrayInputStream msg_in_data=new ByteArrayInputStream(data);
        ObjectInputStream msg_in=new ObjectInputStream(msg_in_data);
View Full Code Here

Examples of org.teiid.common.buffer.TupleBatch.writeExternal()

            }
            synchronized (batchManager.store) {
              offset = batchManager.getOffset();
              OutputStream fsos = new BufferedOutputStream(batchManager.store.createOutputStream(), IO_BUFFER_SIZE);
                    ObjectOutputStream oos = new ObjectOutputStream(fsos);
                    batch.writeExternal(oos);
                    oos.close();
                    long size = batchManager.store.getLength() - offset;
                    long[] info = new long[] {offset, size};
                    batchManager.physicalMapping.put(this.id, info);
            }
View Full Code Here

Examples of org.voltdb.ParameterSet.writeExternal()

        ParameterSet parameterSet = new ParameterSet(true);
        parameterSet.setParameters(value);

        final FastSerializer fser = new FastSerializer();
        try {
            parameterSet.writeExternal(fser);
        } catch (final IOException exception) {
            throw new RuntimeException(exception);
        }

        m_data.clear();
View Full Code Here

Examples of xbird.engine.remote.RemoteSequence.writeExternal()

        } else {
            out.writeBoolean(true);
            if(result instanceof RemoteSequence) {
                out.writeBoolean(true);
                RemoteSequence remote = (RemoteSequence) result;
                remote.writeExternal(out);
            } else {
                out.writeBoolean(false);
                final StopWatch sw = new StopWatch("Elapsed time for encoding `$" + getName()
                        + '\'');
                final XQEventEncoder encoder = new XQEventEncoder(out);
View Full Code Here

Examples of xbird.storage.io.RemoteVarSegments.writeExternal()

                ((RemoteVarSegments) _paged).writeExternal(out);
            } else {
                File dataFile = _paged.getFile();
                String filePath = dataFile.getAbsolutePath();
                RemoteVarSegments remoteSeg = new RemoteVarSegments(RemotePagingService.PORT, filePath, false);
                remoteSeg.writeExternal(out);
            }
        }

        @Override
        protected void enlarge(final int pages) {
View Full Code Here

Examples of xbird.storage.io.RemoteVarSegments.writeExternal()

            ((RemoteVarSegments) paged_).writeExternal(out);
        } else {
            File dataFile = paged_.getFile();
            String filePath = dataFile.getAbsolutePath();
            RemoteVarSegments remoteSeg = new RemoteVarSegments(RemotePagingService.PORT, filePath, false);
            remoteSeg.writeExternal(out);
        }
    }

    public synchronized void flush(DbCollection coll, String docName, PropertyMap properties)
            throws IOException {
View Full Code Here

Examples of xbird.util.nio.RemoteMemoryMappedFile.writeExternal()

        out.writeLong(_blockPtr);
        _nameTable.writeExternal(out);
        out.writeObject(_strChunk);
        // this members
        RemoteMemoryMappedFile remoteMMFile = _mmfile.externalize();
        remoteMMFile.writeExternal(out);
        out.writeBoolean(_nativeByteOrder);
    }

    public long[] referredTextBlocks(final long curr, final long last, final SerializationContext serContext) {
        final LongQueue textBlocks = new LongQueue();
View Full Code Here

Examples of xbird.xquery.misc.QNameTable.QualifiedName.writeExternal()

    public void writeTo(ObjectOutput out) throws IOException {
        final QualifiedName name = getName();
        if(name == null) {
            throw new IllegalStateException();
        }
        name.writeExternal(out);
    }

    public static BuiltInFunction readFrom(ObjectInput in) throws IOException {
        final QualifiedName name = QualifiedName.readFrom(in);
        final BuiltInFunction builtIn = PredefinedFunctions.lookup(name);
View Full Code Here

Examples of xbird.xquery.misc.QNameTable.QualifiedName.writeExternal()

                    redirectString(input, out);
                    break;
                }
                case XQEventEncoder.EV_ATTR: {
                    QualifiedName qname = QualifiedName.readFrom(input);
                    qname.writeExternal(out);
                    redirectString(input, out);
                    break;
                }
                case XQEventEncoder.EV_NAMESPACE:
                    redirectString(input, out);
View Full Code Here

Examples of xbird.xquery.misc.QNameTable.QualifiedName.writeExternal()

        final QualifiedName varName = _varName;
        if(varName == null) {
            out.writeBoolean(false);
        } else {
            out.writeBoolean(true);
            varName.writeExternal(out);
        }
        final XQExpression value = _value;
        if(value == null) {
            out.writeBoolean(false);
        } else {
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.