Codota Logo
Driver.checkLockHeld
Code IndexAdd Codota to your IDE (free)

How to use
checkLockHeld
method
in
com.facebook.presto.operator.Driver

Best Java code snippets using com.facebook.presto.operator.Driver.checkLockHeld (Showing top 9 results out of 315)

  • Common ways to obtain Driver
private void myMethod () {
Driver d =
  • Codota IconDriverFactory driverFactory;DriverContext driverContext;driverFactory.createDriver(driverContext)
  • Smart code suggestions by Codota
}
origin: prestodb/presto

@GuardedBy("exclusiveLock")
private boolean isFinishedInternal()
{
  checkLockHeld("Lock must be held to call isFinishedInternal");
  boolean finished = state.get() != State.ALIVE || driverContext.isDone() || activeOperators.isEmpty() || activeOperators.get(activeOperators.size() - 1).isFinished();
  if (finished) {
    state.compareAndSet(State.ALIVE, State.NEED_DESTRUCTION);
  }
  return finished;
}
origin: prestodb/presto

@GuardedBy("exclusiveLock")
private void processNewSources()
  checkLockHeld("Lock must be held to call processNewSources");
origin: prestodb/presto

@GuardedBy("exclusiveLock")
private void destroyIfNecessary()
  checkLockHeld("Lock must be held to call destroyIfNecessary");
origin: prestodb/presto

@GuardedBy("exclusiveLock")
private ListenableFuture<?> processInternal(OperationTimer operationTimer)
  checkLockHeld("Lock must be held to call processInternal");
origin: uk.co.nichesolutions.presto/presto-main

private boolean isFinishedInternal()
{
  checkLockHeld("Lock must be held to call isFinishedInternal");
  boolean finished = state.get() != State.ALIVE || driverContext.isDone() || operators.get(operators.size() - 1).isFinished();
  if (finished) {
    state.compareAndSet(State.ALIVE, State.NEED_DESTRUCTION);
  }
  return finished;
}
origin: uk.co.nichesolutions.presto/presto-main

private void processNewSources()
{
  checkLockHeld("Lock must be held to call processNewSources");
  // only update if the driver is still alive
  if (state.get() != State.ALIVE) {
    return;
  }
  // copy the pending sources
  // it is ok to "miss" a source added during the copy as it will be
  // handled on the next call to this method
  Map<PlanNodeId, TaskSource> sources = new HashMap<>(newSources);
  for (Entry<PlanNodeId, TaskSource> entry : sources.entrySet()) {
    // Remove the entries we are going to process from the newSources map.
    // It is ok if someone already updated the entry; we will catch it on
    // the next iteration.
    newSources.remove(entry.getKey(), entry.getValue());
    processNewSource(entry.getValue());
  }
}
origin: uk.co.nichesolutions.presto/presto-main

private void processNewSource(TaskSource source)
  checkLockHeld("Lock must be held to call processNewSources");
origin: uk.co.nichesolutions.presto/presto-main

private void destroyIfNecessary()
  checkLockHeld("Lock must be held to call destroyIfNecessary");
origin: uk.co.nichesolutions.presto/presto-main

private ListenableFuture<?> processInternal()
  checkLockHeld("Lock must be held to call processInternal");
com.facebook.presto.operatorDrivercheckLockHeld

Popular methods of Driver

  • isFinished
  • process
  • getDriverContext
  • close
  • processFor
  • updateSource
  • <init>
  • addSuppressedException
  • checkLockNotHeld
  • createDriver
  • firstFinishedFuture
  • isFinishedInternal
  • firstFinishedFuture,
  • isFinishedInternal,
  • processInternal,
  • processNewSources,
  • checkOperatorFinishedRevoking,
  • closeAndDestroyOperators,
  • createTimer,
  • destroyIfNecessary,
  • getBlockedFuture

Popular in Java

  • Making http post requests using okhttp
  • getResourceAsStream (ClassLoader)
  • onCreateOptionsMenu (Activity)
  • onRequestPermissionsResult (Fragment)
  • Rectangle (java.awt)
    A Rectangle specifies an area in a coordinate space that is enclosed by the Rectangle object's top-
  • MalformedURLException (java.net)
    Thrown to indicate that a malformed URL has occurred. Either no legal protocol could be found in a s
  • URLConnection (java.net)
    The abstract class URLConnection is the superclass of all classes that represent a communications li
  • KeyStore (java.security)
    This class represents an in-memory collection of keys and certificates. It manages two types of entr
  • ResultSet (java.sql)
    An interface for an object which represents a database table entry, returned as the result of the qu
  • Calendar (java.util)
    Calendar is an abstract base class for converting between a Date object and a set of integer fields
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now