パッケージ org.postgresql.core.v3
クラス CopyDualImpl
java.lang.Object
org.postgresql.core.v3.CopyOperationImpl
org.postgresql.core.v3.CopyDualImpl
- すべての実装されたインタフェース:
CopyDual
,CopyIn
,CopyOperation
,CopyOut
-
コンストラクタの概要
コンストラクタ -
メソッドの概要
修飾子とタイプメソッド説明long
endCopy()
Finishes copy operation successfully.void
Force any buffered output to be sent over the network to the backend.void
handleCommandStatus
(String status) protected void
handleCopydata
(byte[] data) Consume received copy data.byte @Nullable []
Blocks wait for a row of data to be received from server on an active copy operation.byte @Nullable []
readFromCopy
(boolean block) Wait for a row of data to be received from server on an active copy operation.void
writeToCopy
(byte[] data, 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.クラスから継承されたメソッド org.postgresql.core.v3.CopyOperationImpl
cancelCopy, getFieldCount, getFieldFormat, getFormat, getHandledRowCount, getQueryExecutor, isActive
クラスから継承されたメソッド java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
インタフェースから継承されたメソッド org.postgresql.copy.CopyOperation
cancelCopy, getFieldCount, getFieldFormat, getFormat, getHandledRowCount, isActive
-
コンストラクタの詳細
-
CopyDualImpl
public CopyDualImpl()
-
-
メソッドの詳細
-
writeToCopy
インタフェースからコピーされた説明:CopyIn
Writes specified part of given byte array to an open and writable copy operation.- 定義:
writeToCopy
インタフェース内CopyIn
- パラメータ:
data
- 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
-
writeToCopy
インタフェースからコピーされた説明:CopyIn
Writes a ByteStreamWriter to an open and writable copy operation.- 定義:
writeToCopy
インタフェース内CopyIn
- パラメータ:
from
- the source of bytes, e.g. a ByteBufferByteStreamWriter- 例外:
SQLException
- if the operation fails
-
flushCopy
インタフェースからコピーされた説明:CopyIn
Force any buffered output to be sent over the network to the backend. In general this is a useless operation as it will get pushed over in due time or when endCopy is called. Some specific modified server versions (Truviso) want this data sooner. If you are unsure if you need to use this method, don't.- 定義:
flushCopy
インタフェース内CopyIn
- 例外:
SQLException
- if the operation fails.
-
endCopy
インタフェースからコピーされた説明:CopyIn
Finishes copy operation successfully.- 定義:
endCopy
インタフェース内CopyIn
- 戻り値:
- number of updated rows for server 8.2 or newer (see getHandledRowCount())
- 例外:
SQLException
- if the operation fails.
-
readFromCopy
インタフェースからコピーされた説明:CopyOut
Blocks wait for a row of data to be received from server on an active copy operation.- 定義:
readFromCopy
インタフェース内CopyOut
- 戻り値:
- byte array received from server, null if server complete copy operation
- 例外:
SQLException
- if something goes wrong for example socket timeout
-
readFromCopy
インタフェースからコピーされた説明:CopyOut
Wait for a row of data to be received from server on an active copy operation.- 定義:
readFromCopy
インタフェース内CopyOut
- パラメータ:
block
-true
if need wait data from server otherwisefalse
and will read pending message from server- 戻り値:
- byte array received from server, if pending message from server absent and use no blocking mode return null
- 例外:
SQLException
- if something goes wrong for example socket timeout
-
handleCommandStatus
- オーバーライド:
handleCommandStatus
クラス内CopyOperationImpl
- 例外:
PSQLException
-
handleCopydata
protected void handleCopydata(byte[] data) クラスからコピーされた説明:CopyOperationImpl
Consume received copy data.- 定義:
handleCopydata
クラス内CopyOperationImpl
- パラメータ:
data
- data that was receive by copy protocol
-