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
generation J channel Ljava/nio/channels/FileChannel; path Ljava/nio/file/Path; firstOperationOffset $assertionsDisabled Z 8(JLjava/nio/channels/FileChannel;Ljava/nio/file/Path;J)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; ) -
% . but generation: 0 toString ()Ljava/lang/String; 2 3
% 4 (Ljava/lang/Object;)V 6
# 7 java/nio/channels/FileChannel 9 java/nio/file/Path ; = ? A C this 7Lcom/groupbyinc/flux/index/translog/BaseTranslogReader;
getGeneration ()J sizeInBytes totalOperations ()I
getCheckpoint 1()Lcom/groupbyinc/flux/index/translog/Checkpoint; getFirstOperationOffset readSize (Ljava/nio/ByteBuffer;J)I java/io/IOException Q java/nio/ByteBuffer S capacity U K
T V Areusable buffer must have capacity >=4 when reading opSize. got [ X (I)Ljava/lang/StringBuilder; ) Z
% [ ] ] clear ()Ljava/nio/Buffer; _ `
T a limit (I)Ljava/nio/Buffer; c d
T e readBytes (Ljava/nio/ByteBuffer;J)V g h
i flip k `
T l getInt n K
T o I H
q =com/groupbyinc/flux/index/translog/TranslogCorruptedException s (operation size is corrupted must be [0.. u ] but was: w (Ljava/lang/String;)V y
t z 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; ? ?
T ? >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 ? ?
? inStream
translog [ ? ][ ? -(Ljava/lang/Object;)Ljava/lang/StringBuilder; ) ?
% ? compareTo :(Lcom/groupbyinc/flux/index/translog/BaseTranslogReader;)I G H
? 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 ? H
? ? (Ljava/lang/Object;)I ? ?
? java/lang/Class ? desiredAssertionStatus ()Z ? ?
? ? Code LocalVariableTable LineNumberTable
StackMapTable
Exceptions Signature
SourceFile InnerClasses! ? ? S*? ? ? 5? !?? +? #Y? %Y? &(? ,? !? /1? ,? /? 5? 8?*? >*? @*-? B*? D? ? 4 S E F S S S S ? ( ) <