public class AggregateOptions extends Object
| Modifier and Type | Field and Description | 
|---|---|
static int | 
DEFAULT_BATCH_SIZE
The default value of batchSize = 10. 
 | 
static long | 
DEFAULT_MAX_AWAIT_TIME
The default value of maxAwaiTime = 0. 
 | 
static long | 
DEFAULT_MAX_TIME
The default value of maxTime = 0. 
 | 
| Constructor and Description | 
|---|
AggregateOptions()
Default constructor 
 | 
AggregateOptions(AggregateOptions options)
Copy constructor 
 | 
AggregateOptions(JsonObject options)
Constructor from JSON 
 | 
| Modifier and Type | Method and Description | 
|---|---|
boolean | 
equals(Object o)  | 
Boolean | 
getAllowDiskUse()
Get the flag if writing to temporary files is enabled. 
 | 
int | 
getBatchSize()  | 
long | 
getMaxAwaitTime()  | 
long | 
getMaxTime()
Get the specified time limit in milliseconds for processing operations on a cursor. 
 | 
int | 
hashCode()  | 
AggregateOptions | 
setAllowDiskUse(Boolean allowDiskUse)
Set the flag if writing to temporary files is enabled. 
 | 
AggregateOptions | 
setBatchSize(int batchSize)
Set the batch size for methods loading found data in batches. 
 | 
AggregateOptions | 
setMaxAwaitTime(long maxAwaitTime)
The maximum amount of time for the server to wait on new documents to satisfy a $changeStream aggregation. 
 | 
AggregateOptions | 
setMaxTime(long maxTime)
Set the time limit in milliseconds for processing operations on a cursor. 
 | 
JsonObject | 
toJson()
Convert to JSON 
 | 
public static final int DEFAULT_BATCH_SIZE
public static final long DEFAULT_MAX_TIME
public static final long DEFAULT_MAX_AWAIT_TIME
public AggregateOptions()
public AggregateOptions(AggregateOptions options)
options - the one to copypublic AggregateOptions(JsonObject options)
options - the JSONpublic JsonObject toJson()
public long getMaxTime()
public AggregateOptions setMaxTime(long maxTime)
maxTime - the time limit in milliseconds for processing operations on a cursorpublic int getBatchSize()
public Boolean getAllowDiskUse()
public AggregateOptions setAllowDiskUse(Boolean allowDiskUse)
allowDiskUse - the flag indicating disk usage on aggregate or not.public AggregateOptions setBatchSize(int batchSize)
batchSize - the number of documents in a batchpublic long getMaxAwaitTime()
public AggregateOptions setMaxAwaitTime(long maxAwaitTime)
maxAwaitTime - the max await time in msCopyright © 2020 Eclipse. All rights reserved.