Commit Graph
1377 Commits
Author SHA1 Message Date
leventov efe4a30a51 Tiny doc fixes 2016-04-12 14:38:33 +01:00
Peter Lawrey ffff33bed1 Reduce Thread.sleep to Jvm.pause, delays >= 1s to 500 ms, and remove "throws Exception" from tests 2016-04-12 12:08:14 +01:00
Peter Lawrey ceab61fd85 Rename Not Ready to Not Complete. Support reading Not COmplete messages unless being read from shared memory. 2016-04-12 11:39:23 +01:00
leventov 6baf11b5c4 Forbid primitive types as key/value types for Chronicle Map early 2016-04-05 16:17:34 +01:00
leventov 739796b90d Improve documentation 2016-03-23 20:09:43 +07:00
leventov 9530ec6795 Add Data.dataToString() method, already mentioned in tutorial 2016-03-19 18:04:22 +07:00
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 e081cb87ba Update Chronicle-Values dependency and try to check if some interface is a valueInterface before attempting to generate implementations 2016-03-12 21:33:23 +07:00
leventov 27d781c08d Optimize BytesMarshallable default serialization and add a test for it 2016-03-10 17:17:22 +07:00
leventov ce97577767 Fix a bug in ByteBufferDataAccess 2016-03-05 18:39:16 +07:00
leventov 1886bc1677 Fix da48414 2016-03-05 18:34:22 +07:00
leventov da48414126 Optimize SizedMarshallableDataAccess to avoid double data copy when writing values 2016-03-05 17:32:07 +07:00
leventov e2587f1ec5 Fixes in IntegerDataAccess, LongDataAccess and DoubleDataAccess 2016-03-05 16:14:28 +07:00
leventov b98a67211c Optimize Integer, Long and Double default serializers 2016-03-04 22:44:26 +07:00
leventov e677f07d46 Use Data.equivalent() method in KeySearch.keyEquals() (because it could be specialized to perform more efficiently), and switch arguments in Data.bytesEquivalent() usages, so that the first Data instance is more likely to optimized for comparison 2016-03-04 21:20:12 +07:00
leventov 08e21547a8 Optimize CharSequence, StringBuilder and String Chronicle Map's key or value type serialization 2016-03-04 21:19:56 +07:00
leventov 7fa9d23cd0 Remove unused serialVersionUID field 2016-03-04 13:29:11 +07:00
leventov f2ccfca801 Specify query operations 2016-02-28 21:33:31 +07:00
leventov dc4b578bef Lock the segment on the write level right away in HashQuery.doRemove() 2016-02-28 21:32:11 +07:00
leventov e37de00202 Reduce write lock scope as much as possible in relocation and remove operations 2016-02-26 20:55:47 +07:00
leventov ed4589a1f4 Removed unused code from VanillaChronicleHash.basicRecover() method 2016-02-24 16:44:36 +07:00
leventov 1a275288b5 Removed excessive code from ReplicatedMapAbsent.doInsert() method 2016-02-24 16:43:14 +07:00
leventov 820573a684 Add method CompactOffHeapLinearHashTable.readEntryVolatile() method and use it during key search 2016-02-20 16:38:59 +07:00
leventov 1ab147667d Remove unused methods in CompactOffHeapLinearHashTable and HashLookupPos 2016-02-20 16:13:27 +07:00
leventov 7b55f3aefd Pull nextTierIndex field from tier counters area to segment header 2016-02-20 15:43:46 +07:00
leventov a3c83e1c4a Require update lock level for checking entry checksum 2016-02-17 17:50:30 +07:00
leventov 4b58d21953 Refactor MapQuery.putPrefix() method 2016-02-17 17:14:39 +07:00
leventov 3594027fb5 Add HashEntryStages.closeEntry() 2016-02-17 16:55:15 +07:00
leventov 7293e5d7bb Remove REMOVED query state to reduce complexity 2016-02-16 20:40:47 +07:00
leventov 94af186ff5 Don't call MapEntryStages.readExistingEntry() until the key is found in initKeySearch() method 2016-02-16 20:40:45 +07:00
Roman Leventov a24c500bc7 Merge pull request #71 from DevFactory/release/default-encoding-should-not-be-used
Code quality fix - Classes and methods that rely on the default system encoding should not be used.
2016-02-16 18:27:05 +07:00
leventov 05ccde9671 Add dataStoreSize field to Chronicle Map's global mutable state 2016-02-13 21:27:30 +07:00
leventov e5c37a1e8f Update dependencies 2016-02-13 21:22:14 +07:00
Roman Leventov cfc9224d97 Merge pull request #70 from DevFactory/release/general-code-quality-fix-1
General code quality fix-1
2016-02-13 18:17:08 +07:00
leventov f8776281e7 Make comment attribution more clear 2016-02-13 17:59:33 +07:00
Roman Leventov 57881bfdfa Merge pull request #69 from DevFactory/release/collapsable-if-statements-should-be-merged
Code quality fix - Collapsible "if" statements should be merged.
2016-02-13 17:54:51 +07:00
Faisal Hameed 90ba1265ac Fixing squid:S1943- Classes and methods that rely on the default system encoding should not be used. 2016-02-12 10:25:45 +05:00
Faisal Hameed efd3e1f05a Fixing squid:S1066- Collapsible "if" statements should be merged. 2016-02-12 10:12:13 +05:00
Faisal Hameed ae058cdcbf Fixing squid:S1201- Methods named "equals" should override Object.equals(Object) 2016-02-12 09:50:37 +05:00
Faisal Hameed 06e3522d4a Fixing squid:S1596,squid:LowerCaseLongSuffixCheck 2016-02-12 09:45:35 +05:00
leventov 31d362fe2f Use OS.pageSize() instead of 4096 constant in ChronicleMapBuilder.segmentHeaderSize() method 2016-02-10 23:00:33 +07:00
leventov 6b030ab44e Refactor VanillaChronicleHash.allocateTier() method 2016-02-10 22:59:38 +07:00
leventov d7ed5b0153 Simplify parameter flow on VanillaChronicleHash initialization 2016-02-09 15:03:34 +07:00
leventov e2ec9db371 Register Chronicle Map's randomAccessFile cleaner only after all creation/recovery procedures complete, to avoid double release 2016-02-09 14:57:44 +07:00
leventov 001b710084 Raise IOException or ChronicleHashRecoveryFailed exception instead of generic RuntimeException in VanillaChronileHash.initBeforeMapping() method 2016-02-09 14:46:18 +07:00
leventov 189d40d1ca Don't write Chronicle Map ready bit into the header if the Map has just been read from disk without recovery 2016-02-09 14:35:06 +07:00
leventov 00819bff66 Use canonical RandomAccessFiles (=> FileChannels, too) to guarantee fileLocks are not released during critical operation, because some concurrent thread closes fileChannel on different instance of a map 2016-02-07 19:59:47 +07:00
leventov 64cf485b92 Reduce file locking synchronization scope 2016-02-07 19:04:40 +07:00
leventov be58427a9f Synchronize ChronicleMap creation persisted to some file within JVM 2016-02-05 21:47:46 +07:00
leventov e760af06d5 Make recovery procedure to be able to recovery Chronicle Map files with readiness bit not reached the disk 2016-02-05 19:55:10 +07:00