-
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.
Support insert_many and replace_many CRUD operations (#264)
* Add options for batch CRUD operations * Support insert_many and replace_many CRUD operations
- Loading branch information
Showing
54 changed files
with
1,362 additions
and
181 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
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
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
4 changes: 2 additions & 2 deletions
4
src/main/java/io/tarantool/driver/api/space/options/DeleteOptions.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 |
---|---|---|
@@ -1,10 +1,10 @@ | ||
package io.tarantool.driver.api.space.options; | ||
|
||
/** | ||
* Marker interface for space delete options | ||
* Marker interface for space delete operation options | ||
* | ||
* @author Artyom Dubinin | ||
* @author Alexey Kuzin | ||
*/ | ||
public interface DeleteOptions extends Options { | ||
public interface DeleteOptions extends OperationWithTimeoutOptions { | ||
} |
26 changes: 26 additions & 0 deletions
26
src/main/java/io/tarantool/driver/api/space/options/InsertManyOptions.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,26 @@ | ||
package io.tarantool.driver.api.space.options; | ||
|
||
import java.util.Optional; | ||
|
||
/** | ||
* Marker interface for space insert_many operation options | ||
* | ||
* @author Alexey Kuzin | ||
*/ | ||
public interface InsertManyOptions extends OperationWithTimeoutOptions { | ||
/** | ||
* Return whether all changes should not be saved if any tuple insertion | ||
* was unsuccesful. | ||
* | ||
* @return true, if the operation should rollback on error | ||
*/ | ||
Optional<Boolean> getRollbackOnError(); | ||
|
||
/** | ||
* Return whether the operation should be interrupted if any tuple insertion | ||
* was unsuccesful. | ||
* | ||
* @return true, if the operation should stop on error | ||
*/ | ||
Optional<Boolean> getStopOnError(); | ||
} |
4 changes: 2 additions & 2 deletions
4
src/main/java/io/tarantool/driver/api/space/options/InsertOptions.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 |
---|---|---|
@@ -1,10 +1,10 @@ | ||
package io.tarantool.driver.api.space.options; | ||
|
||
/** | ||
* Marker interface for space insert options | ||
* Marker interface for space insert operation options | ||
* | ||
* @author Artyom Dubinin | ||
* @author Alexey Kuzin | ||
*/ | ||
public interface InsertOptions extends Options { | ||
public interface InsertOptions extends OperationWithTimeoutOptions { | ||
} |
17 changes: 17 additions & 0 deletions
17
src/main/java/io/tarantool/driver/api/space/options/OperationWithTimeoutOptions.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,17 @@ | ||
package io.tarantool.driver.api.space.options; | ||
|
||
import java.util.Optional; | ||
|
||
/** | ||
* Base class for all operation options that may have a configurable timeout. | ||
* | ||
* @author Alexey Kuzin | ||
*/ | ||
public interface OperationWithTimeoutOptions extends Options { | ||
/** | ||
* Return operation timeout. | ||
* | ||
* @return timeout, in milliseconds. | ||
*/ | ||
Optional<Integer> getTimeout(); | ||
} |
Oops, something went wrong.