Re: Serializing RAMDirectory in 4.6.0

2014-01-18 Thread Konstantyn Smirnov
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

Re: Serializing RAMDirectory in 4.6.0

2014-01-18 Thread Sanne Grinovero
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