public class RedshiftRowsBlockingQueue<E> extends LinkedBlockingQueue<E>
| Constructor and Description |
|---|
RedshiftRowsBlockingQueue(int capacity) |
RedshiftRowsBlockingQueue(int fetchSize,
long fetchRingBufferSize,
RedshiftLogger logger) |
| Modifier and Type | Method and Description |
|---|---|
void |
addEndOfRowsIndicator()
Add end-of-rows indicator
|
void |
checkAndAddEndOfRowsIndicator()
Add end-of-rows indicator, if not added.
|
void |
checkAndAddEndOfRowsIndicator(com.amazon.redshift.core.v3.Portal currentSuspendedPortal) |
void |
close()
Close the queue.
|
void |
closeSuspendedPortal() |
boolean |
endOfResult() |
int |
getCurrentRowIndex() |
SQLException |
getHandlerException() |
com.amazon.redshift.core.v3.Portal |
getSuspendedPortal() |
boolean |
isSuspendedPortal() |
void |
put(E e) |
void |
setHandlerException(SQLException ex) |
void |
setSkipRows() |
E |
take() |
clear, contains, drainTo, drainTo, iterator, offer, offer, peek, poll, poll, remainingCapacity, remove, size, spliterator, toArray, toArray, toStringadd, addAll, element, removecontainsAll, isEmpty, removeAll, retainAllclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaddaddAll, containsAll, equals, hashCode, isEmpty, parallelStream, removeAll, removeIf, retainAll, streampublic RedshiftRowsBlockingQueue(int capacity)
public RedshiftRowsBlockingQueue(int fetchSize,
long fetchRingBufferSize,
RedshiftLogger logger)
public void put(E e) throws InterruptedException
put in interface BlockingQueue<E>put in class LinkedBlockingQueue<E>InterruptedExceptionpublic E take() throws InterruptedException
take in interface BlockingQueue<E>take in class LinkedBlockingQueue<E>InterruptedExceptionpublic int getCurrentRowIndex()
public boolean endOfResult()
public void setHandlerException(SQLException ex)
public SQLException getHandlerException()
public void close()
public void setSkipRows()
public void addEndOfRowsIndicator()
throws InterruptedException
InterruptedException - throws when the thread gets interrupted.public void checkAndAddEndOfRowsIndicator()
throws InterruptedException
InterruptedException - throws when the thread gets interrupted.public void checkAndAddEndOfRowsIndicator(com.amazon.redshift.core.v3.Portal currentSuspendedPortal)
throws InterruptedException
InterruptedExceptionpublic com.amazon.redshift.core.v3.Portal getSuspendedPortal()
public boolean isSuspendedPortal()
public void closeSuspendedPortal()
Copyright © 2024 Amazon.com Inc.. All rights reserved.