Package org.voltdb.messaging

Examples of org.voltdb.messaging.FastDeserializer.readShort()


        super(buffer);
       
        FastDeserializer fds = new FastDeserializer(buffer);
        short _block_id;
        try {
            _block_id = fds.readShort();
        } catch (IOException ex) {
            throw new RuntimeException(ex);
        }
        this.block_id = _block_id;
    }
View Full Code Here


        return m_params.length;
    }

    static Object getParameterAtIndex(int partitionIndex, ByteBuffer unserializedParams) throws IOException {
        FastDeserializer in = new FastDeserializer(unserializedParams);
        int paramLen = in.readShort();
        if (partitionIndex >= paramLen) {
            // error if caller desires out of bounds parameter
            throw new RuntimeException("Invalid partition parameter requested.");
        }
        for (int i = 0; i < partitionIndex; ++i) {
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.