Class PageBuffer

java.lang.Object
io.trino.operator.index.PageBuffer

@ThreadSafe public class PageBuffer extends Object
  • Constructor Details

    • PageBuffer

      public PageBuffer(int maxBufferedPages)
  • Method Details

    • isFull

      public boolean isFull()
    • add

      public com.google.common.util.concurrent.ListenableFuture<Void> add(Page page)
      Adds a page to the buffer. Returns a ListenableFuture that is marked as done when the next page can be added.
    • poll

      public Page poll()
      Return a page from the buffer, or null if none exists