public class CopyOutImpl extends CopyOperationImpl implements CopyOut
| Constructor and Description |
|---|
CopyOutImpl() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
handleCopydata(byte[] data)
Consume received copy data
|
byte[] |
readFromCopy()
Blocks wait for a row of data to be received from server on an active copy operation.
|
byte[] |
readFromCopy(boolean block)
Wait for a row of data to be received from server on an active copy operation.
|
cancelCopy, getFieldCount, getFieldFormat, getFormat, getHandledRowCount, handleCommandStatus, isActiveclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcancelCopy, getFieldCount, getFieldFormat, getFormat, getHandledRowCount, isActivepublic byte[] readFromCopy()
throws SQLException
CopyOutreadFromCopy in interface CopyOutSQLException - if something goes wrong for example socket timeoutpublic byte[] readFromCopy(boolean block)
throws SQLException
CopyOutreadFromCopy in interface CopyOutblock - true if need wait data from server otherwise false and will read
pending message from serverSQLException - if something goes wrong for example socket timeoutprotected void handleCopydata(byte[] data)
CopyOperationImplhandleCopydata in class CopyOperationImpldata - data that was receive by copy protocolCopyright © 2017 PostgreSQL Global Development Group. All rights reserved.