Package io.prestosql.jdbc
Class PrestoDriverUri
- java.lang.Object
-
- io.prestosql.jdbc.PrestoDriverUri
-
public final class PrestoDriverUri extends Object
Parses and extracts parameters from a Presto JDBC URL.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static boolean
acceptsURL(String url)
static PrestoDriverUri
create(String url, Properties properties)
Optional<String>
getApplicationNamePrefix()
Optional<String>
getCatalog()
Optional<String>
getClientInfo()
Optional<String>
getClientTags()
Map<String,String>
getExtraCredentials()
URI
getHttpUri()
URI
getJdbcUri()
Properties
getProperties()
Map<String,io.prestosql.client.ClientSelectedRole>
getRoles()
Optional<String>
getSchema()
Map<String,String>
getSessionProperties()
Optional<String>
getSource()
Optional<String>
getTraceToken()
String
getUser()
boolean
isCompressionDisabled()
void
setupClient(okhttp3.OkHttpClient.Builder builder)
-
-
-
Method Detail
-
create
public static PrestoDriverUri create(String url, Properties properties) throws SQLException
- Throws:
SQLException
-
acceptsURL
public static boolean acceptsURL(String url)
-
getJdbcUri
public URI getJdbcUri()
-
getHttpUri
public URI getHttpUri()
-
getUser
public String getUser() throws SQLException
- Throws:
SQLException
-
getRoles
public Map<String,io.prestosql.client.ClientSelectedRole> getRoles() throws SQLException
- Throws:
SQLException
-
getApplicationNamePrefix
public Optional<String> getApplicationNamePrefix() throws SQLException
- Throws:
SQLException
-
getProperties
public Properties getProperties()
-
getExtraCredentials
public Map<String,String> getExtraCredentials() throws SQLException
- Throws:
SQLException
-
getClientInfo
public Optional<String> getClientInfo() throws SQLException
- Throws:
SQLException
-
getClientTags
public Optional<String> getClientTags() throws SQLException
- Throws:
SQLException
-
getTraceToken
public Optional<String> getTraceToken() throws SQLException
- Throws:
SQLException
-
getSessionProperties
public Map<String,String> getSessionProperties() throws SQLException
- Throws:
SQLException
-
getSource
public Optional<String> getSource() throws SQLException
- Throws:
SQLException
-
isCompressionDisabled
public boolean isCompressionDisabled() throws SQLException
- Throws:
SQLException
-
setupClient
public void setupClient(okhttp3.OkHttpClient.Builder builder) throws SQLException
- Throws:
SQLException
-
-