public static CodecFactory createDirectCodecFactory ( Configuration config , ByteBufferAllocator allocator , int pageSize ) { return new DirectCodecFactory ( config , allocator , pageSize ) ; }
Create a codec factory that will provide compressors and decompressors that will work natively with ByteBuffers backed by direct memory .