public class CubeMetastoreClient extends Object
Modifier and Type | Method and Description |
---|---|
List<org.apache.hadoop.hive.ql.metadata.Partition> |
addPartition(StoragePartitionDesc partSpec,
String storageName)
Add a partition specified by the storage partition desc on the storage passed.
|
List<org.apache.hadoop.hive.ql.metadata.Partition> |
addPartitions(List<StoragePartitionDesc> storagePartitionDescs,
String storageName)
batch addition
|
void |
addStorage(CubeDimensionTable dim,
String storage,
UpdatePeriod dumpPeriod,
StorageTableDesc storageTableDesc)
Adds storage to dimension and creates corresponding storage table
|
void |
addStorage(CubeFactTable fact,
String storage,
Set<UpdatePeriod> updatePeriods,
StorageTableDesc storageTableDesc)
Adds storage to fact and creates corresponding storage table
|
void |
alterCube(String cubeName,
CubeInterface cube)
Alter cube specified by the name to new definition
|
void |
alterCubeDimensionTable(String dimTableName,
CubeDimensionTable cubeDimensionTable,
Map<String,StorageTableDesc> storageTableDescs)
Alter dimension table with new dimension definition and underlying storage tables as well
|
void |
alterCubeFactTable(String factTableName,
CubeFactTable cubeFactTable,
Map<String,StorageTableDesc> storageTableDescs)
Alter a cubefact with new definition and alter underlying storage tables as well.
|
void |
alterDimension(String dimName,
Dimension newDim)
Alter dimension specified by the dimension name to new definition
|
void |
alterHiveTable(String table,
org.apache.hadoop.hive.ql.metadata.Table hiveTable) |
void |
alterStorage(String storageName,
Storage storage)
Alter storage specified by the name to new definition
|
void |
clearHiveTableCache()
clear hive table cache
|
static void |
close()
Close the current metastore client
|
void |
createCube(CubeInterface cube)
Create cube in metastore defined by
Cube or DerivedCube object |
void |
createCube(String name,
Set<CubeMeasure> measures,
Set<CubeDimAttribute> dimensions)
Create cube defined by measures and dimensions
|
void |
createCube(String name,
Set<CubeMeasure> measures,
Set<CubeDimAttribute> dimensions,
Map<String,String> properties)
Create cube defined by measures, dimensions and properties
|
void |
createCube(String name,
Set<CubeMeasure> measures,
Set<CubeDimAttribute> dimensions,
Set<ExprColumn> expressions,
Map<String,String> properties)
Create cube defined by measures, dimensions and properties
|
void |
createCube(String name,
Set<CubeMeasure> measures,
Set<CubeDimAttribute> dimensions,
Set<ExprColumn> expressions,
Set<JoinChain> chains,
Map<String,String> properties)
Create cube defined by measures, dimensions and properties
|
void |
createCubeDimensionTable(String dimName,
String dimTblName,
List<org.apache.hadoop.hive.metastore.api.FieldSchema> columns,
double weight,
Map<String,UpdatePeriod> dumpPeriods,
Map<String,String> properties,
Map<String,StorageTableDesc> storageTableDescs)
Create a cube dimension table
|
void |
createCubeDimensionTable(String dimName,
String dimTblName,
List<org.apache.hadoop.hive.metastore.api.FieldSchema> columns,
double weight,
Set<String> storageNames,
Map<String,String> properties,
Map<String,StorageTableDesc> storageTableDescs)
Create a cube dimension table
|
void |
createCubeFactTable(String cubeName,
String factName,
List<org.apache.hadoop.hive.metastore.api.FieldSchema> columns,
Map<String,Set<UpdatePeriod>> storageAggregatePeriods,
double weight,
Map<String,String> properties,
Map<String,StorageTableDesc> storageTableDescs)
Create a cube fact table
|
void |
createCubeTable(AbstractCubeTable cubeTable,
Map<String,StorageTableDesc> storageTableDescs)
Create cube table defined and create all the corresponding storage tables
|
void |
createDerivedCube(String parent,
String name,
Set<String> measures,
Set<String> dimensions,
Map<String,String> properties,
double weight)
Create derived cube defined by measures, dimensions and properties
|
void |
createDimension(Dimension dim)
Create dimension in metastore defined by
Dimension object |
void |
createDimension(String name,
Set<CubeDimAttribute> attributes,
Map<String,String> properties,
double weight)
Create dimension defined by attributes and properties
|
void |
createStorage(Storage storage) |
boolean |
dimTableLatestPartitionExists(String storageTableName) |
void |
dropCube(String cubeName)
Drop a cube
|
void |
dropDimension(String dimName)
Drop a dimension
|
void |
dropDimensionTable(String dimTblName,
boolean cascade)
Drop the dimension table
|
void |
dropFact(String factName,
boolean cascade)
Drop a fact with cascade flag
|
void |
dropHiveTable(String table) |
void |
dropPartition(String cubeTableName,
String storageName,
Map<String,Date> timePartSpec,
Map<String,String> nonTimePartSpec,
UpdatePeriod updatePeriod)
Add a partition specified by the storage partition desc on the storage passed.
|
void |
dropStorage(String storageName)
Drop a storage
|
void |
dropStorageFromDim(String dimTblName,
String storage)
Drop a storage from dimension
|
void |
dropStorageFromFact(String factName,
String storage)
Drop a storage from fact
|
boolean |
factPartitionExists(CubeFactTable fact,
FactPartition part,
String storageTableName)
extract storage name and check in timeline cache for existance
|
boolean |
factPartitionExists(String factName,
String storageName,
UpdatePeriod updatePeriod,
Map<String,Date> partitionTimestamp,
Map<String,String> partSpec) |
Collection<CubeInterface> |
getAllCubes()
Get all cubes in metastore
|
List<DerivedCube> |
getAllDerivedQueryableCubes(CubeInterface cube)
Get all derived cubes of the cube, that have all fields queryable together
|
Collection<Dimension> |
getAllDimensions()
Get all cubes in metastore
|
Collection<CubeDimensionTable> |
getAllDimensionTables()
Get all dimension tables in metastore
|
List<CubeDimensionTable> |
getAllDimensionTables(Dimension dim)
Get all dimension tables of the dimension.
|
Collection<CubeFactTable> |
getAllFacts()
Get all facts in metastore
|
List<CubeFactTable> |
getAllFacts(CubeInterface cube)
Get all fact tables of the cube.
|
List<org.apache.hadoop.hive.ql.metadata.Partition> |
getAllParts(String storageTableName) |
Collection<Storage> |
getAllStorages()
Get all storages in metastore
|
org.apache.hadoop.hive.conf.HiveConf |
getConf()
Get cube metastore client conf
|
CubeInterface |
getCube(String tableName)
Get
Cube object corresponding to the name |
CubeFactTable |
getCubeFact(String tableName)
Get
Cube object corresponding to the name |
Dimension |
getDimension(String tableName)
Get
Cube object corresponding to the name |
CubeDimensionTable |
getDimensionTable(String tableName)
Get
CubeDimensionTable object corresponding to the name |
CubeFactTable |
getFactTable(String tableName)
Get
CubeFactTable object corresponding to the name |
org.apache.hadoop.hive.ql.metadata.Table |
getHiveTable(String tableName)
Get the hive
Table corresponding to the name |
static CubeMetastoreClient |
getInstance(org.apache.hadoop.hive.conf.HiveConf conf)
Get the instance of
CubeMetastoreClient corresponding to HiveConf |
Date |
getLatestDateOfCube(Cube cube,
String timeDimension)
get latest date for timeDimension from all fact-storage tables belonging to the given cube having timeDimension,
return the most recent of all.
|
org.apache.hadoop.hive.ql.metadata.Partition |
getPartitionByFilter(String storageTableName,
String filter) |
List<org.apache.hadoop.hive.ql.metadata.Partition> |
getPartitionsByFilter(String storageTableName,
String filter) |
Storage |
getStorage(String storageName)
Get
Storage object corresponding to the name |
org.apache.hadoop.hive.ql.metadata.Table |
getTable(String tableName) |
List<PartitionTimeline> |
getTimelines(String factName,
String storage,
String updatePeriodStr,
String timeDimension) |
List<String> |
getTimePartColNamesOfTable(String storageTableName) |
List<String> |
getTimePartColNamesOfTable(org.apache.hadoop.hive.ql.metadata.Table table)
extract from table properties
|
boolean |
isCube(String tableName)
Is the table name passed a cube?
|
boolean |
isDimension(String tableName)
Is the table name passed a dimension?
|
boolean |
isDimensionTable(String tableName)
Is the table name passed a dimension table?
|
boolean |
isFactTable(String tableName)
Is the table name passed a fact table?
|
boolean |
isLensQueryableTable(String tableName) |
boolean |
isStorage(String tableName)
Is the table name passed a storage?
|
boolean |
isStorageTableCandidateForRange(String storageTableName,
Date fromDate,
Date toDate) |
boolean |
isStorageTableCandidateForRange(String storageTableName,
String fromDate,
String toDate) |
boolean |
partColExists(String tableName,
String partCol) |
boolean |
partitionExists(String storageTableName,
UpdatePeriod updatePeriod,
Map<String,Date> partitionTimestamps) |
boolean |
partitionExistsByFilter(String storageTableName,
String filter) |
boolean |
partitionExistsByFilter(String cubeTableName,
String storageName,
String filter) |
void |
pushHiveTable(org.apache.hadoop.hive.ql.metadata.Table hiveTable) |
boolean |
tableExists(String tblName) |
void |
updatePartition(String fact,
String storageName,
org.apache.hadoop.hive.ql.metadata.Partition partition) |
void |
updatePartitions(String factOrDimtableName,
String storageName,
List<org.apache.hadoop.hive.ql.metadata.Partition> partitions) |
public Date getLatestDateOfCube(Cube cube, String timeDimension) throws org.apache.hadoop.hive.ql.metadata.HiveException, LensException
cube
- Cube to get latest date oftimeDimension
- time dimensionorg.apache.hadoop.hive.ql.metadata.HiveException
LensException
public void clearHiveTableCache()
public List<PartitionTimeline> getTimelines(String factName, String storage, String updatePeriodStr, String timeDimension) throws LensException, org.apache.hadoop.hive.ql.metadata.HiveException
LensException
org.apache.hadoop.hive.ql.metadata.HiveException
public void updatePartition(String fact, String storageName, org.apache.hadoop.hive.ql.metadata.Partition partition) throws org.apache.hadoop.hive.ql.metadata.HiveException, org.apache.hadoop.hive.metastore.api.InvalidOperationException
org.apache.hadoop.hive.ql.metadata.HiveException
org.apache.hadoop.hive.metastore.api.InvalidOperationException
public void updatePartitions(String factOrDimtableName, String storageName, List<org.apache.hadoop.hive.ql.metadata.Partition> partitions) throws org.apache.hadoop.hive.ql.metadata.HiveException, org.apache.hadoop.hive.metastore.api.InvalidOperationException
org.apache.hadoop.hive.ql.metadata.HiveException
org.apache.hadoop.hive.metastore.api.InvalidOperationException
public boolean isLensQueryableTable(String tableName)
public static CubeMetastoreClient getInstance(org.apache.hadoop.hive.conf.HiveConf conf) throws org.apache.hadoop.hive.ql.metadata.HiveException
CubeMetastoreClient
corresponding to HiveConf
conf
- conforg.apache.hadoop.hive.ql.metadata.HiveException
public org.apache.hadoop.hive.conf.HiveConf getConf()
public static void close()
public void createStorage(Storage storage) throws org.apache.hadoop.hive.ql.metadata.HiveException
org.apache.hadoop.hive.ql.metadata.HiveException
public void createCube(CubeInterface cube) throws org.apache.hadoop.hive.ql.metadata.HiveException
Cube
or DerivedCube
objectcube
- the Cube
object.org.apache.hadoop.hive.ql.metadata.HiveException
public void createCube(String name, Set<CubeMeasure> measures, Set<CubeDimAttribute> dimensions) throws org.apache.hadoop.hive.ql.metadata.HiveException
name
- Name of the cubemeasures
- Measures of the cubedimensions
- Dimensions of the cubeorg.apache.hadoop.hive.ql.metadata.HiveException
public void createCube(String name, Set<CubeMeasure> measures, Set<CubeDimAttribute> dimensions, Map<String,String> properties) throws org.apache.hadoop.hive.ql.metadata.HiveException
name
- Name of the cubemeasures
- Measures of the cubedimensions
- Dimensions of the cubeproperties
- Properties of the cubeorg.apache.hadoop.hive.ql.metadata.HiveException
public void createCube(String name, Set<CubeMeasure> measures, Set<CubeDimAttribute> dimensions, Set<ExprColumn> expressions, Map<String,String> properties) throws org.apache.hadoop.hive.ql.metadata.HiveException
name
- Name of the cubemeasures
- Measures of the cubedimensions
- Dimensions of the cubeproperties
- Properties of the cubeorg.apache.hadoop.hive.ql.metadata.HiveException
public void createCube(String name, Set<CubeMeasure> measures, Set<CubeDimAttribute> dimensions, Set<ExprColumn> expressions, Set<JoinChain> chains, Map<String,String> properties) throws org.apache.hadoop.hive.ql.metadata.HiveException
name
- Name of the cubemeasures
- Measures of the cubedimensions
- Dimensions of the cubeexpressions
- Expressions of the cubechains
- JoinChains of the cubeproperties
- Properties of the cubeorg.apache.hadoop.hive.ql.metadata.HiveException
public void createDimension(String name, Set<CubeDimAttribute> attributes, Map<String,String> properties, double weight) throws org.apache.hadoop.hive.ql.metadata.HiveException
name
- Name of the dimensionattributes
- Attributes of the dimensionproperties
- Properties of the dimensionweight
- Weight of the dimensionorg.apache.hadoop.hive.ql.metadata.HiveException
public void createDimension(Dimension dim) throws org.apache.hadoop.hive.ql.metadata.HiveException
Dimension
objectdim
- the Dimension
object.org.apache.hadoop.hive.ql.metadata.HiveException
public void createDerivedCube(String parent, String name, Set<String> measures, Set<String> dimensions, Map<String,String> properties, double weight) throws org.apache.hadoop.hive.ql.metadata.HiveException, LensException
parent
- Name of the parent cubename
- Name of the derived cubemeasures
- Measures of the derived cubedimensions
- Dimensions of the derived cubeproperties
- Properties of the derived cubeweight
- Weight of the derived cubeorg.apache.hadoop.hive.ql.metadata.HiveException
LensException
public void createCubeFactTable(String cubeName, String factName, List<org.apache.hadoop.hive.metastore.api.FieldSchema> columns, Map<String,Set<UpdatePeriod>> storageAggregatePeriods, double weight, Map<String,String> properties, Map<String,StorageTableDesc> storageTableDescs) throws org.apache.hadoop.hive.ql.metadata.HiveException
cubeName
- The cube name to which fact belongs to.factName
- The fact namecolumns
- The columns of fact tablestorageAggregatePeriods
- Aggregate periods for the storagesweight
- Weight of the cubeproperties
- Properties of fact tablestorageTableDescs
- Map of storage to its storage table descriptionorg.apache.hadoop.hive.ql.metadata.HiveException
public void createCubeDimensionTable(String dimName, String dimTblName, List<org.apache.hadoop.hive.metastore.api.FieldSchema> columns, double weight, Set<String> storageNames, Map<String,String> properties, Map<String,StorageTableDesc> storageTableDescs) throws org.apache.hadoop.hive.ql.metadata.HiveException
dimName
- The dimension name to which the dim-table belongs todimTblName
- dimension table namecolumns
- Columns of the dimension tableweight
- Weight of the dimension tablestorageNames
- Storages on which dimension is available without any dumpsproperties
- Properties of dimension tablestorageTableDescs
- Map of storage to its storage table descriptionorg.apache.hadoop.hive.ql.metadata.HiveException
public void createCubeDimensionTable(String dimName, String dimTblName, List<org.apache.hadoop.hive.metastore.api.FieldSchema> columns, double weight, Map<String,UpdatePeriod> dumpPeriods, Map<String,String> properties, Map<String,StorageTableDesc> storageTableDescs) throws org.apache.hadoop.hive.ql.metadata.HiveException
dimName
- The dimension name to which the dim-table belongs todimTblName
- dimension table namecolumns
- Columns of the dimension tableweight
- Weight of the dimension tabledumpPeriods
- Storage names and their dump periods on which dimension is availableproperties
- properties of dimension tablestorageTableDescs
- Map of storage to its storage table descriptionorg.apache.hadoop.hive.ql.metadata.HiveException
public void createCubeTable(AbstractCubeTable cubeTable, Map<String,StorageTableDesc> storageTableDescs) throws org.apache.hadoop.hive.ql.metadata.HiveException
cubeTable
- Can be fact or dimension tablestorageTableDescs
- Map of storage to its storage table descriptionorg.apache.hadoop.hive.ql.metadata.HiveException
public void addStorage(CubeFactTable fact, String storage, Set<UpdatePeriod> updatePeriods, StorageTableDesc storageTableDesc) throws org.apache.hadoop.hive.ql.metadata.HiveException
fact
- The CubeFactTablestorage
- The storageupdatePeriods
- Update periods of the fact on the storagestorageTableDesc
- The storage table descriptionorg.apache.hadoop.hive.ql.metadata.HiveException
public void addStorage(CubeDimensionTable dim, String storage, UpdatePeriod dumpPeriod, StorageTableDesc storageTableDesc) throws org.apache.hadoop.hive.ql.metadata.HiveException
dim
- The CubeDimensionTablestorage
- The storagedumpPeriod
- The dumpPeriod if any, null otherwisestorageTableDesc
- The storage table descriptionorg.apache.hadoop.hive.ql.metadata.HiveException
public List<org.apache.hadoop.hive.ql.metadata.Partition> addPartition(StoragePartitionDesc partSpec, String storageName) throws org.apache.hadoop.hive.ql.metadata.HiveException, LensException
partSpec
- The storage partition descriptionstorageName
- The storage objectorg.apache.hadoop.hive.ql.metadata.HiveException
LensException
public List<org.apache.hadoop.hive.ql.metadata.Partition> addPartitions(List<StoragePartitionDesc> storagePartitionDescs, String storageName) throws org.apache.hadoop.hive.ql.metadata.HiveException, LensException
org.apache.hadoop.hive.ql.metadata.HiveException
LensException
public void dropPartition(String cubeTableName, String storageName, Map<String,Date> timePartSpec, Map<String,String> nonTimePartSpec, UpdatePeriod updatePeriod) throws org.apache.hadoop.hive.ql.metadata.HiveException, LensException
cubeTableName
- cube fact/dimension table namestorageName
- storage nametimePartSpec
- time partitionsnonTimePartSpec
- non time partitionsupdatePeriod
- update period of the partitionorg.apache.hadoop.hive.ql.metadata.HiveException
LensException
public boolean tableExists(String tblName) throws org.apache.hadoop.hive.ql.metadata.HiveException
org.apache.hadoop.hive.ql.metadata.HiveException
public boolean factPartitionExists(CubeFactTable fact, FactPartition part, String storageTableName) throws org.apache.hadoop.hive.ql.metadata.HiveException, LensException
org.apache.hadoop.hive.ql.metadata.HiveException
LensException
public boolean factPartitionExists(String factName, String storageName, UpdatePeriod updatePeriod, Map<String,Date> partitionTimestamp, Map<String,String> partSpec) throws org.apache.hadoop.hive.ql.metadata.HiveException
org.apache.hadoop.hive.ql.metadata.HiveException
public boolean partitionExists(String storageTableName, UpdatePeriod updatePeriod, Map<String,Date> partitionTimestamps) throws org.apache.hadoop.hive.ql.metadata.HiveException
org.apache.hadoop.hive.ql.metadata.HiveException
public boolean partitionExistsByFilter(String cubeTableName, String storageName, String filter) throws org.apache.hadoop.hive.ql.metadata.HiveException
org.apache.hadoop.hive.ql.metadata.HiveException
public boolean partitionExistsByFilter(String storageTableName, String filter) throws org.apache.hadoop.hive.ql.metadata.HiveException
org.apache.hadoop.hive.ql.metadata.HiveException
public List<org.apache.hadoop.hive.ql.metadata.Partition> getAllParts(String storageTableName) throws org.apache.hadoop.hive.ql.metadata.HiveException
org.apache.hadoop.hive.ql.metadata.HiveException
public org.apache.hadoop.hive.ql.metadata.Partition getPartitionByFilter(String storageTableName, String filter) throws org.apache.hadoop.hive.ql.metadata.HiveException
org.apache.hadoop.hive.ql.metadata.HiveException
public List<org.apache.hadoop.hive.ql.metadata.Partition> getPartitionsByFilter(String storageTableName, String filter) throws org.apache.hadoop.hive.ql.metadata.HiveException
org.apache.hadoop.hive.ql.metadata.HiveException
public boolean dimTableLatestPartitionExists(String storageTableName)
public org.apache.hadoop.hive.ql.metadata.Table getHiveTable(String tableName) throws org.apache.hadoop.hive.ql.metadata.HiveException
Table
corresponding to the nametableName
- table nameTable
object corresponding to the nameorg.apache.hadoop.hive.ql.metadata.HiveException
public List<String> getTimePartColNamesOfTable(String storageTableName) throws org.apache.hadoop.hive.ql.metadata.HiveException
org.apache.hadoop.hive.ql.metadata.HiveException
public List<String> getTimePartColNamesOfTable(org.apache.hadoop.hive.ql.metadata.Table table)
public org.apache.hadoop.hive.ql.metadata.Table getTable(String tableName) throws org.apache.hadoop.hive.ql.metadata.HiveException
org.apache.hadoop.hive.ql.metadata.HiveException
public void dropHiveTable(String table) throws org.apache.hadoop.hive.ql.metadata.HiveException
org.apache.hadoop.hive.ql.metadata.HiveException
public boolean isFactTable(String tableName) throws org.apache.hadoop.hive.ql.metadata.HiveException
tableName
- table nameorg.apache.hadoop.hive.ql.metadata.HiveException
public boolean isDimensionTable(String tableName) throws org.apache.hadoop.hive.ql.metadata.HiveException
tableName
- table nameorg.apache.hadoop.hive.ql.metadata.HiveException
public boolean isCube(String tableName) throws org.apache.hadoop.hive.ql.metadata.HiveException
tableName
- table nameorg.apache.hadoop.hive.ql.metadata.HiveException
public boolean isDimension(String tableName) throws org.apache.hadoop.hive.ql.metadata.HiveException
tableName
- table nameorg.apache.hadoop.hive.ql.metadata.HiveException
public boolean isStorage(String tableName) throws org.apache.hadoop.hive.ql.metadata.HiveException
tableName
- table nameorg.apache.hadoop.hive.ql.metadata.HiveException
public CubeFactTable getFactTable(String tableName) throws org.apache.hadoop.hive.ql.metadata.HiveException
CubeFactTable
object corresponding to the nametableName
- The cube fact nameorg.apache.hadoop.hive.ql.metadata.HiveException
public CubeDimensionTable getDimensionTable(String tableName) throws org.apache.hadoop.hive.ql.metadata.HiveException
CubeDimensionTable
object corresponding to the nametableName
- The cube dimension nameorg.apache.hadoop.hive.ql.metadata.HiveException
public Storage getStorage(String storageName) throws org.apache.hadoop.hive.ql.metadata.HiveException
Storage
object corresponding to the namestorageName
- The storage nameorg.apache.hadoop.hive.ql.metadata.HiveException
public CubeInterface getCube(String tableName) throws org.apache.hadoop.hive.ql.metadata.HiveException
Cube
object corresponding to the nametableName
- The cube nameorg.apache.hadoop.hive.ql.metadata.HiveException
public Dimension getDimension(String tableName) throws org.apache.hadoop.hive.ql.metadata.HiveException
Cube
object corresponding to the nametableName
- The cube nameorg.apache.hadoop.hive.ql.metadata.HiveException
public CubeFactTable getCubeFact(String tableName) throws org.apache.hadoop.hive.ql.metadata.HiveException
Cube
object corresponding to the nametableName
- The cube nameorg.apache.hadoop.hive.ql.metadata.HiveException
public Collection<CubeDimensionTable> getAllDimensionTables() throws org.apache.hadoop.hive.ql.metadata.HiveException
org.apache.hadoop.hive.ql.metadata.HiveException
public Collection<Storage> getAllStorages() throws org.apache.hadoop.hive.ql.metadata.HiveException
org.apache.hadoop.hive.ql.metadata.HiveException
public Collection<CubeInterface> getAllCubes() throws org.apache.hadoop.hive.ql.metadata.HiveException
org.apache.hadoop.hive.ql.metadata.HiveException
public Collection<Dimension> getAllDimensions() throws org.apache.hadoop.hive.ql.metadata.HiveException
org.apache.hadoop.hive.ql.metadata.HiveException
public Collection<CubeFactTable> getAllFacts() throws org.apache.hadoop.hive.ql.metadata.HiveException
org.apache.hadoop.hive.ql.metadata.HiveException
public List<CubeFactTable> getAllFacts(CubeInterface cube) throws org.apache.hadoop.hive.ql.metadata.HiveException
cube
- Cube objectorg.apache.hadoop.hive.ql.metadata.HiveException
public List<DerivedCube> getAllDerivedQueryableCubes(CubeInterface cube) throws org.apache.hadoop.hive.ql.metadata.HiveException
cube
- Cube objectorg.apache.hadoop.hive.ql.metadata.HiveException
public List<CubeDimensionTable> getAllDimensionTables(Dimension dim) throws org.apache.hadoop.hive.ql.metadata.HiveException
dim
- Dimension objectorg.apache.hadoop.hive.ql.metadata.HiveException
public boolean partColExists(String tableName, String partCol) throws org.apache.hadoop.hive.ql.metadata.HiveException
org.apache.hadoop.hive.ql.metadata.HiveException
public void pushHiveTable(org.apache.hadoop.hive.ql.metadata.Table hiveTable) throws org.apache.hadoop.hive.ql.metadata.HiveException
org.apache.hadoop.hive.ql.metadata.HiveException
public void alterHiveTable(String table, org.apache.hadoop.hive.ql.metadata.Table hiveTable) throws org.apache.hadoop.hive.ql.metadata.HiveException
org.apache.hadoop.hive.ql.metadata.HiveException
public void alterCube(String cubeName, CubeInterface cube) throws org.apache.hadoop.hive.ql.metadata.HiveException
cubeName
- The cube name to be alteredcube
- The new cube definition Cube
or DerivedCube
org.apache.hadoop.hive.ql.metadata.HiveException
public void alterDimension(String dimName, Dimension newDim) throws org.apache.hadoop.hive.ql.metadata.HiveException
dimName
- The cube name to be alterednewDim
- The new dimension definitionorg.apache.hadoop.hive.ql.metadata.HiveException
public void alterStorage(String storageName, Storage storage) throws org.apache.hadoop.hive.ql.metadata.HiveException
storageName
- The storage name to be alteredstorage
- The new storage definitionorg.apache.hadoop.hive.ql.metadata.HiveException
public void dropStorage(String storageName) throws org.apache.hadoop.hive.ql.metadata.HiveException
storageName
- storage nameorg.apache.hadoop.hive.ql.metadata.HiveException
public void dropCube(String cubeName) throws org.apache.hadoop.hive.ql.metadata.HiveException
cubeName
- cube nameorg.apache.hadoop.hive.ql.metadata.HiveException
public void dropDimension(String dimName) throws org.apache.hadoop.hive.ql.metadata.HiveException
dimName
- dimension name to be droppedorg.apache.hadoop.hive.ql.metadata.HiveException
public void dropFact(String factName, boolean cascade) throws org.apache.hadoop.hive.ql.metadata.HiveException
factName
- fact namecascade
- If true, will drop all the storages of the factorg.apache.hadoop.hive.ql.metadata.HiveException
public void dropStorageFromFact(String factName, String storage) throws org.apache.hadoop.hive.ql.metadata.HiveException
factName
- fact namestorage
- storage nameorg.apache.hadoop.hive.ql.metadata.HiveException
public void dropStorageFromDim(String dimTblName, String storage) throws org.apache.hadoop.hive.ql.metadata.HiveException
dimTblName
- dim table namestorage
- storageorg.apache.hadoop.hive.ql.metadata.HiveException
public void dropDimensionTable(String dimTblName, boolean cascade) throws org.apache.hadoop.hive.ql.metadata.HiveException
dimTblName
- dim table namecascade
- If true, will drop all the dimension storagesorg.apache.hadoop.hive.ql.metadata.HiveException
public void alterCubeFactTable(String factTableName, CubeFactTable cubeFactTable, Map<String,StorageTableDesc> storageTableDescs) throws org.apache.hadoop.hive.ql.metadata.HiveException
factTableName
- fact table namecubeFactTable
- cube fact tablestorageTableDescs
- storage table desc objectsorg.apache.hadoop.hive.ql.metadata.HiveException
public void alterCubeDimensionTable(String dimTableName, CubeDimensionTable cubeDimensionTable, Map<String,StorageTableDesc> storageTableDescs) throws org.apache.hadoop.hive.ql.metadata.HiveException
dimTableName
- dim table namecubeDimensionTable
- cube dimention tableorg.apache.hadoop.hive.ql.metadata.HiveException
public boolean isStorageTableCandidateForRange(String storageTableName, Date fromDate, Date toDate) throws org.apache.hadoop.hive.ql.metadata.HiveException, LensException
org.apache.hadoop.hive.ql.metadata.HiveException
LensException
public boolean isStorageTableCandidateForRange(String storageTableName, String fromDate, String toDate) throws org.apache.hadoop.hive.ql.metadata.HiveException, LensException
org.apache.hadoop.hive.ql.metadata.HiveException
LensException
Copyright © 2014–2016 Apache Software Foundation. All rights reserved.