How to identify the LOGGED IN User?

I have some entitlements which i would like to implement, based on the logged-in user, i should populate the data from table.

So, how to identify the LOGGED IN User and pass that as parameter to query?