Package org.apache.calcite.schema.lookup
Class SnapshotLookup<T>
java.lang.Object
org.apache.calcite.schema.lookup.SnapshotLookup<T>
- Type Parameters:
T- Element Type
- All Implemented Interfaces:
Lookup<T>
This class can be used to make a snapshot of a lookups.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidenable(boolean enabled) @Nullable TReturns 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
-
SnapshotLookup
-
-
Method Details
-
get
Description copied from interface:LookupReturns a named entity with a given name, or null if not found. -
getIgnoreCase
Description copied from interface:LookupReturns a named entity with a given name ignoring the case, or null if not found.- Specified by:
getIgnoreCasein interfaceLookup<T>- Parameters:
name- Name- Returns:
- Entity with the specified name (case insensitive), or null when the entity is not found.
-
getNames
Description copied from interface:LookupReturns 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. -
enable
public void enable(boolean enabled)
-