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
ConstructorsConstructorDescriptionConstructs aMapFeaturesinstance.MapFeatures(int initialCapacity) Constructs aMapFeaturesinstance.MapFeatures(int initialCapacity, float loadFactor) Constructs aMapFeaturesinstance.MapFeatures(int initialCapacity, float loadFactor, int concurrencyLevel) Constructs aMapFeatures.MapFeatures(Map<? extends String, ? extends String> m) Constructs aMapFeaturesinstance. -
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, valuesMethods inherited from class java.util.AbstractMap
clone
-
Constructor Details
-
MapFeatures
public MapFeatures()Constructs aMapFeaturesinstance.- See Also:
-
MapFeatures
public MapFeatures(int initialCapacity) Constructs aMapFeaturesinstance.- 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 aMapFeaturesinstance.- Parameters:
m- the map- See Also:
-
MapFeatures
public MapFeatures(int initialCapacity, float loadFactor) Constructs aMapFeaturesinstance.- 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 aMapFeaturesfrom a source list.- Parameters:
source- the source list- Returns:
- a new
MapFeatures
-