Package io.trino.cli

Class Query

java.lang.Object
io.trino.cli.Query
All Implemented Interfaces:
Closeable, AutoCloseable

public class Query extends Object implements Closeable
  • Constructor Details

    • Query

      public Query(io.trino.client.StatementClient client, boolean debug)
  • Method Details

    • getSetCatalog

      public Optional<String> getSetCatalog()
    • getSetSchema

      public Optional<String> getSetSchema()
    • getSetPath

      public Optional<String> getSetPath()
    • getSetAuthorizationUser

      public Optional<String> getSetAuthorizationUser()
    • isResetAuthorizationUser

      public boolean isResetAuthorizationUser()
    • getSetSessionProperties

      public Map<String,String> getSetSessionProperties()
    • getResetSessionProperties

      public Set<String> getResetSessionProperties()
    • getSetRoles

      public Map<String,io.trino.client.ClientSelectedRole> getSetRoles()
    • getAddedPreparedStatements

      public Map<String,String> getAddedPreparedStatements()
    • getDeallocatedPreparedStatements

      public Set<String> getDeallocatedPreparedStatements()
    • getStartedTransactionId

      public String getStartedTransactionId()
    • isClearTransactionId

      public boolean isClearTransactionId()
    • renderOutput

      public boolean renderOutput(org.jline.terminal.Terminal terminal, PrintStream out, PrintStream errorChannel, ClientOptions.OutputFormat outputFormat, Optional<String> pager, boolean showProgress)
    • close

      public void close()
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface Closeable
    • renderFailure

      public void renderFailure(PrintStream out)