Committed to the main trunk. Vladimir -1 Kurt +1 Kevin +1
-----Original Message----- From: Terry Rosenbaum [mailto:[EMAIL PROTECTED] Sent: Thursday, June 05, 2003 1:26 AM To: [EMAIL PROTECTED] Subject: MemValueIndexer Attached are a couple of classes that you may find useful. Not a major piece of work, but I'm donating these to the cause if anyone is interested in checking them in as part of Xindice. Attachments: 1) MemValueIndexer.java * Provides an in-memory implementation of Xindice Indexer * based upon the Java TreeSet class. This implementation * is not persistent. A MemValueIndexer is useful for indexing * of temporary Collections (e.g. those based on MemFiler). It is also * useful for temporary indexing of persistent Collections. Note that this indexer stores values as Java objects. Comparisons are performed using Java comparison. This indexer correctly handles comparisons of signed values for numeric index types, etc. (unlike existing ValueIndexer). 2) SizeableMemFiler.java A Filer which is a wrapper around the Java HashMap. Just like existing MemFiler except that the initial size of the HashMap is set via System property named "org.apache.xindice.core.filer.SizeableMemFiler.INITIAL_SIZE". Using these 2 classes together, you can run Xindice as an in-memory database (non-persistent).