public static long getBaseCuboidId(CubeDesc cube) { return cube.getRowkey().getFullMask(); }
@Test public void testIdentifyCuboidV2() throws InvocationTargetException, NoSuchMethodException, IllegalAccessException, NoSuchFieldException { CubeDesc cubeDesc = cube.getDescriptor(); Cuboid ret = Cuboid.findCuboid(cube.getCuboidScheduler(), Sets.<TblColRef> newHashSet(), Lists.<FunctionDesc> newArrayList()); long baseCuboidId = cubeDesc.getRowkey().getFullMask(); assertNotEquals(baseCuboidId, ret.getId()); ret = Cuboid.findCuboid(cube.getCuboidScheduler(), dimensions, metrics); assertEquals(baseCuboidId, ret.getId()); }
private static boolean checkBaseCuboid(RowKeyDesc rowkey, long cuboidID) { long baseCuboidId = rowkey.getFullMask(); if (cuboidID > baseCuboidId) { throw new IllegalArgumentException("Cubiod " + cuboidID + " is out of scope 0-" + baseCuboidId); } return baseCuboidId == cuboidID; }
public static long getBaseCuboidId(CubeDesc cube) { return cube.getRowkey().getFullMask(); }
private static boolean checkBaseCuboid(RowKeyDesc rowkey, long cuboidID) { long baseCuboidId = rowkey.getFullMask(); if (cuboidID > baseCuboidId) { throw new IllegalArgumentException("Cubiod " + cuboidID + " is out of scope 0-" + baseCuboidId); } return baseCuboidId == cuboidID; }
public static long getBaseCuboidId(CubeDesc cube) { return cube.getRowkey().getFullMask(); }
public static long getBaseCuboidId(CubeDesc cube) { return cube.getRowkey().getFullMask(); }