Tabnine Logo
OperatorContext.isWaitingForRevocableMemory
Code IndexAdd Tabnine to your IDE (free)

How to use
isWaitingForRevocableMemory
method
in
com.facebook.presto.operator.OperatorContext

Best Java code snippets using com.facebook.presto.operator.OperatorContext.isWaitingForRevocableMemory (Showing top 2 results out of 315)

origin: prestodb/presto

private Optional<ListenableFuture<?>> getBlockedFuture(Operator operator)
{
  ListenableFuture<?> blocked = revokingOperators.get(operator);
  if (blocked != null) {
    // We mark operator as blocked regardless of blocked.isDone(), because finishMemoryRevoke has not been called yet.
    return Optional.of(blocked);
  }
  blocked = operator.isBlocked();
  if (!blocked.isDone()) {
    return Optional.of(blocked);
  }
  blocked = operator.getOperatorContext().isWaitingForMemory();
  if (!blocked.isDone()) {
    return Optional.of(blocked);
  }
  blocked = operator.getOperatorContext().isWaitingForRevocableMemory();
  if (!blocked.isDone()) {
    return Optional.of(blocked);
  }
  return Optional.empty();
}
origin: prestodb/presto

private Predicate<OperatorContext> waitingForRevocableSystemMemory()
{
  return (OperatorContext operatorContext) ->
      !operatorContext.isWaitingForRevocableMemory().isDone() &&
          !operatorContext.isMemoryRevokingRequested();
}
com.facebook.presto.operatorOperatorContextisWaitingForRevocableMemory

Popular methods of OperatorContext

  • getSession
  • getDriverContext
  • getOperatorId
  • getOperatorStats
  • isWaitingForMemory
  • <init>
  • getInputDataSize
  • getInputPositions
  • getOutputDataSize
  • getOutputPositions
  • getReservedRevocableBytes
  • isMemoryRevokingRequested
  • getReservedRevocableBytes,
  • isMemoryRevokingRequested,
  • localRevocableMemoryContext,
  • localUserMemoryContext,
  • newAggregateSystemMemoryContext,
  • newLocalSystemMemoryContext,
  • recordAddInput,
  • recordBlocked,
  • recordFinish

Popular in Java

  • Reactive rest calls using spring rest template
  • onRequestPermissionsResult (Fragment)
  • scheduleAtFixedRate (Timer)
  • addToBackStack (FragmentTransaction)
  • BufferedInputStream (java.io)
    A BufferedInputStream adds functionality to another input stream-namely, the ability to buffer the i
  • Enumeration (java.util)
    A legacy iteration interface.New code should use Iterator instead. Iterator replaces the enumeration
  • Stream (java.util.stream)
    A sequence of elements supporting sequential and parallel aggregate operations. The following exampl
  • Annotation (javassist.bytecode.annotation)
    The annotation structure.An instance of this class is returned bygetAnnotations() in AnnotationsAttr
  • JLabel (javax.swing)
  • Scheduler (org.quartz)
    This is the main interface of a Quartz Scheduler. A Scheduler maintains a registry of org.quartz.Job
  • Top Vim 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