Package org.elasticsearch.xpack.sql.jdbc
Class JdbcConfiguration
java.lang.Object
org.elasticsearch.xpack.sql.client.ConnectionConfiguration
org.elasticsearch.xpack.sql.jdbc.JdbcConfiguration
public class JdbcConfiguration
extends org.elasticsearch.xpack.sql.client.ConnectionConfiguration
/ Supports the following syntax
/
/ jdbc:es://[host|ip]
/ jdbc:es://[host|ip]:port/(prefix)
/ jdbc:es://[host|ip]:port/(prefix)(?options=value&)
/
/ Additional properties can be specified either through the Properties object or in the URL. In case of duplicates, the URL wins.
-
Field Summary
Fields Modifier and Type Field Description static java.net.URIDEFAULT_URIstatic java.lang.StringTIME_ZONE -
Method Summary
Modifier and Type Method Description static booleancanAccept(java.lang.String url)static JdbcConfigurationcreate(java.lang.String u, java.util.Properties props, int loginTimeoutSeconds)booleandebug()java.lang.StringdebugOut()java.sql.DriverPropertyInfo[]driverPropertyInfo()protected java.util.Collection<java.lang.String>extraOptions()booleanfieldMultiValueLeniency()booleanflushAlways()booleanindexIncludeFrozen()java.util.TimeZonetimeZone()Methods inherited from class org.elasticsearch.xpack.sql.client.ConnectionConfiguration
authPass, authUser, baseUri, binaryCommunication, connectionString, connectTimeout, isSSLEnabled, networkTimeout, optionNames, pageSize, pageTimeout, parseValue, proxyConfig, queryTimeout, sslConfig, validateProperties
-
Field Details
-
DEFAULT_URI
public static java.net.URI DEFAULT_URI -
TIME_ZONE
public static final java.lang.String TIME_ZONE- See Also:
- Constant Field Values
-
-
Method Details
-
create
public static JdbcConfiguration create(java.lang.String u, java.util.Properties props, int loginTimeoutSeconds) throws org.elasticsearch.xpack.sql.jdbc.JdbcSQLException- Throws:
org.elasticsearch.xpack.sql.jdbc.JdbcSQLException
-
extraOptions
protected java.util.Collection<java.lang.String> extraOptions()- Overrides:
extraOptionsin classorg.elasticsearch.xpack.sql.client.ConnectionConfiguration
-
debug
public boolean debug() -
debugOut
public java.lang.String debugOut() -
flushAlways
public boolean flushAlways() -
timeZone
public java.util.TimeZone timeZone() -
fieldMultiValueLeniency
public boolean fieldMultiValueLeniency() -
indexIncludeFrozen
public boolean indexIncludeFrozen() -
canAccept
public static boolean canAccept(java.lang.String url) -
driverPropertyInfo
public java.sql.DriverPropertyInfo[] driverPropertyInfo()
-