com.groupbyinc.flux.index.translog.Checkpoint.class Maven / Gradle / Ivy
???? 4J -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 INITIAL_VERSION CURRENT_VERSION CHECKPOINT_CODEC Ljava/lang/String; ckp FILE_SIZE V1_FILE_SIZE $assertionsDisabled Z
(JIJJJJJ)V ()V
" java/lang/AssertionError $ java/lang/StringBuilder &
'
minSeqNo [ ) append -(Ljava/lang/String;)Ljava/lang/StringBuilder; + ,
' - (J)Ljava/lang/StringBuilder; + /
' 0 ] is higher than maxSeqNo [ 2 ] 4 toString ()Ljava/lang/String; 6 7
' 8 (Ljava/lang/Object;)V :
% ; minTranslogGen [ = ] is higher than generation [ ? A
C E
G I K M this /Lcom/groupbyinc/flux/index/translog/Checkpoint; write >(Lcom/groupbyinc/flux/common/apache/lucene/store/DataOutput;)V java/io/IOException S 9com/groupbyinc/flux/common/apache/lucene/store/DataOutput U writeLong (J)V W X
V Y writeInt (I)V [ \
V ] out ;Lcom/groupbyinc/flux/common/apache/lucene/store/DataOutput; emptyTranslogCheckpoint 5(JJJJ)Lcom/groupbyinc/flux/index/translog/Checkpoint;????????
e readCheckpointV6_0_0 k(Lcom/groupbyinc/flux/common/apache/lucene/store/DataInput;)Lcom/groupbyinc/flux/index/translog/Checkpoint; 8com/groupbyinc/flux/common/apache/lucene/store/DataInput i readLong ()J k l
j m readInt ()I o p
j q in :Lcom/groupbyinc/flux/common/apache/lucene/store/DataInput; readCheckpointV5_0_0???????? Checkpoint{offset= x , numOps= z (I)Ljava/lang/StringBuilder; + |
' }
, generation= , minSeqNo= ? , maxSeqNo= ? , globalCheckpoint= ? , minTranslogGeneration= ? (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 ? ? ? ? ? 8 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 ? l
? ? ? X
% ? u h
? close ?
? ?
addSuppressed (Ljava/lang/Throwable;)V ? ?
? ?
? ? \
% ? ? g h
? 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 ? ?
? ? Q R
? writeFooter ?(Lcom/groupbyinc/flux/common/apache/lucene/store/IndexOutput;)V ? ?
? ? getFilePointer ? l
? ? )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;&'
( o Ljava/lang/Object; that hashCode java/lang/Long. (J)I-0
/1 result java/lang/Class5 desiredAssertionStatus ()Z78
69 headerLength (Ljava/lang/String;)I;<
?= footerLength? p
?@
ConstantValue Code LocalVariableTable LineNumberTable
StackMapTable
Exceptions
SourceFile InnerClasses 0
B B B C Q ?*? !? #? 6?? .? %Y? 'Y? (*? .? 13? .? 15? .? 9? ? #? 6?? .? %Y? 'Y? (>? .? 1@? .? 15? .? 9? *? B*? D*? F*? H*? J*
? L*? N? D R ? O P ? ?
? ?
? ?
? E . S T = U v W { X ? Y ? Z ? [ ? \ ? ] ? ^F ? = 8 Q R C ? 9+*? B? Z+*? D? ^+*? F? Z+*? H? Z+*? J? Z+*? L? Z+*? N? Z? D 9 O P 9 _ ` E " a b c d e ( f 0 g 8 hG T a b C ? c7 c7
? Y c c? f? D >
E l m
n g h C N $? Y*? n*? r*? n*? n*? n*? n*? n? f? D $ s t E rG T u h C ? 2 c@ cB v7 c7? Y*? n*? r*? n c c v c? f? D 4 2 s t .
*
% E w x y
z {G T 6 7 C ? d? 'Y? (y? .*? B? 1{? .*? D? ~?? .*? F? 1?? .*? H? 1?? .*? J? 1?? .*? L? 1?? .*? N? 1}? ?? 9? D d O P E ? ? ? C o q? ?Y*? ? ? ?LM+*? ? ? ? ? ?? ?N:-? ?X-? ?6? h? #? -? ?? ???? ? %Y-? ?? ??-? ?:-? ? -? § :? Ƨ -? ?+? ,? +? ǧ :,? Ƨ +? ??? #? ?
? %Y? ɿ? #? -? ?? ˅?? ? %Y-? ?? ??-? ?:-? ? -? § :? Ƨ -? ?+? ,? +? ǧ :,? Ƨ +? ??::?:-? ? -? § : ? Ƨ -? ??N-M-?:
+? ,? +? ǧ :,? Ƨ +? ?
? h l o ? ? ? ? ? ? ? ? ? ? &