Commit Graph

32 Commits

Author SHA1 Message Date
Keith Bostic
b62beba610 WT-2556: typo in the Java example code 2016-04-16 08:15:31 -04:00
Keith Bostic
8876677b34 WT-2103: add incremental backup testing to format
Add an example of the code to open a cursor for incremental backup.

Wording changes:

Remove the requirement that a checkpoint be run between the full backup
and the incremental backup; it's not really a requirement and it implies
coordination between checkpoints and recovery that could be difficult.

Don't mention the backup database becoming "live" as the terminating
condition for incrementals, once you run recovery, it's over, you cannot
backup to that database copy again.

Note the log file grows rather than "changes in size"; it better not
shrink in size, applications won't be able to handle that.
2016-04-15 11:00:52 -04:00
Don Anderson
33991acfa1 WT-2431 The schema example now needs statistics enabled for the connection. 2016-02-29 08:19:40 -05:00
Don Anderson
5083d97a09 WT-2431 Add examples for join cursor statistics. 2016-02-28 17:26:53 -05:00
Keith Bostic
628d64f8ef WT-2107: Add example code including an event handler
Fix the Java call to strerror.
2016-02-23 11:58:39 -05:00
Keith Bostic
9e2430e56c WT-2107: Add example code including an event handler
Clean up thread-safe vs. global "display error strings" documentation:
the global code snippet was wrong, there wasn't a java thread-safe
snippet, add a mention of the thread-safe API to the error-handling
page, quit trying to enumerate the underlying strerror(3) standards.
2016-02-21 13:23:51 -05:00
Keith Bostic
12be963758 WT-2352: Allow build and test without requiring lz4
Remove support for the bzip2 compression engine.
2016-01-28 12:44:09 -05:00
Keith Bostic
344a714c3d Upgrade copyright notices from 2015 to 2016. 2016-01-01 16:37:39 -05:00
Don Anderson
d46c3bf7b1 WT-1315. Added C and java examples for join cursors. 2015-11-03 13:36:26 -05:00
Keith Bostic
116654fa94 Add LZ4 to the documentation. 2015-03-18 12:35:35 -04:00
Alex Gorrod
6ba4ded15b Fixup Java examples. 2015-01-17 15:17:13 +11:00
Michael Cahill
a30db47d03 Merge branch 'develop' into cursor-equal
Conflicts:
	lang/python/wiredtiger.i
2015-01-17 07:33:37 +11:00
Michael Cahill
76addf7358 Have WT_CURSOR::equals return 1 when cursors are equal, 0 when not. 2015-01-17 05:48:03 +11:00
Alex Gorrod
812be6c438 Rename WT_CURSOR compare_equal to be equals.
While here, add a generic cursor equals stub in curstd, rather than
redirecting via cursor function pointer lists.

Implement the Java API wrapper.
2015-01-14 02:28:10 +11:00
Keith Bostic
f28cef19f4 Add support for the WT_CURSOR.compare_equal method. 2015-01-10 13:52:12 -05:00
Don Anderson
b8971b6ffe Merge branch 'develop' into java-examples 2015-01-09 10:19:17 -05:00
Don Anderson
9af563c265 Set of fixes to get most java examples to run. Refs #1526.
In all java examples: declared main() correctly for picky JVMs, print stack
traces on exception, brought examples in line with C code.

In java examples, use Process.waitFor() to wait for 'rm' to complete.

Modified examples to use new record methods (e.g. getKeyRecord() instead of getKeyLong()) when appropriate.

Fixed key/value comparisions in ex_log.java example.
2015-01-09 09:56:04 -05:00
Keith Bostic
1f9098871a Copyright notices: add MongoDB, update to 2015. 2015-01-04 14:07:56 -05:00
Don Anderson
2d61ce5b66 Fixed a timing error in the example startup, as well as closing handles.
Refs #1524.
2015-01-02 17:09:01 -05:00
Alex Gorrod
299c3cefbb Add support for immutable indices.
Refs #1344
2014-11-18 16:32:14 +11:00
Keith Bostic
7590319f16 Rename WT_DEADLOCK to WT_ROLLBACK, reference #1204. 2014-10-17 07:46:30 -04:00
Don Anderson
b00bec1480 Java examples to match similarly named examples from C.
These allow a Java version of documentation to show real example fragments.
refs #1130.
2014-10-06 13:35:50 -04:00
Alex Gorrod
e04abd5cc6 Update Java example to catch WiredTiger exceptions.
This is related to #1011, we should review it again if we decide
that our API should throw runtime exceptions.
2014-06-23 14:48:40 +10:00
Keith Bostic
5b509b7220 Update copyright notices for 2014.
Move lang/java and lang/python into the public domain.
2014-01-07 10:30:12 -05:00
Alex Gorrod
12ea0e5961 Fix copyright notices in Java source code. 2013-02-19 18:40:27 +11:00
Alex Gorrod
500b2699ca Remove stub WiredTiger YCSB implementation from source tree. 2013-02-19 18:04:09 +11:00
Alex Gorrod
39150c640e Update Java Cursor API naming to reflect ByteArray semantics.
Also update documentation, to use Doxygen and @copydoc where possible.
Not yet tied into s_docs.
2013-02-19 17:06:41 +11:00
Alex Gorrod
ac1a38c498 Update Java example to use new cursor interface. 2013-02-13 19:26:43 +11:00
Alex Gorrod
19fed99760 Update Java structure packing implementation.
Add a first JUnit test case, and associated autoconf files.
2013-02-12 21:00:49 +11:00
Alex Gorrod
12c649b0f4 Add a Java implementation of packed formats.
Also add a test case and update the layout of the Java build.
2013-02-08 14:15:19 +11:00
Alex Gorrod
697825e73b Add in examples to Java build. 2013-01-25 12:48:02 +11:00
Michael Cahill
5791f5b864 imported patch java-api
--HG--
rename : lang/python/Makefile.am => lang/java/Makefile.am
rename : lang/python/wiredtiger.i => lang/java/wiredtiger.i
2012-07-07 01:27:47 +10:00