java - How do I use the k() function to receive data in kdb/q -


using c.cs interface found in interfacing c#, how use k() function receive data long-running computation?

what is

conn.ks("compute_long_running_function[]"); 

do else

results=conn.k();//wait data 

however, latter call not return last result -- times out indefinitely unless /t {n} has been set beforehand.

is there way send data server client waiting it? how else 1 use k() function no arguments.

note question applies java interface, identical.

the k() function block until receives data remote socket. if function looked this:

compute_long_running_function:{[] r:til 1000; neg[.z.w] r } 

the function result sent on loopback connection , retrieved conn.k()

the alternative do:

results=conn.k("compute_long_running_function[]"); 

which return results of function when ready. might have known already.

regards,

david


Comments

Popular posts from this blog

android - Pass an Serializable object in AIDL -

How to provide Authorization & Authentication using Asp.net, C#? -

How to use Authorization & Authentication in Asp.net, C#? -