Package org.apache.calcite.util
Class NameSet
java.lang.Object
org.apache.calcite.util.NameSet
Set of names that can be accessed with and without case sensitivity.
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
boolean
Returns whether this set contains the given name, with a given case-sensitivity.boolean
int
hashCode()
static NameSet
immutableCopyOf
(Set<String> names) Creates a NameSet that is an immutable copy of a given collection.iterable()
Returns the contents as an iterable.Returns an iterable over all the entries in the set that match the given name.toString()
-
Field Details
-
COMPARATOR
-
-
Constructor Details
-
NameSet
public NameSet()Creates a NameSet, initially empty.
-
-
Method Details
-
immutableCopyOf
Creates a NameSet that is an immutable copy of a given collection. -
toString
-
hashCode
public int hashCode() -
equals
-
add
-
range
Returns an iterable over all the entries in the set that match the given name. If case-sensitive, that iterable will have 0 or 1 elements; if case-insensitive, it may have 0 or more. -
contains
Returns whether this set contains the given name, with a given case-sensitivity. -
iterable
Returns the contents as an iterable.
-