Literally: Pretending to jack off like a guy, by hitting your hand against the underneath of a table repetitively.
Slang for jerking off.
"I'm going to go back to my dorm and hit the table."
"I love hitting the table during class. Really freaks out the ladies."