Package com.linkedin.venice.utils
package com.linkedin.venice.utils
-
ClassDescriptionBoundedHashMap<K,
V> A map implementation with a bounded size.Utility functions for munging on bytes N.B.: Most functions taken from Voldemort's ByteUtils class.A set that uses complement representation, which is useful when universal set cardinality is unknown.A thread factory that sets the threads to run as daemons.This class gathers all common data provider patterns in test cases.We define a threshold where we consider the disk to be full.Static utility functions to deal with exceptions.Adapted from https://stackoverflow.com/a/723914/791758Helper functions for Helix.IndexedMap<K,V> The IndexedMap interface implements Map and several functions for dealing with its content via the index corresponding to their insertion order.A mock time that takes a list of synthetic timestamps in MS and return them one by one in a circular manner.A thread factory that sets the threads to create threads with a specific prefix name.Pair<F,S> Deprecated.Instead of this, please create a dedicated class with well-named, non-generic (potentially primitive) properties and getters.PropertyBuilder is the suggested Way to construct VeniceProperties.This class is a simple schema builder to generate Venice Push Job input file schema.Utilities for reflection TODO This class may not be needed if we decide to proceed with Guice library for reflections and need to be discarded thenA factory class to create shared objects that need to release resources cleanly.AList
implementation with some usability improvements around resizing.A very simple subclass ofSparseConcurrentList
which adds some immutable offset to all index.This class is used to configure TLS for Venice components in integration tests.Time
implementation that just reads from the system clockATime
implementation which abstracts logical time away from real time, so that it can be deterministically controlled.General-purpose utility functions for tests.The interface to time itself.This class implements a generic trie-based lookup tree.Helper functionsThis class encapsulates config entity information such as config name, default value, config documentValueHolder<T>A Runnable that throws checked exceptions.A Supplier that throws checked exceptions.N.B.: Although there is no way to force this via Java interfaces, the convention is that all enums implementing this interface should have static "valueOf" function to return the correct enum value from a given numeric value, i.e.: Note that VeniceEnumValueTest makes it easy to test the above, and we should have a subclass of that test for all implementations of this interface.VeniceEnumValueTest<T extends VeniceEnumValue>Abstract class which makes it as easy as possible to generically test all the assumptions for enums which implement theVeniceEnumValue
interface.Venice wrapper around aLock
object to record metrics and emit logs when lock acquisition is taking too long.