|
|||||||||
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 java.sql.SQLException
buf
- 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 failsvoid flushCopy() throws java.sql.SQLException
java.sql.SQLException
long endCopy() throws java.sql.SQLException
java.sql.SQLException
- if the operation fails.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |