Package org.apache.calcite.schema.lookup
Class IgnoreCaseLookup<T>
java.lang.Object
org.apache.calcite.schema.lookup.IgnoreCaseLookup<T>
- Type Parameters:
T
- Element type
- All Implemented Interfaces:
Lookup<T>
- Direct Known Subclasses:
CompatibilityLookup
An abstract base class for lookups implementing case insensitive lookup.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract @Nullable T
Returns a named entity with a given name, or null if not found.getIgnoreCase
(String name) Returns a named entity with a given name ignoring the case, or null if not found.getNames
(LikePattern pattern) Returns the names of the entities in matching pattern.
-
Constructor Details
-
IgnoreCaseLookup
public IgnoreCaseLookup()
-
-
Method Details
-
get
Returns a named entity with a given name, or null if not found. -
getIgnoreCase
Returns a named entity with a given name ignoring the case, or null if not found.- Specified by:
getIgnoreCase
in interfaceLookup<T>
- Parameters:
name
- Name- Returns:
- Entity with the specified name, or null when the entity is not found.
-
getNames
Description copied from interface:Lookup
Returns the names of the entities in matching pattern. The search is always case sensitive. This is caused by the fact thatDatabaseMetaData.getTables(...)
doesn't support case insensitive lookups.
-