COMPACTNESS OF THE HARDY OPERATOR AND ITS LIMITING CASE