reific / braid

Library for Transparent Compression of Java Strings
GNU General Public License v3.0
1 stars 1 forks source link

Implement Realistic Usage Scenario #5

Open jdscriven opened 9 years ago

jdscriven commented 9 years ago

The primary use case is storing a large amount of fielded metadata in memory.

So, for example, if we wanted to load all the worlds countries into memory (https://github.com/twigkit/worldfactbook-dataset) we would define a POJO like:

class Country{
  String code;
  String name;
  Braid region;
  Braid religions;
  Braid languages;
 ...
}

And then all the 'language' fields, for example, would be compressed in a single Knot.

This is still a very small dataset; ideally we would have something in the millions of instances rather than hundreds.