public class com.mongodb.client.internal.MongoChangeStreamCursorImpl<T> implements com.mongodb.client.MongoChangeStreamCursor<T>
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: com.mongodb.client.internal.MongoChangeStreamCursorImpl
super_class: java.lang.Object
{
private final com.mongodb.operation.AggregateResponseBatchCursor<org.bson.RawBsonDocument> batchCursor;
descriptor: Lcom/mongodb/operation/AggregateResponseBatchCursor;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Lcom/mongodb/operation/AggregateResponseBatchCursor<Lorg/bson/RawBsonDocument;>;
private final org.bson.codecs.Decoder<T> decoder;
descriptor: Lorg/bson/codecs/Decoder;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Lorg/bson/codecs/Decoder<TT;>;
private java.util.List<org.bson.RawBsonDocument> curBatch;
descriptor: Ljava/util/List;
flags: (0x0002) ACC_PRIVATE
Signature: Ljava/util/List<Lorg/bson/RawBsonDocument;>;
private int curPos;
descriptor: I
flags: (0x0002) ACC_PRIVATE
private org.bson.BsonDocument resumeToken;
descriptor: Lorg/bson/BsonDocument;
flags: (0x0002) ACC_PRIVATE
public void <init>(com.mongodb.operation.BatchCursor<org.bson.RawBsonDocument>, org.bson.codecs.Decoder<T>, org.bson.BsonDocument);
descriptor: (Lcom/mongodb/operation/BatchCursor;Lorg/bson/codecs/Decoder;Lorg/bson/BsonDocument;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
aload 1
checkcast com.mongodb.operation.AggregateResponseBatchCursor
putfield com.mongodb.client.internal.MongoChangeStreamCursorImpl.batchCursor:Lcom/mongodb/operation/AggregateResponseBatchCursor;
2: aload 0
aload 2
putfield com.mongodb.client.internal.MongoChangeStreamCursorImpl.decoder:Lorg/bson/codecs/Decoder;
3: aload 0
aload 3
putfield com.mongodb.client.internal.MongoChangeStreamCursorImpl.resumeToken:Lorg/bson/BsonDocument;
4: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lcom/mongodb/client/internal/MongoChangeStreamCursorImpl<TT;>;
0 5 1 batchCursor Lcom/mongodb/operation/BatchCursor<Lorg/bson/RawBsonDocument;>;
0 5 2 decoder Lorg/bson/codecs/Decoder<TT;>;
0 5 3 initialResumeToken Lorg/bson/BsonDocument;
Signature: (Lcom/mongodb/operation/BatchCursor<Lorg/bson/RawBsonDocument;>;Lorg/bson/codecs/Decoder<TT;>;Lorg/bson/BsonDocument;)V
RuntimeVisibleParameterAnnotations:
0:
1:
2:
com.mongodb.lang.Nullable()
MethodParameters:
Name Flags
batchCursor final
decoder final
initialResumeToken final
public void remove();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: new java.lang.UnsupportedOperationException
dup
ldc "Cursors do not support removal"
invokespecial java.lang.UnsupportedOperationException.<init>:(Ljava/lang/String;)V
athrow
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/mongodb/client/internal/MongoChangeStreamCursorImpl<TT;>;
public void close();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield com.mongodb.client.internal.MongoChangeStreamCursorImpl.batchCursor:Lcom/mongodb/operation/AggregateResponseBatchCursor;
invokeinterface com.mongodb.operation.AggregateResponseBatchCursor.close:()V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lcom/mongodb/client/internal/MongoChangeStreamCursorImpl<TT;>;
public boolean hasNext();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield com.mongodb.client.internal.MongoChangeStreamCursorImpl.curBatch:Ljava/util/List;
ifnonnull 1
aload 0
getfield com.mongodb.client.internal.MongoChangeStreamCursorImpl.batchCursor:Lcom/mongodb/operation/AggregateResponseBatchCursor;
invokeinterface com.mongodb.operation.AggregateResponseBatchCursor.hasNext:()Z
ifne 1
iconst_0
ireturn
StackMap locals:
StackMap stack:
1: iconst_1
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lcom/mongodb/client/internal/MongoChangeStreamCursorImpl<TT;>;
public T next();
descriptor: ()Ljava/lang/Object;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual com.mongodb.client.internal.MongoChangeStreamCursorImpl.hasNext:()Z
ifne 2
1: new java.util.NoSuchElementException
dup
invokespecial java.util.NoSuchElementException.<init>:()V
athrow
2: StackMap locals:
StackMap stack:
aload 0
getfield com.mongodb.client.internal.MongoChangeStreamCursorImpl.curBatch:Ljava/util/List;
ifnonnull 4
3: aload 0
aload 0
getfield com.mongodb.client.internal.MongoChangeStreamCursorImpl.batchCursor:Lcom/mongodb/operation/AggregateResponseBatchCursor;
invokeinterface com.mongodb.operation.AggregateResponseBatchCursor.next:()Ljava/util/List;
putfield com.mongodb.client.internal.MongoChangeStreamCursorImpl.curBatch:Ljava/util/List;
4: StackMap locals:
StackMap stack:
aload 0
invokevirtual com.mongodb.client.internal.MongoChangeStreamCursorImpl.getNextInBatch:()Ljava/lang/Object;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lcom/mongodb/client/internal/MongoChangeStreamCursorImpl<TT;>;
Signature: ()TT;
public T tryNext();
descriptor: ()Ljava/lang/Object;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield com.mongodb.client.internal.MongoChangeStreamCursorImpl.curBatch:Ljava/util/List;
ifnonnull 2
1: aload 0
aload 0
getfield com.mongodb.client.internal.MongoChangeStreamCursorImpl.batchCursor:Lcom/mongodb/operation/AggregateResponseBatchCursor;
invokeinterface com.mongodb.operation.AggregateResponseBatchCursor.tryNext:()Ljava/util/List;
putfield com.mongodb.client.internal.MongoChangeStreamCursorImpl.curBatch:Ljava/util/List;
2: StackMap locals:
StackMap stack:
aload 0
getfield com.mongodb.client.internal.MongoChangeStreamCursorImpl.curBatch:Ljava/util/List;
ifnonnull 5
3: aload 0
getfield com.mongodb.client.internal.MongoChangeStreamCursorImpl.batchCursor:Lcom/mongodb/operation/AggregateResponseBatchCursor;
invokeinterface com.mongodb.operation.AggregateResponseBatchCursor.getPostBatchResumeToken:()Lorg/bson/BsonDocument;
ifnull 5
4: aload 0
aload 0
getfield com.mongodb.client.internal.MongoChangeStreamCursorImpl.batchCursor:Lcom/mongodb/operation/AggregateResponseBatchCursor;
invokeinterface com.mongodb.operation.AggregateResponseBatchCursor.getPostBatchResumeToken:()Lorg/bson/BsonDocument;
putfield com.mongodb.client.internal.MongoChangeStreamCursorImpl.resumeToken:Lorg/bson/BsonDocument;
5: StackMap locals:
StackMap stack:
aload 0
getfield com.mongodb.client.internal.MongoChangeStreamCursorImpl.curBatch:Ljava/util/List;
ifnonnull 6
aconst_null
goto 7
StackMap locals:
StackMap stack:
6: aload 0
invokevirtual com.mongodb.client.internal.MongoChangeStreamCursorImpl.getNextInBatch:()Ljava/lang/Object;
StackMap locals:
StackMap stack: java.lang.Object
7: areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lcom/mongodb/client/internal/MongoChangeStreamCursorImpl<TT;>;
Signature: ()TT;
RuntimeVisibleAnnotations:
com.mongodb.lang.Nullable()
public com.mongodb.ServerCursor getServerCursor();
descriptor: ()Lcom/mongodb/ServerCursor;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield com.mongodb.client.internal.MongoChangeStreamCursorImpl.batchCursor:Lcom/mongodb/operation/AggregateResponseBatchCursor;
invokeinterface com.mongodb.operation.AggregateResponseBatchCursor.getServerCursor:()Lcom/mongodb/ServerCursor;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/mongodb/client/internal/MongoChangeStreamCursorImpl<TT;>;
RuntimeVisibleAnnotations:
com.mongodb.lang.Nullable()
public com.mongodb.ServerAddress getServerAddress();
descriptor: ()Lcom/mongodb/ServerAddress;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield com.mongodb.client.internal.MongoChangeStreamCursorImpl.batchCursor:Lcom/mongodb/operation/AggregateResponseBatchCursor;
invokeinterface com.mongodb.operation.AggregateResponseBatchCursor.getServerAddress:()Lcom/mongodb/ServerAddress;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/mongodb/client/internal/MongoChangeStreamCursorImpl<TT;>;
private T getNextInBatch();
descriptor: ()Ljava/lang/Object;
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=2, args_size=1
start local 0 0: aload 0
getfield com.mongodb.client.internal.MongoChangeStreamCursorImpl.curBatch:Ljava/util/List;
aload 0
getfield com.mongodb.client.internal.MongoChangeStreamCursorImpl.curPos:I
invokeinterface java.util.List.get:(I)Ljava/lang/Object;
checkcast org.bson.RawBsonDocument
astore 1
start local 1 1: aload 0
aload 1
ldc "_id"
invokevirtual org.bson.RawBsonDocument.getDocument:(Ljava/lang/Object;)Lorg/bson/BsonDocument;
putfield com.mongodb.client.internal.MongoChangeStreamCursorImpl.resumeToken:Lorg/bson/BsonDocument;
2: aload 0
getfield com.mongodb.client.internal.MongoChangeStreamCursorImpl.curPos:I
aload 0
getfield com.mongodb.client.internal.MongoChangeStreamCursorImpl.curBatch:Ljava/util/List;
invokeinterface java.util.List.size:()I
iconst_1
isub
if_icmpge 5
3: aload 0
dup
getfield com.mongodb.client.internal.MongoChangeStreamCursorImpl.curPos:I
iconst_1
iadd
putfield com.mongodb.client.internal.MongoChangeStreamCursorImpl.curPos:I
4: goto 9
5: StackMap locals: org.bson.RawBsonDocument
StackMap stack:
aload 0
aconst_null
putfield com.mongodb.client.internal.MongoChangeStreamCursorImpl.curBatch:Ljava/util/List;
6: aload 0
iconst_0
putfield com.mongodb.client.internal.MongoChangeStreamCursorImpl.curPos:I
7: aload 0
getfield com.mongodb.client.internal.MongoChangeStreamCursorImpl.batchCursor:Lcom/mongodb/operation/AggregateResponseBatchCursor;
invokeinterface com.mongodb.operation.AggregateResponseBatchCursor.getPostBatchResumeToken:()Lorg/bson/BsonDocument;
ifnull 9
8: aload 0
aload 0
getfield com.mongodb.client.internal.MongoChangeStreamCursorImpl.batchCursor:Lcom/mongodb/operation/AggregateResponseBatchCursor;
invokeinterface com.mongodb.operation.AggregateResponseBatchCursor.getPostBatchResumeToken:()Lorg/bson/BsonDocument;
putfield com.mongodb.client.internal.MongoChangeStreamCursorImpl.resumeToken:Lorg/bson/BsonDocument;
9: StackMap locals:
StackMap stack:
aload 1
aload 0
getfield com.mongodb.client.internal.MongoChangeStreamCursorImpl.decoder:Lorg/bson/codecs/Decoder;
invokevirtual org.bson.RawBsonDocument.decode:(Lorg/bson/codecs/Decoder;)Ljava/lang/Object;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Lcom/mongodb/client/internal/MongoChangeStreamCursorImpl<TT;>;
1 10 1 nextInBatch Lorg/bson/RawBsonDocument;
Signature: ()TT;
public org.bson.BsonDocument getResumeToken();
descriptor: ()Lorg/bson/BsonDocument;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield com.mongodb.client.internal.MongoChangeStreamCursorImpl.resumeToken:Lorg/bson/BsonDocument;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/mongodb/client/internal/MongoChangeStreamCursorImpl<TT;>;
RuntimeVisibleAnnotations:
com.mongodb.lang.Nullable()
}
Signature: <T:Ljava/lang/Object;>Ljava/lang/Object;Lcom/mongodb/client/MongoChangeStreamCursor<TT;>;
SourceFile: "MongoChangeStreamCursorImpl.java"