Reputation: 41
I need to get address of my connection (I don't know exact name of it but it is number with 'i' char), when I want to connect to server in kdb process I just use function:
q) h: hopen`:localhost:5000:username:password
q) h
5i
and then I know that my connection number is 5. How to get this number with kx.c library? Creating connection:
c = new c(url,port,username:password);
I can do execute any statement but I have no idea what is name of the connection in this case. Is is possible to get this number with kx.c library?
Upvotes: 1
Views: 740
Reputation: 2615
There's self-contained examples of kdb/java here: http://www.timestored.com/kdb-guides/kdb-java-api
and then I know that my connection number is 5. How to get this number with kx.c library?
If you call .z.w from java that will return your handle number. Though I don't see what you could possibly use that for.
Upvotes: 1