presto-memory/src/main/java/io/prestosql/plugin/memory/MemoryDataFragment.java/MemoryDataFragment/toSlice
class MemoryDataFragment:    public Slice toSlice()
    {
        return Slices.wrappedBuffer(MEMORY_DATA_FRAGMENT_CODEC.toJsonBytes(this));
    }