private List<Long> getGroupingSetsForCube(int size) {
    long count = 1L << size;
    List<Long> results = new ArrayList<Long>();
    for (long i = 0; i < count; ++i) {
      results.add(i);
    }
    return results;
  }
create a filter plan. The condition and the inputs are specified.

@param qb
         current query block
@param condn
         The condition to be resolved
@param input
         the input operator
ql/src/java/org/apache/hadoop/hive/ql/parse/SemanticAnalyzer.java