|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface CopyIn
Copy bulk data from client into a PostgreSQL table very fast.
| Method Summary | |
|---|---|
long |
endCopy()
Finishes copy operation succesfully. |
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. |
| Methods inherited from interface org.postgresql.copy.CopyOperation |
|---|
cancelCopy, getFieldCount, getFieldFormat, getFormat, getHandledRowCount, isActive |
| Method Detail |
|---|
void 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 fails
void flushCopy()
throws SQLException
SQLException
long endCopy()
throws SQLException
SQLException - if the operation fails.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||