congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
HiveClientCache$CacheableHiveMetaStoreClient.tearDownIfUnused
Code IndexAdd Tabnine to your IDE (free)

How to use
tearDownIfUnused
method
in
org.apache.hive.hcatalog.common.HiveClientCache$CacheableHiveMetaStoreClient

Best Java code snippets using org.apache.hive.hcatalog.common.HiveClientCache$CacheableHiveMetaStoreClient.tearDownIfUnused (Showing top 5 results out of 315)

origin: org.spark-project.hive.hcatalog/hive-hcatalog-core

/**
 * Decrement the user count and piggyback this to set expiry flag as well, then  teardown(), if conditions are met.
 * This *MUST* be called by anyone who uses this client.
 */
@Override
public void close() {
 release();
 if (System.currentTimeMillis() >= expiryTime)
  setExpiredFromCache();
 tearDownIfUnused();
}
origin: com.github.hyukjinkwon.hcatalog/hive-hcatalog-core

/**
 * Decrement the user count and piggyback this to set expiry flag as well, then  teardown(), if conditions are met.
 * This *MUST* be called by anyone who uses this client.
 */
@Override
public void close() {
 release();
 if (System.currentTimeMillis() >= expiryTime)
  setExpiredFromCache();
 tearDownIfUnused();
}
origin: com.facebook.presto.hive/hive-apache

/**
 * Decrement the user count and piggyback this to set expiry flag as well, then  teardown(), if conditions are met.
 * This *MUST* be called by anyone who uses this client.
 */
@Override
public void close() {
 release();
 if (System.currentTimeMillis() >= expiryTime)
  setExpiredFromCache();
 tearDownIfUnused();
}
origin: org.apache.hive.hcatalog/hive-hcatalog-core

/**
 * Decrement the user count and piggyback this to set expiry flag as well, then  teardown(), if conditions are met.
 * This *MUST* be called by anyone who uses this client.
 */
@Override
public synchronized void close() {
 release();
 tearDownIfUnused();
}
origin: apache/hive

/**
 * Decrement the user count and piggyback this to set expiry flag as well, then  teardown(), if conditions are met.
 * This *MUST* be called by anyone who uses this client.
 */
@Override
public synchronized void close() {
 release();
 tearDownIfUnused();
}
org.apache.hive.hcatalog.commonHiveClientCache$CacheableHiveMetaStoreClienttearDownIfUnused

Javadoc

Attempt to tear down the client connection. The connection will be closed if the following conditions hold: 1. There are no active user holding the client. 2. The client has been evicted from the cache.

Popular methods of HiveClientCache$CacheableHiveMetaStoreClient

  • release
    Decrements the user count.
  • tearDown
    Close if not closed already
  • setExpiredFromCache
    Communicate to the client that it is no longer in the cache. The expiration time should be voided to
  • createDatabase
  • createTable
  • dropDatabase
  • dropTable
  • isOpen
    Make a call to hive meta store and see if the client is still usable. Some calls where the user prov

Popular in Java

  • Reading from database using SQL prepared statement
  • onCreateOptionsMenu (Activity)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • scheduleAtFixedRate (Timer)
  • IOException (java.io)
    Signals a general, I/O-related error. Error details may be specified when calling the constructor, a
  • RandomAccessFile (java.io)
    Allows reading from and writing to a file in a random-access manner. This is different from the uni-
  • SortedMap (java.util)
    A map that has its keys ordered. The sorting is according to either the natural ordering of its keys
  • StringTokenizer (java.util)
    Breaks a string into tokens; new code should probably use String#split.> // Legacy code: StringTo
  • ExecutorService (java.util.concurrent)
    An Executor that provides methods to manage termination and methods that can produce a Future for tr
  • Modifier (javassist)
    The Modifier class provides static methods and constants to decode class and member access modifiers
  • Best IntelliJ plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now