Class SnapshotLookup<T>

java.lang.Object
org.apache.calcite.schema.lookup.SnapshotLookup<T>
Type Parameters:
T - Element Type
All Implemented Interfaces:
Lookup<T>

public class SnapshotLookup<T> extends Object implements Lookup<T>
This class can be used to make a snapshot of a lookups.
  • Constructor Details

    • SnapshotLookup

      public SnapshotLookup(Lookup<T> delegate)
  • Method Details

    • get

      public @Nullable T get(String name)
      Description copied from interface: Lookup
      Returns a named entity with a given name, or null if not found.
      Specified by:
      get in interface Lookup<T>
      Parameters:
      name - Name
      Returns:
      Entity with the specified name, or null when the entity is not found.
    • getIgnoreCase

      public @Nullable Named<T> getIgnoreCase(String name)
      Description copied from interface: Lookup
      Returns a named entity with a given name ignoring the case, or null if not found.
      Specified by:
      getIgnoreCase in interface Lookup<T>
      Parameters:
      name - Name
      Returns:
      Entity with the specified name (case insensitive), or null when the entity is not found.
    • getNames

      public Set<String> getNames(LikePattern pattern)
      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 that DatabaseMetaData.getTables(...) doesn't support case insensitive lookups.
      Specified by:
      getNames in interface Lookup<T>
      Returns:
      The names of all entities matching the pattern.
    • enable

      public void enable(boolean enabled)