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 INITIAL_VERSION CHECKPOINT_CODEC Ljava/lang/String; ckp FILE_SIZE "LEGACY_NON_CHECKSUMMED_FILE_LENGTH $assertionsDisabled Z (JIJ)V ()V
! 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 + ,
* - writeInt (I)V / 0
* 1 out ;Lcom/groupbyinc/flux/common/apache/lucene/store/DataOutput; readChecksummedV1 k(Lcom/groupbyinc/flux/common/apache/lucene/store/DataInput;)Lcom/groupbyinc/flux/index/translog/Checkpoint; 8com/groupbyinc/flux/common/apache/lucene/store/DataInput 7 readLong ()J 9 :
8 ; readInt ()I = >
8 ?
A in :Lcom/groupbyinc/flux/common/apache/lucene/store/DataInput; readNonChecksummed toString ()Ljava/lang/String; java/lang/StringBuilder H
I Checkpoint{offset= K append -(Ljava/lang/String;)Ljava/lang/StringBuilder; M N
I O (J)Ljava/lang/StringBuilder; M Q
I R , numOps= T (I)Ljava/lang/StringBuilder; M V
I W , translogFileGeneration= Y (C)Ljava/lang/StringBuilder; M [
I \ F G
I ^ read E(Ljava/nio/file/Path;)Lcom/groupbyinc/flux/index/translog/Checkpoint; java/lang/Throwable b @com/groupbyinc/flux/common/apache/lucene/store/SimpleFSDirectory d java/nio/file/Path f getParent ()Ljava/nio/file/Path; h i g j (Ljava/nio/file/Path;)V l
e m getFileName o i g p g ^ 8com/groupbyinc/flux/common/apache/lucene/store/IOContext s DEFAULT :Lcom/groupbyinc/flux/common/apache/lucene/store/IOContext; u v t w 8com/groupbyinc/flux/common/apache/lucene/store/Directory y openInput ?(Ljava/lang/String;Lcom/groupbyinc/flux/common/apache/lucene/store/IOContext;)Lcom/groupbyinc/flux/common/apache/lucene/store/IndexInput; { |
z } 9com/groupbyinc/flux/common/apache/lucene/store/IndexInput length ? :
? ? E 6
? close ?
? ?
addSuppressed (Ljava/lang/Throwable;)V ? ?
c ?
z ? 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 ? ?
? ? 5 6
? 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 ? 0
? checkpoint(path=" ? -(Ljava/lang/Object;)Ljava/lang/StringBuilder; M ?
I ? ", 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 ? ?
? ? % &
? writeFooter ?(Lcom/groupbyinc/flux/common/apache/lucene/store/IndexOutput;)V ? ?
? ? ? getFilePointer ? :
? ? java/lang/AssertionError ? )get you number straights. Bytes written: ? buffer size: ? (Ljava/lang/Object;)V ?
? ? 1com/groupbyinc/flux/index/translog/ChannelFactory ? [Ljava/nio/file/OpenOption; ? java/io/ByteArrayOutputStream ? java/lang/String ? Bcheckpoint files have to be smaller 512b 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
result java/lang/Class
desiredAssertionStatus ()Z
headerLength (Ljava/lang/String;)I
? footerLength >
?
ConstantValue Code LocalVariableTable LineNumberTable
Exceptions
StackMapTable
SourceFile InnerClasses
m *? *? *? *? "? * # $
; <