Yeah, already done that (after some experimenting):
static void serializeRAMDirectory( RAMDirectory dir, output ){
if( null == dir ) return
output?.withObjectOutputStream{ out ->
out.writeLong dir.sizeInBytes()
out.writeInt dir.fileMap.size()
dir.fileMap.each{ String na
Hi,
I suspect you probably want to do something different. What is your goal?
Consider that ultimately a Directory is just wrapping and managing a
set of buffers, so you probably want to get to those buffers.
-- Sanne
On 17 January 2014 23:23, Konstantyn Smirnov wrote:
> Hi all,
>
> In Lucene