
com.groupbyinc.flux.index.translog.BaseTranslogReader.class Maven / Gradle / Ivy
???? 4 ? 5com/groupbyinc/flux/index/translog/BaseTranslogReader aLjava/lang/Object;Ljava/lang/Comparable; java/lang/Object java/lang/Comparable BaseTranslogReader.java 5com/groupbyinc/flux/index/translog/Translog$Operation +com/groupbyinc/flux/index/translog/Translog Operation 4com/groupbyinc/flux/index/translog/Translog$Location Location
generation J channel Ljava/nio/channels/FileChannel; path Ljava/nio/file/Path; header 3Lcom/groupbyinc/flux/index/translog/TranslogHeader; $assertionsDisabled Z j(JLjava/nio/channels/FileChannel;Ljava/nio/file/Path;Lcom/groupbyinc/flux/index/translog/TranslogHeader;)V ()V
parseIdFromFileName (Ljava/nio/file/Path;)J " #
$ java/lang/AssertionError & java/lang/StringBuilder (
) generation mismatch. Path: + append -(Ljava/lang/String;)Ljava/lang/StringBuilder; - .
) / (J)Ljava/lang/StringBuilder; - 1
) 2 but generation: 4 toString ()Ljava/lang/String; 6 7
) 8 (Ljava/lang/Object;)V :
' ; java/nio/channels/FileChannel = java/nio/file/Path ? 1com/groupbyinc/flux/index/translog/TranslogHeader A C E G I this 7Lcom/groupbyinc/flux/index/translog/BaseTranslogReader;
getGeneration ()J sizeInBytes totalOperations ()I
getCheckpoint 1()Lcom/groupbyinc/flux/index/translog/Checkpoint; getFirstOperationOffset O Q
B U getPrimaryTerm W N
B X readSize (Ljava/nio/ByteBuffer;J)I java/io/IOException \ java/nio/ByteBuffer ^ capacity ` Q
_ a Areusable buffer must have capacity >=4 when reading opSize. got [ c (I)Ljava/lang/StringBuilder; - e
) f ] h clear ()Ljava/nio/Buffer; j k
_ l limit (I)Ljava/nio/Buffer; n o
_ p readBytes (Ljava/nio/ByteBuffer;J)V r s
t flip v k
_ w getInt y Q
_ z O N
| =com/groupbyinc/flux/index/translog/TranslogCorruptedException ~ (operation size is corrupted must be [0.. ? ] but was: ? (Ljava/lang/String;)V ?
? reusableBuffer Ljava/nio/ByteBuffer; position size I maxSize newSnapshot 7()Lcom/groupbyinc/flux/index/translog/TranslogSnapshot; 3com/groupbyinc/flux/index/translog/TranslogSnapshot ? ;(Lcom/groupbyinc/flux/index/translog/BaseTranslogReader;J)V ?
? ? checksummedStream ?(Ljava/nio/ByteBuffer;JILcom/groupbyinc/flux/index/translog/BufferedChecksumStreamInput;)Lcom/groupbyinc/flux/index/translog/BufferedChecksumStreamInput; allocate (I)Ljava/nio/ByteBuffer; ? ?
_ ? >com/groupbyinc/flux/index/translog/BufferedChecksumStreamInput ? :com/groupbyinc/flux/common/io/stream/ByteBufferStreamInput ? (Ljava/nio/ByteBuffer;)V ?
? ? u(Lcom/groupbyinc/flux/common/io/stream/StreamInput;Lcom/groupbyinc/flux/index/translog/BufferedChecksumStreamInput;)V ?
? ? buffer opSize reuse @Lcom/groupbyinc/flux/index/translog/BufferedChecksumStreamInput; read y(Lcom/groupbyinc/flux/index/translog/BufferedChecksumStreamInput;)Lcom/groupbyinc/flux/index/translog/Translog$Operation;
readOperation ? ?
? primaryTerm ? N
?
X DOperation's term is newer than translog header term; operation term[ ? ], translog header term [ ? inStream op 7Lcom/groupbyinc/flux/index/translog/Translog$Operation;
translog [ ? ][ ? -(Ljava/lang/Object;)Ljava/lang/StringBuilder; - ?
) ? compareTo :(Lcom/groupbyinc/flux/index/translog/BaseTranslogReader;)I M N
? java/lang/Long ? compare (JJ)I ? ?
? ? o ()Ljava/nio/file/Path; getLastModifiedTime java/nio/file/LinkOption ? java/nio/file/Files ? S(Ljava/nio/file/Path;[Ljava/nio/file/LinkOption;)Ljava/nio/file/attribute/FileTime; ? ?
? ? java/nio/file/attribute/FileTime ? toMillis ? N
? ? o(Lcom/groupbyinc/flux/index/translog/Translog$Location;)Lcom/groupbyinc/flux/index/translog/Translog$Operation; C generation mismatch expected: ? got: ? ? ? ? translogLocation ? ? ? ?
? ? ?
? location 6Lcom/groupbyinc/flux/index/translog/Translog$Location; (Ljava/lang/Object;)I ? ?
? java/lang/Class ? desiredAssertionStatus ()Z ? ?
? ? Code LocalVariableTable LineNumberTable
StackMapTable
Exceptions Signature
SourceFile InnerClasses! ? ? S*? ? !? 5? %?? +? 'Y? )Y? *,? 0? %? 35? 0? 3? 9? *? D*? F*-? H*? J? ? 4 S K L S S S S ? ( ) <