From: Alex B. <boi...@in...> - 2003-08-21 10:26:04
|
I think the easiest solution would be to wrap your non-serializable comparator into a serializable comparator class. And, if need be, the class could implement externalizable and resolve whatever other object it needs to upon deserialization -- such as the nested non-serializable comparator. Does that work for you? alex ao...@be... wrote: > Hello, > > I have a situation where a BTree comparator cannot be serialized. I would > like to set the comparator after loading or creating a BTree rather than > serializing the Comparator with the BTree similar to the way the BTree's > record manager and ObjectCache are set as transient members. > > How would I go about doing this without modifying your code to overload the > BTree constructor and static load method with a transient keyword on the > Comparator member? > > Alex Karasulu |