Package org.apache.calcite.util
Class NameMultimap<V>
java.lang.Object
org.apache.calcite.util.NameMultimap<V>
- Type Parameters:
V
- Value type
Multimap 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()
map()
Returns the underlying map.void
Adds an entry to this multimap.Returns a map containing all the entries in this multimap that match the given name.boolean
Removes all entries that have the given case-sensitive key.toString()
-
Constructor Details
-
NameMultimap
public NameMultimap()Creates a NameMultimap, initially empty.
-
-
Method Details
-
toString
-
hashCode
public int hashCode() -
equals
-
put
Adds an entry to this multimap. -
remove
Removes all entries that have the given case-sensitive key.- Returns:
- Whether a value was removed
-
range
Returns a map containing all the entries in this multimap that match the given name. -
containsKey
Returns whether this map contains a given key, with a given case-sensitivity. -
map
Returns the underlying map. Its size is the number of keys, not the number of values.
-