File tree Expand file tree Collapse file tree 3 files changed +2
-34
lines changed
main/java/com/datastax/astra/client/tables
test/java/com/datastax/astra/test/integration/local Expand file tree Collapse file tree 3 files changed +2
-34
lines changed Original file line number Diff line number Diff line change @@ -919,14 +919,8 @@ public void deleteOne(Filter filter) {
919
919
public void deleteOne (Filter filter , TableDeleteOneOptions deleteOneOptions ) {
920
920
Command deleteOne = Command
921
921
.create ("deleteOne" )
922
- .withFilter (filter )
923
- .withSort (deleteOneOptions .getSortArray ());
922
+ .withFilter (filter );
924
923
runCommand (deleteOne , deleteOneOptions );
925
- /*
926
- DataAPIResponse apiResponse = runCommand(deleteOne, deleteOneOptions);
927
- int deletedCount = apiResponse.getStatus().getInteger(RESULT_DELETED_COUNT);
928
- return new TableDeleteResult(deletedCount);
929
- */
930
924
}
931
925
932
926
// -------------------------
Original file line number Diff line number Diff line change 34
34
@ Accessors (fluent = true , chain = true )
35
35
public class TableDeleteOneOptions extends BaseOptions <TableDeleteOneOptions > {
36
36
37
- /**
38
- * Order by.
39
- */
40
- Sort [] sort ;
41
-
42
37
/**
43
38
* Default constructor.
44
39
*/
45
40
public TableDeleteOneOptions () {}
46
41
47
- /**
48
- * Adding this on top of sort(Sort[] s) to allow for a more fluent API.
49
- * @param s
50
- * sort options
51
- * @return
52
- * current command
53
- */
54
- public TableDeleteOneOptions sort (Sort ... s ) {
55
- this .sort = s ;
56
- return this ;
57
- }
58
-
59
-
60
- /**
61
- * Get the sort options.
62
- *
63
- * @return
64
- * sort options
65
- */
66
- public Sort [] getSortArray () {
67
- return sort ;
68
- }
69
42
}
Original file line number Diff line number Diff line change 25
25
import com .datastax .astra .client .tables .commands .options .CreateTableOptions ;
26
26
import com .datastax .astra .client .tables .commands .options .CreateVectorIndexOptions ;
27
27
import com .datastax .astra .client .tables .commands .options .DropTableIndexOptions ;
28
+ import com .datastax .astra .client .tables .commands .options .TableDeleteOneOptions ;
28
29
import com .datastax .astra .client .tables .commands .options .TableFindOneOptions ;
29
30
import com .datastax .astra .client .tables .commands .options .TableFindOptions ;
30
31
import com .datastax .astra .client .tables .commands .options .TableInsertManyOptions ;
You can’t perform that action at this time.
0 commit comments