Search in sources :

Example 1 with TupleMarshallerException

use of org.apache.ignite.internal.schema.marshaller.TupleMarshallerException in project ignite-3 by apache.

the class MutableRowTupleAdapterTest method getTuple.

private Tuple getTuple() {
    try {
        Tuple original = Tuple.create().set("id", 3L).set("name", "Shirt");
        TupleMarshaller marshaller = new TupleMarshallerImpl(new DummySchemaManagerImpl(schema));
        return TableRow.tuple(new Row(schema, new ByteBufferRow(marshaller.marshal(original).bytes())));
    } catch (TupleMarshallerException e) {
        return fail();
    }
}
Also used : TupleMarshallerException(org.apache.ignite.internal.schema.marshaller.TupleMarshallerException) TupleMarshaller(org.apache.ignite.internal.schema.marshaller.TupleMarshaller) ByteBufferRow(org.apache.ignite.internal.schema.ByteBufferRow) TupleMarshallerImpl(org.apache.ignite.internal.schema.marshaller.TupleMarshallerImpl) Row(org.apache.ignite.internal.schema.row.Row) ByteBufferRow(org.apache.ignite.internal.schema.ByteBufferRow) Tuple(org.apache.ignite.table.Tuple) DummySchemaManagerImpl(org.apache.ignite.internal.table.impl.DummySchemaManagerImpl)

Aggregations

ByteBufferRow (org.apache.ignite.internal.schema.ByteBufferRow)1 TupleMarshaller (org.apache.ignite.internal.schema.marshaller.TupleMarshaller)1 TupleMarshallerException (org.apache.ignite.internal.schema.marshaller.TupleMarshallerException)1 TupleMarshallerImpl (org.apache.ignite.internal.schema.marshaller.TupleMarshallerImpl)1 Row (org.apache.ignite.internal.schema.row.Row)1 DummySchemaManagerImpl (org.apache.ignite.internal.table.impl.DummySchemaManagerImpl)1 Tuple (org.apache.ignite.table.Tuple)1