Class InternalTablesWrapper

java.lang.Object
org.gridgain.internal.table.InternalTablesWrapper
All Implemented Interfaces:
org.apache.ignite.cache.manager.IgniteCaches, org.apache.ignite.internal.table.IgniteTablesInternal, org.apache.ignite.table.IgniteTables

public class InternalTablesWrapper extends Object implements org.apache.ignite.internal.table.IgniteTablesInternal
Internal tables facade that decorates tables returned by delegate with privilege checking using security context stored in the thread local variable. Only asynchronous methods are supported, synchronous methods (tables(), table(int), table(QualifiedName), tableView(QualifiedName)) will throw UnsupportedOperationException.
  • Constructor Details

    • InternalTablesWrapper

      public InternalTablesWrapper(org.apache.ignite.internal.table.IgniteTablesInternal delegate, org.gridgain.internal.rbac.authorization.Authorizer authorizer)
  • Method Details

    • tables

      public List<org.apache.ignite.table.Table> tables()
      Specified by:
      tables in interface org.apache.ignite.table.IgniteTables
    • tablesAsync

      public CompletableFuture<List<org.apache.ignite.table.Table>> tablesAsync()
      Specified by:
      tablesAsync in interface org.apache.ignite.table.IgniteTables
    • table

      public org.apache.ignite.table.Table table(org.apache.ignite.table.QualifiedName name)
      Specified by:
      table in interface org.apache.ignite.table.IgniteTables
    • table

      public org.apache.ignite.internal.table.TableViewInternal table(int id) throws org.apache.ignite.internal.lang.NodeStoppingException
      Specified by:
      table in interface org.apache.ignite.internal.table.IgniteTablesInternal
      Throws:
      org.apache.ignite.internal.lang.NodeStoppingException
    • tableAsync

      public CompletableFuture<org.apache.ignite.table.Table> tableAsync(org.apache.ignite.table.QualifiedName name)
      Specified by:
      tableAsync in interface org.apache.ignite.table.IgniteTables
    • tableAsync

      public CompletableFuture<org.apache.ignite.internal.table.TableViewInternal> tableAsync(int id) throws org.apache.ignite.internal.lang.NodeStoppingException
      Specified by:
      tableAsync in interface org.apache.ignite.internal.table.IgniteTablesInternal
      Throws:
      org.apache.ignite.internal.lang.NodeStoppingException
    • tableView

      public org.apache.ignite.internal.table.TableViewInternal tableView(org.apache.ignite.table.QualifiedName name)
      Specified by:
      tableView in interface org.apache.ignite.internal.table.IgniteTablesInternal
    • tableViewAsync

      public CompletableFuture<org.apache.ignite.internal.table.TableViewInternal> tableViewAsync(org.apache.ignite.table.QualifiedName name)
      Specified by:
      tableViewAsync in interface org.apache.ignite.internal.table.IgniteTablesInternal
    • caches

      public List<org.apache.ignite.cache.Cache> caches()
      Specified by:
      caches in interface org.apache.ignite.cache.manager.IgniteCaches
    • cachesAsync

      public CompletableFuture<List<org.apache.ignite.cache.Cache>> cachesAsync()
      Specified by:
      cachesAsync in interface org.apache.ignite.cache.manager.IgniteCaches
    • cache

      public org.apache.ignite.cache.Cache cache(String name)
      Specified by:
      cache in interface org.apache.ignite.cache.manager.IgniteCaches
    • cache

      @Nullable public @Nullable org.apache.ignite.cache.Cache cache(org.apache.ignite.table.QualifiedName name)
      Specified by:
      cache in interface org.apache.ignite.cache.manager.IgniteCaches
    • cacheAsync

      public CompletableFuture<org.apache.ignite.cache.Cache> cacheAsync(String name)
      Specified by:
      cacheAsync in interface org.apache.ignite.cache.manager.IgniteCaches
    • cacheAsync

      public CompletableFuture<org.apache.ignite.cache.Cache> cacheAsync(org.apache.ignite.table.QualifiedName name)
      Specified by:
      cacheAsync in interface org.apache.ignite.cache.manager.IgniteCaches
    • cachedTable

      @Nullable public @Nullable org.apache.ignite.internal.table.TableViewInternal cachedTable(int tableId)
      Specified by:
      cachedTable in interface org.apache.ignite.internal.table.IgniteTablesInternal
    • setStreamerReceiverRunner

      public void setStreamerReceiverRunner(org.apache.ignite.internal.table.StreamerReceiverRunner runner)
      Specified by:
      setStreamerReceiverRunner in interface org.apache.ignite.internal.table.IgniteTablesInternal