Package ai. whylabs. services. whylogs. persistent
Types
Link copied to clipboard
Link copied to clipboard
class QueueBufferedPersistentMap<BufferItems, MayKeyType, MapValueType>(config: QueueBufferedPersistentMapConfig<BufferItems, MayKeyType, MapValueType>) : BufferedPersistentMap<BufferItems, MayKeyType, MapValueType>
Content copied to clipboard
An implementation of BufferedPersistentMap that uses a queue to buffer items of a certain type, Q, before periodically merging them into the main map, transforming them into a V. The types and how to map them are supplied in the configuration.
Link copied to clipboard
data class QueueBufferedPersistentMapConfig<BufferedItems, MapKeyType, MapValueType>( val queue: PersistentQueue<BufferedItems>, val map: PersistentMap<MapKeyType, MapValueType>, val groupByBlock: (BufferedItems) -> MapKeyType, val defaultValue: (MapKeyType) -> MapValueType, val mergeBlock: (MapValueType, BufferedItems) -> MapValueType, val delay: Long, val buffer: Boolean = false)
Content copied to clipboard
Link copied to clipboard
Serializer interface used by the persistent data structures to write files to disk.