public class LocalOlapClient extends java.lang.Object implements OlapClient
Modifier and Type | Method and Description |
---|---|
<R extends OlapResult> |
execute(DistributedJob jobRequest)
Synchronously execute the expected job.
|
static LocalOlapClient |
getInstance() |
void |
shutdown() |
<R extends OlapResult> |
submit(DistributedJob jobRequest)
Submits a job for asynchronous execution.
|
public static LocalOlapClient getInstance()
public <R extends OlapResult> R execute(@Nonnull DistributedJob jobRequest) throws java.io.IOException, java.util.concurrent.TimeoutException
OlapClient
execute
in interface OlapClient
R
- the Type of OlapResult expected back from the serverjobRequest
- the job to run. Cannot be nulljava.io.IOException
- if something goes wrong communicating with the OlapServerjava.util.concurrent.TimeoutException
- if the operations timed out and needs to be abortedpublic <R extends OlapResult> org.spark_project.guava.util.concurrent.ListenableFuture<R> submit(@Nonnull DistributedJob jobRequest) throws java.io.IOException
OlapClient
submit
in interface OlapClient
R
- the Type of OlapResult expected back from the server, which will be wrapped in a FuturejobRequest
- the job to run. Cannot be nulljava.io.IOException
- if something goes wrong communicating with the OlapServerpublic void shutdown()
shutdown
in interface OlapClient