Commit Graph
42 Commits
Author SHA1 Message Date
leventov 114d2840f1 Remove newKeyInstance() and newValueInstance() as more confusing than helpful 2015-11-25 01:03:07 +03:00
leventov 01ac66a830 Replace net.openhft.chronicle.hash.function.SerializableFunction usages with the same interface from Chronicle-Core, and delete net.openhft.chronicle.hash.function package 2015-10-22 16:44:05 +03:00
leventov 440b075f9d Remove ChronicleMap.putMapped() as a duplicate of computeIfPresent(); Reduce the number of ignored tests 2015-09-27 15:41:07 +03:00
leventov 904ecca036 HCOLL-343 HCOLL-227 Remove old entries from ReplicatedChronicleMap 2015-08-23 00:01:44 +03:00
leventov e7a8a11505 OHFT-58 Change license to LGPLv3 to protect redistribution 2015-07-25 23:12:23 +03:00
leventov 9fe1dab477 HCOLL-352 Changed garbage-free Chronicle-Map iterations API from old to new Contexts; Add SegmentContexts API 2015-07-24 20:11:58 +03:00
leventov 912a3cc2fc Removed ChronicleHash.context() method and changed acquireContext() return type from deprecated MapKeyContext to Closeable 2015-07-24 03:43:50 +03:00
leventov 5c8f737654 Revert 'Make working with new bytes' and a couple of fixes 2015-07-01 10:45:48 +03:00
leventov a61ea2240d Rollback to Bytes 1.0.5-alpha and Access 2015-06-27 20:30:22 +03:00
leventov ba27b5d631 Make working with the new Bytes 2015-06-24 06:37:38 +03:00
leventov bf20bc98c3 Fixed several replication bugs; Value -> Data; extracted ReplicableEntry as a superclass of HashReplicableEntry 2015-06-15 21:34:45 +03:00
leventov f1da352a5d Made listeners almost work for replication 2015-06-02 19:02:55 +01:00
leventov b4c8554b77 SPI implementation 2015-05-27 00:03:20 +01:00
leventov 16f85e4c5e First step in separation of core ChronicleHash functionality from Map and Set; Start Java 8 adoption; Bug fixes 2015-02-12 15:24:24 +07:00
leventov 06b326ab05 Implemented forEachEntry() and forEachEntryWhile() 2015-01-20 01:00:38 +07:00
leventov d897891bfb Great refactoring 2015-01-17 03:19:35 +07:00
Rob Austin 7ad50e64ea updated test cases 2014-12-22 14:44:54 +00:00
Rob Austin 18554f4ccc introduced newKeyInstance and newValueInstance 2014-12-10 17:21:30 +00:00
Rob Austin 8d347e4f28 renamed to putWith() to putMapped() 2014-12-10 15:33:25 +00:00
Rob Austin 7cc79ea2c3 HCOLL-234 fixing CHMUseCaseTest 2014-12-09 14:16:52 +00:00
Rob Austin 767543cea6 HCOLL-234 as agreeded changed method name to "putWithMapping()" 2014-12-09 12:57:10 +00:00
Rob Austin 2df0426d83 HCOLL-234 as agreeded changed method name to "putWithMapping()" 2014-12-09 12:07:15 +00:00
boundedbuffer f79029f280 removed getLater(0 putLater() and removeLater() because the stateless client is now mulithreaded 2014-12-07 11:04:07 +00:00
Peter Lawrey 1e40c765f8 Remove blank lines at the start of methods and loops. 2014-11-30 22:48:57 +02:00
Peter Lawrey adae564595 Remove blank lines before } 2014-11-30 22:46:22 +02:00
Peter Lawrey 6d4b143903 Remove double and triple blank lines 2014-11-30 22:43:32 +02:00
Rob Austin a386fb0cad HCOLL-219 support the importing and exporting of entries to a human readable file format like JSON 2014-11-27 11:40:07 +00:00
Rob Austin 70656a83b9 HCOLL-216 added removeLater 2014-11-25 14:27:25 +00:00
Rob Austin 632eb7fe81 HCOLL-216 added a test for testPutLater 2014-11-24 15:17:09 +00:00
Rob Austin a5fe252478 DOC-14 Stateless Client : enhancing the synchronous writes so we don't need a thread local client for each thread 2014-11-24 08:29:44 +00:00
Peter Lawrey 3750bc4f8e HCOLL-81 make it clear that mapForKey is read only as it uses a Function and updateForKey is read/write and takes a mutator. 2014-11-15 12:56:37 +00:00
Peter Lawrey 2aaf5b5395 HCOLL-81 extend support for mapForkey to all maps. 2014-11-15 12:31:02 +00:00
Peter Lawrey 524834f1c2 create() and close() to not throw an IOException. 2014-11-15 10:40:09 +00:00
Rob Austin 94aabe3911 reverted back to allow acquireUsing to be passsed a NULL value 2014-11-11 08:56:36 +00:00
Rob Austin 0edb2252fa HCOLL-155 improved documentation 2014-11-10 13:25:59 +00:00
Rob Austin 130ee0f481 HCOLL-155 added java doc to - ReadContext<K, V> getUsingLocked(@NotNull K key, @NotNull V usingValue); 2014-11-05 09:32:44 +00:00
Rob Austin ef0cd0f96f HCOLL-155 removed acquireUsingReadLocked and acquireUsingWriteLocked to WriteContext<K,V> acquireUsingLocked(@NotNull K key, @NotNull V usingValue); and ReadContext<K,V> getUsingLocked(@NotNull K key, @NotNull V usingValue); 2014-11-02 18:35:26 +00:00
Rob Austin 118ed1676f HCOLL-155 added two of peters tests and them implemented the code accordingly - the test are net.openhft.chronicle.map.ChronicleMapTest#testOffheapAcquireUsingLocked and net.openhft.chronicle.map.ChronicleMapTest#testOnheapAcquireUsingLocked 2014-11-02 00:16:02 +00:00
Rob Austin 100d839a8b HCOLL-155 uncompleted, checked in order that Peter can review the changes so far of - chm.acquireUsingReadLocked and chm.acquireUsingWriteLocked 2014-11-01 15:53:47 +00:00
leventov 0c45ee8aff HCOLL-136 HCOLL-137 HCOLL-153 HCOLL-160
1. Separated ChronicleMapBuilder (for non-Byteable values) and
OffHeapUpdatableChronicleMapBuilder (for Byteable values) with common base
AbstractChronicleMapBuilder (public just to inherit common javadocs)

2. Added ChronicleHashBuilder.keyDeserializationFactory() and
AbstractChronicleMapBuilder.valueDeserializationFactory() (former
ChronicleMapBuilder.valueFactory() method)

3. Changed ChronicleMap.get(), getUsing() API and impl to what was
initially intended - now they ALWAYS returns null, if key is absent

4. acquireUsing() API, common for the cases with Byteable and non-Byteable
values: puts defaultValue or defaultValueProvider.get(key), if the key is
absent, then acquireUsing() behaves just like getUsing()

5. For off0heap updatable ChronicleMaps (Byteable values), added
prepareValueBytes() configuration which formalizes zeroing out value bytes

6. Javadoc fixes and improvements
2014-10-27 20:15:26 +03:00
Peter Lawrey ea779997cf Remove <p/> from copyright messages 2014-10-24 11:30:25 +01:00
leventov ea16356d46 New Chronicle-Map 2014-09-05 17:39:51 +04:00