class org.apache.kafkaesqueesque.clients.consumer.internals.Fetcher$CompletedFetch extends java.lang.Object { private final org.apache.kafkaesqueesque.common.TopicPartition partition; private final java.util.Iterator batches; private final java.util.Set abortedProducerIds; private final java.util.PriorityQueue abortedTransactions; private final org.apache.kafkaesqueesque.common.requests.FetchResponse$PartitionData partitionData; private final org.apache.kafkaesqueesque.clients.consumer.internals.Fetcher$FetchResponseMetricAggregator metricAggregator; private final short responseVersion; private int recordsRead; private int bytesRead; private org.apache.kafkaesqueesque.common.record.RecordBatch currentBatch; private org.apache.kafkaesqueesque.common.record.Record lastRecord; private org.apache.kafkaesqueesque.common.utils.CloseableIterator records; private long nextFetchOffset; private java.util.Optional lastEpoch; private boolean isConsumed; private java.lang.Exception cachedRecordException; private boolean corruptLastRecord; private boolean initialized; final org.apache.kafkaesqueesque.clients.consumer.internals.Fetcher this$0; private void (org.apache.kafkaesqueesque.clients.consumer.internals.Fetcher, org.apache.kafkaesqueesque.common.TopicPartition, org.apache.kafkaesqueesque.common.requests.FetchResponse$PartitionData, org.apache.kafkaesqueesque.clients.consumer.internals.Fetcher$FetchResponseMetricAggregator, java.util.Iterator, java.lang.Long, short) { java.util.Iterator v; java.util.PriorityQueue v; long v; java.util.HashSet v; org.apache.kafkaesqueesque.common.TopicPartition v; short v; java.lang.Long v; org.apache.kafkaesqueesque.clients.consumer.internals.Fetcher$CompletedFetch v; java.util.Optional v; org.apache.kafkaesqueesque.clients.consumer.internals.Fetcher$FetchResponseMetricAggregator v; org.apache.kafkaesqueesque.clients.consumer.internals.Fetcher v; org.apache.kafkaesqueesque.common.requests.FetchResponse$PartitionData v; v := @this: org.apache.kafkaesqueesque.clients.consumer.internals.Fetcher$CompletedFetch; v := @parameter: org.apache.kafkaesqueesque.clients.consumer.internals.Fetcher; v := @parameter: org.apache.kafkaesqueesque.common.TopicPartition; v := @parameter: org.apache.kafkaesqueesque.common.requests.FetchResponse$PartitionData; v := @parameter: org.apache.kafkaesqueesque.clients.consumer.internals.Fetcher$FetchResponseMetricAggregator; v := @parameter: java.util.Iterator; v := @parameter: java.lang.Long; v := @parameter: short; v. = v; specialinvoke v.()>(); v. = 0; v. = null; v. = 0; v. = 0; v. = v; v. = v; v. = v; v. = v; v = virtualinvoke v.(); v. = v; v. = v; v = staticinvoke (); v. = v; v = new java.util.HashSet; specialinvoke v.()>(); v. = v; v = specialinvoke v.(v); v. = v; return; } private void drain() { org.apache.kafkaesqueesque.common.TopicPartition v, v; org.apache.kafkaesqueesque.clients.consumer.internals.Fetcher$CompletedFetch v; int v, v, v; org.apache.kafkaesqueesque.clients.consumer.internals.Fetcher$FetchResponseMetricAggregator v; org.apache.kafkaesqueesque.clients.consumer.internals.SubscriptionState v; org.apache.kafkaesqueesque.clients.consumer.internals.Fetcher v; boolean v; v := @this: org.apache.kafkaesqueesque.clients.consumer.internals.Fetcher$CompletedFetch; v = v.; if v != 0 goto label; specialinvoke v.(); v. = null; v. = 1; v = v.; v = v.; v = v.; v = v.; virtualinvoke v.(v, v, v); v = v.; if v <= 0 goto label; v = v.; v = v.; v = v.; virtualinvoke v.(v); label: return; } private void maybeEnsureValid(org.apache.kafkaesqueesque.common.record.RecordBatch) { long v; org.apache.kafkaesqueesque.common.errors.CorruptRecordException v; org.apache.kafkaesqueesque.common.TopicPartition v; byte v; org.apache.kafkaesqueesque.clients.consumer.internals.Fetcher$CompletedFetch v; org.apache.kafkaesqueesque.common.KafkaException v; org.apache.kafkaesqueesque.common.record.RecordBatch v, v; java.lang.String v, v; org.apache.kafkaesqueesque.clients.consumer.internals.Fetcher v; boolean v; v := @this: org.apache.kafkaesqueesque.clients.consumer.internals.Fetcher$CompletedFetch; v := @parameter: org.apache.kafkaesqueesque.common.record.RecordBatch; v = v.; v = v.; if v == 0 goto label; v = v.; v = interfaceinvoke v.(); if v < 2 goto label; label: interfaceinvoke v.(); label: goto label; label: v := @caughtexception; v = new org.apache.kafkaesqueesque.common.KafkaException; v = v.; v = interfaceinvoke v.(); v = virtualinvoke v.(); v = dynamicinvoke "makeConcatWithConstants" (v, v, v) ("Record batch for partition \u at offset \u is invalid, cause: \u0001"); specialinvoke v.(java.lang.String)>(v); throw v; label: return; catch org.apache.kafkaesqueesque.common.errors.CorruptRecordException from label to label with label; } private void maybeEnsureValid(org.apache.kafkaesqueesque.common.record.Record) { long v; org.apache.kafkaesqueesque.common.errors.CorruptRecordException v; org.apache.kafkaesqueesque.common.TopicPartition v; org.apache.kafkaesqueesque.clients.consumer.internals.Fetcher$CompletedFetch v; org.apache.kafkaesqueesque.common.KafkaException v; java.lang.String v, v; org.apache.kafkaesqueesque.clients.consumer.internals.Fetcher v; org.apache.kafkaesqueesque.common.record.Record v; boolean v; v := @this: org.apache.kafkaesqueesque.clients.consumer.internals.Fetcher$CompletedFetch; v := @parameter: org.apache.kafkaesqueesque.common.record.Record; v = v.; v = v.; if v == 0 goto label; label: interfaceinvoke v.(); label: goto label; label: v := @caughtexception; v = new org.apache.kafkaesqueesque.common.KafkaException; v = v.; v = interfaceinvoke v.(); v = virtualinvoke v.(); v = dynamicinvoke "makeConcatWithConstants" (v, v, v) ("Record for partition \u at offset \u is invalid, cause: \u0001"); specialinvoke v.(java.lang.String)>(v); throw v; label: return; catch org.apache.kafkaesqueesque.common.errors.CorruptRecordException from label to label with label; } private void maybeCloseRecordStream() { org.apache.kafkaesqueesque.common.utils.CloseableIterator v, v; org.apache.kafkaesqueesque.clients.consumer.internals.Fetcher$CompletedFetch v; v := @this: org.apache.kafkaesqueesque.clients.consumer.internals.Fetcher$CompletedFetch; v = v.; if v == null goto label; v = v.; interfaceinvoke v.(); v. = null; label: return; } private org.apache.kafkaesqueesque.common.record.Record nextFetchedRecord() { org.apache.kafkaesqueesque.common.IsolationLevel v, v; java.lang.Integer v; byte v; java.lang.Long v, v, v, v; boolean v, v, v, v, v, v; java.util.Set v; org.apache.kafkaesqueesque.clients.consumer.internals.Fetcher$CompletedFetch v; java.util.Optional v; java.lang.Object[] v; long v, v, v, v, v, v, v, v, v, v; org.apache.kafkaesqueesque.common.TopicPartition v; int v, v, v; org.apache.kafkaesqueesque.common.record.BufferSupplier v; org.slf4j.Logger v; java.util.Iterator v, v; org.apache.kafkaesqueesque.common.utils.CloseableIterator v, v, v, v; java.lang.Object v, v; org.apache.kafkaesqueesque.common.record.RecordBatch v, v, v, v, v, v, v, v, v, v, v, v, v, v, v; org.apache.kafkaesqueesque.clients.consumer.internals.Fetcher v, v, v; v := @this: org.apache.kafkaesqueesque.clients.consumer.internals.Fetcher$CompletedFetch; label: v = v.; if v == null goto label; v = v.; v = interfaceinvoke v.(); if v != 0 goto label; label: specialinvoke v.(); v = v.; v = interfaceinvoke v.(); if v != 0 goto label; v = v.; if v == null goto label; v = v.; v = interfaceinvoke v.(); v. = v; label: specialinvoke v.(); return null; label: v = v.; v = interfaceinvoke v.(); v. = v; v = v.; v = interfaceinvoke v.(); v = (int) -1; if v != v goto label; v = staticinvoke (); goto label; label: v = v.; v = interfaceinvoke v.(); v = staticinvoke (v); v = staticinvoke (v); label: v. = v; v = v.; specialinvoke v.(v); v = v.; v = v.; v = ; if v != v goto label; v = v.; v = interfaceinvoke v.(); if v == 0 goto label; v = v.; v = interfaceinvoke v.(); specialinvoke v.(v); v = v.; v = interfaceinvoke v.(); v = v.; v = specialinvoke v.(v); if v == 0 goto label; v = v.; v = staticinvoke (v); interfaceinvoke v.(v); goto label; label: v = v.; v = specialinvoke v.(v); if v == 0 goto label; v = v.; v = v.; v = newarray (java.lang.Object)[4]; v = v.; v[0] = v; v = staticinvoke (v); v[1] = v; v = v.; v = interfaceinvoke v.(); v = staticinvoke (v); v[2] = v; v = v.; v = interfaceinvoke v.(); v = staticinvoke (v); v[3] = v; interfaceinvoke v.("Skipping aborted record batch from partition {} with producerId {} and offsets {} to {}", v); v = v.; v = interfaceinvoke v.(); v. = v; goto label; label: v = v.; v = v.; v = v.; v = interfaceinvoke v.(v); v. = v; goto label; label: v = v.; v = interfaceinvoke v.(); v = interfaceinvoke v.(); v = v.; v = v cmp v; if v < 0 goto label; specialinvoke v.(v); v = v.; v = interfaceinvoke v.(); if v != 0 goto label; return v; label: v = interfaceinvoke v.(); v = v + 1L; v. = v; goto label; } private java.util.List fetchRecords(int) { boolean v, v, v, v; java.lang.Exception v, v; java.util.List v; org.apache.kafkaesqueesque.clients.consumer.internals.Fetcher$CompletedFetch v; org.apache.kafkaesqueesque.clients.consumer.ConsumerRecord v; long v, v; java.util.ArrayList v; org.apache.kafkaesqueesque.common.TopicPartition v, v, v; int v, v, v, v, v, v, v; java.lang.String v, v; org.apache.kafkaesqueesque.common.record.Record v, v, v, v, v; org.apache.kafkaesqueesque.common.errors.SerializationException v; org.apache.kafkaesqueesque.common.KafkaException v, v, v; org.apache.kafkaesqueesque.common.record.RecordBatch v; org.apache.kafkaesqueesque.clients.consumer.internals.Fetcher v; v := @this: org.apache.kafkaesqueesque.clients.consumer.internals.Fetcher$CompletedFetch; v := @parameter: int; v = v.; if v == 0 goto label; v = new org.apache.kafkaesqueesque.common.KafkaException; v = v.; v = dynamicinvoke "makeConcatWithConstants" (v) ("Received exception when fetching the next record from \u. If needed, please seek past the record to continue consumption."); v = v.; specialinvoke v.(java.lang.String,java.lang.Throwable)>(v, v); throw v; label: v = v.; if v == 0 goto label; v = staticinvoke (); return v; label: v = new java.util.ArrayList; specialinvoke v.()>(); label: v = 0; label: if v >= v goto label; v = v.; if v != null goto label; v. = 1; v = specialinvoke v.(); v. = v; v. = 0; label: v = v.; if v == null goto label; v = v.; v = v.; v = v.; v = v.; v = specialinvoke v.(v, v, v); interfaceinvoke v.(v); v = v.; v = v + 1; v. = v; v = v.; v = v.; v = interfaceinvoke v.(); v = v + v; v. = v; v = v.; v = interfaceinvoke v.(); v = v + 1L; v. = v; v. = null; v = v + 1; goto label; label: v := @caughtexception; v. = v; v = interfaceinvoke v.(); if v == 0 goto label; throw v; label: v := @caughtexception; v. = v; v = interfaceinvoke v.(); if v == 0 goto label; v = new org.apache.kafkaesqueesque.common.KafkaException; v = v.; v = dynamicinvoke "makeConcatWithConstants" (v) ("Received exception when fetching the next record from \u. If needed, please seek past the record to continue consumption."); specialinvoke v.(java.lang.String,java.lang.Throwable)>(v, v); throw v; label: return v; catch org.apache.kafkaesqueesque.common.errors.SerializationException from label to label with label; catch org.apache.kafkaesqueesque.common.KafkaException from label to label with label; } private void consumeAbortedTransactionsUpTo(long) { java.util.PriorityQueue v, v, v, v; java.util.Set v; long v, v, v; byte v; java.lang.Long v; org.apache.kafkaesqueesque.clients.consumer.internals.Fetcher$CompletedFetch v; java.lang.Object v, v; boolean v; v := @this: org.apache.kafkaesqueesque.clients.consumer.internals.Fetcher$CompletedFetch; v := @parameter: long; v = v.; if v != null goto label; return; label: v = v.; v = virtualinvoke v.(); if v != 0 goto label; v = v.; v = virtualinvoke v.(); v = v.; v = v cmp v; if v > 0 goto label; v = v.; v = virtualinvoke v.(); v = v.; v = v.; v = staticinvoke (v); interfaceinvoke v.(v); goto label; label: return; } private boolean isBatchAborted(org.apache.kafkaesqueesque.common.record.RecordBatch) { java.util.Set v; long v; java.lang.Long v; org.apache.kafkaesqueesque.clients.consumer.internals.Fetcher$CompletedFetch v; org.apache.kafkaesqueesque.common.record.RecordBatch v; boolean v, v, v; v := @this: org.apache.kafkaesqueesque.clients.consumer.internals.Fetcher$CompletedFetch; v := @parameter: org.apache.kafkaesqueesque.common.record.RecordBatch; v = interfaceinvoke v.(); if v == 0 goto label; v = v.; v = interfaceinvoke v.(); v = staticinvoke (v); v = interfaceinvoke v.(v); if v == 0 goto label; v = 1; goto label; label: v = 0; label: return v; } private java.util.PriorityQueue abortedTransactions(org.apache.kafkaesqueesque.common.requests.FetchResponse$PartitionData) { java.util.PriorityQueue v; java.util.List v, v, v, v; org.apache.kafkaesqueesque.clients.consumer.internals.Fetcher$CompletedFetch v; int v; java.util.Comparator v; java.util.function.ToLongFunction v; org.apache.kafkaesqueesque.common.requests.FetchResponse$PartitionData v; boolean v; v := @this: org.apache.kafkaesqueesque.clients.consumer.internals.Fetcher$CompletedFetch; v := @parameter: org.apache.kafkaesqueesque.common.requests.FetchResponse$PartitionData; v = v.; if v == null goto label; v = v.; v = interfaceinvoke v.(); if v == 0 goto label; label: return null; label: v = new java.util.PriorityQueue; v = v.; v = interfaceinvoke v.(); v = staticinvoke (); v = staticinvoke (v); specialinvoke v.(int,java.util.Comparator)>(v, v); v = v.; virtualinvoke v.(v); return v; } private boolean containsAbortMarker(org.apache.kafkaesqueesque.common.record.RecordBatch) { java.util.Iterator v; java.nio.ByteBuffer v; org.apache.kafkaesqueesque.common.record.ControlRecordType v, v; org.apache.kafkaesqueesque.clients.consumer.internals.Fetcher$CompletedFetch v; java.lang.Object v; org.apache.kafkaesqueesque.common.record.RecordBatch v; boolean v, v, v; v := @this: org.apache.kafkaesqueesque.clients.consumer.internals.Fetcher$CompletedFetch; v := @parameter: org.apache.kafkaesqueesque.common.record.RecordBatch; v = interfaceinvoke v.(); if v != 0 goto label; return 0; label: v = interfaceinvoke v.(); v = interfaceinvoke v.(); if v != 0 goto label; return 0; label: v = interfaceinvoke v.(); v = ; v = interfaceinvoke v.(); v = staticinvoke (v); if v != v goto label; v = 1; goto label; label: v = 0; label: return v; } private boolean notInitialized() { org.apache.kafkaesqueesque.clients.consumer.internals.Fetcher$CompletedFetch v; boolean v, v; v := @this: org.apache.kafkaesqueesque.clients.consumer.internals.Fetcher$CompletedFetch; v = v.; if v != 0 goto label; v = 1; goto label; label: v = 0; label: return v; } }