final class com.mongodb.operation.ChangeStreamBatchCursor<T> implements com.mongodb.operation.AggregateResponseBatchCursor<T>
minor version: 0
major version: 59
flags: flags: (0x0030) ACC_FINAL, ACC_SUPER
this_class: com.mongodb.operation.ChangeStreamBatchCursor
super_class: java.lang.Object
{
private final com.mongodb.binding.ReadBinding binding;
descriptor: Lcom/mongodb/binding/ReadBinding;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final com.mongodb.operation.ChangeStreamOperation<T> changeStreamOperation;
descriptor: Lcom/mongodb/operation/ChangeStreamOperation;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Lcom/mongodb/operation/ChangeStreamOperation<TT;>;
private com.mongodb.operation.AggregateResponseBatchCursor<org.bson.RawBsonDocument> wrapped;
descriptor: Lcom/mongodb/operation/AggregateResponseBatchCursor;
flags: (0x0002) ACC_PRIVATE
Signature: Lcom/mongodb/operation/AggregateResponseBatchCursor<Lorg/bson/RawBsonDocument;>;
private org.bson.BsonDocument resumeToken;
descriptor: Lorg/bson/BsonDocument;
flags: (0x0002) ACC_PRIVATE
private volatile boolean closed;
descriptor: Z
flags: (0x0042) ACC_PRIVATE, ACC_VOLATILE
void <init>(com.mongodb.operation.ChangeStreamOperation<T>, com.mongodb.operation.AggregateResponseBatchCursor<org.bson.RawBsonDocument>, com.mongodb.binding.ReadBinding, org.bson.BsonDocument);
descriptor: (Lcom/mongodb/operation/ChangeStreamOperation;Lcom/mongodb/operation/AggregateResponseBatchCursor;Lcom/mongodb/binding/ReadBinding;Lorg/bson/BsonDocument;)V
flags: (0x0000)
Code:
stack=2, locals=5, args_size=5
start local 0 start local 1 start local 2 start local 3 start local 4 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
aload 1
putfield com.mongodb.operation.ChangeStreamBatchCursor.changeStreamOperation:Lcom/mongodb/operation/ChangeStreamOperation;
2: aload 0
aload 3
invokeinterface com.mongodb.binding.ReadBinding.retain:()Lcom/mongodb/binding/ReadBinding;
putfield com.mongodb.operation.ChangeStreamBatchCursor.binding:Lcom/mongodb/binding/ReadBinding;
3: aload 0
aload 2
putfield com.mongodb.operation.ChangeStreamBatchCursor.wrapped:Lcom/mongodb/operation/AggregateResponseBatchCursor;
4: aload 0
aload 4
putfield com.mongodb.operation.ChangeStreamBatchCursor.resumeToken:Lorg/bson/BsonDocument;
5: return
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lcom/mongodb/operation/ChangeStreamBatchCursor<TT;>;
0 6 1 changeStreamOperation Lcom/mongodb/operation/ChangeStreamOperation<TT;>;
0 6 2 wrapped Lcom/mongodb/operation/AggregateResponseBatchCursor<Lorg/bson/RawBsonDocument;>;
0 6 3 binding Lcom/mongodb/binding/ReadBinding;
0 6 4 resumeToken Lorg/bson/BsonDocument;
Signature: (Lcom/mongodb/operation/ChangeStreamOperation<TT;>;Lcom/mongodb/operation/AggregateResponseBatchCursor<Lorg/bson/RawBsonDocument;>;Lcom/mongodb/binding/ReadBinding;Lorg/bson/BsonDocument;)V
MethodParameters:
Name Flags
changeStreamOperation final
wrapped final
binding final
resumeToken final
com.mongodb.operation.AggregateResponseBatchCursor<org.bson.RawBsonDocument> getWrapped();
descriptor: ()Lcom/mongodb/operation/AggregateResponseBatchCursor;
flags: (0x0000)
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield com.mongodb.operation.ChangeStreamBatchCursor.wrapped:Lcom/mongodb/operation/AggregateResponseBatchCursor;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/mongodb/operation/ChangeStreamBatchCursor<TT;>;
Signature: ()Lcom/mongodb/operation/AggregateResponseBatchCursor<Lorg/bson/RawBsonDocument;>;
public boolean hasNext();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=1, args_size=1
start local 0 0: aload 0
new com.mongodb.operation.ChangeStreamBatchCursor$1
dup
aload 0
invokespecial com.mongodb.operation.ChangeStreamBatchCursor$1.<init>:(Lcom/mongodb/operation/ChangeStreamBatchCursor;)V
invokevirtual com.mongodb.operation.ChangeStreamBatchCursor.resumeableOperation:(Lcom/mongodb/Function;)Ljava/lang/Object;
checkcast java.lang.Boolean
invokevirtual java.lang.Boolean.booleanValue:()Z
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/mongodb/operation/ChangeStreamBatchCursor<TT;>;
public java.util.List<T> next();
descriptor: ()Ljava/util/List;
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=1, args_size=1
start local 0 0: aload 0
new com.mongodb.operation.ChangeStreamBatchCursor$2
dup
aload 0
invokespecial com.mongodb.operation.ChangeStreamBatchCursor$2.<init>:(Lcom/mongodb/operation/ChangeStreamBatchCursor;)V
invokevirtual com.mongodb.operation.ChangeStreamBatchCursor.resumeableOperation:(Lcom/mongodb/Function;)Ljava/lang/Object;
checkcast java.util.List
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/mongodb/operation/ChangeStreamBatchCursor<TT;>;
Signature: ()Ljava/util/List<TT;>;
public java.util.List<T> tryNext();
descriptor: ()Ljava/util/List;
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=1, args_size=1
start local 0 0: aload 0
new com.mongodb.operation.ChangeStreamBatchCursor$3
dup
aload 0
invokespecial com.mongodb.operation.ChangeStreamBatchCursor$3.<init>:(Lcom/mongodb/operation/ChangeStreamBatchCursor;)V
invokevirtual com.mongodb.operation.ChangeStreamBatchCursor.resumeableOperation:(Lcom/mongodb/Function;)Ljava/lang/Object;
checkcast java.util.List
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/mongodb/operation/ChangeStreamBatchCursor<TT;>;
Signature: ()Ljava/util/List<TT;>;
public void close();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield com.mongodb.operation.ChangeStreamBatchCursor.closed:Z
ifne 4
1: aload 0
iconst_1
putfield com.mongodb.operation.ChangeStreamBatchCursor.closed:Z
2: aload 0
getfield com.mongodb.operation.ChangeStreamBatchCursor.wrapped:Lcom/mongodb/operation/AggregateResponseBatchCursor;
invokeinterface com.mongodb.operation.AggregateResponseBatchCursor.close:()V
3: aload 0
getfield com.mongodb.operation.ChangeStreamBatchCursor.binding:Lcom/mongodb/binding/ReadBinding;
invokeinterface com.mongodb.binding.ReadBinding.release:()V
4: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lcom/mongodb/operation/ChangeStreamBatchCursor<TT;>;
public void setBatchSize(int);
descriptor: (I)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield com.mongodb.operation.ChangeStreamBatchCursor.wrapped:Lcom/mongodb/operation/AggregateResponseBatchCursor;
iload 1
invokeinterface com.mongodb.operation.AggregateResponseBatchCursor.setBatchSize:(I)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lcom/mongodb/operation/ChangeStreamBatchCursor<TT;>;
0 2 1 batchSize I
MethodParameters:
Name Flags
batchSize final
public int getBatchSize();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield com.mongodb.operation.ChangeStreamBatchCursor.wrapped:Lcom/mongodb/operation/AggregateResponseBatchCursor;
invokeinterface com.mongodb.operation.AggregateResponseBatchCursor.getBatchSize:()I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/mongodb/operation/ChangeStreamBatchCursor<TT;>;
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.operation.ChangeStreamBatchCursor.wrapped: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/operation/ChangeStreamBatchCursor<TT;>;
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.operation.ChangeStreamBatchCursor.wrapped: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/operation/ChangeStreamBatchCursor<TT;>;
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 "Not implemented!"
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/operation/ChangeStreamBatchCursor<TT;>;
public org.bson.BsonDocument getPostBatchResumeToken();
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.operation.ChangeStreamBatchCursor.wrapped:Lcom/mongodb/operation/AggregateResponseBatchCursor;
invokeinterface com.mongodb.operation.AggregateResponseBatchCursor.getPostBatchResumeToken:()Lorg/bson/BsonDocument;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/mongodb/operation/ChangeStreamBatchCursor<TT;>;
public org.bson.BsonTimestamp getOperationTime();
descriptor: ()Lorg/bson/BsonTimestamp;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield com.mongodb.operation.ChangeStreamBatchCursor.changeStreamOperation:Lcom/mongodb/operation/ChangeStreamOperation;
invokevirtual com.mongodb.operation.ChangeStreamOperation.getStartAtOperationTime:()Lorg/bson/BsonTimestamp;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/mongodb/operation/ChangeStreamBatchCursor<TT;>;
public boolean isFirstBatchEmpty();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield com.mongodb.operation.ChangeStreamBatchCursor.wrapped:Lcom/mongodb/operation/AggregateResponseBatchCursor;
invokeinterface com.mongodb.operation.AggregateResponseBatchCursor.isFirstBatchEmpty:()Z
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/mongodb/operation/ChangeStreamBatchCursor<TT;>;
private void cachePostBatchResumeToken(com.mongodb.operation.AggregateResponseBatchCursor<org.bson.RawBsonDocument>);
descriptor: (Lcom/mongodb/operation/AggregateResponseBatchCursor;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 1
invokeinterface com.mongodb.operation.AggregateResponseBatchCursor.getPostBatchResumeToken:()Lorg/bson/BsonDocument;
ifnull 2
1: aload 0
aload 1
invokeinterface com.mongodb.operation.AggregateResponseBatchCursor.getPostBatchResumeToken:()Lorg/bson/BsonDocument;
putfield com.mongodb.operation.ChangeStreamBatchCursor.resumeToken:Lorg/bson/BsonDocument;
2: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lcom/mongodb/operation/ChangeStreamBatchCursor<TT;>;
0 3 1 queryBatchCursor Lcom/mongodb/operation/AggregateResponseBatchCursor<Lorg/bson/RawBsonDocument;>;
Signature: (Lcom/mongodb/operation/AggregateResponseBatchCursor<Lorg/bson/RawBsonDocument;>;)V
MethodParameters:
Name Flags
queryBatchCursor final
private java.util.List<T> convertResults(java.util.List<org.bson.RawBsonDocument>);
descriptor: (Ljava/util/List;)Ljava/util/List;
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=5, args_size=2
start local 0 start local 1 0: aconst_null
astore 2
start local 2 1: aload 1
ifnull 10
2: new java.util.ArrayList
dup
invokespecial java.util.ArrayList.<init>:()V
astore 2
3: aload 1
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 4
goto 8
StackMap locals: com.mongodb.operation.ChangeStreamBatchCursor java.util.List java.util.List top java.util.Iterator
StackMap stack:
4: aload 4
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast org.bson.RawBsonDocument
astore 3
start local 3 5: aload 3
ldc "_id"
invokevirtual org.bson.RawBsonDocument.containsKey:(Ljava/lang/Object;)Z
ifne 7
6: new com.mongodb.MongoChangeStreamException
dup
ldc "Cannot provide resume functionality when the resume token is missing."
invokespecial com.mongodb.MongoChangeStreamException.<init>:(Ljava/lang/String;)V
athrow
7: StackMap locals: com.mongodb.operation.ChangeStreamBatchCursor java.util.List java.util.List org.bson.RawBsonDocument java.util.Iterator
StackMap stack:
aload 2
aload 3
aload 0
getfield com.mongodb.operation.ChangeStreamBatchCursor.changeStreamOperation:Lcom/mongodb/operation/ChangeStreamOperation;
invokevirtual com.mongodb.operation.ChangeStreamOperation.getDecoder:()Lorg/bson/codecs/Decoder;
invokevirtual org.bson.RawBsonDocument.decode:(Lorg/bson/codecs/Decoder;)Ljava/lang/Object;
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
end local 3 8: StackMap locals: com.mongodb.operation.ChangeStreamBatchCursor java.util.List java.util.List top java.util.Iterator
StackMap stack:
aload 4
invokeinterface java.util.Iterator.hasNext:()Z
ifne 4
9: aload 0
aload 1
aload 1
invokeinterface java.util.List.size:()I
iconst_1
isub
invokeinterface java.util.List.get:(I)Ljava/lang/Object;
checkcast org.bson.RawBsonDocument
ldc "_id"
invokevirtual org.bson.RawBsonDocument.getDocument:(Ljava/lang/Object;)Lorg/bson/BsonDocument;
putfield com.mongodb.operation.ChangeStreamBatchCursor.resumeToken:Lorg/bson/BsonDocument;
10: StackMap locals: com.mongodb.operation.ChangeStreamBatchCursor java.util.List java.util.List
StackMap stack:
aload 2
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 this Lcom/mongodb/operation/ChangeStreamBatchCursor<TT;>;
0 11 1 rawDocuments Ljava/util/List<Lorg/bson/RawBsonDocument;>;
1 11 2 results Ljava/util/List<TT;>;
5 8 3 rawDocument Lorg/bson/RawBsonDocument;
Signature: (Ljava/util/List<Lorg/bson/RawBsonDocument;>;)Ljava/util/List<TT;>;
MethodParameters:
Name Flags
rawDocuments final
<R> R resumeableOperation(com.mongodb.Function<com.mongodb.operation.AggregateResponseBatchCursor<org.bson.RawBsonDocument>, R>);
descriptor: (Lcom/mongodb/Function;)Ljava/lang/Object;
flags: (0x0000)
Code:
stack=4, locals=3, args_size=2
start local 0 start local 1 0: StackMap locals:
StackMap stack:
aload 1
aload 0
getfield com.mongodb.operation.ChangeStreamBatchCursor.wrapped:Lcom/mongodb/operation/AggregateResponseBatchCursor;
invokeinterface com.mongodb.Function.apply:(Ljava/lang/Object;)Ljava/lang/Object;
1: areturn
2: StackMap locals:
StackMap stack: java.lang.Throwable
astore 2
start local 2 3: aload 2
invokestatic com.mongodb.operation.ChangeStreamBatchCursorHelper.isRetryableError:(Ljava/lang/Throwable;)Z
ifne 5
4: aload 2
invokestatic com.mongodb.MongoException.fromThrowableNonNull:(Ljava/lang/Throwable;)Lcom/mongodb/MongoException;
athrow
end local 2 5: StackMap locals:
StackMap stack:
aload 0
getfield com.mongodb.operation.ChangeStreamBatchCursor.wrapped:Lcom/mongodb/operation/AggregateResponseBatchCursor;
invokeinterface com.mongodb.operation.AggregateResponseBatchCursor.close:()V
6: aload 0
getfield com.mongodb.operation.ChangeStreamBatchCursor.binding:Lcom/mongodb/binding/ReadBinding;
new com.mongodb.operation.ChangeStreamBatchCursor$4
dup
aload 0
invokespecial com.mongodb.operation.ChangeStreamBatchCursor$4.<init>:(Lcom/mongodb/operation/ChangeStreamBatchCursor;)V
invokestatic com.mongodb.operation.OperationHelper.withReadConnectionSource:(Lcom/mongodb/binding/ReadBinding;Lcom/mongodb/operation/OperationHelper$CallableWithSource;)Ljava/lang/Object;
pop
7: aload 0
aload 0
getfield com.mongodb.operation.ChangeStreamBatchCursor.changeStreamOperation:Lcom/mongodb/operation/ChangeStreamOperation;
aload 0
getfield com.mongodb.operation.ChangeStreamBatchCursor.binding:Lcom/mongodb/binding/ReadBinding;
invokevirtual com.mongodb.operation.ChangeStreamOperation.execute:(Lcom/mongodb/binding/ReadBinding;)Lcom/mongodb/operation/BatchCursor;
checkcast com.mongodb.operation.ChangeStreamBatchCursor
invokevirtual com.mongodb.operation.ChangeStreamBatchCursor.getWrapped:()Lcom/mongodb/operation/AggregateResponseBatchCursor;
putfield com.mongodb.operation.ChangeStreamBatchCursor.wrapped:Lcom/mongodb/operation/AggregateResponseBatchCursor;
8: aload 0
getfield com.mongodb.operation.ChangeStreamBatchCursor.binding:Lcom/mongodb/binding/ReadBinding;
invokeinterface com.mongodb.binding.ReadBinding.release:()V
9: goto 0
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Lcom/mongodb/operation/ChangeStreamBatchCursor<TT;>;
0 10 1 function Lcom/mongodb/Function<Lcom/mongodb/operation/AggregateResponseBatchCursor<Lorg/bson/RawBsonDocument;>;TR;>;
3 5 2 t Ljava/lang/Throwable;
Exception table:
from to target type
0 1 2 Class java.lang.Throwable
Signature: <R:Ljava/lang/Object;>(Lcom/mongodb/Function<Lcom/mongodb/operation/AggregateResponseBatchCursor<Lorg/bson/RawBsonDocument;>;TR;>;)TR;
MethodParameters:
Name Flags
function final
public java.lang.Object next();
descriptor: ()Ljava/lang/Object;
flags: (0x1041) ACC_PUBLIC, ACC_BRIDGE, ACC_SYNTHETIC
Code:
stack=1, locals=1, args_size=1
0: aload 0
invokevirtual com.mongodb.operation.ChangeStreamBatchCursor.next:()Ljava/util/List;
areturn
LocalVariableTable:
Start End Slot Name Signature
}
Signature: <T:Ljava/lang/Object;>Ljava/lang/Object;Lcom/mongodb/operation/AggregateResponseBatchCursor<TT;>;
SourceFile: "ChangeStreamBatchCursor.java"
NestMembers:
com.mongodb.operation.ChangeStreamBatchCursor$1 com.mongodb.operation.ChangeStreamBatchCursor$2 com.mongodb.operation.ChangeStreamBatchCursor$3 com.mongodb.operation.ChangeStreamBatchCursor$4
InnerClasses:
com.mongodb.operation.ChangeStreamBatchCursor$1
com.mongodb.operation.ChangeStreamBatchCursor$2
com.mongodb.operation.ChangeStreamBatchCursor$3
com.mongodb.operation.ChangeStreamBatchCursor$4
abstract CallableWithSource = com.mongodb.operation.OperationHelper$CallableWithSource of com.mongodb.operation.OperationHelper