Search in sources :

Example 6 with BinaryWriterExImpl

use of org.apache.ignite.internal.binary.BinaryWriterExImpl in project ignite by apache.

the class JdbcMessageParser method encode.

/** {@inheritDoc} */
@Override
public byte[] encode(SqlListenerResponse msg) {
    assert msg != null;
    assert msg instanceof JdbcResponse;
    JdbcResponse res = (JdbcResponse) msg;
    BinaryWriterExImpl writer = createWriter(INIT_CAP);
    res.writeBinary(writer);
    return writer.array();
}
Also used : BinaryWriterExImpl(org.apache.ignite.internal.binary.BinaryWriterExImpl)

Aggregations

BinaryWriterExImpl (org.apache.ignite.internal.binary.BinaryWriterExImpl)6 BinaryHeapOutputStream (org.apache.ignite.internal.binary.streams.BinaryHeapOutputStream)4 BinaryReaderExImpl (org.apache.ignite.internal.binary.BinaryReaderExImpl)3 BinaryHeapInputStream (org.apache.ignite.internal.binary.streams.BinaryHeapInputStream)3 IgniteCheckedException (org.apache.ignite.IgniteCheckedException)2 Collection (java.util.Collection)1 BinaryObjectImpl (org.apache.ignite.internal.binary.BinaryObjectImpl)1 BinaryInputStream (org.apache.ignite.internal.binary.streams.BinaryInputStream)1 SqlListenerProtocolVersion (org.apache.ignite.internal.processors.odbc.SqlListenerProtocolVersion)1 JdbcResponse (org.apache.ignite.internal.processors.odbc.jdbc.JdbcResponse)1