Explain the architectural differences between Hadoop (HDFS) and cloud-based object storage like S3, and how this affects query performance.