@Test public void isDescendantTest() { Assert.assertTrue(CuboidStatsUtil.isDescendant(6L, 239L)); Assert.assertTrue(!CuboidStatsUtil.isDescendant(4L, 50L)); }
public static boolean isDescendant(long cuboidToCheck, long parentCuboid) { return (cuboidToCheck & parentCuboid) == cuboidToCheck; }
CuboidStatsUtil { public static boolean isDescendant(long cuboidToCheck, long parentCuboid) { return (cuboidToCheck & parentCuboid) == cuboidToCheck; } }
CuboidStatsUtil { public static boolean isDescendant(long cuboidToCheck, long parentCuboid) { return (cuboidToCheck & parentCuboid) == cuboidToCheck; } private  CuboidStatsUtil(); }
CuboidStatsUtil { public static boolean isDescendant(long cuboidToCheck, long parentCuboid) { return (cuboidToCheck & parentCuboid) == cuboidToCheck; } private  CuboidStatsUtil(); static Map<Long, Double> calculateCuboidHitProbability(Set<Long> selectionCuboidSet,
            Map<Long, Long> hitFrequencyMap, long nTotalCuboids, double queryUncertaintyRatio); static Map<Long, Long> generateSourceCuboidStats(Map<Long, Long> statistics,
            Map<Long, Double> cuboidHitProbabilityMap, Map<Long, Map<Long, Pair<Long, Long>>> rollingUpSourceMap); static Map<Long, Long> complementRowCountForCuboids(final Map<Long, Long> statistics, Set<Long> cuboids); static Map<Long, Long> adjustCuboidStats(Map<Long, Long> statistics); static void adjustCuboidStats(Map<Long, Long> mandatoryCuboidsWithStats, Map<Long, Long> statistics); static Map<Long, List<Long>> createDirectChildrenCache(final Set<Long> cuboidSet); static boolean isDescendant(long cuboidToCheck, long parentCuboid); }
CuboidStatsUtil { public static boolean isDescendant(long cuboidToCheck, long parentCuboid) { return (cuboidToCheck & parentCuboid) == cuboidToCheck; } private  CuboidStatsUtil(); static Map<Long, Double> calculateCuboidHitProbability(Set<Long> selectionCuboidSet,
            Map<Long, Long> hitFrequencyMap, long nTotalCuboids, double queryUncertaintyRatio); static Map<Long, Long> generateSourceCuboidStats(Map<Long, Long> statistics,
            Map<Long, Double> cuboidHitProbabilityMap, Map<Long, Map<Long, Pair<Long, Long>>> rollingUpSourceMap); static Map<Long, Long> complementRowCountForCuboids(final Map<Long, Long> statistics, Set<Long> cuboids); static Map<Long, Long> adjustCuboidStats(Map<Long, Long> statistics); static void adjustCuboidStats(Map<Long, Long> mandatoryCuboidsWithStats, Map<Long, Long> statistics); static Map<Long, List<Long>> createDirectChildrenCache(final Set<Long> cuboidSet); static boolean isDescendant(long cuboidToCheck, long parentCuboid);  }