Class AggregateOptions
java.lang.Object
io.vertx.ext.mongo.AggregateOptions
Options used to configure aggregate operations.
- Author:
- Nick Scavelli
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe default value of batchSize = 20.static final longThe default value of maxAwaitTime = 1000.static final longThe default value of maxTime = 0. -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructorAggregateOptions(JsonObject options) Constructor from JSONAggregateOptions(AggregateOptions options) Copy constructor -
Method Summary
Modifier and TypeMethodDescriptionbooleanGet the flag if writing to temporary files is enabled.intlongGet the specified time limit in milliseconds for processing operations on a cursor.inthashCode()setAllowDiskUse(Boolean allowDiskUse) Set the flag if writing to temporary files is enabled.setBatchSize(int batchSize) Set the batch size for methods loading found data in batches.setCollation(CollationOptions collation) Optional.setMaxTime(long maxTime) Set the time limit in milliseconds for processing operations on a cursor.toJson()Convert to JSONtoString()
-
Field Details
-
DEFAULT_BATCH_SIZE
public static final int DEFAULT_BATCH_SIZEThe default value of batchSize = 20.- See Also:
-
DEFAULT_MAX_TIME
public static final long DEFAULT_MAX_TIMEThe default value of maxTime = 0.- See Also:
-
DEFAULT_MAX_AWAIT_TIME
public static final long DEFAULT_MAX_AWAIT_TIMEThe default value of maxAwaitTime = 1000.- See Also:
-
-
Constructor Details
-
AggregateOptions
public AggregateOptions()Default constructor -
AggregateOptions
Copy constructor- Parameters:
options- the one to copy
-
AggregateOptions
-
-
Method Details
-
getCollation
- Returns:
- Configured collationOptions
-
setCollation
Optional.Specifies the collation to use for the operation.
Collation allows users to specify language-specific rules for string comparison, such as rules for lettercase and accent marks.
- Parameters:
collation-- Returns:
- reference to this, for fluency
-
toJson
-
getMaxTime
public long getMaxTime()Get the specified time limit in milliseconds for processing operations on a cursor. If you do not specify a value for maxTime, operations will not time out. A value of 0 explicitly specifies the default unbounded behavior.- Returns:
- the specified time limit in milliseconds for processing operations on a cursor
-
setMaxTime
Set the time limit in milliseconds for processing operations on a cursor.- Parameters:
maxTime- the time limit in milliseconds for processing operations on a cursor- Returns:
- reference to this, for fluency
-
getBatchSize
public int getBatchSize()- Returns:
- the batch size for methods loading found data in batches
-
setBatchSize
Set the batch size for methods loading found data in batches.- Parameters:
batchSize- the number of documents in a batch- Returns:
- reference to this, for fluency
-
getAllowDiskUse
Get the flag if writing to temporary files is enabled. When set to true, aggregation operations can write data to the _tmp subdirectory in the dbPath directory.- Returns:
- true if writing to temporary files is enabled.
-
setAllowDiskUse
Set the flag if writing to temporary files is enabled.- Parameters:
allowDiskUse- the flag indicating disk usage on aggregate or not.- Returns:
- reference to this, for fluency
-
equals
-
hashCode
-
toString
-