-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Closes #460
- Loading branch information
Showing
4 changed files
with
50 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
28 changes: 28 additions & 0 deletions
28
src/main/java/io/tarantool/driver/api/space/options/crud/OperationWithFullScanOptions.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
package io.tarantool.driver.api.space.options.crud; | ||
|
||
import java.util.Optional; | ||
|
||
import io.tarantool.driver.api.space.options.Options; | ||
import io.tarantool.driver.api.space.options.Self; | ||
import io.tarantool.driver.api.space.options.crud.enums.ProxyOption; | ||
|
||
public interface OperationWithFullScanOptions<T extends OperationWithModeOptions<T>> extends Options, Self<T> { | ||
|
||
/** | ||
* Sets "fullscan" option value to true. If true then a critical log entry will be skipped on potentially long | ||
* select. | ||
* | ||
* @return this options instance. | ||
*/ | ||
default T fullScan() { | ||
addOption(ProxyOption.FULL_SCAN, true); | ||
return self(); | ||
} | ||
|
||
/** | ||
* @return "fullscan" option value. | ||
*/ | ||
default Optional<Boolean> getFullScan() { | ||
return getOption(ProxyOption.FULL_SCAN, Boolean.class); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters