com.huawei.opengauss.jdbc.copy.CopyManager.class Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of opengaussjdbc Show documentation
Show all versions of opengaussjdbc Show documentation
HuaweiCloud JDBC for GaussDB
The newest version!
???? 4 ? *com/huawei/opengauss/jdbc/copy/CopyManager java/lang/Object CopyManager.java DEFAULT_BUFFER_SIZE I encoding )Lcom/huawei/opengauss/jdbc/core/Encoding;
queryExecutor .Lcom/huawei/opengauss/jdbc/core/QueryExecutor;
connection /Lcom/huawei/opengauss/jdbc/core/BaseConnection; LOGGER #Lcom/huawei/opengauss/jdbc/log/Log; 2(Lcom/huawei/opengauss/jdbc/core/BaseConnection;)V java/sql/SQLException ()V
-com/huawei/opengauss/jdbc/core/BaseConnection getEncoding +()Lcom/huawei/opengauss/jdbc/core/Encoding;
getQueryExecutor 0()Lcom/huawei/opengauss/jdbc/core/QueryExecutor; ! " $
& this ,Lcom/huawei/opengauss/jdbc/copy/CopyManager; copyIn ;(Ljava/lang/String;)Lcom/huawei/opengauss/jdbc/copy/CopyIn;
getAutoCommit ()Z , - . ,com/huawei/opengauss/jdbc/core/QueryExecutor 0 startCopy C(Ljava/lang/String;Z)Lcom/huawei/opengauss/jdbc/copy/CopyOperation; 2 3 1 4 %com/huawei/opengauss/jdbc/copy/CopyIn 6 ,com/huawei/opengauss/jdbc/copy/CopyOperation 8
cancelCopy : 9 ; ,com/huawei/opengauss/jdbc/util/PSQLException = Requested CopyIn but got {0} ? getClass ()Ljava/lang/Class; A B
C java/lang/Class E getName ()Ljava/lang/String; G H
F I !com/huawei/opengauss/jdbc/util/GT K tr 9(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String; M N
L O (com/huawei/opengauss/jdbc/util/PSQLState Q WRONG_OBJECT_TYPE *Lcom/huawei/opengauss/jdbc/util/PSQLState; S T R U ?(Ljava/lang/String;Lcom/huawei/opengauss/jdbc/util/PSQLState;)V W
> X sql Ljava/lang/String; op .Lcom/huawei/opengauss/jdbc/copy/CopyOperation; copyOut <(Ljava/lang/String;)Lcom/huawei/opengauss/jdbc/copy/CopyOut; &com/huawei/opengauss/jdbc/copy/CopyOut ` Requested CopyOut but got {0} b copyDual =(Ljava/lang/String;)Lcom/huawei/opengauss/jdbc/copy/CopyDual; 'com/huawei/opengauss/jdbc/copy/CopyDual f Requested CopyDual but got {0} h %(Ljava/lang/String;Ljava/io/Writer;)J java/io/IOException k ^ _
m readFromCopy ()[B o p a q 'com/huawei/opengauss/jdbc/core/Encoding s decode ([B)Ljava/lang/String; u v
t w java/io/Writer y write (Ljava/lang/String;)V { |
z } java/lang/String [B ? getHandledRowCount ()J ? ? a ? isActive ? - a ? a ; ? *Catch SQLException while reading from copy ? !com/huawei/opengauss/jdbc/log/Log ? trace *(Ljava/lang/Object;Ljava/lang/Throwable;)V ? ? ? ? java/lang/Throwable ? buf sqlEx Ljava/sql/SQLException; ioEX Ljava/io/IOException; to Ljava/io/Writer; cp (Lcom/huawei/opengauss/jdbc/copy/CopyOut; +(Ljava/lang/String;Ljava/io/OutputStream;)J java/io/OutputStream ? ([B)V { ?
? ? Ljava/io/OutputStream; %(Ljava/lang/String;Ljava/io/Reader;)J &(Ljava/lang/String;Ljava/io/Reader;I)J * ?
? from Ljava/io/Reader; * +
? [C ? java/io/Reader ? read ([C)I ? ?
? ? ([CII)V ?
? ? encode (Ljava/lang/String;)[B ? ?
t ? writeToCopy ([BII)V ? ? 7 ? endCopy ? ? 7 ? 7 ? 7 ; len
bufferSize cbuf 'Lcom/huawei/opengauss/jdbc/copy/CopyIn; *(Ljava/lang/String;Ljava/io/InputStream;)J +(Ljava/lang/String;Ljava/io/InputStream;I)J * ?
? Ljava/io/InputStream; java/io/InputStream ? ([B)I ? ?
? ? $com/huawei/opengauss/jdbc/log/Logger ? getLogger 7(Ljava/lang/String;)Lcom/huawei/opengauss/jdbc/log/Log; ? ?
? ?
ConstantValue Code LocalVariableTable LineNumberTable
Exceptions
StackMapTable
SourceFile ! ?
? b *? *+? ? *+? # ? %*+? '? ? ( )
? ( ) * + , ? * + ? ? H*? %+*? '? / ? 5 M,?
,? 7? ,? 7?,? < ? >Y@? Y,? D? JS? P? V? Y? ? H ( ) H Z [ 4 \ ] ? / 0 1 $ 3 * 4 ? ? 9 ? ^ _ ? ? H*? %+*? '? / ? 5 M,?
,? a? ,? a?,? < ? >Yc? Y,? D? JS? P? V? Y? ? H ( ) H Z [ 4 \ ] ? : ; <