@Test public void testBasics() { System.out.println("test basics ============================================================================"); Map<TblColRef, Set<String>> values = Maps.newHashMap(); values.put(col1, set("a", "b", "c")); values.put(col2, set("x", "y", "z")); List<Map<TblColRef, String>> result = FuzzyValueCombination.calculate(values, 10); for (Map<TblColRef, String> item : result) { System.out.println(item); } assertEquals(9, result.size()); }
public static <E> List<Map<TblColRef, E>> calculate(Map<TblColRef, Set<E>> fuzzyValues, long cap) { Dim[] dims = toDims(fuzzyValues); if (exceedCap(dims, cap)) { return Lists.newArrayList(); } else { return combination(dims); } }
FuzzyValueCombination { public static <E> List<Map<TblColRef, E>> calculate(Map<TblColRef, Set<E>> fuzzyValues, long cap) { Dim[] dims = toDims(fuzzyValues); if (exceedCap(dims, cap)) { return Lists.newArrayList(); } else { return combination(dims); } } }
FuzzyValueCombination { public static <E> List<Map<TblColRef, E>> calculate(Map<TblColRef, Set<E>> fuzzyValues, long cap) { Dim[] dims = toDims(fuzzyValues); if (exceedCap(dims, cap)) { return Lists.newArrayList(); } else { return combination(dims); } }  }
FuzzyValueCombination { public static <E> List<Map<TblColRef, E>> calculate(Map<TblColRef, Set<E>> fuzzyValues, long cap) { Dim[] dims = toDims(fuzzyValues); if (exceedCap(dims, cap)) { return Lists.newArrayList(); } else { return combination(dims); } }  static List<Map<TblColRef, E>> calculate(Map<TblColRef, Set<E>> fuzzyValues, long cap); }
FuzzyValueCombination { public static <E> List<Map<TblColRef, E>> calculate(Map<TblColRef, Set<E>> fuzzyValues, long cap) { Dim[] dims = toDims(fuzzyValues); if (exceedCap(dims, cap)) { return Lists.newArrayList(); } else { return combination(dims); } }  static List<Map<TblColRef, E>> calculate(Map<TblColRef, Set<E>> fuzzyValues, long cap);  }