public class CopyInImpl extends CopyOperationImpl implements CopyIn
Constructor and Description |
---|
CopyInImpl() |
Modifier and Type | Method and Description |
---|---|
long |
endCopy()
Finishes copy operation succesfully.
|
void |
flushCopy()
Force any buffered output to be sent over the network to the backend.
|
protected void |
handleCopydata(byte[] data)
Consume received copy data
|
void |
writeToCopy(byte[] data,
int off,
int siz)
Writes specified part of given byte array to an open and writable copy operation.
|
cancelCopy, getFieldCount, getFieldFormat, getFormat, getHandledRowCount, handleCommandStatus, isActive
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
cancelCopy, getFieldCount, getFieldFormat, getFormat, getHandledRowCount, isActive
public void writeToCopy(byte[] data, int off, int siz) throws SQLException
CopyIn
writeToCopy
in interface CopyIn
data
- array of bytes to writeoff
- offset of first byte to write (normally zero)siz
- number of bytes to write (normally buf.length)SQLException
- if the operation failspublic void flushCopy() throws SQLException
CopyIn
flushCopy
in interface CopyIn
SQLException
- if the operation fails.public long endCopy() throws SQLException
CopyIn
endCopy
in interface CopyIn
SQLException
- if the operation fails.protected void handleCopydata(byte[] data) throws PSQLException
CopyOperationImpl
handleCopydata
in class CopyOperationImpl
data
- data that was receive by copy protocolPSQLException
- if some internal problem occursCopyright © 2017 PostgreSQL Global Development Group. All rights reserved.