|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.falcon.catalog.AbstractCatalogService
public abstract class AbstractCatalogService
Interface definition for a catalog registry service such as Hive or HCatalog.
Constructor Summary | |
---|---|
AbstractCatalogService()
|
Method Summary | |
---|---|
abstract boolean |
dropPartitions(String catalogUrl,
String database,
String tableName,
Map<String,String> partitions)
Drops a given partition. |
abstract CatalogPartition |
getPartition(String catalogUrl,
String database,
String tableName,
Map<String,String> partitionSpec)
Gets the partition. |
abstract boolean |
isAlive(String catalogBaseUrl)
This method checks if the catalog service is alive. |
abstract boolean |
isTableExternal(String catalogUrl,
String database,
String tableName)
Returns if the table is external or not. |
abstract List<CatalogPartition> |
listPartitionsByFilter(String catalogUrl,
String database,
String tableName,
String filter)
List partitions by filter. |
abstract boolean |
tableExists(String catalogUrl,
String database,
String tableName)
This method checks if the given table exists in the catalog. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AbstractCatalogService()
Method Detail |
---|
public abstract boolean isAlive(String catalogBaseUrl) throws FalconException
catalogBaseUrl
- url for the catalog service
FalconException
- exceptionpublic abstract boolean tableExists(String catalogUrl, String database, String tableName) throws FalconException
catalogUrl
- url for the catalog servicedatabase
- database the table belongs totableName
- tableName to check if it exists
FalconException
- exceptionpublic abstract boolean isTableExternal(String catalogUrl, String database, String tableName) throws FalconException
catalogUrl
- url for the catalog servicedatabase
- database the table belongs totableName
- tableName to check if it exists
FalconException
public abstract List<CatalogPartition> listPartitionsByFilter(String catalogUrl, String database, String tableName, String filter) throws FalconException
catalogUrl
- url for the catalog servicedatabase
- database the table belongs totableName
- tableName to check if it existsfilter
- The filter string,
for example "part1 = \"p1_abc\" and part2 <= "\p2_test\"". Filtering can
be done only on string partition keys.
FalconException
public abstract boolean dropPartitions(String catalogUrl, String database, String tableName, Map<String,String> partitions) throws FalconException
catalogUrl
- url for the catalog servicedatabase
- database the table belongs totableName
- tableName to check if it existspartitions
- list of partitions as Key=Value pairs
FalconException
public abstract CatalogPartition getPartition(String catalogUrl, String database, String tableName, Map<String,String> partitionSpec) throws FalconException
catalogUrl
- url for the catalog servicedatabase
- database the table belongs totableName
- tableName to check if it existspartitionSpec
- The partition specification, {[col_name,value],[col_name2,value2]}.
All partition-key-values must be specified.
FalconException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |