Questions tagged [chronicle-map]

Chronicle Map is an efficient, low latency in-memory Key Value Store for the JVM with optional persistence to disk.

Chronicle Map is a high performance, off-heap, key-value, in memory, persisted data store. It works like a standard Java map, yet it automatically distributes data between processes. These processes can be both on the same server or across your network. In other words, it's a low-latency, huge data key value store, which can store terabytes of data locally to your process.

118 questions
1
vote
0 answers

How to implement read and write methods of Chronicle Map SizedWriter and SizedReader interfaces for class with string member

I have created a simple class: public class Example { private String name; private int age; // With getters and setters. } that I would like "put" into a chronicle map: ChronicleMap map = ChronicleMapBuilder …
1
vote
0 answers

How does ChronicleMap handle concurrent reads and writes to same key?

We are exploring using ChronicleMap as a replacement of ConcurrentHashMap within a single JVM with persistence option. Reading the docs, it says Within the JVM environment, a ChronicleMap instance is a ConcurrentMap, and could be accessed…
Saurav Prakash
  • 1,880
  • 1
  • 13
  • 24
1
vote
0 answers

ChronicleMap cannot store/use the defined No of Max.Entries after removing a few entries?

Chronicle Map Versions I used - 3.22ea5 / 3.21.86 I am trying to use ChronicleMap as an LRU cache. I have two ChronicleMaps both equal in configuration with allowSegmentTiering set as false. Consider one as main and the other as backup. So, when the…
Aravind
  • 11
  • 3
1
vote
1 answer

Chronicle Map - values of fields are swapping places

I've created Value interface: public interface SomeVal { void setLevel1Description(@MaxUtf8Length(100) CharSequence level1Description); CharSequence getLevel1Description(); void setLevel2Description(@MaxUtf8Length(100) CharSequence…
Inzo
  • 180
  • 9
1
vote
1 answer

Should I be expecting the same performance as a standard Java Hashmap for in memory read/writes?

My use case is I need to store millions of symbols in a map where the key is a String i.e "IBM" and the value is a json string that has information about the symbol i.e "{ "Symbol" : "IBM", "AssetType": "Common Stock", "Name": "International…
trafalgar
  • 63
  • 4
1
vote
1 answer

Is ChronicleMap an improved Concurrent HashMap?

I am new to off-heap storage in JVM, and ChronicleMap looks good for off heap things. But my main concern is related to performance mostly. I did run simple test with config ChronicleMapBuilder builder = …
Vivek Dhiman
  • 319
  • 1
  • 7
1
vote
1 answer

chronicle-map persisted file size

I am trying to understand how the size of persisted map files is calculated. When creating a persisted map on disk via something like: ChronicleMap .of(Key.class, Value.class) .name("foo") .entries(1024) .averageKeySize(32) …
1
vote
1 answer

ChronicleMap is accessing OS folders & files

While creating a ChronicleMap using the build, it is trying to access(read/write) the following OS(Mac) folders. Read on "/usr/lib" & "/lib" Read & Write on "/Users/userx/Library/Caches/JNA/temp" I am trying to understand the reason on why these…
Pearl
  • 35
  • 1
  • 6
1
vote
1 answer

Chronicle Map vs market data distributor,

I am trying to understand the concept of Market data distributor(MDD) which comes with Chronicle Enterprise. In my opinion both Map and MDD always holds the latest value of a key and since chronicle Map is implementation of Concurrent Hashmap you…
1
vote
1 answer

what is the better way to iterate over chronicle map of size 3.5 million

I have implemented chronicle map as: ChronicleMapBuilder .of(LongValue.class, ExceptionQueueVOInterface.class) .name(MAP_NAME) .entries(2_000_000) .maxBloatFactor(3) …
imnitesh
  • 83
  • 9
1
vote
2 answers

Is there any difference between using String and CharSequence in Chronicle Map?

When declaring a map, you can choose String or CharSequence; Map lexicalizationGraph = ChronicleMap .of(String.class, String.class) .name("lexicalizations-chronicle-map") .entries(1_000_000_000L) …
user8954282
1
vote
0 answers

What is meant by "size-prefixed blob readiness bit is set to NOT_COMPLETE" in ChronicleMap?

I have a persisted chronicle map with about 160K entries and I am invoking the map with createOrRecoverPersistedTo(file, true) where true indicates that the map is from the sameLibraryVersion. It is taking long time to build the map and after that…
JavaTechnical
  • 8,846
  • 8
  • 61
  • 97
1
vote
1 answer

Specific use of OpenHFT's Chronicle-DeCentered ../examples/appreciation/ demonstration ... how?

How to use the 5 .sh scripts to demonstrate Chronicle's BlockChain Ledger tefchnology ... ./run.shm & #params needed? 16467@DESKTOP-EQDBIQA> pwd /c/Users/16467/git/Chronicle-Decentred/examples/appreciation 16467@DESKTOP-EQDBIQA> l ./ …
1
vote
1 answer

Does the persisted file load in RAM memory after startup?

We are very interested in using Chronicle Map in our project. Currently, we're trying to understand how to work with a persisted file. For example when I create Chronicle Map with ChronicleMap.of(String.class, String.class) …
Serhii Shemshur
  • 1,273
  • 3
  • 15
  • 21
1
vote
2 answers

Map entries higher than Integer.MAX_VALUE

I am working with very large collections of small objects. I am using using ChronicleMap which is performing very well. Is the maximum number of map entries limited to Integer.MAX_VALUE? If not, how do I get the real size of a map as the map.size()…
kem
  • 407
  • 1
  • 6
  • 20