How to allow duplicates in StoredMap in BerkeleyDB?
-
18-04-2021 - |
Domanda
In the documentation for SortedMap it mentions that somehow it is possible to allow duplicates. But I can not understand how. Can someone give me an example for this? thx
Soluzione
When you create a DataBase
object, on the included DataBaseConfig
call setSortedDuplicates(true)
or setUnsortedDuplicates(true)
. There's an example in the documentation here.
Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow