public interface HCatDependencyCache
| Modifier and Type | Method and Description | 
|---|---|
void | 
addMissingDependency(HCatURI hcatURI,
                                        String actionID)
Add a missing partition dependency and the actionID waiting on it 
 | 
void | 
destroy()
Destroy the cache 
 | 
Collection<String> | 
getAvailableDependencyURIs(String actionID)
Get a list of available dependency URIs for a actionID 
 | 
Collection<String> | 
getWaitingActions(HCatURI hcatURI)
Get the list of actionIDs waiting for a partition 
 | 
void | 
init(org.apache.hadoop.conf.Configuration conf)
Initialize the cache with configuration 
 | 
Collection<String> | 
markDependencyAvailable(String server,
                                              String db,
                                              String table,
                                              Map<String,String> partitions)
Mark a partition dependency as available 
 | 
boolean | 
removeAvailableDependencyURIs(String actionID,
                                                          Collection<String> dependencyURIs)
Remove the list of available dependency URIs for a actionID once the missing dependencies are processed. 
 | 
void | 
removeCoordActionWithDependenciesAvailable(String coordAction)
Remove coordAction when all dependencies met 
 | 
boolean | 
removeMissingDependency(HCatURI hcatURI,
                                              String actionID)
Remove a missing partition dependency associated with a actionID 
 | 
void | 
removeNonWaitingCoordActions(Set<String> coordActions)
Purge stale actions 
 | 
void init(org.apache.hadoop.conf.Configuration conf)
conf - configurationvoid addMissingDependency(HCatURI hcatURI, String actionID)
hcatURI - dependency URIactionID - ID of action which is waiting for the dependencyboolean removeMissingDependency(HCatURI hcatURI, String actionID)
hcatURI - dependency URIactionID - ID of action which is waiting for the dependencyCollection<String> getWaitingActions(HCatURI hcatURI)
hcatURI - dependency URICollection<String> markDependencyAvailable(String server, String db, String table, Map<String,String> partitions)
server - host:port of the serverdb - name of the databasetable - name of the tablepartitions - list of available partitionsCollection<String> getAvailableDependencyURIs(String actionID)
actionID - action idboolean removeAvailableDependencyURIs(String actionID, Collection<String> dependencyURIs)
actionID - action iddependencyURIs - set of dependency URIsvoid destroy()
void removeNonWaitingCoordActions(Set<String> coordActions)
void removeCoordActionWithDependenciesAvailable(String coordAction)
Copyright © 2016 Apache Software Foundation. All rights reserved.