Package org.apache.spark.sql.util
Class CaseInsensitiveStringMap
Object
org.apache.spark.sql.util.CaseInsensitiveStringMap
Case-insensitive map of string keys to string values.
 
This is used to pass options to v2 implementations to ensure consistent case insensitivity.
 Methods that return keys in this map, like entrySet() and keySet(), return
 keys converted to lower case. This map doesn't allow null key.
- Since:
- 3.0.0
- 
Nested Class Summary
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionReturns the original case-sensitive map.voidclear()booleancontainsKey(Object key) booleancontainsValue(Object value) static CaseInsensitiveStringMapempty()entrySet()booleanbooleangetBoolean(String key, boolean defaultValue) Returns the boolean value to which the specified key is mapped, or defaultValue if there is no mapping for the key.doubleReturns the double value to which the specified key is mapped, or defaultValue if there is no mapping for the key.intReturns the integer value to which the specified key is mapped, or defaultValue if there is no mapping for the key.longReturns the long value to which the specified key is mapped, or defaultValue if there is no mapping for the key.inthashCode()booleanisEmpty()keySet()voidintsize()values()Methods inherited from class java.lang.ObjectgetClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Mapcompute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
- 
Constructor Details- 
CaseInsensitiveStringMap
 
- 
- 
Method Details- 
empty
- 
sizepublic int size()
- 
isEmptypublic boolean isEmpty()
- 
containsKey- Specified by:
- containsKeyin interface- Map<String,- String> 
 
- 
containsValue- Specified by:
- containsValuein interface- Map<String,- String> 
 
- 
get
- 
put
- 
remove
- 
putAll
- 
clearpublic void clear()
- 
keySet
- 
values
- 
entrySet
- 
getBooleanReturns the boolean value to which the specified key is mapped, or defaultValue if there is no mapping for the key. The key match is case-insensitive.
- 
getIntReturns the integer value to which the specified key is mapped, or defaultValue if there is no mapping for the key. The key match is case-insensitive.
- 
getLongReturns the long value to which the specified key is mapped, or defaultValue if there is no mapping for the key. The key match is case-insensitive.
- 
getDoubleReturns the double value to which the specified key is mapped, or defaultValue if there is no mapping for the key. The key match is case-insensitive.
- 
asCaseSensitiveMapReturns the original case-sensitive map.
- 
equals
- 
hashCodepublic int hashCode()
 
-