Package org.caffinitas.ohc.benchmark
Class BenchmarkUtils.KeySerializer
- java.lang.Object
-
- org.caffinitas.ohc.benchmark.BenchmarkUtils.KeySerializer
-
- All Implemented Interfaces:
org.caffinitas.ohc.CacheSerializer<Long>
- Enclosing class:
- BenchmarkUtils
public static class BenchmarkUtils.KeySerializer extends Object implements org.caffinitas.ohc.CacheSerializer<Long>
-
-
Constructor Summary
Constructors Constructor Description KeySerializer(int keyLen)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Longdeserialize(ByteBuffer buf)voidserialize(Long val, ByteBuffer buf)intserializedSize(Long value)
-
-
-
Method Detail
-
serialize
public void serialize(Long val, ByteBuffer buf)
- Specified by:
serializein interfaceorg.caffinitas.ohc.CacheSerializer<Long>
-
deserialize
public Long deserialize(ByteBuffer buf)
- Specified by:
deserializein interfaceorg.caffinitas.ohc.CacheSerializer<Long>
-
-