Commit Graph

283 Commits

Author SHA1 Message Date
Alec Grieser 33f8b2f7cf added a style guide ; fixed errors found from the style guide ; updated tests to use java 8 closures 2017-12-13 16:16:31 -08:00
A.J. Beamon a5d63ce1e1 Patch up the makefiles and remove references to the completable bindings 2017-12-13 11:07:19 -08:00
A.J. Beamon d6e4eed5f1 Move Java src-completable to src 2017-12-13 10:18:44 -08:00
A.J. Beamon 59799147bd Remove Java src folder 2017-12-13 10:17:53 -08:00
A.J. Beamon 8ea671196f Add missing } in javadoc for Transaction.close 2017-12-13 08:56:35 -08:00
Alec Grieser 4d734a4925 Merge branch 'java-add-missing-dispose' into java-future-cleanup 2017-12-12 11:11:46 -08:00
A.J. Beamon b831e869e2 Don't call BoundaryIterator.close if it's already closed. 2017-12-12 10:34:01 -08:00
A.J. Beamon 84a428972e Limit to API version 510. Document the FDB.warnOnUnclosed function. 2017-12-12 09:57:58 -08:00
A.J. Beamon b354c7fc00 Remove unused constructor, add close() to BoundaryIterator finalizer for now, remove unused debug method from NativeFuture 2017-12-12 09:24:34 -08:00
A.J. Beamon db4c3cf740 Minor documentation and import edits 2017-12-11 18:28:17 -08:00
A.J. Beamon f76e6729fc Revert whitespace change 2017-12-11 15:01:28 -08:00
A.J. Beamon 171a7f34ea Replace Disposable with AutoCloseable. Update documentation of close (formerly dispose). Some other small cleanup items. 2017-12-11 14:54:22 -08:00
Alec Grieser 51e7e41256 Merge remote-tracking branch 'origin/java-add-missing-dispose' into java-future-cleanup 2017-12-11 08:55:15 -08:00
Alec Grieser 154000e2c3 move most old-style closures to Java 8-style closures 2017-12-11 08:54:35 -08:00
A.J. Beamon ab431004a3 Database documentation was updated in the wrong place. 2017-12-08 15:37:24 -08:00
A.J. Beamon 0c0069a02e Various fixes to stack tester Transaction reference counting. 2017-12-08 14:52:01 -08:00
A.J. Beamon 570b60fe53 isDone check in NativeFuture.dispose, try/finally for finalizers, some rewriting of stack tester context transaction management. 2017-12-06 13:06:57 -08:00
A.J. Beamon f456c67bda Merge branch 'master' into java-add-missing-dispose
# Conflicts:
#	bindings/java/src-completable/main/com/apple/foundationdb/Cluster.java
#	bindings/java/src-completable/main/com/apple/foundationdb/async/AsyncIterator.java
#	bindings/java/src-completable/main/com/apple/foundationdb/async/AsyncUtil.java
2017-12-06 10:22:39 -08:00
A.J. Beamon 157e32fe2e Various java cleanup. Convert some anonymous classes to lambdas, remove some unnecessary keywords from some interfaces, fix some documentation issues, etc. 2017-12-06 10:16:43 -08:00
A.J. Beamon bfa701ac8e Add a finalizer warning to all Disposable objects. Futures now dispose when marshalled (rather than just release memory). Range futures gets disposed as soon as their results are actually marshalled (in RangeQuery). AsyncIterator is no longer disposable, but a new interface DisposableAsyncIterator provides a disposable version. getBoundaryKeys returns a DisposableAsyncIterator rather than an AsyncIterable. Update the stack testers to dispose of their objects. 2017-12-06 09:58:53 -08:00
Alec Grieser 773a239830 whitespace fixes 🤮 2017-12-05 08:45:40 -08:00
Alec Grieser 8971f35a73 fixed some errors found by inspection 2017-12-04 10:16:57 -08:00
Alec Grieser 9d5aa5fc96 pass -Xlint to javac ; fix kvetching 2017-12-04 09:56:35 -08:00
A.J. Beamon 3ded271153 Dispose of Cluster objects in fdb.open() 2017-11-17 12:21:14 -08:00
Alec Grieser f657be8136 add a space to match the bracing style used in this file 2017-11-17 09:55:11 -08:00
A.J. Beamon 0981e0dcdd Dispose of newly created transactions if transfer() fails. 2017-11-17 09:47:17 -08:00
A.J. Beamon 5b5850e097 The dispose in Database.createTransaction was supposed to happen on error, not in the finally block 2017-11-16 10:50:13 -08:00
A.J. Beamon db017317ac Update the Java bindings to call add missing dispose calls. 2017-11-15 15:56:50 -08:00
A.J. Beamon d174e05bac Merge pull request #180 from cie/bindings-versionstamps-in-tuples
<rdar://problem/25560444> [Feature] Versionstamped keys and tuple/directory incompatibility
2017-11-06 16:39:17 -08:00
A.J. Beamon fee6734e71 Add braces around multiline if block 2017-11-06 16:38:32 -08:00
Alec Grieser dafe553dc1 now pass along firstChunk when doing asList to avoid making two calls 2017-11-02 17:15:23 -07:00
Alec Grieser eb62b9d9a9 add overload to whileTrue that takes supplier ; deprecated version that takes a Function 2017-11-01 11:21:23 -07:00
Evan Tschannen 93be673e20 Merge pull request #192 from cie/bindingtester-ro-lock-aware-option
<rdar://problem/34579176> Transaction option for read-only lock aware
2017-10-27 17:19:40 -07:00
Alec Grieser 381928535c removed spurious 'at' ; fixed whitespace 🤮 2017-10-26 09:27:34 -07:00
Alec Grieser 5cc4328602 Merge remote-tracking branch 'origin/master' into bindings-versionstamps-in-tuples 2017-10-26 08:58:09 -07:00
Balachandar Namasivayam cfefab18fb Merge branch 'master' into add-new-atomic-ops 2017-10-25 18:03:34 -07:00
Alec Grieser 8cad278da1 add set_read_lock_aware to atomic ops unit tests in binding tester 2017-10-25 15:14:18 -07:00
Balachandar Namasivayam 9dd588dcce Addressed review comments.
Changed naming for NewMin and NewAnd to MinV2 and AndV2
2017-10-25 14:48:05 -07:00
Alec Grieser 2b293242f6 resolver -> db ; correct versionstamp spelling 2017-10-25 13:38:03 -07:00
Alec Grieser 957243a88e tuple encoding now has fewer copies ; various java 8 vs java 6 inconsistency fixes 2017-10-25 10:53:33 -07:00
Alec Grieser 1855f876db Merge remote-tracking branch 'origin/master' into bindings-versionstamps-in-tuples 2017-10-24 18:08:47 -07:00
Alec Grieser 929fa5699a tuple and versionstamp documentation updates 2017-10-24 17:53:16 -07:00
Alec Grieser f0bca54061 mostly javadocs fixes 2017-10-24 16:06:56 -07:00
Alec Grieser a2b7fce4d9 whitespace changes 2017-10-24 15:44:39 -07:00
Alec Grieser e2932b7660 fixed unnecessary differences between src and src-completable versions of TupleUtil 2017-10-24 12:03:28 -07:00
Alec Grieser d7adaf766c whitespace fixes 🤮 2017-10-24 11:58:45 -07:00
Alec Grieser 9baa8c30b5 added hashCode implementation to subspace 2017-10-23 09:12:45 -07:00
Alec Grieser dd6d8f3b0e Merge branch 'master' into add-new-atomic-ops 2017-10-18 16:36:44 -07:00
Alec Grieser 1ebdd574cd fixed some sneaky references to com.apple.cie.foundationdb hiding in javadocs 2017-10-18 14:16:46 -07:00
Alec Grieser c12c928141 Merge branch 'master' into bindings-versionstamps-in-tuples 2017-10-18 14:13:01 -07:00
Alec Grieser d40eb1ef9a changed java package from com.apple.cie.foundationdb to com.apple.foundationdb 2017-10-16 08:31:44 -07:00
Alec Grieser 18432f235f moved java files from com/apple/apple/foundationdbdb to com/apple/foundationdb in preparation for package rename 2017-10-16 08:11:41 -07:00
Alec Grieser 09e54aa23b ~~whitespace fixes~~ 2017-10-11 14:54:49 -07:00
Balachandar Namasivayam 8e0bea2795 Update API_VERSION from 500 to 510 2017-10-11 13:49:38 -07:00
Alec Grieser 9fd934e002 added packWithVersionstamp to subspace ; some testing/javadocs tweaks 2017-10-11 10:53:51 -07:00
Alec Grieser f95553aca2 updated javadocs 2017-10-10 16:56:32 -07:00
Alec Grieser 2868908c14 make use of Tuple.pack(prefix) in java tests 2017-10-09 15:28:52 -07:00
Alec Grieser 152e10eba1 added hasIncompleteVersionstamp utility method to tuples 2017-10-09 13:52:00 -07:00
Alec Grieser a9cc7af79e added versionstamps to java tuples 2017-10-09 11:07:34 -07:00
A.J. Beamon d886b95628 Merge pull request #131 from cie/33300740-with-shutdown-hooks
<rdar://problem/33300740> Java: support callbacks from external multi-version client threads
2017-10-04 09:17:25 -07:00
A.J. Beamon 91281ec754 Don't use SetByteArrayRegion for get range results. 2017-09-27 13:41:06 -07:00
Alec Grieser 80f559d148 changed name from thread_completion_hook to network_thread_completion_hook 2017-09-27 11:30:39 -07:00
Alec Grieser 18edc56559 removed unused local variable 2017-09-27 09:32:31 -07:00
Alec Grieser d7e1b267be changed name from shutdown hook to thread completion hook ; added hook parameter 2017-09-26 17:00:04 -07:00
Alec Grieser a5f1c3b15b Merge remote-tracking branch 'origin/master' into 33300740-with-shutdown-hooks 2017-09-26 11:28:40 -07:00
Ben Collins 21688afeb3 Merge pull request #155 from cie/feature-jni-no-memcpy
Fix possible leaks, move to SetByteArrayRegion()
2017-09-20 11:01:29 -07:00
A.J. Beamon da9b56e1ef More use of SetByteArrayRegion and various memory management fixes. 2017-09-20 10:31:25 -07:00
A.J. Beamon a3eceb71ec Merge branch 'release-5.0' 2017-09-01 12:37:16 -07:00
A.J. Beamon 560e172c46 tests: Update binding single key get range performance test to specify a limit of 2 and use exact mode. 2017-09-01 12:36:24 -07:00
Ben Collins 52f5ad83ea Clean up some boilerplate by switching to SetByteArrayRegion() 2017-09-01 09:29:11 -07:00
Ben Collins f19deec5d7 Remove a few more outdated items 2017-09-01 09:15:59 -07:00
Alec Grieser 83bf2ee312 added add_shutdown_hook to fdb_c api and used it to detach java threads where appropriate 2017-07-25 15:57:26 -07:00
Alec Grieser ee1e413927 fix whitespace issues <grumble, grumble> 2017-07-24 10:09:54 -07:00
Alec Grieser 68e539164e JNI now tries to attach thread to JVM if g_thread_jenv not set 2017-07-21 18:26:18 -07:00
Alec Grieser 1ef77ef99a java tester support on release-5.0 2017-07-17 16:42:50 -07:00
Alec Grieser 50c206c93e CompletableFuture reference is now an @link 2017-07-12 10:41:31 -07:00
Alec Grieser 6576e62a4e removed FIXME from Javadocs 2017-07-12 09:52:19 -07:00
Alec Grieser 0740d587dd Merge pull request #82 from cie/bindings-tuple-improvements
<rdar://problem/30053926> Bindings: Upstream Tuple2 changes from CK's fdbext
2017-05-26 14:38:43 -07:00
Alec Grieser 1bca602956 updated javadoc for fromStream with new types 2017-05-26 14:36:12 -07:00
Alec Grieser d9dffd39ac Merge pull request #111 from cie/java-remove-transaction-reset
Remove transaction reset from Java bindings.
2017-05-26 14:28:51 -07:00
A.J. Beamon fc468f682b Merge branch 'release-5.0' into bindings-tuple-improvements
# Conflicts:
#	bindings/java/src-completable/main/com/apple/apple/foundationdbdb/tuple/Tuple.java
2017-05-26 12:33:33 -07:00
A.J. Beamon 84d4bfe749 Merge pull request #112 from cie/executor-marshall-on-callback
<rdar://problem/32413365> Java Bindings: Execute marshalling and callbacks off of network thread
2017-05-26 09:16:08 -07:00
FDB Dev Team a674cb4ef4 Initial repository commit 2017-05-25 13:48:44 -07:00