CopyOperation
, CopyOut
public class CopyOutImpl extends CopyOperationImpl implements CopyOut
Constructor | Description |
---|---|
CopyOutImpl() |
Modifier and Type | Method | 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, isActive
cancelCopy, getFieldCount, getFieldFormat, getFormat, getHandledRowCount, handleCommandStatus, isActive
public byte[] readFromCopy() throws java.sql.SQLException
CopyOut
readFromCopy
in interface CopyOut
java.sql.SQLException
- if something goes wrong for example socket timeoutpublic byte[] readFromCopy(boolean block) throws java.sql.SQLException
CopyOut
readFromCopy
in interface CopyOut
block
- true
if need wait data from server otherwise false
and will read
pending message from serverjava.sql.SQLException
- if something goes wrong for example socket timeoutprotected void handleCopydata(byte[] data)
CopyOperationImpl
handleCopydata
in class CopyOperationImpl
data
- data that was receive by copy protocolCopyright © 2018 PostgreSQL Global Development Group. All rights reserved.