public class KeyCacheSerializer implements CacheSerializer<KeyCacheKey, RowIndexEntry>
{
public void serialize(KeyCacheKey key, DataOutput out) throws IOException
{
RowIndexEntry entry = CacheService.instance.keyCache.get(key);
if (entry == null)
return;
ByteBufferUtil.writeWithLength(key.key, out);
Descriptor desc = key.desc;
out.writeInt(desc.generation);