use of voldemort.serialization.Serializer in project voldemort by voldemort.
the class VoldemortClientShell method serializeKey.
protected byte[] serializeKey(Object key) {
SerializerFactory serializerFactory = factory.getSerializerFactory();
SerializerDefinition serializerDef = storeDef.getKeySerializer();
Serializer<Object> keySerializer = (Serializer<Object>) serializerFactory.getSerializer(serializerDef);
return keySerializer.toBytes(key);
}
Aggregations