com.groupbyinc.flux.index.translog.Checkpoint.class Maven / Gradle / Ivy
???? 4` -com/groupbyinc/flux/index/translog/Checkpoint java/lang/Object Checkpoint.java /com/groupbyinc/flux/index/translog/Checkpoint$1 offset J numOps I
generation minSeqNo maxSeqNo globalCheckpoint minTranslogGeneration trimmedAboveSeqNo INITIAL_VERSION
VERSION_6_0_0 CURRENT_VERSION CHECKPOINT_CODEC Ljava/lang/String; ckp V3_FILE_SIZE V2_FILE_SIZE V1_FILE_SIZE $assertionsDisabled Z (JIJJJJJJ)V ()V ! #
$ & java/lang/AssertionError ( java/lang/StringBuilder *
+ $
minSeqNo [ - append -(Ljava/lang/String;)Ljava/lang/StringBuilder; / 0
+ 1 (J)Ljava/lang/StringBuilder; / 3
+ 4 ] is higher than maxSeqNo [ 6 ] 8 toString ()Ljava/lang/String; : ;
+ < (Ljava/lang/Object;)V ! >
) ? trimmedAboveSeqNo [ A minTranslogGen [ C ] is higher than generation [ E G
I K
M O Q S U this /Lcom/groupbyinc/flux/index/translog/Checkpoint; write >(Lcom/groupbyinc/flux/common/apache/lucene/store/DataOutput;)V java/io/IOException [ 9com/groupbyinc/flux/common/apache/lucene/store/DataOutput ] writeLong (J)V _ `
^ a writeInt (I)V c d
^ e out ;Lcom/groupbyinc/flux/common/apache/lucene/store/DataOutput; emptyTranslogCheckpoint 5(JJJJ)Lcom/groupbyinc/flux/index/translog/Checkpoint;???????????????? ! "
o readCheckpointV6_4_0 k(Lcom/groupbyinc/flux/common/apache/lucene/store/DataInput;)Lcom/groupbyinc/flux/index/translog/Checkpoint; 8com/groupbyinc/flux/common/apache/lucene/store/DataInput s readLong ()J u v
t w readInt ()I y z
t { in :Lcom/groupbyinc/flux/common/apache/lucene/store/DataInput; readCheckpointV6_0_0 readCheckpointV5_0_0 Checkpoint{offset= ? , numOps= ? (I)Ljava/lang/StringBuilder; / ?
+ ?
, generation= ? , minSeqNo= ? , maxSeqNo= ? , globalCheckpoint= ? , minTranslogGeneration= ? , trimmedAboveSeqNo= ? (C)Ljava/lang/StringBuilder; / ?
+ ? read E(Ljava/nio/file/Path;)Lcom/groupbyinc/flux/index/translog/Checkpoint; java/lang/Throwable ? @com/groupbyinc/flux/common/apache/lucene/store/SimpleFSDirectory ? java/nio/file/Path ? getParent ()Ljava/nio/file/Path; ? ? ? ? (Ljava/nio/file/Path;)V ! ?
? ? getFileName ? ? ? ? ? < 8com/groupbyinc/flux/common/apache/lucene/store/IOContext ? DEFAULT :Lcom/groupbyinc/flux/common/apache/lucene/store/IOContext; ? ? ? ? 8com/groupbyinc/flux/common/apache/lucene/store/Directory ? openInput ?(Ljava/lang/String;Lcom/groupbyinc/flux/common/apache/lucene/store/IOContext;)Lcom/groupbyinc/flux/common/apache/lucene/store/IndexInput; ? ?
? ? 9com/groupbyinc/flux/common/apache/lucene/codecs/CodecUtil ? checksumEntireFile >(Lcom/groupbyinc/flux/common/apache/lucene/store/IndexInput;)J ? ?
? ? checkHeader Q(Lcom/groupbyinc/flux/common/apache/lucene/store/DataInput;Ljava/lang/String;II)I ? ?
? ? 9com/groupbyinc/flux/common/apache/lucene/store/IndexInput ? length ? v
? ? ? ! `
) ? ? r
? $closeResource 1(Ljava/lang/Throwable;Ljava/lang/AutoCloseable;)V ? ?
? ? r
? ! d
) ? ? q r
? fileVersion
indexInput ;Lcom/groupbyinc/flux/common/apache/lucene/store/IndexInput; dir :Lcom/groupbyinc/flux/common/apache/lucene/store/Directory; path Ljava/nio/file/Path; ?(Lcom/groupbyinc/flux/index/translog/ChannelFactory;Ljava/nio/file/Path;Lcom/groupbyinc/flux/index/translog/Checkpoint;[Ljava/nio/file/OpenOption;)V
? checkpoint(path=" ? -(Ljava/lang/Object;)Ljava/lang/StringBuilder; / ?
+ ? ", gen= ? ) ? Fcom/groupbyinc/flux/common/apache/lucene/store/OutputStreamIndexOutput ? >(Ljava/lang/String;Ljava/lang/String;Ljava/io/OutputStream;I)V ! ?
? ? writeHeader Q(Lcom/groupbyinc/flux/common/apache/lucene/store/DataOutput;Ljava/lang/String;I)V ? ?
? ? Y Z
? writeFooter ?(Lcom/groupbyinc/flux/common/apache/lucene/store/IndexOutput;)V ? ?
? ? getFilePointer ? v
? ? )get you numbers straight; bytes written: ? , buffer size: ? 1com/groupbyinc/flux/index/translog/ChannelFactory [Ljava/nio/file/OpenOption; java/io/ByteArrayOutputStream java/lang/String Lcheckpoint files have to be smaller than 512 bytes for atomic writes; size: open P(Ljava/nio/file/Path;[Ljava/nio/file/OpenOption;)Ljava/nio/channels/FileChannel;
toByteArray ()[B
&com/groupbyinc/flux/common/io/Channels writeToChannel ,([BLjava/nio/channels/WritableByteChannel;)V
java/nio/channels/FileChannel force (Z)V
indexOutput HLcom/groupbyinc/flux/common/apache/lucene/store/OutputStreamIndexOutput; channel Ljava/nio/channels/FileChannel; factory 3Lcom/groupbyinc/flux/index/translog/ChannelFactory; checkpointFile
checkpoint options byteOutputStream Ljava/io/ByteArrayOutputStream; resourceDesc equals (Ljava/lang/Object;)Z getClass ()Ljava/lang/Class;/0
1 o Ljava/lang/Object; that hashCode java/lang/Long7 (J)I69
8: result java/lang/AutoCloseable= close? #>@
addSuppressed (Ljava/lang/Throwable;)VBC
?D x0 Ljava/lang/Throwable; x1 Ljava/lang/AutoCloseable; java/lang/ClassK desiredAssertionStatus ()ZMN
LO headerLength (Ljava/lang/String;)IQR
?S footerLengthU z
?V
ConstantValue Code LocalVariableTable LineNumberTable
StackMapTable
Exceptions
SourceFile InnerClasses 0
X X X X
! " Y ? ?*? %? '? 6?? .? )Y? +Y? ,.? 2? 57? 2? 59? 2? =? @?? '? 6?? .? )Y? +Y? ,B? 2? 57? 2? 59? 2? =? @?? '? 6?? .? )Y? +Y? ,D? 2? 5F? 2? 59? 2? =? @?*? H*? J*? L*? N*? P*
? R*? T*? V? Z \ ? W X ? ?
? ?
? ?
? ? [ 6
e f = g v h ? j ? k ? l ? m ? n ? o ? p ? q ? r\ ? = 88 Y Z Y ? A+*? H? b+*? J? f+*? L? b+*? N? b+*? P? b+*? R? b+*? T? b+*? V? b? Z A W X A g h [ &