Commit Graph

41 Commits

Author SHA1 Message Date
liningrui 24ff820174 HugeGraph-994: Fixed bug that some key has more than one value will throw an assert exception
Change-Id: I72301a594afe311a6d744514fb8791ec6d6fc954
2018-08-09 09:56:06 +08:00
Zhangmei Li 7789bc87d8 HugeGraph-989: add toHex()/fromHex() to class Bytes
Change-Id: I3ef03ea58cdf2fe379e1dbf5b3e0877b4c379745
2018-08-09 09:56:05 +08:00
liningrui 65032356e9 HugeGraph-986: Let prefixOf support generic type
Change-Id: I7f02d3c3556ae6ae9f63888af7f33fe52e505862
2018-08-09 09:56:05 +08:00
liningrui 1804fa7ee1 HugeGraph-984: Fixed bug that multi graphs has same name config option will be overrided
Change-Id: Ia35570b52e00407de7e29e6e38aaf55a88f72c7a
2018-08-09 09:56:05 +08:00
Zhangmei Li 3d3da162de HugeGraph-978: add prefixWith() for bytes
Change-Id: I17a493ef0097f9208f4cfa3aad8bbd159283f4bb
2018-08-09 09:56:05 +08:00
Zhangmei Li b01f3a35df HugeGraph-975: support conversion: number <==> bytes
Change-Id: I8da23ab89f0e3eda99ec744904dd7ef06571a8e2
2018-08-09 09:56:05 +08:00
liningrui 094f8bb56b HugeGraph-935: Add a method 'allUnique'
Change-Id: Iebbcb8acb90844e82ae8e70b559a600543aaf6d8
2018-08-09 09:56:05 +08:00
zhangyi51 d8d4b3eba5 hugegraph-911 add prefixOf method into CollectionUtil
Change-Id: Ia917fc5ec5492547dee6b0477d9c3f947cddb71f
2018-08-09 09:56:04 +08:00
liningrui 5e003a7f2f HugeGraph-830: Catch IOException if create new socket connection failed. Note that, we should try to avoid catch Throwable since it not only catch all exceptions but also catch errors.
Change-Id: I72ae39058d737b1bbbeb70f4f05737fe95ed4ffc
2018-08-09 09:56:04 +08:00
Zhangmei Li 5195740642 HugeGraph-762: add isSimpleType() method to class ReflectionUtil
Change-Id: I7372c982dda9241d3d7d7b688d37d0403268e173
2018-08-09 09:56:04 +08:00
Zhangmei Li 12c53cc17b fix EventHub bugs: HugeGraph-732 and HugeGraph-733
Change-Id: I9395193680b986e543a0af3c08ce434b2b0e329c
2018-08-09 09:56:04 +08:00
Zhangmei Li 4d6c421358 HugeGraph-726: add toList(array) method into class CollectionUtil
Change-Id: Ia8a06f002e66f11935986284f587563ebc0c2257
2018-08-09 09:56:04 +08:00
liningrui 281aab85f2 HugeGraph-645: Add space line between license and package for hugegraph-common
Change-Id: I92a66e429382695b0f2a5742fb16299faace1616
2018-08-09 09:56:01 +08:00
liningrui c24069ee26 HugeGraph-625: fixed bug that there is a line length of more than 80 characters in the license information for hugegraph-common
Change-Id: Ic7cecaa7535f149060701fa16ff8e80f06cf363a
2018-08-09 09:55:33 +08:00
Zhangmei Li 504069e17f HugeGraph-623: rename LoggerFactory.getLogger() to Log.logger()
Change-Id: If9c03e3588334207870d710eba63f8bbf983e14e
2018-08-09 09:54:45 +08:00
Zhangmei Li 705c27b986 HugeGraph-555: add lockAll() for KeyLock
Change-Id: Iac0a396077658b82b67547e3eea5793d54fa01fd
2018-08-09 09:54:45 +08:00
Liu Jie f6cdc8a3ca HugeGraph-547: replace tilNextMillis by tillNextMills as the later is more meaningfull
Change-Id: I4505c1335bfc6eeb03658597f6f6ae5e994a2cf2
Signed-off-by: Liu Jie <liujie23@baidu.com>
2018-08-09 09:54:45 +08:00
Zhangmei Li 8bdac2c758 HugeGraph-525: add the const NAME of component hugegraph-common into CommonVersion
Change-Id: I5bcd766bb3435de98833759efcba5d3fa0650499
2018-08-09 09:54:45 +08:00
Zhangmei Li a200deab56 HugeGraph-131: clean up some warnings in LockGroup
Change-Id: I55a359b799119c04ea0e89d013f1c034453c2ba4
2018-08-09 09:54:45 +08:00
Zhangmei Li 5cda854e8d HugeGraph-525: add vertion check util
Change-Id: I57305dd209416620758b5bf183e791f8734af711
2018-08-09 09:54:45 +08:00
Liu Jie f33c09385d HugeGraph-532: Rewrite checksocket class
Change-Id: Iadae3837c2e9e0fddadbebbee097000c281e267c
Signed-off-by: Liu Jie <liujie23@baidu.com>
2018-08-09 09:54:44 +08:00
Liu Jie dec8fe9a84 HugeGraph-531: Fix typo at OptionHolder class
Change-Id: I19ea584802edd469d503b9fb57f630bf0c660487
Signed-off-by: Liu Jie <liujie23@baidu.com>
2018-08-09 09:54:44 +08:00
zhangyi51 6052985c15 hugegraph-502
add read write lock support

Change-Id: Ic339f5d81c9f475ee11ada38167fe42169c10971
2018-08-09 09:54:44 +08:00
zhangyi51 9faea02296 hugegraph-499
trivial grammar change.

Change-Id: Ice29a709b9a5b5d7f2f7838d79541f63cf00a0c5
2018-08-09 09:54:43 +08:00
Zhangmei Li 5252a7e481 HugeGraph-410: improve code style
Change-Id: Idce80465ea4cbe92ac836bbc8d293e77ad7c7c5c
2018-08-09 09:54:41 +08:00
Zhangmei Li 0c580690cc HugeGraph-501: fix EventHub ConcurrentModificationException
Change-Id: Idedff1ca762cd56f171152174bdbfb0bef4b8d4f
2018-08-09 09:53:56 +08:00
Liu Jie 315000a600 HugeGraph-503: using bit shift whenever, if not affect the code readability.
Change-Id: Ib36dc135241f77c99d39d458ee144dbe888c541b
Signed-off-by: Liu Jie <liujie23@baidu.com>
2018-08-09 09:53:56 +08:00
Liu Jie d3960c1da4 Always define long variable endwith 'L' indicator.
Change-Id: I5f4d4d5c823ea4e14a135b59fb2384299686b4d5
Signed-off-by: Liu Jie <liujie23@baidu.com>
2018-08-09 09:53:56 +08:00
Liu Jie 9778a8b4b3 HugeGrap-499: fix english grammer in lock
Change-Id: I36c123eb7dfb101f99a176fcd9b2ee1f0f0211d7
Signed-off-by: Liu Jie <liujie23@baidu.com>
2018-08-09 09:53:55 +08:00
Liu Jie 171e723f50 HugeGraph-494: refine logic of lock() menthod
Change-Id: Ic5298b36ecf68f3a2b87b35bd793953e6505a9ae
Signed-off-by: Liu Jie <liujie23@baidu.com>
2018-08-09 09:53:55 +08:00
zhangyi51 9a1417f3dc HugeGraph-487
Add lockManager for mutual exclusion of thread in long time operation.

Change-Id: I155e2b6bb6fffe88e4985c85d8ff68f9c49d04be
2018-08-09 09:53:55 +08:00
Zhangmei Li 9cc9cad29a HugeGraph-476: add destroy() method
Change-Id: I745465ef6f3942f1e6774bacc1e59a1e5a0b200e
2018-08-09 09:53:55 +08:00
Zhangmei Li e88f54a21e HugeGraph-462: add event manager
Change-Id: I471a115fca5c84f8f25c7026fe834be305ab39b6
2018-08-09 09:53:55 +08:00
zhangyi51 ec2599db9a HugeGraph-369
Add lockManager for mutual exclusion of thread in long time operation.

Change-Id: I155e2b6bb6fffe88e4965c85d8ff68f9c49d04be
2018-08-09 09:53:55 +08:00
Zhangmei Li d592690cf7 HugeGraph-254: improve utils class perf with final(inline)
Change-Id: I625be2f4691a7821dbf3107d0f28ce079d46dfee
2018-08-09 09:53:51 +08:00
liningrui 36959044a1 HugeGraph-410: fixed code style of hugegraph-common
Change-Id: I8e123a315e483ed66658ce93c3eaffa61d94cfb3
2018-08-09 09:52:44 +08:00
Zhangmei Li 7bdf878dd4 HugeGraph-407: add KeyLock class
Change-Id: I655bdf4da20e0c6b6d7796958485ab066f0020f1
2018-08-09 09:52:44 +08:00
liningrui cccef5d575 HugeGraph-357: modify return type of TriFunction
Change-Id: I8cfd2dce48e2901af4773ea0c8d867edd6d21562
2018-08-09 09:52:44 +08:00
liningrui db55e237a5 HugeGraph-351: fixed bug that CoreOption constructor has been removed
Change-Id: I04cc0107aec90440ee2ae8c5c6add8a7c787f4f4
2018-08-09 09:52:44 +08:00
liningrui 3e5f626d11 HugeGraph-351: code format and clean up some warnings
Change-Id: I16d328738ead94efcad9d82bb8f27be2c4ca84a9
2018-08-09 09:52:43 +08:00
liningrui a5fa9016ec HugeGraph-341: First commit hugegraph-common code
Change-Id: Icc8f9121d56679b266459125afc33180d8b568bf
2018-08-09 09:52:28 +08:00