/** * Gets whether the server should use a cursor to return results. The default value is null, in which case a cursor will be used if the * server supports it. * * @return whether the server should use a cursor to return results * @mongodb.driver.manual reference/command/aggregate/ Aggregation * @mongodb.server.release 2.6 * @deprecated There is no replacement for this. Applications can assume that the driver will use a cursor for server versions * that support it (>= 2.6). The driver will ignore this as of MongoDB 3.6, which does not support inline results for the aggregate * command. */ @Deprecated public Boolean getUseCursor() { return wrapped.getUseCursor(); }
@Override public String toString() { return "AggregateOperation{" + "namespace=" + getNamespace() + ", pipeline=" + getPipeline() + ", decoder=" + getDecoder() + ", allowDiskUse=" + getAllowDiskUse() + ", batchSize=" + getBatchSize() + ", collation=" + getCollation() + ", comment=" + getComment() + ", hint=" + getHint() + ", maxAwaitTimeMS=" + getMaxAwaitTime(TimeUnit.MILLISECONDS) + ", maxTimeMS=" + getMaxTime(TimeUnit.MILLISECONDS) + ", useCursor=" + wrapped.getUseCursor() + "}"; } }
/** * Gets whether the server should use a cursor to return results. The default value is null, in which case a cursor will be used if the * server supports it. * * @return whether the server should use a cursor to return results * @mongodb.driver.manual reference/command/aggregate/ Aggregation * @mongodb.server.release 2.6 * @deprecated There is no replacement for this. Applications can assume that the driver will use a cursor for server versions * that support it (>= 2.6). The driver will ignore this as of MongoDB 3.6, which does not support inline results for the aggregate * command. */ @Deprecated public Boolean getUseCursor() { return wrapped.getUseCursor(); }
@Override public String toString() { return "AggregateOperation{" + "namespace=" + getNamespace() + ", pipeline=" + getPipeline() + ", decoder=" + getDecoder() + ", allowDiskUse=" + getAllowDiskUse() + ", batchSize=" + getBatchSize() + ", collation=" + getCollation() + ", comment=" + getComment() + ", hint=" + getHint() + ", maxAwaitTimeMS=" + getMaxAwaitTime(TimeUnit.MILLISECONDS) + ", maxTimeMS=" + getMaxTime(TimeUnit.MILLISECONDS) + ", useCursor=" + wrapped.getUseCursor() + "}"; } }