Package ai.whylabs.services.whylogs.persistent

Types

Link copied to clipboard
interface BufferedPersistentMap<BufferedItems, MapKeyType, MapValueType>
Link 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)
Link copied to clipboard
interface Serializer<T>

Serializer interface used by the persistent data structures to write files to disk.

Functions

Link copied to clipboard
inline fun <T> serializer(): Serializer<T>

Convenience delegator to create serializers that use jackson.