com.groupbyinc.flux.index.translog.TranslogWriter.class Maven / Gradle / Ivy
???? 48 1com/groupbyinc/flux/index/translog/TranslogWriter 5com/groupbyinc/flux/index/translog/BaseTranslogReader java/io/Closeable TranslogWriter.java Mcom/groupbyinc/flux/index/translog/TranslogWriter$BufferedChannelOutputStream BufferedChannelOutputStream 4com/groupbyinc/flux/index/translog/Translog$Location +com/groupbyinc/flux/index/translog/Translog
Location 5com/groupbyinc/flux/index/translog/Translog$Operation Operation TRANSLOG_CODEC Ljava/lang/String; translog VERSION_CHECKSUMS I VERSION_CHECKPOINTS VERSION shardId )Lcom/groupbyinc/flux/index/shard/ShardId; channelFactory 3Lcom/groupbyinc/flux/index/translog/ChannelFactory; lastSyncedCheckpoint /Lcom/groupbyinc/flux/index/translog/Checkpoint; operationCounter tragedy Ljava/lang/Exception; outputStream Ljava/io/OutputStream; totalOffset J minSeqNo maxSeqNo globalCheckpointSupplier !Ljava/util/function/LongSupplier; minTranslogGenerationSupplier closed +Ljava/util/concurrent/atomic/AtomicBoolean; syncLock Ljava/lang/Object; seenSequenceNumbers Ljava/util/Map; ?Ljava/util/Map;>; $assertionsDisabled Z 2(Lcom/groupbyinc/flux/index/translog/ChannelFactory;Lcom/groupbyinc/flux/index/shard/ShardId;Lcom/groupbyinc/flux/index/translog/Checkpoint;Ljava/nio/channels/FileChannel;Ljava/nio/file/Path;Lcom/groupbyinc/flux/common/unit/ByteSizeValue;Ljava/util/function/LongSupplier;Ljava/util/function/LongSupplier;)V java/io/IOException : -com/groupbyinc/flux/index/translog/Checkpoint <
generation > ) = ? java/nio/channels/FileChannel A position ()J C D
B E 8(JLjava/nio/channels/FileChannel;Ljava/nio/file/Path;J)V 8 G
H )java/util/concurrent/atomic/AtomicBoolean J (Z)V 8 L
K M / 0 O java/lang/Object Q ()V 8 S
R T 1 2 V 6 7 X offset Z ) = [ java/lang/AssertionError ] java/lang/StringBuilder _
` T initial checkpoint offset [ b append -(Ljava/lang/String;)Ljava/lang/StringBuilder; d e
` f (J)Ljava/lang/StringBuilder; d h
` i .] is different than current channel poistion [ k ] m toString ()Ljava/lang/String; o p
` q (Ljava/lang/Object;)V 8 s
^ t 1com/groupbyinc/flux/index/translog/ChannelFactory v 'com/groupbyinc/flux/index/shard/ShardId x java/nio/file/Path z -com/groupbyinc/flux/common/unit/ByteSizeValue | java/util/function/LongSupplier ~ ? ? . - ? java/nio/channels/Channels ? newOutputStream ?(Ljava/nio/channels/WritableByteChannel;)Ljava/io/OutputStream; ? ?
? ?
bytesAsInt ()I ? ?
} ? M(Lcom/groupbyinc/flux/index/translog/TranslogWriter;Ljava/io/OutputStream;I)V 8 ?
? &