public interface CopyIn extends CopyOperation
| Modifier and Type | Method and Description |
|---|---|
long |
endCopy()
Finishes copy operation successfully.
|
void |
flushCopy()
Force any buffered output to be sent over the network to the backend.
|
void |
writeToCopy(byte[] buf,
int off,
int siz)
Writes specified part of given byte array to an open and writable copy operation.
|
void |
writeToCopy(ByteStreamWriter from)
Writes a ByteStreamWriter to an open and writable copy operation.
|
cancelCopy, getFieldCount, getFieldFormat, getFormat, getHandledRowCount, isActivevoid writeToCopy(byte[] buf,
int off,
int siz)
throws SQLException
buf - 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 failsvoid writeToCopy(ByteStreamWriter from) throws SQLException
from - the source of bytes, e.g. a ByteBufferByteStreamWriterSQLException - if the operation failsvoid flushCopy()
throws SQLException
SQLException - if the operation fails.long endCopy()
throws SQLException
SQLException - if the operation fails.Copyright © 1997-2020 PostgreSQL Global Development Group. All Rights Reserved.