Class QueryServer.PhoenixDoAsCallback

java.lang.Object
org.apache.phoenix.queryserver.server.QueryServer.PhoenixDoAsCallback
All Implemented Interfaces:
org.apache.calcite.avatica.server.DoAsRemoteUserCallback
Enclosing class:
QueryServer

public static class QueryServer.PhoenixDoAsCallback extends Object implements org.apache.calcite.avatica.server.DoAsRemoteUserCallback
Callback to run the Avatica server action as the remote (proxy) user instead of the server.
  • Constructor Details

    • PhoenixDoAsCallback

      public PhoenixDoAsCallback(org.apache.hadoop.security.UserGroupInformation serverUgi, org.apache.hadoop.conf.Configuration conf)
  • Method Details

    • doAsRemoteUser

      public <T> T doAsRemoteUser(String remoteUserName, String remoteAddress, Callable<T> action) throws Exception
      Specified by:
      doAsRemoteUser in interface org.apache.calcite.avatica.server.DoAsRemoteUserCallback
      Throws:
      Exception