Examples of flattenToBuffer()


Examples of org.voltdb.ParameterSet.flattenToBuffer()

            ParameterSet parameterSet = ParameterSet.fromArrayNoCopy(config.configBytes);

            // serialize the param set
            clearPsetAndEnsureCapacity(parameterSet.getSerializedSize());
            try {
                parameterSet.flattenToBuffer(psetBuffer);
            } catch (final IOException exception) {
                throw new RuntimeException(exception); // can't happen
            }
        }
View Full Code Here

Examples of org.voltdb.VoltTable.flattenToBuffer()

            VoltTable dep = m_dependencies.get(i);
            if (dep == null) {
                buf.put((byte) 0);
            } else {
                buf.put((byte) 1);
                dep.flattenToBuffer(buf);
            }
        }

        if (m_exception != null) {
            m_exception.serializeToBuffer(buf);
View Full Code Here

Examples of org.voltdb.VoltTable.flattenToBuffer()

                    fs.write(buf);
                    break;
                case VOLTTABLE:
                    VoltTable table = PrivateVoltTableFactory.createVoltTableFromSharedBuffer(fds.buffer());
                    buf = ByteBuffer.allocate(table.getSerializedSize());
                    table.flattenToBuffer(buf);
                    buf.flip();
                    fs.write(buf);
                    break;
                default:
                    throw new RuntimeException("FIXME: Unsupported type " + type);
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.