queryStream function added to logdb api, for getting result of stream.