public class KdbAsyncQuery extends KdbQuery
Based on KdbQuery
provides an asynchronous (send query and wait locally
for a response from process) means of communicating with a KDB process.
KdbQuery
Modifier and Type | Field and Description |
---|---|
private static org.slf4j.Logger |
log |
connection
Constructor and Description |
---|
KdbAsyncQuery(KdbConnection existingConnection) |
KdbAsyncQuery(KdbProcess target) |
Modifier and Type | Method and Description |
---|---|
Object |
query(String query)
Method to query a kdb process with a string argument only.
|
Object |
query(String query,
KdbDict arguments)
NOTE: This function does not perform any re-send of the query in case the connection
fails (due to
IOException ). |
public KdbAsyncQuery(KdbProcess target) throws KdbTargetProcessUnavailableException
public KdbAsyncQuery(KdbConnection existingConnection) throws KdbTargetProcessUnavailableException
public Object query(String query) throws QueryExecutionFailedException
KdbQuery
"aFunction[]"
or "aFunctionWithArgs[1;`symbol]
.query
in class KdbQuery
query
- The string query to executeQueryExecutionFailedException
- If the query fails for any reasonpublic Object query(String query, KdbDict arguments) throws QueryExecutionFailedException
IOException
). The calling function needs to ensure they re-send the
query if they want to.query
in class KdbQuery
query
- The function to executearguments
- The dictionary of argumentsQueryExecutionFailedException
- If the query fails for any reasonCopyright © 2017. All rights reserved.