Package org.apache.calcite.util
Class NameMap<V>
java.lang.Object
org.apache.calcite.util.NameMap<V>
- Type Parameters:
V
- Value type
Map whose keys are names and can be accessed with and without case
sensitivity.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
containsKey
(String name, boolean caseSensitive) Returns whether this map contains a given key, with a given case-sensitivity.boolean
int
hashCode()
static <V> NameMap<V>
immutableCopyOf
(Map<String, V> names) Creates a NameMap that is an immutable copy of a given map.map()
Returns the underlying map.void
Returns a map containing all the entries in the map that match the given name.@Nullable V
toString()
-
Constructor Details
-
NameMap
public NameMap()Creates a NameMap, initially empty.
-
-
Method Details
-
toString
-
hashCode
public int hashCode() -
equals
-
immutableCopyOf
Creates a NameMap that is an immutable copy of a given map. -
put
-
range
Returns a map containing all the entries in the map that match the given name. If case-sensitive, that map will have 0 or 1 elements; if case-insensitive, it may have 0 or more. -
containsKey
Returns whether this map contains a given key, with a given case-sensitivity. -
map
Returns the underlying map. -
remove
-