Package io.trino.client.uri
Class TrinoUri
java.lang.Object
io.trino.client.uri.TrinoUri
Parses and extracts parameters from a Trino URL.
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedTrinoUri(String url, Properties properties) protectedTrinoUri(URI uri, Properties driverProperties) -
Method Summary
Modifier and TypeMethodDescriptionstatic TrinoUri.Builderbuilder()static <T> TcheckRequired(Optional<T> obj, PropertyName name) static TrinoUricreate(String url, Properties properties) static TrinoUricreate(URI uri, Properties properties) static DriverPropertyInfo[]getPropertyInfo(String url, Properties info) getRoles()Consumer<okhttp3.OkHttpClient.Builder>getUri()getUser()booleanbooleanbooleanbooleanstatic voidsetRedirectHandler(RedirectHandler handler) voidsetupClient(okhttp3.OkHttpClient.Builder builder)
-
Constructor Details
-
TrinoUri
- Throws:
SQLException
-
TrinoUri
- Throws:
SQLException
-
-
Method Details
-
create
- Throws:
SQLException
-
create
- Throws:
SQLException
-
getUri
-
getSchema
-
getCatalog
-
getHttpUri
-
getRequiredUser
- Throws:
SQLException
-
checkRequired
- Throws:
SQLException
-
getUser
-
hasPassword
public boolean hasPassword() -
getSessionUser
-
getRoles
-
getApplicationNamePrefix
-
getExtraCredentials
-
getClientInfo
-
getClientTags
-
getTraceToken
-
getSessionProperties
-
getSource
-
getExplicitPrepare
-
isCompressionDisabled
public boolean isCompressionDisabled() -
isAssumeLiteralNamesInMetadataCallsForNonConformingClients
public boolean isAssumeLiteralNamesInMetadataCallsForNonConformingClients() -
isAssumeLiteralUnderscoreInMetadataCallsForNonConformingClients
public boolean isAssumeLiteralUnderscoreInMetadataCallsForNonConformingClients() -
getTimeZone
-
getProperties
-
getPropertyInfo
-
getSetupSsl
-
setupClient
- Throws:
SQLException
-
setRedirectHandler
-
builder
-