public void createSegmentation(Segmentation cubeSeg) throws LensException { // create virtual cube table in metastore createCubeHiveTable(cubeSeg); }
public void createSegmentation(Segmentation cubeSeg) throws LensException { checkIfAuthorized(); // create virtual cube table in metastore createCubeHiveTable(cubeSeg); }
/** * Create cube table defined and create all the corresponding storage tables * * @param cubeTable Can be fact or dimension table * @param storageTableDescs Map of storage tableName prefix to its storage table description * @throws LensException */ public void createCubeTable(AbstractCubeTable cubeTable, Map<String, StorageTableDesc> storageTableDescs) throws LensException { // create virtual cube table in metastore Table cTable = createCubeHiveTable(cubeTable); if (storageTableDescs != null) { // create tables for each storage for (Map.Entry<String, StorageTableDesc> entry : storageTableDescs.entrySet()) { createOrAlterStorageHiveTable(cTable, entry.getKey(), entry.getValue()); } } }
/** * Create cube table defined and create all the corresponding storage tables * * @param cubeTable Can be fact or dimension table * @param storageTableDescs Map of storage tableName prefix to its storage table description * @throws LensException */ public void createCubeTable(AbstractCubeTable cubeTable, Map<String, StorageTableDesc> storageTableDescs) throws LensException { // create virtual cube table in metastore Table cTable = createCubeHiveTable(cubeTable); if (storageTableDescs != null) { // create tables for each storage for (Map.Entry<String, StorageTableDesc> entry : storageTableDescs.entrySet()) { createOrAlterStorageHiveTable(cTable, entry.getKey(), entry.getValue()); } } }
/** * Create dimension in metastore defined by {@link Dimension} object * * @param dim the {@link Dimension} object. * @throws LensException */ public void createDimension(Dimension dim) throws LensException { createCubeHiveTable(dim); // do a get to update cache getDimension(dim.getName()); }
public void createStorage(Storage storage) throws LensException { createCubeHiveTable(storage); // do a get to update cache getStorage(storage.getName()); }
/** * Create cube in metastore defined by {@link Cube} or {@link DerivedCube} object * * @param cube the {@link Cube} object. * @throws LensException */ public void createCube(CubeInterface cube) throws LensException { createCubeHiveTable((AbstractCubeTable) cube); // do a get to update cache getCube(cube.getName()); }
public void createStorage(Storage storage) throws LensException { checkIfAuthorized(); createCubeHiveTable(storage); // do a get to update cache getStorage(storage.getName()); }
/** * Create cube in metastore defined by {@link Cube} or {@link DerivedCube} object * * @param cube the {@link Cube} object. * @throws LensException */ public void createCube(CubeInterface cube) throws LensException { checkIfAuthorized(); createCubeHiveTable((AbstractCubeTable) cube); // do a get to update cache getCube(cube.getName()); }
/** * Create dimension in metastore defined by {@link Dimension} object * * @param dim the {@link Dimension} object. * @throws LensException */ public void createDimension(Dimension dim) throws LensException { checkIfAuthorized(); createCubeHiveTable(dim); // do a get to update cache getDimension(dim.getName()); }