private int[] toArray(Set<Integer> values, int pos) {
      values.remove(pos);
      int index = 0;
      int[] result = new int[values.size()];
      for (int value : values) {
        result[index++] = value;
      }
      return result;
    }
propagates filters to other aliases based on join condition
ql/src/java/org/apache/hadoop/hive/ql/ppd/PredicateTransitivePropagate.java