use of com.datatorrent.stram.codec.DefaultStatefulStreamCodec.ClassIdPair in project apex-core by apache.
the class DefaultStatefulStreamCodecTest method testVirginKryo.
@Test
public void testVirginKryo() {
Kryo coder = new Kryo();
Kryo decoder = new Kryo();
ClassIdPair cip = new ClassIdPair();
Output output = new Output(4096, Integer.MAX_VALUE);
coder.writeClassAndObject(output, cip);
Input input = new Input();
input.setBuffer(output.toBytes());
decoder.readClassAndObject(input);
}
Aggregations