Commit Graph
47 Commits
Author SHA1 Message Date
leventov 0ec0eed5eb Add tutorial section about custom serialization, add custom serialization tests, improve Javadocs in net.openhft.chronicle.hash.serialization package 2016-03-19 16:47:26 +07:00
leventov fe77012381 Read/Write ChronicleMap's boostrapping header with Wire 2015-11-25 20:37:19 +03:00
leventov 114d2840f1 Remove newKeyInstance() and newValueInstance() as more confusing than helpful 2015-11-25 01:03:07 +03:00
leventov ade2196e72 Java-Lang -> Chronicle-Bytes, Chronicle-Values 2015-11-22 22:10:39 +03:00
leventov a13bf449d0 Make value and value size configuration obligatory in ChronicleMapBuilder 2015-10-14 17:47:22 +03:00
leventov e7a8a11505 OHFT-58 Change license to LGPLv3 to protect redistribution 2015-07-25 23:12:23 +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 68697831b8 Moved to CityHash (proven to be faster); Made Hashing and BytesInterop API more cohrent; removed Void marshalling because values should never be null 2015-01-26 13:21:27 +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
leventov 3236236324 Optimized imports 2014-12-27 17:50:22 +07:00
leventov 81f6142af7 Clearly separated notion of entries and chunks, averageKeySize()/ValueSize() instead of keySize()/valueSize(), minor fixes and refactorings 2014-12-26 05:22:54 +07:00
Rob Austin 326e5f32f1 HCOLL-259 enhanced the DataValueConverter to now support Map<->JSON and back, of nested $$Native classes, such as those examples used with the BondVOInterface. 2014-12-24 18:08:52 +00:00
leventov 59add5e42f HCOLL-263 assume direct off-heap impls only used if fails to generate generic off-heap/on-heap readers/writers 2014-12-21 21:47:07 +07:00
Rob Austin 3bdfeae8f1 updated to use - chm.newValueInstance(); 2014-12-21 08:45:33 +00:00
leventov e951a4339a Reduced unnecessary and wrong ChronicleMapBuilder.entrySize() usage 2014-12-19 23:34:02 +07:00
leventov d196d01fda HCOLL-256 Fixed a bug in CharArrayMarshaller and made some other marshallers more robust 2014-12-16 20:41:46 +07:00
leventov 872d34e230 JLANG-39 HCOLL-214 refactored builders (leaved a single builder class), fixes in DataValueBytesMarshallers implementation 2014-12-11 20:31:57 +07:00
leventov dc449f1608 Check in Heap and Native generated impls of BondVOInterface for quicker reference 2014-12-06 00:06:55 +07:00
Peter Lawrey 1e40c765f8 Remove blank lines at the start of methods and loops. 2014-11-30 22:48:57 +02:00
Peter Lawrey 6d4b143903 Remove double and triple blank lines 2014-11-30 22:43:32 +02:00
Peter Lawrey 6fdfc9184c HCOLL-211 Add BytesMarshaller and improve handling of invalid sizes. 2014-11-30 14:18:45 +02:00
Rob Austin 84a9581c7f HCOLL-218 ReplicatedChronicleMapTest appears to use too much resources - I've looked at other tests as well and have attempted to ensure that close is called on every test, also prompting the GC to run after each test. 2014-11-26 16:24:57 +00:00
Rob Austin 49fc123755 HCOLL-81 made publicly a single ChronicleMapBuilder, that delegates onto internal implementations 2014-11-15 09:05:26 +00:00
Rob Austin e772737f36 HCOLL-81 renamed ChronicleMap to ChronicleMapOnHeapUpdatableBuilder as Peter wanted the OffHeapUpdated Builder to be the default ChronicleMapBuilder. 2014-11-14 12:59:03 +00:00
Peter Lawrey 014a5fd154 Update example with acquireUsingLocked and getUsingLocked. 2014-11-13 22:04:57 +00:00
leventov ea4e5bd506 Renamed tests to run in TC 2014-11-11 13:16:03 +03:00
leventov f96d369cdd HCOLL-136 HCOLL-137 Improved BytesReader, BytesWriter and BytesInterop docs [dc] 2014-11-07 14:16:31 +03:00
leventov 4a51b129a3 Many renames, API refactorings, classes/interfaces made private to net.openhft.chronicle.map package
Conflicts:
	src/main/java/net/openhft/chronicle/map/StatelessChronicleMap.java
	src/test/java/net/openhft/chronicle/map/ChronicleMapTest.java
2014-11-07 12:10:40 +03:00
Rob Austin 9dec1ed4db reverted cff7c5bea8 2014-11-04 14:44:59 +00:00
Rob Austin a0c89935f5 reverted cff7c5bea8 2014-11-04 14:29:06 +00:00
Peter Lawrey 4d7dd56c43 Use consistent hashing and thread local caches of StringBuilders. 2014-10-29 13:46:40 +00:00
leventov f7edfce81b HCOLL-159 moved net.openhft.chronicle.hash.threadlocal package to Lang since it isn't specific to ChronicleMap at all 2014-10-29 16:11:21 +03:00
Rob Austin 2f73cf1f39 renamed common to hash 2014-10-29 12:11:24 +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
Rob Austin 3e3689be39 HCOLL-167 moved serilization and exceptions to common 2014-10-20 18:19:15 +01:00
Rob Austin 8e57eeafc2 HCOLL-167 simplified the map builder by making "file" very much an option parameter, is it not REQUIRED for all types of maps. Also updated the many of the TCP replication test to remove the user of file() as its simply not required for this in many cases. 2014-10-20 17:19:27 +01:00
leventov d11e02d48f Moved seriaization and threadlocal packages up: n.o.chronicle.map -> n.o.chronicle 2014-10-19 21:13:13 +04:00
leventov 48e1d0a05e Added some CharSequence encoding examples for future seriaization docs 2014-10-19 21:01:02 +04:00
Rob Austin 30a1abef06 HCOLL-163 fixed some merge issues. 2014-10-13 17:59:54 +01:00
leventov 7d1e4dd2df HCOLL-156 changed default value object factory from AllocateInstanceObjectFactory to NewInstanceObjectFactory 2014-10-07 00:52:26 +04:00
Rob Austin 255af2987e HCOLL-152 - udpated the java version to 1.7 and added a random file name to -> File file = new File(TMP + "/chm-myBondPortfolioCHM-" + System.nanoTime()); 2014-10-04 15:16:14 +01:00
Rob Austin e6b1a41f75 HCOLL-152 - udpated the java version to 1.7 and added a random file name to -> File file = new File(TMP + "/chm-myBondPortfolioCHM-" + System.nanoTime()); 2014-10-04 15:04:08 +01:00
leventov a7750e6826 HCOLL-150 BondVOInterface example fixed 2014-10-04 09:08:49 +04:00
Rob Austin df1bb8356e HCOLL-134 improved test cases 2014-10-03 10:26:21 +01:00
leventov ea16356d46 New Chronicle-Map 2014-09-05 17:39:51 +04:00