Multiple indexes for a Java Collection - most basic solution?

后端 未结 14 1755
小鲜肉
小鲜肉 2020-11-29 22:08

I\'m looking for the most basic solution to create multiple indexes on a Java Collection.

Required functionality:

  • When a Value is removed, all index en
14条回答
  •  萌比男神i
    2020-11-29 22:47

    You have a lot of really constrictive requirements are appear to be very particular to your needs. Most of the things you are saying aren't viable are because a lot so of people have the same exact needs which basically defines a basic database engine. That is why they are "large" libraries. You say "no database" but at its core every indexing system is a "database" of terms and documents. I would argue that a Collection is a "database". I would say take a look at Space4J.

    I would say if you don't find what you are looking for, start a project on GitHub and get on with coding it yourself and sharing the results.

提交回复
热议问题