Package ai.djl.basicdataset.tabular
Class MapFeatures
- All Implemented Interfaces:
Serializable
,ConcurrentMap<String,
,String> Map<String,
String>
An extension of the
ConcurrentHashMap
for use in the TabularTranslator
.- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.util.concurrent.ConcurrentHashMap
ConcurrentHashMap.KeySetView<K extends Object,
V extends Object> Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K extends Object,
V extends Object>, AbstractMap.SimpleImmutableEntry<K extends Object, V extends Object> -
Constructor Summary
ConstructorDescriptionConstructs aMapFeatures
instance.MapFeatures
(int initialCapacity) Constructs aMapFeatures
instance.MapFeatures
(int initialCapacity, float loadFactor) Constructs aMapFeatures
instance.MapFeatures
(int initialCapacity, float loadFactor, int concurrencyLevel) Constructs aMapFeatures
.MapFeatures
(Map<? extends String, ? extends String> m) Constructs aMapFeatures
instance. -
Method Summary
Methods inherited from class java.util.concurrent.ConcurrentHashMap
clear, compute, computeIfAbsent, computeIfPresent, contains, containsKey, containsValue, elements, entrySet, equals, forEach, forEach, forEach, forEachEntry, forEachEntry, forEachKey, forEachKey, forEachValue, forEachValue, get, getOrDefault, hashCode, isEmpty, keys, keySet, keySet, mappingCount, merge, newKeySet, newKeySet, put, putAll, putIfAbsent, reduce, reduceEntries, reduceEntries, reduceEntriesToDouble, reduceEntriesToInt, reduceEntriesToLong, reduceKeys, reduceKeys, reduceKeysToDouble, reduceKeysToInt, reduceKeysToLong, reduceToDouble, reduceToInt, reduceToLong, reduceValues, reduceValues, reduceValuesToDouble, reduceValuesToInt, reduceValuesToLong, remove, remove, replace, replace, replaceAll, search, searchEntries, searchKeys, searchValues, size, toString, values
Methods inherited from class java.util.AbstractMap
clone
-
Constructor Details
-
MapFeatures
public MapFeatures()Constructs aMapFeatures
instance.- See Also:
-
MapFeatures
public MapFeatures(int initialCapacity) Constructs aMapFeatures
instance.- Parameters:
initialCapacity
- The implementation performs internal sizing to accommodate this many elements.- Throws:
IllegalArgumentException
- if the initial capacity of elements is negative- See Also:
-
MapFeatures
Constructs aMapFeatures
instance.- Parameters:
m
- the map- See Also:
-
MapFeatures
public MapFeatures(int initialCapacity, float loadFactor) Constructs aMapFeatures
instance.- Parameters:
initialCapacity
- the initial capacity. The implementation performs internal sizing to accommodate this many elements, given the specified load factor.loadFactor
- the load factor (table density) for establishing the initial table size- Throws:
IllegalArgumentException
- if the initial capacity of elements is negative or the load factor is nonpositive- See Also:
-
MapFeatures
public MapFeatures(int initialCapacity, float loadFactor, int concurrencyLevel) Constructs aMapFeatures
.- Parameters:
initialCapacity
- the initial capacity. The implementation performs internal sizing to accommodate this many elements, given the specified load factor.loadFactor
- the load factor (table density) for establishing the initial table sizeconcurrencyLevel
- the estimated number of concurrently updating threads. The implementation may use this value as a sizing hint.- Throws:
IllegalArgumentException
- if the initial capacity is negative or the load factor or concurrencyLevel are nonpositive- See Also:
-
-
Method Details
-
fromMap
Creates aMapFeatures
from a source list.- Parameters:
source
- the source list- Returns:
- a new
MapFeatures
-