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 Summary
Constructors Constructor Description Query(StatementClient client, boolean debug)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()Map<String,String>getAddedPreparedStatements()Set<String>getDeallocatedPreparedStatements()Set<String>getResetSessionProperties()Optional<String>getSetCatalog()Optional<String>getSetPath()Map<String,ClientSelectedRole>getSetRoles()Optional<String>getSetSchema()Map<String,String>getSetSessionProperties()StringgetStartedTransactionId()booleanisClearTransactionId()voidrenderFailure(PrintStream out)booleanrenderOutput(org.jline.terminal.Terminal terminal, PrintStream out, PrintStream errorChannel, ClientOptions.OutputFormat outputFormat, boolean usePager, boolean showProgress)
-
-
-
Constructor Detail
-
Query
public Query(StatementClient client, boolean debug)
-
-
Method Detail
-
getSetRoles
public Map<String,ClientSelectedRole> getSetRoles()
-
getStartedTransactionId
public String getStartedTransactionId()
-
isClearTransactionId
public boolean isClearTransactionId()
-
renderOutput
public boolean renderOutput(org.jline.terminal.Terminal terminal, PrintStream out, PrintStream errorChannel, ClientOptions.OutputFormat outputFormat, boolean usePager, boolean showProgress)
-
close
public void close()
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable
-
renderFailure
public void renderFailure(PrintStream out)
-
-