| Package | Description |
|---|---|
| tech.mlsql.common.utils.cache | |
| tech.mlsql.common.utils.collect |
| Modifier and Type | Method and Description |
|---|---|
ImmutableMap<K,V> |
LoadingCache.getAll(Iterable<? extends K> keys)
Returns a map of the values associated with
keys, creating or retrieving those values
if necessary. |
ImmutableMap<K,V> |
ForwardingCache.getAllPresent(Iterable<?> keys) |
ImmutableMap<K,V> |
AbstractCache.getAllPresent(Iterable<?> keys)
This implementation of
getAllPresent lacks any insight into the internal cache data
structure, and is thus forced to return the query keys instead of the cached keys. |
ImmutableMap<K,V> |
Cache.getAllPresent(Iterable<?> keys)
Returns a map of the values associated with
keys in this cache. |
| Modifier and Type | Class and Description |
|---|---|
class |
ImmutableBiMap<K,V>
An immutable
BiMap with reliable user-specified iteration order. |
class |
ImmutableSortedMap<K,V>
An immutable
SortedMap. |
| Modifier and Type | Method and Description |
|---|---|
ImmutableMap<K,Collection<V>> |
ImmutableMultimap.asMap()
Returns an immutable map that associates each key with its corresponding
values in the multimap.
|
ImmutableMap<K,V> |
ImmutableMap.Builder.build()
Returns a newly-created immutable map.
|
static <K,V> ImmutableMap<K,V> |
ImmutableMap.copyOf(Map<? extends K,? extends V> map)
Returns an immutable map containing the same entries as
map. |
static ImmutableMap<String,String> |
Maps.fromProperties(Properties properties)
Creates an
ImmutableMap<String, String> from a Properties
instance. |
static <K extends Enum<K>,V> |
Maps.immutableEnumMap(Map<K,? extends V> map)
Returns an immutable map instance containing the given entries.
|
static <K,V> ImmutableMap<K,V> |
ImmutableMap.of()
Returns the empty map.
|
static <K,V> ImmutableMap<K,V> |
ImmutableMap.of(K k1,
V v1)
Returns an immutable map containing a single entry.
|
static <K,V> ImmutableMap<K,V> |
ImmutableMap.of(K k1,
V v1,
K k2,
V v2)
Returns an immutable map containing the given entries, in order.
|
static <K,V> ImmutableMap<K,V> |
ImmutableMap.of(K k1,
V v1,
K k2,
V v2,
K k3,
V v3)
Returns an immutable map containing the given entries, in order.
|
static <K,V> ImmutableMap<K,V> |
ImmutableMap.of(K k1,
V v1,
K k2,
V v2,
K k3,
V v3,
K k4,
V v4)
Returns an immutable map containing the given entries, in order.
|
static <K,V> ImmutableMap<K,V> |
ImmutableMap.of(K k1,
V v1,
K k2,
V v2,
K k3,
V v3,
K k4,
V v4,
K k5,
V v5)
Returns an immutable map containing the given entries, in order.
|
<V> ImmutableMap<E,V> |
FluentIterable.toMap(Function<? super E,V> valueFunction)
Returns an immutable map for which the elements of this
FluentIterable are the keys in
the same order, mapped to values by the given function. |
static <K,V> ImmutableMap<K,V> |
Maps.toMap(Iterable<K> keys,
Function<? super K,V> valueFunction)
Returns an immutable map whose keys are the distinct elements of
keys and whose value for each key was computed by valueFunction. |
static <K,V> ImmutableMap<K,V> |
Maps.toMap(Iterator<K> keys,
Function<? super K,V> valueFunction)
Returns an immutable map whose keys are the distinct elements of
keys and whose value for each key was computed by valueFunction. |
<K> ImmutableMap<K,E> |
FluentIterable.uniqueIndex(Function<? super E,K> keyFunction)
Returns an immutable map for which the
Map.values() are the elements of this
FluentIterable in the given order, and each key is the product of invoking a supplied
function on its corresponding value. |
static <K,V> ImmutableMap<K,V> |
Maps.uniqueIndex(Iterable<V> values,
Function<? super V,K> keyFunction)
Returns an immutable map for which the
Map.values() are the given
elements in the given order, and each key is the product of invoking a
supplied function on its corresponding value. |
static <K,V> ImmutableMap<K,V> |
Maps.uniqueIndex(Iterator<V> values,
Function<? super V,K> keyFunction)
Returns an immutable map for which the
Map.values() are the given
elements in the given order, and each key is the product of invoking a
supplied function on its corresponding value. |
Copyright © 2020. All rights reserved.