com.groupbyinc.flux.cluster.DiffableUtils$MapDiff.class Maven / Gradle / Ivy
???? 4 ? 1com/groupbyinc/flux/cluster/DiffableUtils$MapDiff wLjava/lang/Object;Lcom/groupbyinc/flux/cluster/Diff; java/lang/Object com/groupbyinc/flux/cluster/Diff DiffableUtils.java 7com/groupbyinc/flux/cluster/DiffableUtils$KeySerializer )com/groupbyinc/flux/cluster/DiffableUtils
KeySerializer 9com/groupbyinc/flux/cluster/DiffableUtils$ValueSerializer ValueSerializer MapDiff java/util/Map$Entry
java/util/Map Entry deletes Ljava/util/List; Ljava/util/List; diffs Ljava/util/Map; ;Ljava/util/Map;>; upserts Ljava/util/Map;
keySerializer 9Lcom/groupbyinc/flux/cluster/DiffableUtils$KeySerializer; >Lcom/groupbyinc/flux/cluster/DiffableUtils$KeySerializer; valueSerializer ;Lcom/groupbyinc/flux/cluster/DiffableUtils$ValueSerializer; CLcom/groupbyinc/flux/cluster/DiffableUtils$ValueSerializer; w(Lcom/groupbyinc/flux/cluster/DiffableUtils$KeySerializer;Lcom/groupbyinc/flux/cluster/DiffableUtils$ValueSerializer;)V ()V % '
( * " # , java/util/ArrayList .
/ ( 1 java/util/HashMap 3
4 ( 6 8 this >Lcom/groupbyinc/flux/cluster/DiffableUtils$MapDiff; 3Lcom/groupbyinc/flux/cluster/DiffableUtils$MapDiff; ?(Lcom/groupbyinc/flux/cluster/DiffableUtils$KeySerializer;Lcom/groupbyinc/flux/cluster/DiffableUtils$ValueSerializer;Ljava/util/List;Ljava/util/Map;Ljava/util/Map;)V ?(Lcom/groupbyinc/flux/common/io/stream/StreamInput;Lcom/groupbyinc/flux/cluster/DiffableUtils$KeySerializer;Lcom/groupbyinc/flux/cluster/DiffableUtils$ValueSerializer;)V java/io/IOException ? 0com/groupbyinc/flux/common/io/stream/StreamInput A readVInt ()I C D
B E readKey F(Lcom/groupbyinc/flux/common/io/stream/StreamInput;)Ljava/lang/Object; G H
I java/util/List K add (Ljava/lang/Object;)Z M N L O readDiff h(Lcom/groupbyinc/flux/common/io/stream/StreamInput;Ljava/lang/Object;)Lcom/groupbyinc/flux/cluster/Diff; Q R S put 8(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object; U V W read X(Lcom/groupbyinc/flux/common/io/stream/StreamInput;Ljava/lang/Object;)Ljava/lang/Object; Y Z [ i I key TK; Ljava/lang/Object; diff 'Lcom/groupbyinc/flux/cluster/Diff; "Lcom/groupbyinc/flux/cluster/Diff; newValue TT; in 2Lcom/groupbyinc/flux/common/io/stream/StreamInput; deletesCount
diffsCount upsertsCount
getDeletes ()Ljava/util/List; getDiffs ()Ljava/util/Map;
getUpserts writeTo 6(Lcom/groupbyinc/flux/common/io/stream/StreamOutput;)V size s D L t 1com/groupbyinc/flux/common/io/stream/StreamOutput v writeVInt (I)V x y
w z iterator ()Ljava/util/Iterator; | } L ~ java/util/Iterator ? hasNext ()Z ? ? ? ? next ()Ljava/lang/Object; ? ? ? ? writeKey H(Ljava/lang/Object;Lcom/groupbyinc/flux/common/io/stream/StreamOutput;)V ? ?
?
getVersion ()Lcom/groupbyinc/flux/Version; ? ?
w ? values ()Ljava/util/Collection; ? ? ? java/util/Collection ? ? ~ com/groupbyinc/flux/Version ? supportsVersion B(Lcom/groupbyinc/flux/cluster/Diff;Lcom/groupbyinc/flux/Version;)Z ? ? ? entrySet ()Ljava/util/Set; ? ? ?
java/util/Set ? ? ~ getValue ? ? ? getKey ? ? ? writeDiff X(Lcom/groupbyinc/flux/cluster/Diff;Lcom/groupbyinc/flux/common/io/stream/StreamOutput;)V ? ? ? 2(Ljava/lang/Object;Lcom/groupbyinc/flux/Version;)Z ? ? ? write ? ? ? delete entry ALjava/util/Map$Entry;>; Ljava/util/Map$Entry; upsert Ljava/util/Map$Entry; out 3Lcom/groupbyinc/flux/common/io/stream/StreamOutput; version Lcom/groupbyinc/flux/Version; diffCount Signature Code LocalVariableTable LocalVariableTypeTable LineNumberTable ?(Lcom/groupbyinc/flux/cluster/DiffableUtils$KeySerializer;Lcom/groupbyinc/flux/cluster/DiffableUtils$ValueSerializer;)V ?(Lcom/groupbyinc/flux/cluster/DiffableUtils$KeySerializer;Lcom/groupbyinc/flux/cluster/DiffableUtils$ValueSerializer;Ljava/util/List;Ljava/util/Map;>;Ljava/util/Map;)V
StackMapTable
Exceptions ?(Lcom/groupbyinc/flux/common/io/stream/StreamInput;Lcom/groupbyinc/flux/cluster/DiffableUtils$KeySerializer;Lcom/groupbyinc/flux/cluster/DiffableUtils$ValueSerializer;)V ()Ljava/util/List; =()Ljava/util/Map;>; ()Ljava/util/Map;
SourceFile InnerClasses! ? ? ? ? ! " # ? $ % &