@Override public List<String> getAllQueryableCubeNames(LensSessionHandle sessionid) throws LensException { try (SessionContext ignored = new SessionContext(sessionid)){ Collection<CubeInterface> cubes = getClient(sessionid).getAllCubes(); if (cubes != null && !cubes.isEmpty()) { List<String> names = new ArrayList<>(cubes.size()); for (CubeInterface cube : cubes) { if (cube.allFieldsQueriable()) { names.add(cube.getName()); } } return names; } } return null; }
/** * Get all derived cubes of the cube, that have all fields queryable together * * @param cube Cube object * @return List of DerivedCube objects * @throws LensException */ public List<DerivedCube> getAllDerivedQueryableCubes(CubeInterface cube) throws LensException { List<DerivedCube> dcubes = new ArrayList<>(); for (CubeInterface cb : getAllCubes()) { if (cb.isDerivedCube() && ((DerivedCube) cb).getParent().getName().equalsIgnoreCase(cube.getName()) && cb.allFieldsQueriable()) { dcubes.add((DerivedCube) cb); } } return dcubes; }
/** * Get all derived cubes of the cube, that have all fields queryable together * * @param cube Cube object * @return List of DerivedCube objects * @throws LensException */ public List<DerivedCube> getAllDerivedQueryableCubes(CubeInterface cube) throws LensException { List<DerivedCube> dcubes = new ArrayList<>(); for (CubeInterface cb : getAllCubes()) { if (cb.isDerivedCube() && ((DerivedCube) cb).getParent().getName().equalsIgnoreCase(cube.getName()) && cb.allFieldsQueriable()) { dcubes.add((DerivedCube) cb); } } return dcubes; }
if (!cube.allFieldsQueriable()) {
if (!cube.allFieldsQueriable()) {