CopyIn
, CopyOperation
public 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, isActive
cancelCopy, getFieldCount, getFieldFormat, getFormat, getHandledRowCount, handleCommandStatus, isActive
public void writeToCopy(byte[] data, int off, int siz) throws java.sql.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)java.sql.SQLException
- if the operation failspublic void flushCopy() throws java.sql.SQLException
CopyIn
public long endCopy() throws java.sql.SQLException
CopyIn
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 © 2018 PostgreSQL Global Development Group. All rights reserved.