use of com.thinkaurelius.titan.graphdb.database.serialize.kryo.KryoSerializer in project titan by thinkaurelius.
the class SerializerUTF8Test method setUp.
@Before
public void setUp() throws Exception {
Configuration conf = new PropertiesConfiguration();
conf.setProperty(GraphDatabaseConfiguration.STRING_COMPACT_SERIALIZE, true);
serialize = new KryoSerializer(conf);
serialize.registerClass(TestEnum.class, RESERVED_ID_OFFSET + 1);
serialize.registerClass(TestClass.class, RESERVED_ID_OFFSET + 2);
serialize.registerClass(short[].class, RESERVED_ID_OFFSET + 3);
printStats = true;
}
Aggregations