com.huawei.opengauss.jdbc.util.HintNodeName.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!
???? 46 +com/huawei/opengauss/jdbc/util/HintNodeName java/lang/Object HintNodeName.java LOGGER #Lcom/huawei/opengauss/jdbc/log/Log; lastUpdated J MIN_UPDATAED ' allNode Ljava/util/List; $Ljava/util/List; specialChar [C jumpChar ()V
this -Lcom/huawei/opengauss/jdbc/util/HintNodeName; addNodeName f(Ljava/lang/String;Ljava/lang/String;Lcom/huawei/opengauss/jdbc/core/QueryExecutor;)Ljava/lang/String; java/sql/SQLException java/lang/String isEmpty ()Z
! containsSqlInjection C(Ljava/lang/String;Lcom/huawei/opengauss/jdbc/core/QueryExecutor;)V # $
% toCharArray ()[C ' (
) ,com/huawei/opengauss/jdbc/core/QueryExecutor + addHint ;(ILjava/lang/String;[CLjava/lang/String;)Ljava/lang/String; . /
0 %com/huawei/opengauss/jdbc/core/Parser 2 parseBlockComment ([CI)I 4 5
3 6 parseLineComment 8 5
3 9 isSpecialCharacters (C)Z ; <
3 = parseDoubleQuotes ? 5
3 @ parseSingleQuotes ([CIZ)I B C
3 D select F java/lang/StringBuilder H
I valueOf (C)Ljava/lang/String; K L
M append -(Ljava/lang/String;)Ljava/lang/StringBuilder; O P
I Q (C)Ljava/lang/StringBuilder; O S
I T toString ()Ljava/lang/String; V W
I X equalsIgnoreCase (Ljava/lang/String;)Z Z [
\ (I[C)Z ; ^
_ with a crossThisString (I[C)I c d
e g !com/huawei/opengauss/jdbc/log/Log i
isInfoEnabled k j l 8Add a single slice query statement to the SQL statement: n ([C)Ljava/lang/String; K p
q info (Ljava/lang/Object;)V s t j u i I query Ljava/lang/String; nodeName
queryExecutor .Lcom/huawei/opengauss/jdbc/core/QueryExecutor; tempSql isSelect Z isSelectStatement parenthesesClose substring (II)Ljava/lang/String; ? ?
? set(node_name ? ) ? (I)Ljava/lang/String; ? ?
? /*+ set(node_name ? ) */ ? newSql offSet sqlChars
tempOffSet ; ? contains (Ljava/lang/CharSequence;)Z ? ?
? /* ? */ ? Illegal node name: ? warn ? t j ? ,com/huawei/opengauss/jdbc/util/PSQLException ? . ? !com/huawei/opengauss/jdbc/util/GT ? tr 9(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String; ? ?
? ? (com/huawei/opengauss/jdbc/util/PSQLState ?
DATA_ERROR *Lcom/huawei/opengauss/jdbc/util/PSQLState; ? ? ? ? ?(Ljava/lang/String;Lcom/huawei/opengauss/jdbc/util/PSQLState;)V ?
? ?
nodeNameCheck ? $
?
updateAllNode 1(Lcom/huawei/opengauss/jdbc/core/QueryExecutor;)V java/io/IOException ? Iselect node_name from pgxc_node where node_type='D' and nodeis_active='t' ? /com/huawei/opengauss/jdbc/core/SetupQueryRunner ?
runForList S(Lcom/huawei/opengauss/jdbc/core/QueryExecutor;Ljava/lang/String;Z)Ljava/util/List; ? ?
? ?
? java/lang/System ? currentTimeMillis ()J ? ?
? ? java/util/List ? size ()I ? ? ? ? ? clear ? ? ? iterator ()Ljava/util/Iterator; ? ? ? ? java/util/Iterator ? hasNext ? ? ? next ()Ljava/lang/Object; ? ? ? ? [[B ? getEncoding +()Lcom/huawei/opengauss/jdbc/core/Encoding; ? ? , ? 'com/huawei/opengauss/jdbc/core/Encoding ? decode ([B)Ljava/lang/String; ? ?
? ? add (Ljava/lang/Object;)Z ? ? ? ? Fail to check pgxc_node. ?
getMessage ? W
? ? (Ljava/lang/String;)V ?
? java/lang/Throwable ? Currently available DN nodes: -(Ljava/lang/Object;)Ljava/lang/StringBuilder; O
I result nowTime e Ljava/io/IOException; results Ljava/util/List<[[B>; C tempChar jumpCharacters jump <
? ? ? ? ?
Node name does not exist. java/lang/Class getName! W
" $com/huawei/opengauss/jdbc/log/Logger$ getLogger 7(Ljava/lang/String;)Lcom/huawei/opengauss/jdbc/log/Log;&'
%( java/util/ArrayList*
+
ConstantValue Signature Code LocalVariableTable LineNumberTable
StackMapTable
Exceptions LocalVariableTypeTable
SourceFile !
-
.
/ / *? ? 0 1 / ? 4+?
+? "? *?+,? &*? *N6666-???-4/? 0`-?? '-`4*? ? +-*? 1?-? 76??-4-? "`-?? -`4-? -? :6?~-4? >? ?q-4(? ? ?`? +-*? 1???L-4)? ???=-4"? -? A6?)-4'? -? E6?-4s? -4S? {`-?? r? m? ?G? IY? J-4? N? R-`4? U-`4? U-`4? U-`4? U-`4? U? Y? ]? ?`-? `6? 6`6? ?-4w? -4W? [`-?? R? Mb? IY? J-4? N? R-`4? U-`4? U-`4? U? Y? ]? 3`-? `6`6? ? +-*? 1?? *?-? f6???? h? m ? !? h? IY? Jo? R-? r? R? Y? v *? 0 R #? w x 4 y z 4 { z 4 | } ~ ? ? ? ? x 1 ? 0 + ,
. 0 2 4 6 8 * 9 G ; L <