Serialize this table to a given ByteBuffer. Used mostly internally by VoltDB for moving tables over the network.
214215216217218219220221222223224
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);
116117118119120121122123124125126
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);