Class DictionaryWriterRegistryImpl

java.lang.Object
io.deephaven.extensions.barrage.chunk.DictionaryWriterRegistryImpl
All Implemented Interfaces:
DictionaryWriterRegistry

public final class DictionaryWriterRegistryImpl extends Object implements DictionaryWriterRegistry
The server-side DictionaryWriterRegistry implementation, backed by fastutil maps.

Two construction modes:

  • Constructor Details

    • DictionaryWriterRegistryImpl

      public DictionaryWriterRegistryImpl()
      Creates a local registry for viewport subscriptions and snapshots.
    • DictionaryWriterRegistryImpl

      public DictionaryWriterRegistryImpl(@NotNull @NotNull it.unimi.dsi.fastutil.longs.Long2ObjectOpenHashMap<SharedWriterDictionary> sharedDictionaries)
      Creates a shared-backed registry for full subscriptions and growing subscriptions targeting a full subscription. The sharedDictionaries map is owned by the io.deephaven.server.barrage.BarrageMessageProducer and lives for the lifetime of the table's producer; it is never cleared. Registries over the same map are used by different subscribers simultaneously, and add to it only while holding its lock. The producer resets dictionaries that have outgrown the table *before* a propagation phase's writes begin, when no registry is adding to it.
  • Method Details