com.huawei.opengauss.jdbc.util.HStoreConverter.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/util/HStoreConverter java/lang/Object HStoreConverter.java java/util/Map$Entry
java/util/Map Entry ()V
this 0Lcom/huawei/opengauss/jdbc/util/HStoreConverter; fromBytes <([BLcom/huawei/opengauss/jdbc/core/Encoding;)Ljava/util/Map; java/sql/SQLException java/io/IOException java/util/HashMap
,com/huawei/opengauss/jdbc/util/ByteConverter int4 ([BI)I
[B 'com/huawei/opengauss/jdbc/core/Encoding " decode ([BII)Ljava/lang/String; $ %
# & java/lang/String ( put 8(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object; * + , ,com/huawei/opengauss/jdbc/util/PSQLException . ?Invalid character data was found. This is most likely caused by stored data containing characters that are invalid for the character set the database was created in. The most common example of this is storing 8bit data in a SQL_ASCII database. 0 !com/huawei/opengauss/jdbc/util/GT 2 tr 9(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String; 4 5
3 6 (com/huawei/opengauss/jdbc/util/PSQLState 8
DATA_ERROR *Lcom/huawei/opengauss/jdbc/util/PSQLState; : ; 9 < T(Ljava/lang/String;Lcom/huawei/opengauss/jdbc/util/PSQLState;Ljava/lang/Throwable;)V >
/ ? val Ljava/lang/String; keyLen I key valLen i ioe Ljava/io/IOException; b encoding )Lcom/huawei/opengauss/jdbc/core/Encoding; m 5Ljava/util/Map; Ljava/util/Map; pos numElements toBytes <(Ljava/util/Map;Lcom/huawei/opengauss/jdbc/core/Encoding;)[B java/io/ByteArrayOutputStream T size ()I V W X (I)V Z
U [ ([BII)V ]
^ write ([B)V ` a
U b entrySet ()Ljava/util/Set; d e f
java/util/Set h iterator ()Ljava/util/Iterator; j k i l java/util/Iterator n hasNext ()Z p q o r next ()Ljava/lang/Object; t u o v getKey x u y toString ()Ljava/lang/String; { |
} encode (Ljava/lang/String;)[B ?
# ? getValue ? u ? toByteArray ()[B ? ?
U ? e Ljava/util/Map$Entry<**>; Ljava/util/Map$Entry; Ljava/util/Map<**>; baos Ljava/io/ByteArrayOutputStream; lenBuf #(Ljava/util/Map;)Ljava/lang/String; isEmpty ? q ? ? java/lang/StringBuilder ?
? [
appendEscaped .(Ljava/lang/StringBuilder;Ljava/lang/Object;)V ? ?
? => ? append -(Ljava/lang/String;)Ljava/lang/StringBuilder; ? ?
? ? , ? length ? W
? ? setLength ? Z
? ?
? } map sb Ljava/lang/StringBuilder; (C)Ljava/lang/StringBuilder; ? ?
? ?
) ? charAt (I)C ? ?
) ? NULL ? ch C s Ljava/lang/Object;
fromString #(Ljava/lang/String;)Ljava/util/Map;
?
indexOf (II)I ? ?
) ? appendUntilQuote /(Ljava/lang/StringBuilder;Ljava/lang/String;I)I ? ?
? start end Code LocalVariableTable LineNumberTable LocalVariableTypeTable
StackMapTable
Exceptions Signature b([BLcom/huawei/opengauss/jdbc/core/Encoding;)Ljava/util/Map; @(Ljava/util/Map<**>;Lcom/huawei/opengauss/jdbc/core/Encoding;)[B '(Ljava/util/Map<**>;)Ljava/lang/String; I(Ljava/lang/String;)Ljava/util/Map;
SourceFile InnerClasses ! ? / *? ? ? ? ? ?
?? Y? M>*? 6?6? R*? 6?+*? ':`>*? 6?? : ? +*? ': `>, ? - W????? :? /Y1? ? 7? =? @?,? m p ? z J A B % B C D 2 5 E B > ) F D W A B V G D r H I ? J ? K L ? M O
? P D y Q D ? ? M N ? Z
% ( 2 7 > A G ! M # W $ \ &