public class QueryClient extends CellClient
| Modifier and Type | Field and Description |
|---|---|
static String |
PSM_NS |
client, serviceUrl| Constructor and Description |
|---|
QueryClient(Li2b2Client client,
URL serviceUrl) |
| Modifier and Type | Method and Description |
|---|---|
void |
deleteQueryMaster(String masterId) |
List<QueryInstance> |
getQueryInstanceList(String masterId)
Retrieve query executions (instances) for the given query master id
|
List<QueryMaster> |
getQueryMasterList()
Retrieve previous queries for the current user and project.
|
List<QueryMaster> |
getQueryMasterList(String userId,
String groupId,
int fetchSize)
Retrieve previous queries.
|
List<QueryResultInstance> |
getQueryResultInstanceList(String instanceId) |
String |
getResultDocument(String query_result_instance_id)
Retrieve the result document for the given result id.
|
List<QueryResultType> |
getResultType() |
MasterInstanceResult |
runQueryInstance(Element query_definition,
String[] result_output_list) |
appendOptionalElement, appendTextElement, createConnection, createRequest, createRequestMessage, createRequestMessage, createRequestMessage, getOutputCharset, getServiceURL, newBuilder, submitRequest, submitRequest, submitRequestWithResponseContentpublic static final String PSM_NS
public QueryClient(Li2b2Client client, URL serviceUrl)
public List<QueryResultType> getResultType() throws HiveException
HiveExceptionpublic MasterInstanceResult runQueryInstance(Element query_definition, String[] result_output_list) throws HiveException
HiveExceptionpublic List<QueryMaster> getQueryMasterList(String userId, String groupId, int fetchSize) throws HiveException
userId - user idgroupId - group id. usually the project id.fetchSize - maximum number of queries to returnHiveException - communications errorpublic List<QueryMaster> getQueryMasterList() throws HiveException
getQueryMasterList(String, String, int).HiveException - errorpublic List<QueryInstance> getQueryInstanceList(String masterId) throws HiveException
masterId - query master idHiveException - errorpublic List<QueryResultInstance> getQueryResultInstanceList(String instanceId) throws HiveException
HiveExceptionpublic void deleteQueryMaster(String masterId) throws HiveException
HiveExceptionpublic String getResultDocument(String query_result_instance_id) throws HiveException
CATNUM.query_result_instance_id - result idi2b2_result_envelope
in namespace http://www.i2b2.org/xsd/hive/msg/result/1.1/HiveException - errorCopyright © 2013–2020 R.W.Majeed. All rights reserved.