A query and aggregation framework for Bcolz