class com.mongodb.operation.AsyncSingleBatchQueryCursor<T> implements com.mongodb.async.AsyncBatchCursor<T>
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: com.mongodb.operation.AsyncSingleBatchQueryCursor
super_class: java.lang.Object
{
private volatile com.mongodb.connection.QueryResult<T> firstBatch;
descriptor: Lcom/mongodb/connection/QueryResult;
flags: (0x0042) ACC_PRIVATE, ACC_VOLATILE
Signature: Lcom/mongodb/connection/QueryResult<TT;>;
private volatile boolean closed;
descriptor: Z
flags: (0x0042) ACC_PRIVATE, ACC_VOLATILE
void <init>(com.mongodb.connection.QueryResult<T>);
descriptor: (Lcom/mongodb/connection/QueryResult;)V
flags: (0x0000)
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
aload 1
putfield com.mongodb.operation.AsyncSingleBatchQueryCursor.firstBatch:Lcom/mongodb/connection/QueryResult;
2: ldc "Empty Cursor"
aload 1
invokevirtual com.mongodb.connection.QueryResult.getCursor:()Lcom/mongodb/ServerCursor;
ifnonnull 3
iconst_1
goto 4
StackMap locals: com.mongodb.operation.AsyncSingleBatchQueryCursor com.mongodb.connection.QueryResult
StackMap stack: java.lang.String
3: iconst_0
StackMap locals: com.mongodb.operation.AsyncSingleBatchQueryCursor com.mongodb.connection.QueryResult
StackMap stack: java.lang.String int
4: invokestatic com.mongodb.assertions.Assertions.isTrue:(Ljava/lang/String;Z)V
5: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lcom/mongodb/operation/AsyncSingleBatchQueryCursor<TT;>;
0 6 1 firstBatch Lcom/mongodb/connection/QueryResult<TT;>;
Signature: (Lcom/mongodb/connection/QueryResult<TT;>;)V
MethodParameters:
Name Flags
firstBatch final
public void close();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
iconst_1
putfield com.mongodb.operation.AsyncSingleBatchQueryCursor.closed:Z
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lcom/mongodb/operation/AsyncSingleBatchQueryCursor<TT;>;
public void next(com.mongodb.async.SingleResultCallback<java.util.List<T>>);
descriptor: (Lcom/mongodb/async/SingleResultCallback;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=3, args_size=2
start local 0 start local 1 0: aload 0
getfield com.mongodb.operation.AsyncSingleBatchQueryCursor.closed:Z
ifeq 3
1: aload 1
aconst_null
new com.mongodb.MongoException
dup
ldc "next() called after the cursor was closed."
invokespecial com.mongodb.MongoException.<init>:(Ljava/lang/String;)V
invokeinterface com.mongodb.async.SingleResultCallback.onResult:(Ljava/lang/Object;Ljava/lang/Throwable;)V
2: goto 10
StackMap locals:
StackMap stack:
3: aload 0
getfield com.mongodb.operation.AsyncSingleBatchQueryCursor.firstBatch:Lcom/mongodb/connection/QueryResult;
ifnull 8
aload 0
getfield com.mongodb.operation.AsyncSingleBatchQueryCursor.firstBatch:Lcom/mongodb/connection/QueryResult;
invokevirtual com.mongodb.connection.QueryResult.getResults:()Ljava/util/List;
invokeinterface java.util.List.isEmpty:()Z
ifne 8
4: aload 0
getfield com.mongodb.operation.AsyncSingleBatchQueryCursor.firstBatch:Lcom/mongodb/connection/QueryResult;
invokevirtual com.mongodb.connection.QueryResult.getResults:()Ljava/util/List;
astore 2
start local 2 5: aload 0
aconst_null
putfield com.mongodb.operation.AsyncSingleBatchQueryCursor.firstBatch:Lcom/mongodb/connection/QueryResult;
6: aload 1
aload 2
aconst_null
invokeinterface com.mongodb.async.SingleResultCallback.onResult:(Ljava/lang/Object;Ljava/lang/Throwable;)V
end local 2 7: goto 10
8: StackMap locals:
StackMap stack:
aload 0
iconst_1
putfield com.mongodb.operation.AsyncSingleBatchQueryCursor.closed:Z
9: aload 1
aconst_null
aconst_null
invokeinterface com.mongodb.async.SingleResultCallback.onResult:(Ljava/lang/Object;Ljava/lang/Throwable;)V
10: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 this Lcom/mongodb/operation/AsyncSingleBatchQueryCursor<TT;>;
0 11 1 callback Lcom/mongodb/async/SingleResultCallback<Ljava/util/List<TT;>;>;
5 7 2 results Ljava/util/List<TT;>;
Signature: (Lcom/mongodb/async/SingleResultCallback<Ljava/util/List<TT;>;>;)V
MethodParameters:
Name Flags
callback final
public void tryNext(com.mongodb.async.SingleResultCallback<java.util.List<T>>);
descriptor: (Lcom/mongodb/async/SingleResultCallback;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokevirtual com.mongodb.operation.AsyncSingleBatchQueryCursor.next:(Lcom/mongodb/async/SingleResultCallback;)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lcom/mongodb/operation/AsyncSingleBatchQueryCursor<TT;>;
0 2 1 callback Lcom/mongodb/async/SingleResultCallback<Ljava/util/List<TT;>;>;
Signature: (Lcom/mongodb/async/SingleResultCallback<Ljava/util/List<TT;>;>;)V
MethodParameters:
Name Flags
callback final
public void setBatchSize(int);
descriptor: (I)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=0, locals=2, args_size=2
start local 0 start local 1 0: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/mongodb/operation/AsyncSingleBatchQueryCursor<TT;>;
0 1 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: iconst_0
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/mongodb/operation/AsyncSingleBatchQueryCursor<TT;>;
public boolean isClosed();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield com.mongodb.operation.AsyncSingleBatchQueryCursor.closed:Z
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/mongodb/operation/AsyncSingleBatchQueryCursor<TT;>;
}
Signature: <T:Ljava/lang/Object;>Ljava/lang/Object;Lcom/mongodb/async/AsyncBatchCursor<TT;>;
SourceFile: "AsyncSingleBatchQueryCursor.java"