/** * Get partial results from a sharded cluster if one or more shards are unreachable (instead of throwing an error). * * @return if partial results for sharded clusters is enabled */ public boolean isPartial() { return options.isPartial(); }
assertTrue(options.isNoCursorTimeout()); assertTrue(options.isOplogReplay()); assertTrue(options.isPartial()); assertEquals(ReadPreference.secondaryPreferred(2, TimeUnit.MINUTES), options.getReadPreference()); assertEquals(ReadConcern.LOCAL, options.getReadConcern());
operation.partial(true); } else { operation.partial(findOptions.isPartial());
/** * Get partial results from a sharded cluster if one or more shards are unreachable (instead of throwing an error). * * @return if partial results for sharded clusters is enabled */ public boolean isPartial() { return options.isPartial(); }
operation.partial(true); } else { operation.partial(findOptions.isPartial());