org.postgresql.core.PbqExecutor.class Maven / Gradle / Ivy
???? 4?
pz ? ?{ ? ?| ?} ?~ ? ???
z ????? ??
??
?
? ?? ?? ?? ??
????? ?? ?? ???
z
?
?
?? ?? ??
?? ?? ??
?? ???
*? ?? ??? ??
??
?? ???
3?
.? ??
??
?? ???
:z
:?
:?
??
???
@??
B?
*?
.???
G? F?
.????
??
?
??
??
???
??
S? ??
W??
Y? ??
??? ?? ???
??
???
c?
??M??
gzH?
??H??
:?
????
??
??? s?
?
??
:?M? s?
??
?
Y?
Y?
p?
??
`?
??
a ?
a
?
?z
?
?
??
?ff
?
?
?
?
??
]
?
?
?
?!"
#$
?%&' InnerClasses LOGGER Ljava/util/logging/Logger; sessionId Ljava/lang/String; projectId
dwsRestClient &Lcom/huawei/dws/pbq/api/DwsRestClient; statementId PGRES_FATAL_ERROR PGRES_BAD_RESPONSE closed Z multiFunctionSplit transactionState &Lorg/postgresql/core/TransactionState; statementCache Lorg/postgresql/util/LruCache; Signature SLorg/postgresql/util/LruCache; cachedQueryCreateAction -Lorg/postgresql/core/CachedQueryCreateAction; preferQueryMode %Lorg/postgresql/jdbc/PreferQueryMode; reWriteBatchedInserts timeZone Ljava/util/TimeZone; headers Ljava/util/Map; 5Ljava/util/Map;
emptyQuery $Lorg/postgresql/core/v3/SimpleQuery;
RETRY_PATTERN [I RETRY_MAX_INDEX I c(Lcom/huawei/dws/pbq/api/DwsRestClient;Ljava/lang/String;Ljava/lang/String;Ljava/util/Properties;)V Code LineNumberTable LocalVariableTable this !Lorg/postgresql/core/PbqExecutor;
restClient catalog info Ljava/util/Properties;
xAuthToken lakeformationInstanceId request 5Lcom/huawei/dws/pbq/api/request/CreateSessionRequest;
preferMode postgresTimeZone
Exceptions executeQuery D(Ljava/lang/String;Lorg/postgresql/jdbc/PbqStatementResultHandler;)V sql handler /Lorg/postgresql/jdbc/PbqStatementResultHandler; statementQuery /Lcom/huawei/dws/pbq/api/request/StatementQuery; result Ljava/util/List; LocalVariableTypeTable @Ljava/util/List; createQueryKey ;(Ljava/lang/String;ZZ[Ljava/lang/String;)Ljava/lang/Object; key Ljava/lang/Object; escapeProcessing isParameterized columnNames [Ljava/lang/String;
StackMapTable createQueryByKey 5(Ljava/lang/Object;)Lorg/postgresql/core/CachedQuery;( borrowQueryByKey borrowQuery 5(Ljava/lang/String;)Lorg/postgresql/core/CachedQuery; borrowCallableQuery borrowReturningQuery H(Ljava/lang/String;[Ljava/lang/String;)Lorg/postgresql/core/CachedQuery; releaseQuery $(Lorg/postgresql/core/CachedQuery;)V cachedQuery !Lorg/postgresql/core/CachedQuery; wrap -(Ljava/util/List;)Lorg/postgresql/core/Query; valuesBraceOpenPosition valuesBraceClosePosition
firstQuery !Lorg/postgresql/core/NativeQuery; nativeQuery i queries
subqueries %[Lorg/postgresql/core/v3/SimpleQuery; offsets offset 3Ljava/util/List;)
? P(Ljava/util/List;)Lorg/postgresql/core/Query; createFastpathParameters &(I)Lorg/postgresql/core/ParameterList; count getProtocolVersion ()I getDatabase ()Ljava/lang/String;
getBackendPID sendQueryCancel ()V e 2Lcom/huawei/dws/pbq/api/exception/DwsApiException; close isClosed ()Z getServerVersionNum setTransactionState )(Lorg/postgresql/core/TransactionState;)V state getTransactionState (()Lorg/postgresql/core/TransactionState; getStandardConformingStrings getTimeZone ()Ljava/util/TimeZone; isColumnSanitiserDisabled getEscapeSyntaxCallMode ,()Lorg/postgresql/jdbc/EscapeSyntaxCallMode; getPreferQueryMode '()Lorg/postgresql/jdbc/PreferQueryMode; getMultiFunctionSplit executeBatch ?([Lorg/postgresql/core/Query;[Lorg/postgresql/core/ParameterList;Lorg/postgresql/jdbc/PbqStatementResultHandler;Ljava/lang/Integer;)V [Lorg/postgresql/core/Query; parameterLists $[Lorg/postgresql/core/ParameterList;
resultHandler maxRows Ljava/lang/Integer; executeBatchInternal ?(Lorg/postgresql/core/Query;[Lorg/postgresql/core/ParameterList;Lorg/postgresql/jdbc/PbqStatementResultHandler;Ljava/lang/Integer;)V string j
parameterList #Lorg/postgresql/core/ParameterList; bindings params query Lorg/postgresql/core/Query; results $Ljava/util/List; 6Ljava/util/List;>;* execute
parameters (Lorg/postgresql/core/v3/V3ParameterList;7+ ?(Lorg/postgresql/core/Query;Lorg/postgresql/core/ParameterList;Lorg/postgresql/jdbc/PbqStatementResultHandler;Ljava/lang/Integer;)V subquery subparam ,Lorg/postgresql/core/v3/SimpleParameterList; subparams -[Lorg/postgresql/core/v3/SimpleParameterList;5S executeSimpleQuery ?(Lorg/postgresql/core/v3/SimpleQuery;Lorg/postgresql/core/v3/SimpleParameterList;Lorg/postgresql/jdbc/PbqStatementResultHandler;)V
executeRun A(Lcom/huawei/dws/pbq/api/request/StatementQuery;)Ljava/util/List; asyncQueryResponse 4Lcom/huawei/dws/pbq/api/response/AsyncQueryResponse; statementResponse 3Lcom/huawei/dws/pbq/api/response/StatementResponse; retry Ljava/lang/Exception;,- q(Lcom/huawei/dws/pbq/api/request/StatementQuery;)Ljava/util/List; checkResponseError F(Lcom/huawei/dws/pbq/api/response/StatementResponse;Ljava/util/List;)V .Lcom/huawei/dws/pbq/api/model/StatementResult;. v(Lcom/huawei/dws/pbq/api/response/StatementResponse;Ljava/util/List;)V getStatementResult @(Lcom/huawei/dws/pbq/api/model/StatementResult;)Ljava/util/List; nextPage statementResult p(Lcom/huawei/dws/pbq/api/model/StatementResult;)Ljava/util/List; createSimpleQuery /(Ljava/lang/String;)Lorg/postgresql/core/Query; isReWriteBatchedInsertsEnabled createQuery J(Ljava/lang/String;ZZ[Ljava/lang/String;)Lorg/postgresql/core/CachedQuery; abort useBinaryForSend (I)Z oid useBinaryForReceive
SourceFile PbqExecutor.java ? ? ? ? ? ? ? ? ?/0 ? ? ? java/util/HashMap ? ? "org/postgresql/core/v3/SimpleQuery org/postgresql/core/NativeQuery 123456 ?7 ?8 ? ? ? ? ? ?9:;<= X-Auth-Token>?@ ? ? ? ?A; 3com/huawei/dws/pbq/api/request/CreateSessionRequestBCDCEFG ? ?H;IJ ? ?K;LMN ? ? +org/postgresql/core/CachedQueryCreateAction ?O ? ?P; org/postgresql/util/LruCacheQ;RSTUVW; !org/postgresql/core/PbqExecutor$1 ?\ ? ?]^_`a ? ? -com/huawei/dws/pbq/api/request/StatementQuerybCcCXYdef 0org/postgresql/core/QueryWithReturningColumnsKey ?g org/postgresql/core/BaseQueryKey ?hi ?jk org/postgresql/core/CachedQuery $org/postgresql/core/CallableQueryKey ?C ? ??lm#n<oo#pqr#st #org/postgresql/core/v3/BatchedQuery-# ?uv ? %org/postgresql/core/v3/CompositeQuery ?w *org/postgresql/core/v3/SimpleParameterList ?x ? ?yz 0com/huawei/dws/pbq/api/exception/DwsApiException ? ?{|} %Ignoring exception on cancel request:~??? java/lang/RuntimeException ??;<? java/util/ArrayList?*#?????f?? batch execute {0} queries java/lang/Object???? &org/postgresql/core/v3/V3ParameterList??QIN??????VW??????h????? java/lang/InterruptedException??cd java/lang/Exception execute failed, sessionId={0} !org/postgresql/util/PSQLException java/lang/StringBuilder
sessionId ?? : ???? ?????#?? ,com/huawei/dws/pbq/api/model/StatementResult??????? *get statement result failed, sessionId={0} java/lang/String??? ? ? ? ??? (org/postgresql/core/v3/QueryExecutorImpl???? org/postgresql/core/PbqExecutor /org/postgresql/core/v3/TypeTransferModeRegistry java/sql/SQLException java/util/List !org/postgresql/core/ParameterList org/postgresql/core/Query 2com/huawei/dws/pbq/api/response/AsyncQueryResponse 1com/huawei/dws/pbq/api/response/StatementResponse java/util/Iterator $org/postgresql/core/TransactionState IDLE "org/postgresql/core/SqlCommandType BLANK $Lorg/postgresql/core/SqlCommandType; org/postgresql/core/SqlCommand createStatementTypeInfo F(Lorg/postgresql/core/SqlCommandType;)Lorg/postgresql/core/SqlCommand; 8(Ljava/lang/String;[IZLorg/postgresql/core/SqlCommand;)V V(Lorg/postgresql/core/NativeQuery;Lorg/postgresql/core/v3/TypeTransferModeRegistry;Z)V org/postgresql/PGProperty X_AUTH_TOKEN Lorg/postgresql/PGProperty; get *(Ljava/util/Properties;)Ljava/lang/String;
java/util/Map put 8(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object; LAKEFORMATION_INSTANCE_ID setLakeformationInstanceId (Ljava/lang/String;)V setCatalogName $com/huawei/dws/pbq/api/DwsRestClient
createSession j(Ljava/lang/String;Lcom/huawei/dws/pbq/api/request/CreateSessionRequest;Ljava/util/Map;)Ljava/lang/String; REWRITE_BATCHED_INSERTS
getBoolean (Ljava/util/Properties;)Z PREFER_QUERY_MODE #org/postgresql/jdbc/PreferQueryMode of 9(Ljava/lang/String;)Lorg/postgresql/jdbc/PreferQueryMode; $(Lorg/postgresql/core/PbqExecutor;)V MULTI_FUNCTION_SPLIT PREPARED_STATEMENT_CACHE_QUERIES getInt (Ljava/util/Properties;)I java/lang/Math max (II)I !PREPARED_STATEMENT_CACHE_SIZE_MIB? CreateAction? EvictAction [(IJZLorg/postgresql/util/LruCache$CreateAction;Lorg/postgresql/util/LruCache$EvictAction;)V ,org/postgresql/core/v3/ConnectionFactoryImpl createPostgresTimeZone "org/postgresql/jdbc/TimestampUtils parseBackendTimeZone ((Ljava/lang/String;)Ljava/util/TimeZone; setStatement setSessionId -org/postgresql/jdbc/PbqStatementResultHandler addResult (Ljava/util/List;)V *(Ljava/lang/String;ZZ[Ljava/lang/String;)V (Ljava/lang/String;ZZ)V create borrow 9(Ljava/lang/Object;)Lorg/postgresql/util/CanEstimateSize; :(Ljava/lang/Object;Lorg/postgresql/util/CanEstimateSize;)V isEmpty size (I)Ljava/lang/Object;
getCommand "()Lorg/postgresql/core/SqlCommand; isBatchedReWriteCompatible &getBatchRewriteValuesBraceOpenPosition 'getBatchRewriteValuesBraceClosePosition X(Lorg/postgresql/core/NativeQuery;Lorg/postgresql/core/v3/TypeTransferModeRegistry;IIZ)V
bindPositions *([Lorg/postgresql/core/v3/SimpleQuery;[I)V 5(ILorg/postgresql/core/v3/TypeTransferModeRegistry;)V
cancelExecute H(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/util/Map;)V java/util/logging/Level FINEST Ljava/util/logging/Level; java/util/logging/Logger log C(Ljava/util/logging/Level;Ljava/lang/String;Ljava/lang/Throwable;)V closeSession 6(Ljava/lang/String;Ljava/lang/String;Ljava/util/Map;)V (Ljava/lang/Throwable;)V getNativeSql getParameterCount toString (IZ)Ljava/lang/String; add (Ljava/lang/Object;)Z setBindings
isLoggable (Ljava/util/logging/Level;)Z java/lang/Integer valueOf (I)Ljava/lang/Integer; A(Ljava/util/logging/Level;Ljava/lang/String;[Ljava/lang/Object;)V checkAllParametersSet
NO_PARAMETERS setLimit (Ljava/lang/Integer;)V
getSubqueries ()[Lorg/postgresql/core/Query; getSubparams /()[Lorg/postgresql/core/v3/SimpleParameterList; getValues ()[Ljava/lang/Object;
asyncQuery ?(Ljava/lang/String;Lcom/huawei/dws/pbq/api/request/StatementQuery;Ljava/util/Map;)Lcom/huawei/dws/pbq/api/response/AsyncQueryResponse; getStatementId {(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;ILjava/util/Map;)Lcom/huawei/dws/pbq/api/response/StatementResponse; getStatus java/lang/Thread sleep (J)V
getResults ()Ljava/util/List; append -(Ljava/lang/String;)Ljava/lang/StringBuilder;
getMessage org/postgresql/util/PSQLState
UNKNOWN_STATE Lorg/postgresql/util/PSQLState; 4(Ljava/lang/String;Lorg/postgresql/util/PSQLState;)V iterator ()Ljava/util/Iterator; hasNext next ()Ljava/lang/Object; equalsIgnoreCase (Ljava/lang/String;)Z org/postgresql/util/GT tr 9(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String; getPageNo org/postgresql/core/Parser parseJdbcSql ;(Ljava/lang/String;ZZZZ[Ljava/lang/String;)Ljava/util/List; '(Ljava/lang/String;Ljava/lang/String;)V java/lang/Class getName getLogger .(Ljava/lang/String;)Ljava/util/logging/Logger; )org/postgresql/util/LruCache$CreateAction (org/postgresql/util/LruCache$EvictAction ! ? p ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ) ? ? ? D
H*? *? *? *? *? *? ? *?
Y? ? *?
Y? Y?
? ? ? ? ? *?
YOYOYOYOY
O? **? ?d? ? ? :*? ? W*+? *,? ? ? :? Y? :? -? !**? ,*? ? "? #*? $? %? &? '? :*? (? )*? *Y*? +? ,*? -? %? *? .Y? /? 0? 1? 2? 0 h h? 1?*? ,? 3Y*? 4? 5? 6? 7: * ? 8? 9? ? ~ N 6
8 : <