public abstract class AbstractDatabricksRestClientImpl extends Object implements DatabricksRestClient
| Modifier and Type | Field and Description |
|---|---|
protected String |
apiVersion |
protected org.apache.http.client.HttpClient |
client |
protected String |
host |
protected com.fasterxml.jackson.databind.ObjectMapper |
mapper |
protected String |
url |
| Constructor and Description |
|---|
AbstractDatabricksRestClientImpl(String host,
String apiVersion)
Creates a rest client.
|
| Modifier and Type | Method and Description |
|---|---|
protected byte[] |
extractContent(org.apache.http.HttpResponse httpResponse) |
String |
getHost()
Returns the host string.
|
protected String |
makeCommands(Map<String,Object> data) |
protected org.apache.http.client.methods.HttpDelete |
makeDeleteMethod(String path) |
protected org.apache.http.client.methods.HttpGet |
makeGetMethod(String path,
Map<String,Object> data) |
protected org.apache.http.client.methods.HttpRequestBase |
makeHttpMethod(RequestMethod requestMethod,
String path,
Map<String,Object> data) |
protected org.apache.http.client.methods.HttpPatch |
makePatchMethod(String path,
Map<String,Object> data) |
protected org.apache.http.client.methods.HttpPost |
makePostMethod(String path,
Map<String,Object> data) |
protected org.apache.http.client.methods.HttpPut |
makePutMethod(String path,
Map<String,Object> data) |
protected org.apache.http.entity.StringEntity |
makeStringRequestEntity(Map<String,Object> data) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitperformQuery, performQueryprotected final String apiVersion
protected final String host
protected String url
protected com.fasterxml.jackson.databind.ObjectMapper mapper
protected org.apache.http.client.HttpClient client
protected byte[] extractContent(org.apache.http.HttpResponse httpResponse)
throws IOException,
DatabricksRestException
IOExceptionDatabricksRestExceptionpublic String getHost()
DatabricksRestClientgetHost in interface DatabricksRestClientprotected org.apache.http.client.methods.HttpRequestBase makeHttpMethod(RequestMethod requestMethod, String path, Map<String,Object> data) throws UnsupportedEncodingException, com.fasterxml.jackson.core.JsonProcessingException
UnsupportedEncodingExceptioncom.fasterxml.jackson.core.JsonProcessingExceptionprotected org.apache.http.client.methods.HttpGet makeGetMethod(String path, Map<String,Object> data)
protected org.apache.http.client.methods.HttpDelete makeDeleteMethod(String path)
protected org.apache.http.client.methods.HttpPatch makePatchMethod(String path, Map<String,Object> data) throws UnsupportedEncodingException, com.fasterxml.jackson.core.JsonProcessingException
UnsupportedEncodingExceptioncom.fasterxml.jackson.core.JsonProcessingExceptionprotected org.apache.http.client.methods.HttpPost makePostMethod(String path, Map<String,Object> data) throws UnsupportedEncodingException, com.fasterxml.jackson.core.JsonProcessingException
UnsupportedEncodingExceptioncom.fasterxml.jackson.core.JsonProcessingExceptionprotected org.apache.http.client.methods.HttpPut makePutMethod(String path, Map<String,Object> data) throws UnsupportedEncodingException, com.fasterxml.jackson.core.JsonProcessingException
UnsupportedEncodingExceptioncom.fasterxml.jackson.core.JsonProcessingExceptionprotected org.apache.http.entity.StringEntity makeStringRequestEntity(Map<String,Object> data) throws UnsupportedEncodingException, com.fasterxml.jackson.core.JsonProcessingException
UnsupportedEncodingExceptioncom.fasterxml.jackson.core.JsonProcessingExceptionCopyright © 2023. All rights reserved.