> > (1) Perhaps use byte[] as the basic key/value of your interface. This is > the lowest common denominator of java types, and it's easy to wrap > String around it. >
Not the best advice I ever heard. Usually you still will have to deserialize at least key to do comparisons and also you lose an abstraction level. I would prefer avoid dealing with byte arrays at all and have an abstract pluggable serialization/desrialization which will use ObjectInput/ObjectOutput or something similar. Also it would be nice to take into consideration that some types still can be compared without full deserialization but some can't, so it should be possible to do comparisons in the most effective way. Sergi -- You received this message because you are subscribed to the Google Groups "H2 Database" group. To view this discussion on the web visit https://groups.google.com/d/msg/h2-database/-/-BHUNgrmHdkJ. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/h2-database?hl=en.
