@Override public List<String> getAllDimensionNames(LensSessionHandle sessionid) throws LensException { try (SessionContext ignored = new SessionContext(sessionid)){ Collection<Dimension> dimensions = getClient(sessionid).getAllDimensions(); if (dimensions != null && !dimensions.isEmpty()) { List<String> names = new ArrayList<>(dimensions.size()); for (Dimension dim : dimensions) { names.add(dim.getName()); } return names; } } return null; }
client.createDimension(countryDim); assertEquals(client.getAllDimensions().size(), 4); assertTrue(client.tableExists(cityDim.getName())); assertTrue(client.tableExists(stateDim.getName()));