CopyIn, CopyOperationpublic class CopyInImpl extends CopyOperationImpl implements CopyIn
| Constructor | Description |
|---|---|
CopyInImpl() |
| Modifier and Type | Method | 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, isActivecancelCopy, getFieldCount, getFieldFormat, getFormat, getHandledRowCount, handleCommandStatus, isActivepublic void writeToCopy(byte[] data,
int off,
int siz)
throws java.sql.SQLException
CopyInwriteToCopy in interface CopyIndata - array of bytes to writeoff - offset of first byte to write (normally zero)siz - number of bytes to write (normally buf.length)java.sql.SQLException - if the operation failspublic void flushCopy()
throws java.sql.SQLException
CopyInpublic long endCopy()
throws java.sql.SQLException
CopyInprotected void handleCopydata(byte[] data)
throws PSQLException
CopyOperationImplhandleCopydata in class CopyOperationImpldata - data that was receive by copy protocolPSQLException - if some internal problem occursCopyright © 2018 PostgreSQL Global Development Group. All rights reserved.