Package org.lilyproject.repository.api

Examples of org.lilyproject.repository.api.AbsoluteRecordId.toBytes()


    private final IdGenerator idGenerator = new IdGeneratorImpl();

    @Test
    public void testSerializationRoundTrip() {
        AbsoluteRecordId id = new AbsoluteRecordIdImpl("mytable", idGenerator.fromString("USER.myId"));
        byte[] bytes = id.toBytes();
        AbsoluteRecordId deserialized = AbsoluteRecordIdImpl.fromBytes(bytes, idGenerator);

        assertEquals(id, deserialized);
    }
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.