Package io.prestosql.operator.index
Class PageBuffer
- java.lang.Object
-
- io.prestosql.operator.index.PageBuffer
-
@ThreadSafe public class PageBuffer extends Object
-
-
Constructor Summary
Constructors Constructor Description PageBuffer(int maxBufferedPages)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.google.common.util.concurrent.ListenableFuture<?>
add(Page page)
Adds a page to the buffer.boolean
isFull()
Page
poll()
Return a page from the buffer, or null if none exists
-
-
-
Method Detail
-
isFull
public boolean isFull()
-
add
public com.google.common.util.concurrent.ListenableFuture<?> 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
-
-