@celerispay/hazelcast-client 3.12.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.nvmrc +1 -0
- package/CHANGELOG.md +116 -0
- package/CONFIG.md +503 -0
- package/FAILOVER_FIXES.md +284 -0
- package/LICENSE +202 -0
- package/QUICK_START.md +143 -0
- package/README.md +178 -0
- package/RELEASE_SUMMARY.md +180 -0
- package/config-schema.json +343 -0
- package/hazelcast-client-default.json +56 -0
- package/hazelcast-client-full.json +137 -0
- package/lib/Address.d.ts +17 -0
- package/lib/Address.js +65 -0
- package/lib/BitsUtil.d.ts +69 -0
- package/lib/BitsUtil.js +202 -0
- package/lib/BuildInfo.d.ts +9 -0
- package/lib/BuildInfo.js +53 -0
- package/lib/ClientInfo.d.ts +15 -0
- package/lib/ClientInfo.js +27 -0
- package/lib/ClientMessage.d.ts +52 -0
- package/lib/ClientMessage.js +217 -0
- package/lib/ClusterDataFactory.d.ts +4 -0
- package/lib/ClusterDataFactory.js +31 -0
- package/lib/ClusterDataFactoryHelper.d.ts +5 -0
- package/lib/ClusterDataFactoryHelper.js +26 -0
- package/lib/DataStoreHashMap.d.ts +20 -0
- package/lib/DataStoreHashMap.js +112 -0
- package/lib/DistributedObject.d.ts +22 -0
- package/lib/DistributedObject.js +17 -0
- package/lib/HazelcastClient.d.ts +201 -0
- package/lib/HazelcastClient.js +370 -0
- package/lib/HazelcastError.d.ts +114 -0
- package/lib/HazelcastError.js +389 -0
- package/lib/HeartbeatService.d.ts +30 -0
- package/lib/HeartbeatService.js +108 -0
- package/lib/LifecycleService.d.ts +32 -0
- package/lib/LifecycleService.js +105 -0
- package/lib/ListenerMessageCodec.d.ts +6 -0
- package/lib/ListenerMessageCodec.js +17 -0
- package/lib/ListenerService.d.ts +35 -0
- package/lib/ListenerService.js +233 -0
- package/lib/LockReferenceIdGenerator.d.ts +6 -0
- package/lib/LockReferenceIdGenerator.js +29 -0
- package/lib/PartitionService.d.ts +38 -0
- package/lib/PartitionService.js +118 -0
- package/lib/Util.d.ts +47 -0
- package/lib/Util.js +351 -0
- package/lib/aggregation/Aggregator.d.ts +74 -0
- package/lib/aggregation/Aggregator.js +277 -0
- package/lib/aggregation/AggregatorFactory.d.ts +26 -0
- package/lib/aggregation/AggregatorFactory.js +66 -0
- package/lib/aggregation/Aggregators.d.ts +96 -0
- package/lib/aggregation/Aggregators.js +149 -0
- package/lib/codec/AddressCodec.d.ts +6 -0
- package/lib/codec/AddressCodec.js +33 -0
- package/lib/codec/AtomicLongAddAndGetCodec.d.ts +7 -0
- package/lib/codec/AtomicLongAddAndGetCodec.js +56 -0
- package/lib/codec/AtomicLongCompareAndSetCodec.d.ts +7 -0
- package/lib/codec/AtomicLongCompareAndSetCodec.js +58 -0
- package/lib/codec/AtomicLongDecrementAndGetCodec.d.ts +7 -0
- package/lib/codec/AtomicLongDecrementAndGetCodec.js +54 -0
- package/lib/codec/AtomicLongGetAndAddCodec.d.ts +7 -0
- package/lib/codec/AtomicLongGetAndAddCodec.js +56 -0
- package/lib/codec/AtomicLongGetAndIncrementCodec.d.ts +7 -0
- package/lib/codec/AtomicLongGetAndIncrementCodec.js +54 -0
- package/lib/codec/AtomicLongGetAndSetCodec.d.ts +7 -0
- package/lib/codec/AtomicLongGetAndSetCodec.js +56 -0
- package/lib/codec/AtomicLongGetCodec.d.ts +7 -0
- package/lib/codec/AtomicLongGetCodec.js +54 -0
- package/lib/codec/AtomicLongIncrementAndGetCodec.d.ts +7 -0
- package/lib/codec/AtomicLongIncrementAndGetCodec.js +54 -0
- package/lib/codec/AtomicLongMessageType.d.ts +15 -0
- package/lib/codec/AtomicLongMessageType.js +37 -0
- package/lib/codec/AtomicLongSetCodec.d.ts +5 -0
- package/lib/codec/AtomicLongSetCodec.js +47 -0
- package/lib/codec/ClientAddDistributedObjectListenerCodec.d.ts +8 -0
- package/lib/codec/ClientAddDistributedObjectListenerCodec.js +74 -0
- package/lib/codec/ClientAddMembershipListenerCodec.d.ts +8 -0
- package/lib/codec/ClientAddMembershipListenerCodec.js +107 -0
- package/lib/codec/ClientAuthenticationCodec.d.ts +7 -0
- package/lib/codec/ClientAuthenticationCodec.js +114 -0
- package/lib/codec/ClientAuthenticationCustomCodec.d.ts +7 -0
- package/lib/codec/ClientAuthenticationCustomCodec.js +112 -0
- package/lib/codec/ClientCreateProxyCodec.d.ts +6 -0
- package/lib/codec/ClientCreateProxyCodec.js +50 -0
- package/lib/codec/ClientDestroyProxyCodec.d.ts +5 -0
- package/lib/codec/ClientDestroyProxyCodec.js +47 -0
- package/lib/codec/ClientGetDistributedObjectsCodec.d.ts +7 -0
- package/lib/codec/ClientGetDistributedObjectsCodec.js +59 -0
- package/lib/codec/ClientMessageType.d.ts +18 -0
- package/lib/codec/ClientMessageType.js +40 -0
- package/lib/codec/ClientPingCodec.d.ts +5 -0
- package/lib/codec/ClientPingCodec.js +42 -0
- package/lib/codec/ClientRemoveDistributedObjectListenerCodec.d.ts +7 -0
- package/lib/codec/ClientRemoveDistributedObjectListenerCodec.js +54 -0
- package/lib/codec/ClientStatisticsCodec.d.ts +5 -0
- package/lib/codec/ClientStatisticsCodec.js +42 -0
- package/lib/codec/DistributedObjectInfoCodec.d.ts +5 -0
- package/lib/codec/DistributedObjectInfoCodec.js +27 -0
- package/lib/codec/EntryViewCodec.d.ts +7 -0
- package/lib/codec/EntryViewCodec.js +56 -0
- package/lib/codec/FlakeIdGeneratorMessageType.d.ts +3 -0
- package/lib/codec/FlakeIdGeneratorMessageType.js +25 -0
- package/lib/codec/FlakeIdGeneratorNewIdBatchCodec.d.ts +7 -0
- package/lib/codec/FlakeIdGeneratorNewIdBatchCodec.js +60 -0
- package/lib/codec/GetPartitionsCodec.d.ts +9 -0
- package/lib/codec/GetPartitionsCodec.js +45 -0
- package/lib/codec/ListAddAllCodec.d.ts +7 -0
- package/lib/codec/ListAddAllCodec.js +62 -0
- package/lib/codec/ListAddAllWithIndexCodec.d.ts +7 -0
- package/lib/codec/ListAddAllWithIndexCodec.js +64 -0
- package/lib/codec/ListAddCodec.d.ts +7 -0
- package/lib/codec/ListAddCodec.js +56 -0
- package/lib/codec/ListAddListenerCodec.d.ts +8 -0
- package/lib/codec/ListAddListenerCodec.js +80 -0
- package/lib/codec/ListAddWithIndexCodec.d.ts +6 -0
- package/lib/codec/ListAddWithIndexCodec.js +49 -0
- package/lib/codec/ListClearCodec.d.ts +5 -0
- package/lib/codec/ListClearCodec.js +45 -0
- package/lib/codec/ListCompareAndRemoveAllCodec.d.ts +7 -0
- package/lib/codec/ListCompareAndRemoveAllCodec.js +62 -0
- package/lib/codec/ListCompareAndRetainAllCodec.d.ts +7 -0
- package/lib/codec/ListCompareAndRetainAllCodec.js +62 -0
- package/lib/codec/ListContainsAllCodec.d.ts +7 -0
- package/lib/codec/ListContainsAllCodec.js +62 -0
- package/lib/codec/ListContainsCodec.d.ts +7 -0
- package/lib/codec/ListContainsCodec.js +56 -0
- package/lib/codec/ListGetAllCodec.d.ts +7 -0
- package/lib/codec/ListGetAllCodec.js +61 -0
- package/lib/codec/ListGetCodec.d.ts +7 -0
- package/lib/codec/ListGetCodec.js +58 -0
- package/lib/codec/ListIndexOfCodec.d.ts +7 -0
- package/lib/codec/ListIndexOfCodec.js +56 -0
- package/lib/codec/ListIsEmptyCodec.d.ts +7 -0
- package/lib/codec/ListIsEmptyCodec.js +54 -0
- package/lib/codec/ListLastIndexOfCodec.d.ts +7 -0
- package/lib/codec/ListLastIndexOfCodec.js +56 -0
- package/lib/codec/ListMessageType.d.ts +25 -0
- package/lib/codec/ListMessageType.js +47 -0
- package/lib/codec/ListRemoveCodec.d.ts +7 -0
- package/lib/codec/ListRemoveCodec.js +56 -0
- package/lib/codec/ListRemoveListenerCodec.d.ts +7 -0
- package/lib/codec/ListRemoveListenerCodec.js +56 -0
- package/lib/codec/ListRemoveWithIndexCodec.d.ts +7 -0
- package/lib/codec/ListRemoveWithIndexCodec.js +58 -0
- package/lib/codec/ListSetCodec.d.ts +7 -0
- package/lib/codec/ListSetCodec.js +60 -0
- package/lib/codec/ListSizeCodec.d.ts +7 -0
- package/lib/codec/ListSizeCodec.js +54 -0
- package/lib/codec/ListSubCodec.d.ts +7 -0
- package/lib/codec/ListSubCodec.js +65 -0
- package/lib/codec/LockForceUnlockCodec.d.ts +5 -0
- package/lib/codec/LockForceUnlockCodec.js +47 -0
- package/lib/codec/LockGetLockCountCodec.d.ts +7 -0
- package/lib/codec/LockGetLockCountCodec.js +54 -0
- package/lib/codec/LockGetRemainingLeaseTimeCodec.d.ts +7 -0
- package/lib/codec/LockGetRemainingLeaseTimeCodec.js +54 -0
- package/lib/codec/LockIsLockedByCurrentThreadCodec.d.ts +7 -0
- package/lib/codec/LockIsLockedByCurrentThreadCodec.js +56 -0
- package/lib/codec/LockIsLockedCodec.d.ts +7 -0
- package/lib/codec/LockIsLockedCodec.js +54 -0
- package/lib/codec/LockLockCodec.d.ts +5 -0
- package/lib/codec/LockLockCodec.js +51 -0
- package/lib/codec/LockMessageType.d.ts +10 -0
- package/lib/codec/LockMessageType.js +32 -0
- package/lib/codec/LockTryLockCodec.d.ts +7 -0
- package/lib/codec/LockTryLockCodec.js +62 -0
- package/lib/codec/LockUnlockCodec.d.ts +5 -0
- package/lib/codec/LockUnlockCodec.js +49 -0
- package/lib/codec/MapAddEntryListenerCodec.d.ts +8 -0
- package/lib/codec/MapAddEntryListenerCodec.js +104 -0
- package/lib/codec/MapAddEntryListenerToKeyCodec.d.ts +8 -0
- package/lib/codec/MapAddEntryListenerToKeyCodec.js +106 -0
- package/lib/codec/MapAddEntryListenerToKeyWithPredicateCodec.d.ts +8 -0
- package/lib/codec/MapAddEntryListenerToKeyWithPredicateCodec.js +108 -0
- package/lib/codec/MapAddEntryListenerWithPredicateCodec.d.ts +8 -0
- package/lib/codec/MapAddEntryListenerWithPredicateCodec.js +106 -0
- package/lib/codec/MapAddIndexCodec.d.ts +5 -0
- package/lib/codec/MapAddIndexCodec.js +49 -0
- package/lib/codec/MapAddNearCacheEntryListenerCodec.d.ts +8 -0
- package/lib/codec/MapAddNearCacheEntryListenerCodec.js +135 -0
- package/lib/codec/MapAddNearCacheInvalidationListenerCodec.d.ts +8 -0
- package/lib/codec/MapAddNearCacheInvalidationListenerCodec.js +138 -0
- package/lib/codec/MapAggregateCodec.d.ts +7 -0
- package/lib/codec/MapAggregateCodec.js +61 -0
- package/lib/codec/MapAggregateWithPredicateCodec.d.ts +7 -0
- package/lib/codec/MapAggregateWithPredicateCodec.js +63 -0
- package/lib/codec/MapClearCodec.d.ts +5 -0
- package/lib/codec/MapClearCodec.js +45 -0
- package/lib/codec/MapContainsKeyCodec.d.ts +7 -0
- package/lib/codec/MapContainsKeyCodec.js +58 -0
- package/lib/codec/MapContainsValueCodec.d.ts +7 -0
- package/lib/codec/MapContainsValueCodec.js +56 -0
- package/lib/codec/MapDeleteCodec.d.ts +6 -0
- package/lib/codec/MapDeleteCodec.js +49 -0
- package/lib/codec/MapEntriesWithPredicateCodec.d.ts +7 -0
- package/lib/codec/MapEntriesWithPredicateCodec.js +67 -0
- package/lib/codec/MapEntrySetCodec.d.ts +7 -0
- package/lib/codec/MapEntrySetCodec.js +65 -0
- package/lib/codec/MapEvictAllCodec.d.ts +5 -0
- package/lib/codec/MapEvictAllCodec.js +45 -0
- package/lib/codec/MapEvictCodec.d.ts +7 -0
- package/lib/codec/MapEvictCodec.js +58 -0
- package/lib/codec/MapExecuteOnAllKeysCodec.d.ts +7 -0
- package/lib/codec/MapExecuteOnAllKeysCodec.js +67 -0
- package/lib/codec/MapExecuteOnKeyCodec.d.ts +7 -0
- package/lib/codec/MapExecuteOnKeyCodec.js +62 -0
- package/lib/codec/MapExecuteOnKeysCodec.d.ts +7 -0
- package/lib/codec/MapExecuteOnKeysCodec.js +75 -0
- package/lib/codec/MapExecuteWithPredicateCodec.d.ts +7 -0
- package/lib/codec/MapExecuteWithPredicateCodec.js +69 -0
- package/lib/codec/MapFetchNearCacheInvalidationMetadataCodec.d.ts +8 -0
- package/lib/codec/MapFetchNearCacheInvalidationMetadataCodec.js +101 -0
- package/lib/codec/MapFlushCodec.d.ts +5 -0
- package/lib/codec/MapFlushCodec.js +45 -0
- package/lib/codec/MapForceUnlockCodec.d.ts +6 -0
- package/lib/codec/MapForceUnlockCodec.js +49 -0
- package/lib/codec/MapGetAllCodec.d.ts +7 -0
- package/lib/codec/MapGetAllCodec.js +73 -0
- package/lib/codec/MapGetCodec.d.ts +7 -0
- package/lib/codec/MapGetCodec.js +60 -0
- package/lib/codec/MapGetEntryViewCodec.d.ts +7 -0
- package/lib/codec/MapGetEntryViewCodec.js +61 -0
- package/lib/codec/MapIsEmptyCodec.d.ts +7 -0
- package/lib/codec/MapIsEmptyCodec.js +54 -0
- package/lib/codec/MapIsLockedCodec.d.ts +7 -0
- package/lib/codec/MapIsLockedCodec.js +56 -0
- package/lib/codec/MapKeySetCodec.d.ts +7 -0
- package/lib/codec/MapKeySetCodec.js +61 -0
- package/lib/codec/MapKeySetWithPagingPredicateCodec.d.ts +7 -0
- package/lib/codec/MapKeySetWithPagingPredicateCodec.js +63 -0
- package/lib/codec/MapKeySetWithPredicateCodec.d.ts +7 -0
- package/lib/codec/MapKeySetWithPredicateCodec.js +63 -0
- package/lib/codec/MapLoadAllCodec.d.ts +5 -0
- package/lib/codec/MapLoadAllCodec.js +47 -0
- package/lib/codec/MapLoadGivenKeysCodec.d.ts +5 -0
- package/lib/codec/MapLoadGivenKeysCodec.js +55 -0
- package/lib/codec/MapLockCodec.d.ts +6 -0
- package/lib/codec/MapLockCodec.js +53 -0
- package/lib/codec/MapMessageType.d.ts +71 -0
- package/lib/codec/MapMessageType.js +93 -0
- package/lib/codec/MapPutAllCodec.d.ts +5 -0
- package/lib/codec/MapPutAllCodec.js +59 -0
- package/lib/codec/MapPutCodec.d.ts +7 -0
- package/lib/codec/MapPutCodec.js +64 -0
- package/lib/codec/MapPutIfAbsentCodec.d.ts +7 -0
- package/lib/codec/MapPutIfAbsentCodec.js +64 -0
- package/lib/codec/MapPutTransientCodec.d.ts +6 -0
- package/lib/codec/MapPutTransientCodec.js +53 -0
- package/lib/codec/MapRemoveCodec.d.ts +7 -0
- package/lib/codec/MapRemoveCodec.js +60 -0
- package/lib/codec/MapRemoveEntryListenerCodec.d.ts +7 -0
- package/lib/codec/MapRemoveEntryListenerCodec.js +56 -0
- package/lib/codec/MapRemoveIfSameCodec.d.ts +7 -0
- package/lib/codec/MapRemoveIfSameCodec.js +60 -0
- package/lib/codec/MapReplaceCodec.d.ts +7 -0
- package/lib/codec/MapReplaceCodec.js +62 -0
- package/lib/codec/MapReplaceIfSameCodec.d.ts +7 -0
- package/lib/codec/MapReplaceIfSameCodec.js +62 -0
- package/lib/codec/MapSetCodec.d.ts +6 -0
- package/lib/codec/MapSetCodec.js +53 -0
- package/lib/codec/MapSizeCodec.d.ts +7 -0
- package/lib/codec/MapSizeCodec.js +54 -0
- package/lib/codec/MapTryLockCodec.d.ts +7 -0
- package/lib/codec/MapTryLockCodec.js +64 -0
- package/lib/codec/MapTryPutCodec.d.ts +7 -0
- package/lib/codec/MapTryPutCodec.js +62 -0
- package/lib/codec/MapTryRemoveCodec.d.ts +7 -0
- package/lib/codec/MapTryRemoveCodec.js +60 -0
- package/lib/codec/MapUnlockCodec.d.ts +6 -0
- package/lib/codec/MapUnlockCodec.js +51 -0
- package/lib/codec/MapValuesCodec.d.ts +7 -0
- package/lib/codec/MapValuesCodec.js +61 -0
- package/lib/codec/MapValuesWithPagingPredicateCodec.d.ts +7 -0
- package/lib/codec/MapValuesWithPagingPredicateCodec.js +67 -0
- package/lib/codec/MapValuesWithPredicateCodec.d.ts +7 -0
- package/lib/codec/MapValuesWithPredicateCodec.js +63 -0
- package/lib/codec/MemberCodec.d.ts +6 -0
- package/lib/codec/MemberCodec.js +49 -0
- package/lib/codec/MultiMapAddEntryListenerCodec.d.ts +8 -0
- package/lib/codec/MultiMapAddEntryListenerCodec.js +102 -0
- package/lib/codec/MultiMapAddEntryListenerToKeyCodec.d.ts +8 -0
- package/lib/codec/MultiMapAddEntryListenerToKeyCodec.js +104 -0
- package/lib/codec/MultiMapClearCodec.d.ts +5 -0
- package/lib/codec/MultiMapClearCodec.js +45 -0
- package/lib/codec/MultiMapContainsEntryCodec.d.ts +7 -0
- package/lib/codec/MultiMapContainsEntryCodec.js +60 -0
- package/lib/codec/MultiMapContainsKeyCodec.d.ts +7 -0
- package/lib/codec/MultiMapContainsKeyCodec.js +58 -0
- package/lib/codec/MultiMapContainsValueCodec.d.ts +7 -0
- package/lib/codec/MultiMapContainsValueCodec.js +56 -0
- package/lib/codec/MultiMapEntrySetCodec.d.ts +7 -0
- package/lib/codec/MultiMapEntrySetCodec.js +65 -0
- package/lib/codec/MultiMapForceUnlockCodec.d.ts +6 -0
- package/lib/codec/MultiMapForceUnlockCodec.js +49 -0
- package/lib/codec/MultiMapGetCodec.d.ts +7 -0
- package/lib/codec/MultiMapGetCodec.js +65 -0
- package/lib/codec/MultiMapIsLockedCodec.d.ts +7 -0
- package/lib/codec/MultiMapIsLockedCodec.js +56 -0
- package/lib/codec/MultiMapKeySetCodec.d.ts +7 -0
- package/lib/codec/MultiMapKeySetCodec.js +61 -0
- package/lib/codec/MultiMapLockCodec.d.ts +6 -0
- package/lib/codec/MultiMapLockCodec.js +53 -0
- package/lib/codec/MultiMapMessageType.d.ts +23 -0
- package/lib/codec/MultiMapMessageType.js +45 -0
- package/lib/codec/MultiMapPutCodec.d.ts +7 -0
- package/lib/codec/MultiMapPutCodec.js +60 -0
- package/lib/codec/MultiMapRemoveCodec.d.ts +7 -0
- package/lib/codec/MultiMapRemoveCodec.js +65 -0
- package/lib/codec/MultiMapRemoveEntryCodec.d.ts +7 -0
- package/lib/codec/MultiMapRemoveEntryCodec.js +60 -0
- package/lib/codec/MultiMapRemoveEntryListenerCodec.d.ts +7 -0
- package/lib/codec/MultiMapRemoveEntryListenerCodec.js +56 -0
- package/lib/codec/MultiMapSizeCodec.d.ts +7 -0
- package/lib/codec/MultiMapSizeCodec.js +54 -0
- package/lib/codec/MultiMapTryLockCodec.d.ts +7 -0
- package/lib/codec/MultiMapTryLockCodec.js +64 -0
- package/lib/codec/MultiMapUnlockCodec.d.ts +6 -0
- package/lib/codec/MultiMapUnlockCodec.js +51 -0
- package/lib/codec/MultiMapValueCountCodec.d.ts +7 -0
- package/lib/codec/MultiMapValueCountCodec.js +58 -0
- package/lib/codec/MultiMapValuesCodec.d.ts +7 -0
- package/lib/codec/MultiMapValuesCodec.js +61 -0
- package/lib/codec/PNCounterAddCodec.d.ts +8 -0
- package/lib/codec/PNCounterAddCodec.js +90 -0
- package/lib/codec/PNCounterGetCodec.d.ts +8 -0
- package/lib/codec/PNCounterGetCodec.js +86 -0
- package/lib/codec/PNCounterGetConfiguredReplicaCountCodec.d.ts +7 -0
- package/lib/codec/PNCounterGetConfiguredReplicaCountCodec.js +54 -0
- package/lib/codec/PNCounterMessageType.d.ts +5 -0
- package/lib/codec/PNCounterMessageType.js +27 -0
- package/lib/codec/QueueAddAllCodec.d.ts +7 -0
- package/lib/codec/QueueAddAllCodec.js +62 -0
- package/lib/codec/QueueAddListenerCodec.d.ts +8 -0
- package/lib/codec/QueueAddListenerCodec.js +80 -0
- package/lib/codec/QueueClearCodec.d.ts +5 -0
- package/lib/codec/QueueClearCodec.js +45 -0
- package/lib/codec/QueueCompareAndRemoveAllCodec.d.ts +7 -0
- package/lib/codec/QueueCompareAndRemoveAllCodec.js +62 -0
- package/lib/codec/QueueCompareAndRetainAllCodec.d.ts +7 -0
- package/lib/codec/QueueCompareAndRetainAllCodec.js +62 -0
- package/lib/codec/QueueContainsAllCodec.d.ts +7 -0
- package/lib/codec/QueueContainsAllCodec.js +62 -0
- package/lib/codec/QueueContainsCodec.d.ts +7 -0
- package/lib/codec/QueueContainsCodec.js +56 -0
- package/lib/codec/QueueDrainToCodec.d.ts +7 -0
- package/lib/codec/QueueDrainToCodec.js +61 -0
- package/lib/codec/QueueDrainToMaxSizeCodec.d.ts +7 -0
- package/lib/codec/QueueDrainToMaxSizeCodec.js +63 -0
- package/lib/codec/QueueIsEmptyCodec.d.ts +7 -0
- package/lib/codec/QueueIsEmptyCodec.js +54 -0
- package/lib/codec/QueueIteratorCodec.d.ts +7 -0
- package/lib/codec/QueueIteratorCodec.js +61 -0
- package/lib/codec/QueueMessageType.d.ts +22 -0
- package/lib/codec/QueueMessageType.js +44 -0
- package/lib/codec/QueueOfferCodec.d.ts +7 -0
- package/lib/codec/QueueOfferCodec.js +58 -0
- package/lib/codec/QueuePeekCodec.d.ts +7 -0
- package/lib/codec/QueuePeekCodec.js +56 -0
- package/lib/codec/QueuePollCodec.d.ts +7 -0
- package/lib/codec/QueuePollCodec.js +58 -0
- package/lib/codec/QueuePutCodec.d.ts +6 -0
- package/lib/codec/QueuePutCodec.js +47 -0
- package/lib/codec/QueueRemainingCapacityCodec.d.ts +7 -0
- package/lib/codec/QueueRemainingCapacityCodec.js +54 -0
- package/lib/codec/QueueRemoveCodec.d.ts +7 -0
- package/lib/codec/QueueRemoveCodec.js +56 -0
- package/lib/codec/QueueRemoveListenerCodec.d.ts +7 -0
- package/lib/codec/QueueRemoveListenerCodec.js +56 -0
- package/lib/codec/QueueSizeCodec.d.ts +7 -0
- package/lib/codec/QueueSizeCodec.js +54 -0
- package/lib/codec/QueueTakeCodec.d.ts +7 -0
- package/lib/codec/QueueTakeCodec.js +56 -0
- package/lib/codec/ReplicatedMapAddEntryListenerCodec.d.ts +8 -0
- package/lib/codec/ReplicatedMapAddEntryListenerCodec.js +100 -0
- package/lib/codec/ReplicatedMapAddEntryListenerToKeyCodec.d.ts +8 -0
- package/lib/codec/ReplicatedMapAddEntryListenerToKeyCodec.js +102 -0
- package/lib/codec/ReplicatedMapAddEntryListenerToKeyWithPredicateCodec.d.ts +8 -0
- package/lib/codec/ReplicatedMapAddEntryListenerToKeyWithPredicateCodec.js +104 -0
- package/lib/codec/ReplicatedMapAddEntryListenerWithPredicateCodec.d.ts +8 -0
- package/lib/codec/ReplicatedMapAddEntryListenerWithPredicateCodec.js +102 -0
- package/lib/codec/ReplicatedMapClearCodec.d.ts +5 -0
- package/lib/codec/ReplicatedMapClearCodec.js +45 -0
- package/lib/codec/ReplicatedMapContainsKeyCodec.d.ts +7 -0
- package/lib/codec/ReplicatedMapContainsKeyCodec.js +56 -0
- package/lib/codec/ReplicatedMapContainsValueCodec.d.ts +7 -0
- package/lib/codec/ReplicatedMapContainsValueCodec.js +56 -0
- package/lib/codec/ReplicatedMapEntrySetCodec.d.ts +7 -0
- package/lib/codec/ReplicatedMapEntrySetCodec.js +65 -0
- package/lib/codec/ReplicatedMapGetCodec.d.ts +7 -0
- package/lib/codec/ReplicatedMapGetCodec.js +58 -0
- package/lib/codec/ReplicatedMapIsEmptyCodec.d.ts +7 -0
- package/lib/codec/ReplicatedMapIsEmptyCodec.js +54 -0
- package/lib/codec/ReplicatedMapKeySetCodec.d.ts +7 -0
- package/lib/codec/ReplicatedMapKeySetCodec.js +61 -0
- package/lib/codec/ReplicatedMapMessageType.d.ts +20 -0
- package/lib/codec/ReplicatedMapMessageType.js +42 -0
- package/lib/codec/ReplicatedMapPutAllCodec.d.ts +5 -0
- package/lib/codec/ReplicatedMapPutAllCodec.js +59 -0
- package/lib/codec/ReplicatedMapPutCodec.d.ts +7 -0
- package/lib/codec/ReplicatedMapPutCodec.js +62 -0
- package/lib/codec/ReplicatedMapRemoveCodec.d.ts +7 -0
- package/lib/codec/ReplicatedMapRemoveCodec.js +58 -0
- package/lib/codec/ReplicatedMapRemoveEntryListenerCodec.d.ts +7 -0
- package/lib/codec/ReplicatedMapRemoveEntryListenerCodec.js +56 -0
- package/lib/codec/ReplicatedMapSizeCodec.d.ts +7 -0
- package/lib/codec/ReplicatedMapSizeCodec.js +54 -0
- package/lib/codec/ReplicatedMapValuesCodec.d.ts +7 -0
- package/lib/codec/ReplicatedMapValuesCodec.js +61 -0
- package/lib/codec/RingbufferAddAllCodec.d.ts +7 -0
- package/lib/codec/RingbufferAddAllCodec.js +64 -0
- package/lib/codec/RingbufferAddCodec.d.ts +7 -0
- package/lib/codec/RingbufferAddCodec.js +58 -0
- package/lib/codec/RingbufferCapacityCodec.d.ts +7 -0
- package/lib/codec/RingbufferCapacityCodec.js +54 -0
- package/lib/codec/RingbufferHeadSequenceCodec.d.ts +7 -0
- package/lib/codec/RingbufferHeadSequenceCodec.js +54 -0
- package/lib/codec/RingbufferMessageType.d.ts +11 -0
- package/lib/codec/RingbufferMessageType.js +33 -0
- package/lib/codec/RingbufferReadManyCodec.d.ts +7 -0
- package/lib/codec/RingbufferReadManyCodec.js +92 -0
- package/lib/codec/RingbufferReadOneCodec.d.ts +7 -0
- package/lib/codec/RingbufferReadOneCodec.js +58 -0
- package/lib/codec/RingbufferRemainingCapacityCodec.d.ts +7 -0
- package/lib/codec/RingbufferRemainingCapacityCodec.js +54 -0
- package/lib/codec/RingbufferSizeCodec.d.ts +7 -0
- package/lib/codec/RingbufferSizeCodec.js +54 -0
- package/lib/codec/RingbufferTailSequenceCodec.d.ts +7 -0
- package/lib/codec/RingbufferTailSequenceCodec.js +54 -0
- package/lib/codec/SemaphoreAcquireCodec.d.ts +5 -0
- package/lib/codec/SemaphoreAcquireCodec.js +47 -0
- package/lib/codec/SemaphoreAvailablePermitsCodec.d.ts +7 -0
- package/lib/codec/SemaphoreAvailablePermitsCodec.js +54 -0
- package/lib/codec/SemaphoreDrainPermitsCodec.d.ts +7 -0
- package/lib/codec/SemaphoreDrainPermitsCodec.js +54 -0
- package/lib/codec/SemaphoreInitCodec.d.ts +7 -0
- package/lib/codec/SemaphoreInitCodec.js +56 -0
- package/lib/codec/SemaphoreMessageType.d.ts +9 -0
- package/lib/codec/SemaphoreMessageType.js +31 -0
- package/lib/codec/SemaphoreReducePermitsCodec.d.ts +5 -0
- package/lib/codec/SemaphoreReducePermitsCodec.js +47 -0
- package/lib/codec/SemaphoreReleaseCodec.d.ts +5 -0
- package/lib/codec/SemaphoreReleaseCodec.js +47 -0
- package/lib/codec/SemaphoreTryAcquireCodec.d.ts +7 -0
- package/lib/codec/SemaphoreTryAcquireCodec.js +58 -0
- package/lib/codec/SetAddAllCodec.d.ts +7 -0
- package/lib/codec/SetAddAllCodec.js +62 -0
- package/lib/codec/SetAddCodec.d.ts +7 -0
- package/lib/codec/SetAddCodec.js +56 -0
- package/lib/codec/SetAddListenerCodec.d.ts +8 -0
- package/lib/codec/SetAddListenerCodec.js +80 -0
- package/lib/codec/SetClearCodec.d.ts +5 -0
- package/lib/codec/SetClearCodec.js +45 -0
- package/lib/codec/SetCompareAndRemoveAllCodec.d.ts +7 -0
- package/lib/codec/SetCompareAndRemoveAllCodec.js +62 -0
- package/lib/codec/SetCompareAndRetainAllCodec.d.ts +7 -0
- package/lib/codec/SetCompareAndRetainAllCodec.js +62 -0
- package/lib/codec/SetContainsAllCodec.d.ts +7 -0
- package/lib/codec/SetContainsAllCodec.js +62 -0
- package/lib/codec/SetContainsCodec.d.ts +7 -0
- package/lib/codec/SetContainsCodec.js +56 -0
- package/lib/codec/SetGetAllCodec.d.ts +7 -0
- package/lib/codec/SetGetAllCodec.js +61 -0
- package/lib/codec/SetIsEmptyCodec.d.ts +7 -0
- package/lib/codec/SetIsEmptyCodec.js +54 -0
- package/lib/codec/SetMessageType.d.ts +15 -0
- package/lib/codec/SetMessageType.js +37 -0
- package/lib/codec/SetRemoveCodec.d.ts +7 -0
- package/lib/codec/SetRemoveCodec.js +56 -0
- package/lib/codec/SetRemoveListenerCodec.d.ts +7 -0
- package/lib/codec/SetRemoveListenerCodec.js +56 -0
- package/lib/codec/SetSizeCodec.d.ts +7 -0
- package/lib/codec/SetSizeCodec.js +54 -0
- package/lib/codec/UUIDCodec.d.ts +5 -0
- package/lib/codec/UUIDCodec.js +29 -0
- package/lib/config/ClientCloudConfig.d.ts +13 -0
- package/lib/config/ClientCloudConfig.js +34 -0
- package/lib/config/ClientNetworkConfig.d.ts +43 -0
- package/lib/config/ClientNetworkConfig.js +64 -0
- package/lib/config/Config.d.ts +61 -0
- package/lib/config/Config.js +138 -0
- package/lib/config/ConfigBuilder.d.ts +26 -0
- package/lib/config/ConfigBuilder.js +322 -0
- package/lib/config/ConfigPatternMatcher.d.ts +12 -0
- package/lib/config/ConfigPatternMatcher.js +70 -0
- package/lib/config/EvictionPolicy.d.ts +9 -0
- package/lib/config/EvictionPolicy.js +27 -0
- package/lib/config/FlakeIdGeneratorConfig.d.ts +26 -0
- package/lib/config/FlakeIdGeneratorConfig.js +56 -0
- package/lib/config/GroupConfig.d.ts +14 -0
- package/lib/config/GroupConfig.js +35 -0
- package/lib/config/ImportConfig.d.ts +4 -0
- package/lib/config/ImportConfig.js +17 -0
- package/lib/config/InMemoryFormat.d.ts +10 -0
- package/lib/config/InMemoryFormat.js +28 -0
- package/lib/config/JsonConfigLocator.d.ts +16 -0
- package/lib/config/JsonConfigLocator.js +103 -0
- package/lib/config/JsonStringDeserializationPolicy.d.ts +17 -0
- package/lib/config/JsonStringDeserializationPolicy.js +35 -0
- package/lib/config/ListenerConfig.d.ts +8 -0
- package/lib/config/ListenerConfig.js +33 -0
- package/lib/config/NearCacheConfig.d.ts +25 -0
- package/lib/config/NearCacheConfig.js +59 -0
- package/lib/config/Properties.d.ts +5 -0
- package/lib/config/Properties.js +17 -0
- package/lib/config/ReliableTopicConfig.d.ts +8 -0
- package/lib/config/ReliableTopicConfig.js +38 -0
- package/lib/config/SSLConfig.d.ts +34 -0
- package/lib/config/SSLConfig.js +51 -0
- package/lib/config/SerializationConfig.d.ts +29 -0
- package/lib/config/SerializationConfig.js +38 -0
- package/lib/config/StringSerializationPolicy.d.ts +22 -0
- package/lib/config/StringSerializationPolicy.js +40 -0
- package/lib/connection/AddressProvider.d.ts +11 -0
- package/lib/connection/AddressProvider.js +17 -0
- package/lib/connection/AddressTranslator.d.ts +21 -0
- package/lib/connection/AddressTranslator.js +17 -0
- package/lib/connection/BasicSSLOptionsFactory.d.ts +14 -0
- package/lib/connection/BasicSSLOptionsFactory.js +67 -0
- package/lib/connection/DefaultAddressProvider.d.ts +15 -0
- package/lib/connection/DefaultAddressProvider.js +38 -0
- package/lib/connection/DefaultAddressTranslator.d.ts +11 -0
- package/lib/connection/DefaultAddressTranslator.js +33 -0
- package/lib/connection/SSLOptionsFactory.d.ts +7 -0
- package/lib/connection/SSLOptionsFactory.js +17 -0
- package/lib/core/Comparator.d.ts +21 -0
- package/lib/core/Comparator.js +17 -0
- package/lib/core/ConnectionHeartbeatListener.d.ts +16 -0
- package/lib/core/ConnectionHeartbeatListener.js +17 -0
- package/lib/core/DistributedObjectListener.d.ts +24 -0
- package/lib/core/DistributedObjectListener.js +30 -0
- package/lib/core/EntryListener.d.ts +51 -0
- package/lib/core/EntryListener.js +32 -0
- package/lib/core/EntryView.d.ts +16 -0
- package/lib/core/EntryView.js +23 -0
- package/lib/core/EventType.d.ts +12 -0
- package/lib/core/EventType.js +31 -0
- package/lib/core/HazelcastJsonValue.d.ts +32 -0
- package/lib/core/HazelcastJsonValue.js +56 -0
- package/lib/core/ItemListener.d.ts +38 -0
- package/lib/core/ItemListener.js +35 -0
- package/lib/core/MapListener.d.ts +29 -0
- package/lib/core/MapListener.js +29 -0
- package/lib/core/Member.d.ts +23 -0
- package/lib/core/Member.js +44 -0
- package/lib/core/MemberAttributeEvent.d.ts +37 -0
- package/lib/core/MemberAttributeEvent.js +45 -0
- package/lib/core/MemberSelector.d.ts +4 -0
- package/lib/core/MemberSelector.js +17 -0
- package/lib/core/MemberSelectors.d.ts +8 -0
- package/lib/core/MemberSelectors.js +33 -0
- package/lib/core/MembershipEvent.d.ts +20 -0
- package/lib/core/MembershipEvent.js +30 -0
- package/lib/core/MembershipListener.d.ts +22 -0
- package/lib/core/MembershipListener.js +17 -0
- package/lib/core/OverflowPolicy.d.ts +4 -0
- package/lib/core/OverflowPolicy.js +22 -0
- package/lib/core/Predicate.d.ts +28 -0
- package/lib/core/Predicate.js +113 -0
- package/lib/core/ReadOnlyLazyList.d.ts +12 -0
- package/lib/core/ReadOnlyLazyList.js +74 -0
- package/lib/core/RestValue.d.ts +15 -0
- package/lib/core/RestValue.js +51 -0
- package/lib/core/UUID.d.ts +9 -0
- package/lib/core/UUID.js +44 -0
- package/lib/core/VectorClock.d.ts +7 -0
- package/lib/core/VectorClock.js +48 -0
- package/lib/discovery/HazelcastCloudAddressProvider.d.ts +10 -0
- package/lib/discovery/HazelcastCloudAddressProvider.js +35 -0
- package/lib/discovery/HazelcastCloudAddressTranslator.d.ts +13 -0
- package/lib/discovery/HazelcastCloudAddressTranslator.js +54 -0
- package/lib/discovery/HazelcastCloudDiscovery.d.ts +25 -0
- package/lib/discovery/HazelcastCloudDiscovery.js +85 -0
- package/lib/index.d.ts +26 -0
- package/lib/index.js +64 -0
- package/lib/invocation/ClientConnection.d.ts +82 -0
- package/lib/invocation/ClientConnection.js +307 -0
- package/lib/invocation/ClientConnectionManager.d.ts +56 -0
- package/lib/invocation/ClientConnectionManager.js +298 -0
- package/lib/invocation/ClientEventRegistration.d.ts +10 -0
- package/lib/invocation/ClientEventRegistration.js +30 -0
- package/lib/invocation/ClusterService.d.ts +99 -0
- package/lib/invocation/ClusterService.js +417 -0
- package/lib/invocation/ConnectionAuthenticator.d.ts +14 -0
- package/lib/invocation/ConnectionAuthenticator.js +88 -0
- package/lib/invocation/InvocationService.d.ts +138 -0
- package/lib/invocation/InvocationService.js +387 -0
- package/lib/invocation/Murmur.d.ts +2 -0
- package/lib/invocation/Murmur.js +65 -0
- package/lib/invocation/RegistrationKey.d.ts +16 -0
- package/lib/invocation/RegistrationKey.js +48 -0
- package/lib/logging/DefaultLogger.d.ts +12 -0
- package/lib/logging/DefaultLogger.js +48 -0
- package/lib/logging/ILogger.d.ts +49 -0
- package/lib/logging/ILogger.js +17 -0
- package/lib/logging/LoggingService.d.ts +16 -0
- package/lib/logging/LoggingService.js +50 -0
- package/lib/nearcache/AlwaysFreshStaleReadDetectorImpl.d.ts +10 -0
- package/lib/nearcache/AlwaysFreshStaleReadDetectorImpl.js +34 -0
- package/lib/nearcache/DataRecord.d.ts +33 -0
- package/lib/nearcache/DataRecord.js +109 -0
- package/lib/nearcache/MetadataContainer.d.ts +18 -0
- package/lib/nearcache/MetadataContainer.js +56 -0
- package/lib/nearcache/MetadataFetcher.d.ts +20 -0
- package/lib/nearcache/MetadataFetcher.js +92 -0
- package/lib/nearcache/NearCache.d.ts +89 -0
- package/lib/nearcache/NearCache.js +250 -0
- package/lib/nearcache/NearCacheManager.d.ts +13 -0
- package/lib/nearcache/NearCacheManager.js +50 -0
- package/lib/nearcache/RepairingHandler.d.ts +26 -0
- package/lib/nearcache/RepairingHandler.js +114 -0
- package/lib/nearcache/RepairingTask.d.ts +26 -0
- package/lib/nearcache/RepairingTask.js +117 -0
- package/lib/nearcache/StaleReadDetector.d.ts +7 -0
- package/lib/nearcache/StaleReadDetector.js +2 -0
- package/lib/nearcache/StaleReadDetectorImpl.d.ts +13 -0
- package/lib/nearcache/StaleReadDetectorImpl.js +35 -0
- package/lib/protocol/ClientProtocolErrorCodes.d.ts +91 -0
- package/lib/protocol/ClientProtocolErrorCodes.js +112 -0
- package/lib/protocol/ErrorCodec.d.ts +11 -0
- package/lib/protocol/ErrorCodec.js +50 -0
- package/lib/protocol/ErrorFactory.d.ts +8 -0
- package/lib/protocol/ErrorFactory.js +92 -0
- package/lib/protocol/StackTraceElementCodec.d.ts +8 -0
- package/lib/protocol/StackTraceElementCodec.js +38 -0
- package/lib/proxy/AtomicLongProxy.d.ts +17 -0
- package/lib/proxy/AtomicLongProxy.js +72 -0
- package/lib/proxy/BaseProxy.d.ts +89 -0
- package/lib/proxy/BaseProxy.js +191 -0
- package/lib/proxy/FlakeIdGenerator.d.ts +47 -0
- package/lib/proxy/FlakeIdGenerator.js +17 -0
- package/lib/proxy/FlakeIdGeneratorProxy.d.ts +13 -0
- package/lib/proxy/FlakeIdGeneratorProxy.js +48 -0
- package/lib/proxy/IAtomicLong.d.ts +16 -0
- package/lib/proxy/IAtomicLong.js +17 -0
- package/lib/proxy/IList.d.ts +132 -0
- package/lib/proxy/IList.js +17 -0
- package/lib/proxy/ILock.d.ts +54 -0
- package/lib/proxy/ILock.js +17 -0
- package/lib/proxy/IMap.d.ts +328 -0
- package/lib/proxy/IMap.js +17 -0
- package/lib/proxy/IQueue.d.ts +128 -0
- package/lib/proxy/IQueue.js +17 -0
- package/lib/proxy/ISemaphore.d.ts +53 -0
- package/lib/proxy/ISemaphore.js +17 -0
- package/lib/proxy/ISet.d.ts +89 -0
- package/lib/proxy/ISet.js +17 -0
- package/lib/proxy/ListProxy.d.ts +31 -0
- package/lib/proxy/ListProxy.js +165 -0
- package/lib/proxy/LockProxy.d.ts +16 -0
- package/lib/proxy/LockProxy.js +78 -0
- package/lib/proxy/MapProxy.d.ts +82 -0
- package/lib/proxy/MapProxy.js +651 -0
- package/lib/proxy/MultiMap.d.ts +153 -0
- package/lib/proxy/MultiMap.js +17 -0
- package/lib/proxy/MultiMapProxy.d.ts +33 -0
- package/lib/proxy/MultiMapProxy.js +238 -0
- package/lib/proxy/NearCachedMapProxy.d.ts +41 -0
- package/lib/proxy/NearCachedMapProxy.js +284 -0
- package/lib/proxy/PNCounter.d.ts +162 -0
- package/lib/proxy/PNCounter.js +17 -0
- package/lib/proxy/PNCounterProxy.d.ts +30 -0
- package/lib/proxy/PNCounterProxy.js +181 -0
- package/lib/proxy/PartitionSpecificProxy.d.ts +10 -0
- package/lib/proxy/PartitionSpecificProxy.js +52 -0
- package/lib/proxy/ProxyManager.d.ts +40 -0
- package/lib/proxy/ProxyManager.js +202 -0
- package/lib/proxy/QueueProxy.d.ts +28 -0
- package/lib/proxy/QueueProxy.js +198 -0
- package/lib/proxy/ReplicatedMap.d.ts +149 -0
- package/lib/proxy/ReplicatedMap.js +17 -0
- package/lib/proxy/ReplicatedMapProxy.d.ts +34 -0
- package/lib/proxy/ReplicatedMapProxy.js +256 -0
- package/lib/proxy/Ringbuffer.d.ts +115 -0
- package/lib/proxy/Ringbuffer.js +17 -0
- package/lib/proxy/SemaphoreProxy.d.ts +15 -0
- package/lib/proxy/SemaphoreProxy.js +73 -0
- package/lib/proxy/SetProxy.d.ts +22 -0
- package/lib/proxy/SetProxy.js +130 -0
- package/lib/proxy/flakeid/AutoBatcher.d.ts +30 -0
- package/lib/proxy/flakeid/AutoBatcher.js +104 -0
- package/lib/proxy/ringbuffer/LazyReadResultSet.d.ts +16 -0
- package/lib/proxy/ringbuffer/LazyReadResultSet.js +54 -0
- package/lib/proxy/ringbuffer/ReadResultSet.d.ts +41 -0
- package/lib/proxy/ringbuffer/ReadResultSet.js +17 -0
- package/lib/proxy/ringbuffer/RingbufferProxy.d.ts +19 -0
- package/lib/proxy/ringbuffer/RingbufferProxy.js +98 -0
- package/lib/proxy/topic/ITopic.d.ts +9 -0
- package/lib/proxy/topic/ITopic.js +17 -0
- package/lib/proxy/topic/Message.d.ts +8 -0
- package/lib/proxy/topic/Message.js +23 -0
- package/lib/proxy/topic/MessageListener.d.ts +2 -0
- package/lib/proxy/topic/MessageListener.js +2 -0
- package/lib/proxy/topic/ReliableTopicListenerRunner.d.ts +20 -0
- package/lib/proxy/topic/ReliableTopicListenerRunner.js +73 -0
- package/lib/proxy/topic/ReliableTopicMessage.d.ts +19 -0
- package/lib/proxy/topic/ReliableTopicMessage.js +53 -0
- package/lib/proxy/topic/ReliableTopicProxy.d.ts +31 -0
- package/lib/proxy/topic/ReliableTopicProxy.js +151 -0
- package/lib/proxy/topic/TopicOverloadPolicy.d.ts +23 -0
- package/lib/proxy/topic/TopicOverloadPolicy.js +41 -0
- package/lib/serialization/Data.d.ts +114 -0
- package/lib/serialization/Data.js +17 -0
- package/lib/serialization/DefaultPredicates.d.ts +131 -0
- package/lib/serialization/DefaultPredicates.js +465 -0
- package/lib/serialization/DefaultSerializer.d.ts +134 -0
- package/lib/serialization/DefaultSerializer.js +442 -0
- package/lib/serialization/HeapData.d.ts +44 -0
- package/lib/serialization/HeapData.js +104 -0
- package/lib/serialization/ObjectData.d.ts +102 -0
- package/lib/serialization/ObjectData.js +566 -0
- package/lib/serialization/PredicateFactory.d.ts +15 -0
- package/lib/serialization/PredicateFactory.js +46 -0
- package/lib/serialization/Serializable.d.ts +23 -0
- package/lib/serialization/Serializable.js +17 -0
- package/lib/serialization/SerializationService.d.ts +60 -0
- package/lib/serialization/SerializationService.js +312 -0
- package/lib/serialization/SerializationUtil.d.ts +3 -0
- package/lib/serialization/SerializationUtil.js +31 -0
- package/lib/serialization/portable/ClassDefinition.d.ts +54 -0
- package/lib/serialization/portable/ClassDefinition.js +140 -0
- package/lib/serialization/portable/ClassDefinitionBuilder.d.ts +35 -0
- package/lib/serialization/portable/ClassDefinitionBuilder.js +126 -0
- package/lib/serialization/portable/ClassDefinitionContext.d.ts +9 -0
- package/lib/serialization/portable/ClassDefinitionContext.js +51 -0
- package/lib/serialization/portable/ClassDefinitionWriter.d.ts +35 -0
- package/lib/serialization/portable/ClassDefinitionWriter.js +123 -0
- package/lib/serialization/portable/DefaultPortableReader.d.ts +43 -0
- package/lib/serialization/portable/DefaultPortableReader.js +188 -0
- package/lib/serialization/portable/DefaultPortableWriter.d.ts +37 -0
- package/lib/serialization/portable/DefaultPortableWriter.js +156 -0
- package/lib/serialization/portable/MorphingPortableReader.d.ts +31 -0
- package/lib/serialization/portable/MorphingPortableReader.js +189 -0
- package/lib/serialization/portable/PortableContext.d.ts +16 -0
- package/lib/serialization/portable/PortableContext.js +126 -0
- package/lib/serialization/portable/PortableSerializer.d.ts +68 -0
- package/lib/serialization/portable/PortableSerializer.js +94 -0
- package/lib/statistics/Statistics.d.ts +50 -0
- package/lib/statistics/Statistics.js +232 -0
- package/lib/util/ArrayComparator.d.ts +1 -0
- package/lib/util/ArrayComparator.js +17 -0
- package/lib/util/UuidUtil.d.ts +4 -0
- package/lib/util/UuidUtil.js +35 -0
- package/lib.es6.d.ts +18650 -0
- package/package.json +64 -0
- package/tsconfig.json +20 -0
package/lib/Util.js
ADDED
|
@@ -0,0 +1,351 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Copyright (c) 2008-2021, Hazelcast, Inc. All Rights Reserved.
|
|
4
|
+
*
|
|
5
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
+
* you may not use this file except in compliance with the License.
|
|
7
|
+
* You may obtain a copy of the License at
|
|
8
|
+
*
|
|
9
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
*
|
|
11
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
12
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
+
* See the License for the specific language governing permissions and
|
|
15
|
+
* limitations under the License.
|
|
16
|
+
*/
|
|
17
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
+
var assert = require("assert");
|
|
19
|
+
var Long = require("long");
|
|
20
|
+
var Promise = require("bluebird");
|
|
21
|
+
var Path = require("path");
|
|
22
|
+
var JsonConfigLocator_1 = require("./config/JsonConfigLocator");
|
|
23
|
+
var Predicate_1 = require("./core/Predicate");
|
|
24
|
+
var Address = require("./Address");
|
|
25
|
+
function assertNotNull(v) {
|
|
26
|
+
assert.notEqual(v, null, 'Non null value expected.');
|
|
27
|
+
}
|
|
28
|
+
exports.assertNotNull = assertNotNull;
|
|
29
|
+
function assertArray(x) {
|
|
30
|
+
assert(Array.isArray(x), 'Should be array.');
|
|
31
|
+
}
|
|
32
|
+
exports.assertArray = assertArray;
|
|
33
|
+
function assertString(v) {
|
|
34
|
+
assert(typeof v === 'string', 'String value expected.');
|
|
35
|
+
}
|
|
36
|
+
exports.assertString = assertString;
|
|
37
|
+
function shuffleArray(array) {
|
|
38
|
+
var randomIndex;
|
|
39
|
+
var temp;
|
|
40
|
+
for (var i = array.length; i > 1; i--) {
|
|
41
|
+
randomIndex = Math.floor(Math.random() * i);
|
|
42
|
+
temp = array[i - 1];
|
|
43
|
+
array[i - 1] = array[randomIndex];
|
|
44
|
+
array[randomIndex] = temp;
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
exports.shuffleArray = shuffleArray;
|
|
48
|
+
function assertNotNegative(v, message) {
|
|
49
|
+
if (message === void 0) { message = 'The value cannot be negative.'; }
|
|
50
|
+
assert(v >= 0, message);
|
|
51
|
+
}
|
|
52
|
+
exports.assertNotNegative = assertNotNegative;
|
|
53
|
+
function getType(obj) {
|
|
54
|
+
assertNotNull(obj);
|
|
55
|
+
if (Long.isLong(obj)) {
|
|
56
|
+
return 'long';
|
|
57
|
+
}
|
|
58
|
+
else {
|
|
59
|
+
var t = typeof obj;
|
|
60
|
+
if (t !== 'object') {
|
|
61
|
+
return t;
|
|
62
|
+
}
|
|
63
|
+
else {
|
|
64
|
+
return ({}).toString.call(obj).match(/\s([a-zA-Z]+)/)[1].toLowerCase();
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
exports.getType = getType;
|
|
69
|
+
function enumFromString(enumType, value) {
|
|
70
|
+
return enumType[value];
|
|
71
|
+
}
|
|
72
|
+
exports.enumFromString = enumFromString;
|
|
73
|
+
function getSortedQueryResultSet(list, predicate) {
|
|
74
|
+
if (list.length === 0) {
|
|
75
|
+
return list;
|
|
76
|
+
}
|
|
77
|
+
var comparatorObject = predicate.getComparator();
|
|
78
|
+
if (comparatorObject == null) {
|
|
79
|
+
comparatorObject = createComparator(predicate.getIterationType());
|
|
80
|
+
}
|
|
81
|
+
list.sort(comparatorObject.sort.bind(comparatorObject));
|
|
82
|
+
var nearestAnchorEntry = (predicate == null) ? null : predicate.getNearestAnchorEntry();
|
|
83
|
+
var nearestPage = nearestAnchorEntry[0];
|
|
84
|
+
var page = predicate.getPage();
|
|
85
|
+
var pageSize = predicate.getPageSize();
|
|
86
|
+
var begin = pageSize * (page - nearestPage - 1);
|
|
87
|
+
var size = list.length;
|
|
88
|
+
if (begin > size) {
|
|
89
|
+
return [];
|
|
90
|
+
}
|
|
91
|
+
var end = begin + pageSize;
|
|
92
|
+
if (end > size) {
|
|
93
|
+
end = size;
|
|
94
|
+
}
|
|
95
|
+
setAnchor(list, predicate, nearestPage);
|
|
96
|
+
var iterationType = predicate.getIterationType();
|
|
97
|
+
return list.slice(begin, end).map(function (item) {
|
|
98
|
+
switch (iterationType) {
|
|
99
|
+
case Predicate_1.IterationType.ENTRY:
|
|
100
|
+
return item;
|
|
101
|
+
case Predicate_1.IterationType.KEY:
|
|
102
|
+
return item[0];
|
|
103
|
+
case Predicate_1.IterationType.VALUE:
|
|
104
|
+
return item[1];
|
|
105
|
+
}
|
|
106
|
+
});
|
|
107
|
+
}
|
|
108
|
+
exports.getSortedQueryResultSet = getSortedQueryResultSet;
|
|
109
|
+
function copyObjectShallow(obj) {
|
|
110
|
+
if (obj === undefined || obj === null) {
|
|
111
|
+
return obj;
|
|
112
|
+
}
|
|
113
|
+
if (typeof obj === 'object') {
|
|
114
|
+
var newObj = {};
|
|
115
|
+
for (var prop in obj) {
|
|
116
|
+
if (obj.hasOwnProperty(prop)) {
|
|
117
|
+
newObj[prop] = obj[prop];
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
return newObj;
|
|
121
|
+
}
|
|
122
|
+
assert(false, 'Object should be undefined or type of object.');
|
|
123
|
+
}
|
|
124
|
+
exports.copyObjectShallow = copyObjectShallow;
|
|
125
|
+
function tryGetBoolean(val) {
|
|
126
|
+
if (typeof val === 'boolean') {
|
|
127
|
+
return val;
|
|
128
|
+
}
|
|
129
|
+
else {
|
|
130
|
+
throw new RangeError(val + ' is not a boolean.');
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
exports.tryGetBoolean = tryGetBoolean;
|
|
134
|
+
function tryGetNumber(val) {
|
|
135
|
+
if (typeof val === 'number') {
|
|
136
|
+
return val;
|
|
137
|
+
}
|
|
138
|
+
else {
|
|
139
|
+
throw new RangeError(val + ' is not a number.');
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
exports.tryGetNumber = tryGetNumber;
|
|
143
|
+
function tryGetArray(val) {
|
|
144
|
+
if (Array.isArray(val)) {
|
|
145
|
+
return val;
|
|
146
|
+
}
|
|
147
|
+
else {
|
|
148
|
+
throw new RangeError(val + ' is not an array.');
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
exports.tryGetArray = tryGetArray;
|
|
152
|
+
function tryGetString(val) {
|
|
153
|
+
if (typeof val === 'string') {
|
|
154
|
+
return val;
|
|
155
|
+
}
|
|
156
|
+
else {
|
|
157
|
+
throw new RangeError(val + ' is not a string.');
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
exports.tryGetString = tryGetString;
|
|
161
|
+
function getStringOrUndefined(val) {
|
|
162
|
+
try {
|
|
163
|
+
return tryGetString(val);
|
|
164
|
+
}
|
|
165
|
+
catch (e) {
|
|
166
|
+
return undefined;
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
exports.getStringOrUndefined = getStringOrUndefined;
|
|
170
|
+
function getBooleanOrUndefined(val) {
|
|
171
|
+
try {
|
|
172
|
+
return tryGetBoolean(val);
|
|
173
|
+
}
|
|
174
|
+
catch (e) {
|
|
175
|
+
return undefined;
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
exports.getBooleanOrUndefined = getBooleanOrUndefined;
|
|
179
|
+
function tryGetEnum(enumClass, str) {
|
|
180
|
+
return enumClass[str.toUpperCase()];
|
|
181
|
+
}
|
|
182
|
+
exports.tryGetEnum = tryGetEnum;
|
|
183
|
+
function resolvePath(path) {
|
|
184
|
+
var basePath;
|
|
185
|
+
if (process.env[JsonConfigLocator_1.JsonConfigLocator.ENV_VARIABLE_NAME]) {
|
|
186
|
+
basePath = Path.dirname(process.env[JsonConfigLocator_1.JsonConfigLocator.ENV_VARIABLE_NAME]);
|
|
187
|
+
}
|
|
188
|
+
else {
|
|
189
|
+
basePath = process.cwd();
|
|
190
|
+
}
|
|
191
|
+
return Path.resolve(basePath, path);
|
|
192
|
+
}
|
|
193
|
+
exports.resolvePath = resolvePath;
|
|
194
|
+
function loadNameFromPath(path, exportedName) {
|
|
195
|
+
var requirePath = require(resolvePath(path));
|
|
196
|
+
if (exportedName === undefined) {
|
|
197
|
+
return requirePath;
|
|
198
|
+
}
|
|
199
|
+
else {
|
|
200
|
+
return require(resolvePath(path))[exportedName];
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
exports.loadNameFromPath = loadNameFromPath;
|
|
204
|
+
var AddressHelper = /** @class */ (function () {
|
|
205
|
+
function AddressHelper() {
|
|
206
|
+
}
|
|
207
|
+
AddressHelper.getSocketAddresses = function (address) {
|
|
208
|
+
var addressHolder = this.createAddressFromString(address, -1);
|
|
209
|
+
var possiblePort = addressHolder.port;
|
|
210
|
+
var maxPortTryCount = 1;
|
|
211
|
+
if (possiblePort === -1) {
|
|
212
|
+
maxPortTryCount = AddressHelper.MAX_PORT_TRIES;
|
|
213
|
+
possiblePort = AddressHelper.INITIAL_FIRST_PORT;
|
|
214
|
+
}
|
|
215
|
+
var addresses = [];
|
|
216
|
+
for (var i = 0; i < maxPortTryCount; i++) {
|
|
217
|
+
addresses.push(new Address(addressHolder.host, possiblePort + i));
|
|
218
|
+
}
|
|
219
|
+
return addresses;
|
|
220
|
+
};
|
|
221
|
+
AddressHelper.createAddressFromString = function (address, defaultPort) {
|
|
222
|
+
var indexBracketStart = address.indexOf('[');
|
|
223
|
+
var indexBracketEnd = address.indexOf(']', indexBracketStart);
|
|
224
|
+
var indexColon = address.indexOf(':');
|
|
225
|
+
var lastIndexColon = address.lastIndexOf(':');
|
|
226
|
+
var host;
|
|
227
|
+
var port = defaultPort;
|
|
228
|
+
if (indexColon > -1 && lastIndexColon > indexColon) {
|
|
229
|
+
// IPv6
|
|
230
|
+
if (indexBracketStart === 0 && indexBracketEnd > indexBracketStart) {
|
|
231
|
+
host = address.substring(indexBracketStart + 1, indexBracketEnd);
|
|
232
|
+
if (lastIndexColon === indexBracketEnd + 1) {
|
|
233
|
+
port = Number.parseInt(address.substring(lastIndexColon + 1));
|
|
234
|
+
}
|
|
235
|
+
}
|
|
236
|
+
else {
|
|
237
|
+
host = address;
|
|
238
|
+
}
|
|
239
|
+
}
|
|
240
|
+
else if (indexColon > 0 && indexColon === lastIndexColon) {
|
|
241
|
+
host = address.substring(0, indexColon);
|
|
242
|
+
port = Number.parseInt(address.substring(indexColon + 1));
|
|
243
|
+
}
|
|
244
|
+
else {
|
|
245
|
+
host = address;
|
|
246
|
+
}
|
|
247
|
+
return new Address(host, port);
|
|
248
|
+
};
|
|
249
|
+
AddressHelper.MAX_PORT_TRIES = 3;
|
|
250
|
+
AddressHelper.INITIAL_FIRST_PORT = 5701;
|
|
251
|
+
return AddressHelper;
|
|
252
|
+
}());
|
|
253
|
+
exports.AddressHelper = AddressHelper;
|
|
254
|
+
function mergeJson(base, other) {
|
|
255
|
+
for (var key in other) {
|
|
256
|
+
if (Array.isArray(base[key]) && Array.isArray(other[key])) {
|
|
257
|
+
base[key] = base[key].concat(other[key]);
|
|
258
|
+
}
|
|
259
|
+
else if (typeof base[key] === 'object' && typeof other[key] === 'object') {
|
|
260
|
+
mergeJson(base[key], other[key]);
|
|
261
|
+
}
|
|
262
|
+
else {
|
|
263
|
+
base[key] = other[key];
|
|
264
|
+
}
|
|
265
|
+
}
|
|
266
|
+
}
|
|
267
|
+
exports.mergeJson = mergeJson;
|
|
268
|
+
/**
|
|
269
|
+
* Returns a random integer between 0(inclusive) and `upperBound`(exclusive)
|
|
270
|
+
* Upper bound should be an integer.
|
|
271
|
+
* @param upperBound
|
|
272
|
+
* @returns A random integer between [0-upperBound)
|
|
273
|
+
*/
|
|
274
|
+
function randomInt(upperBound) {
|
|
275
|
+
return Math.floor(Math.random() * upperBound);
|
|
276
|
+
}
|
|
277
|
+
exports.randomInt = randomInt;
|
|
278
|
+
function createComparator(iterationType) {
|
|
279
|
+
var object = {
|
|
280
|
+
sort: function (a, b) {
|
|
281
|
+
return 0;
|
|
282
|
+
},
|
|
283
|
+
};
|
|
284
|
+
switch (iterationType) {
|
|
285
|
+
case Predicate_1.IterationType.KEY:
|
|
286
|
+
object.sort = function (e1, e2) { return e1[0] < e2[0] ? -1 : +(e1[0] > e2[0]); };
|
|
287
|
+
break;
|
|
288
|
+
case Predicate_1.IterationType.ENTRY:
|
|
289
|
+
object.sort = function (e1, e2) { return e1[1] < e2[1] ? -1 : +(e1[1] > e2[1]); };
|
|
290
|
+
break;
|
|
291
|
+
case Predicate_1.IterationType.VALUE:
|
|
292
|
+
object.sort = function (e1, e2) { return e1[1] < e2[1] ? -1 : +(e1[1] > e2[1]); };
|
|
293
|
+
break;
|
|
294
|
+
}
|
|
295
|
+
return object;
|
|
296
|
+
}
|
|
297
|
+
function setAnchor(list, predicate, nearestPage) {
|
|
298
|
+
assert(list.length > 0);
|
|
299
|
+
var size = list.length;
|
|
300
|
+
var pageSize = predicate.getPageSize();
|
|
301
|
+
var page = predicate.getPage();
|
|
302
|
+
for (var i = pageSize; i <= size && nearestPage < page; i += pageSize) {
|
|
303
|
+
var anchor = list[i - 1];
|
|
304
|
+
nearestPage++;
|
|
305
|
+
predicate.setAnchor(nearestPage, anchor);
|
|
306
|
+
}
|
|
307
|
+
}
|
|
308
|
+
var Task = /** @class */ (function () {
|
|
309
|
+
function Task() {
|
|
310
|
+
}
|
|
311
|
+
return Task;
|
|
312
|
+
}());
|
|
313
|
+
exports.Task = Task;
|
|
314
|
+
function scheduleWithRepetition(callback, initialDelay, periodMillis) {
|
|
315
|
+
var task = new Task();
|
|
316
|
+
task.timeoutId = setTimeout(function () {
|
|
317
|
+
callback();
|
|
318
|
+
task.intervalId = setInterval(callback, periodMillis);
|
|
319
|
+
}, initialDelay);
|
|
320
|
+
return task;
|
|
321
|
+
}
|
|
322
|
+
exports.scheduleWithRepetition = scheduleWithRepetition;
|
|
323
|
+
function cancelRepetitionTask(task) {
|
|
324
|
+
if (task.intervalId != null) {
|
|
325
|
+
clearInterval(task.intervalId);
|
|
326
|
+
}
|
|
327
|
+
else if (task.timeoutId != null) {
|
|
328
|
+
clearTimeout(task.timeoutId);
|
|
329
|
+
}
|
|
330
|
+
}
|
|
331
|
+
exports.cancelRepetitionTask = cancelRepetitionTask;
|
|
332
|
+
function DeferredPromise() {
|
|
333
|
+
var resolve;
|
|
334
|
+
var reject;
|
|
335
|
+
var promise = new Promise(function () {
|
|
336
|
+
resolve = arguments[0];
|
|
337
|
+
reject = arguments[1];
|
|
338
|
+
});
|
|
339
|
+
return {
|
|
340
|
+
resolve: resolve,
|
|
341
|
+
reject: reject,
|
|
342
|
+
promise: promise,
|
|
343
|
+
};
|
|
344
|
+
}
|
|
345
|
+
exports.DeferredPromise = DeferredPromise;
|
|
346
|
+
function getNodejsMajorVersion() {
|
|
347
|
+
var versionString = process.version;
|
|
348
|
+
var versions = versionString.split('.');
|
|
349
|
+
return Number.parseInt(versions[0].substr(1));
|
|
350
|
+
}
|
|
351
|
+
exports.getNodejsMajorVersion = getNodejsMajorVersion;
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
/// <reference types="long" />
|
|
2
|
+
import * as Long from 'long';
|
|
3
|
+
import { DataInput, DataOutput } from '../serialization/Data';
|
|
4
|
+
import { IdentifiedDataSerializable } from '../serialization/Serializable';
|
|
5
|
+
export interface Aggregator<R> {
|
|
6
|
+
}
|
|
7
|
+
export declare abstract class AbstractAggregator<R> implements IdentifiedDataSerializable, Aggregator<R> {
|
|
8
|
+
protected attributePath: string;
|
|
9
|
+
constructor(attributePath?: string);
|
|
10
|
+
getFactoryId(): number;
|
|
11
|
+
abstract getClassId(): number;
|
|
12
|
+
abstract readData(input: DataInput): any;
|
|
13
|
+
abstract writeData(output: DataOutput): void;
|
|
14
|
+
}
|
|
15
|
+
export declare class CountAggregator extends AbstractAggregator<Long> {
|
|
16
|
+
readData(input: DataInput): any;
|
|
17
|
+
writeData(output: DataOutput): void;
|
|
18
|
+
getClassId(): number;
|
|
19
|
+
}
|
|
20
|
+
export declare class DoubleAverageAggregator extends AbstractAggregator<number> {
|
|
21
|
+
getClassId(): number;
|
|
22
|
+
readData(input: DataInput): any;
|
|
23
|
+
writeData(output: DataOutput): void;
|
|
24
|
+
}
|
|
25
|
+
export declare class DoubleSumAggregator extends AbstractAggregator<number> {
|
|
26
|
+
getClassId(): number;
|
|
27
|
+
readData(input: DataInput): any;
|
|
28
|
+
writeData(output: DataOutput): void;
|
|
29
|
+
}
|
|
30
|
+
export declare class NumberAverageAggregator extends AbstractAggregator<number> {
|
|
31
|
+
getClassId(): number;
|
|
32
|
+
readData(input: DataInput): any;
|
|
33
|
+
writeData(output: DataOutput): void;
|
|
34
|
+
}
|
|
35
|
+
export declare class FixedPointSumAggregator extends AbstractAggregator<Long> {
|
|
36
|
+
getClassId(): number;
|
|
37
|
+
readData(input: DataInput): any;
|
|
38
|
+
writeData(output: DataOutput): void;
|
|
39
|
+
}
|
|
40
|
+
export declare class FloatingPointSumAggregator extends AbstractAggregator<number> {
|
|
41
|
+
getClassId(): number;
|
|
42
|
+
readData(input: DataInput): any;
|
|
43
|
+
writeData(output: DataOutput): void;
|
|
44
|
+
}
|
|
45
|
+
export declare class MaxAggregator<R> extends AbstractAggregator<R> {
|
|
46
|
+
getClassId(): number;
|
|
47
|
+
readData(input: DataInput): any;
|
|
48
|
+
writeData(output: DataOutput): void;
|
|
49
|
+
}
|
|
50
|
+
export declare class MinAggregator<R> extends AbstractAggregator<R> {
|
|
51
|
+
getClassId(): number;
|
|
52
|
+
readData(input: DataInput): any;
|
|
53
|
+
writeData(output: DataOutput): void;
|
|
54
|
+
}
|
|
55
|
+
export declare class IntegerAverageAggregator extends AbstractAggregator<number> {
|
|
56
|
+
getClassId(): number;
|
|
57
|
+
readData(input: DataInput): any;
|
|
58
|
+
writeData(output: DataOutput): void;
|
|
59
|
+
}
|
|
60
|
+
export declare class IntegerSumAggregator extends AbstractAggregator<Long> {
|
|
61
|
+
getClassId(): number;
|
|
62
|
+
readData(input: DataInput): any;
|
|
63
|
+
writeData(output: DataOutput): void;
|
|
64
|
+
}
|
|
65
|
+
export declare class LongAverageAggregator extends AbstractAggregator<number> {
|
|
66
|
+
getClassId(): number;
|
|
67
|
+
readData(input: DataInput): any;
|
|
68
|
+
writeData(output: DataOutput): void;
|
|
69
|
+
}
|
|
70
|
+
export declare class LongSumAggregator extends AbstractAggregator<Long> {
|
|
71
|
+
getClassId(): number;
|
|
72
|
+
readData(input: DataInput): any;
|
|
73
|
+
writeData(output: DataOutput): void;
|
|
74
|
+
}
|
|
@@ -0,0 +1,277 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Copyright (c) 2008-2021, Hazelcast, Inc. All Rights Reserved.
|
|
4
|
+
*
|
|
5
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
+
* you may not use this file except in compliance with the License.
|
|
7
|
+
* You may obtain a copy of the License at
|
|
8
|
+
*
|
|
9
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
*
|
|
11
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
12
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
+
* See the License for the specific language governing permissions and
|
|
15
|
+
* limitations under the License.
|
|
16
|
+
*/
|
|
17
|
+
var __extends = (this && this.__extends) || (function () {
|
|
18
|
+
var extendStatics = Object.setPrototypeOf ||
|
|
19
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
20
|
+
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
21
|
+
return function (d, b) {
|
|
22
|
+
extendStatics(d, b);
|
|
23
|
+
function __() { this.constructor = d; }
|
|
24
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
25
|
+
};
|
|
26
|
+
})();
|
|
27
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
28
|
+
var Long = require("long");
|
|
29
|
+
var AggregatorFactory_1 = require("./AggregatorFactory");
|
|
30
|
+
var AbstractAggregator = /** @class */ (function () {
|
|
31
|
+
function AbstractAggregator(attributePath) {
|
|
32
|
+
this.attributePath = attributePath;
|
|
33
|
+
}
|
|
34
|
+
AbstractAggregator.prototype.getFactoryId = function () {
|
|
35
|
+
return AggregatorFactory_1.AggregatorFactory.FACTORY_ID;
|
|
36
|
+
};
|
|
37
|
+
return AbstractAggregator;
|
|
38
|
+
}());
|
|
39
|
+
exports.AbstractAggregator = AbstractAggregator;
|
|
40
|
+
var CountAggregator = /** @class */ (function (_super) {
|
|
41
|
+
__extends(CountAggregator, _super);
|
|
42
|
+
function CountAggregator() {
|
|
43
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
44
|
+
}
|
|
45
|
+
CountAggregator.prototype.readData = function (input) {
|
|
46
|
+
this.attributePath = input.readUTF();
|
|
47
|
+
// member side field, not used in client
|
|
48
|
+
input.readLong();
|
|
49
|
+
};
|
|
50
|
+
CountAggregator.prototype.writeData = function (output) {
|
|
51
|
+
output.writeUTF(this.attributePath);
|
|
52
|
+
// member side field, not used in client
|
|
53
|
+
output.writeLong(Long.ZERO);
|
|
54
|
+
};
|
|
55
|
+
CountAggregator.prototype.getClassId = function () {
|
|
56
|
+
return AggregatorFactory_1.AggregatorFactory.COUNT;
|
|
57
|
+
};
|
|
58
|
+
return CountAggregator;
|
|
59
|
+
}(AbstractAggregator));
|
|
60
|
+
exports.CountAggregator = CountAggregator;
|
|
61
|
+
var DoubleAverageAggregator = /** @class */ (function (_super) {
|
|
62
|
+
__extends(DoubleAverageAggregator, _super);
|
|
63
|
+
function DoubleAverageAggregator() {
|
|
64
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
65
|
+
}
|
|
66
|
+
DoubleAverageAggregator.prototype.getClassId = function () {
|
|
67
|
+
return AggregatorFactory_1.AggregatorFactory.DOUBLE_AVG;
|
|
68
|
+
};
|
|
69
|
+
DoubleAverageAggregator.prototype.readData = function (input) {
|
|
70
|
+
this.attributePath = input.readUTF();
|
|
71
|
+
input.readDouble();
|
|
72
|
+
input.readLong();
|
|
73
|
+
};
|
|
74
|
+
DoubleAverageAggregator.prototype.writeData = function (output) {
|
|
75
|
+
output.writeUTF(this.attributePath);
|
|
76
|
+
output.writeDouble(0);
|
|
77
|
+
output.writeLong(Long.ZERO);
|
|
78
|
+
};
|
|
79
|
+
return DoubleAverageAggregator;
|
|
80
|
+
}(AbstractAggregator));
|
|
81
|
+
exports.DoubleAverageAggregator = DoubleAverageAggregator;
|
|
82
|
+
var DoubleSumAggregator = /** @class */ (function (_super) {
|
|
83
|
+
__extends(DoubleSumAggregator, _super);
|
|
84
|
+
function DoubleSumAggregator() {
|
|
85
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
86
|
+
}
|
|
87
|
+
DoubleSumAggregator.prototype.getClassId = function () {
|
|
88
|
+
return AggregatorFactory_1.AggregatorFactory.DOUBLE_SUM;
|
|
89
|
+
};
|
|
90
|
+
DoubleSumAggregator.prototype.readData = function (input) {
|
|
91
|
+
this.attributePath = input.readUTF();
|
|
92
|
+
input.readDouble();
|
|
93
|
+
};
|
|
94
|
+
DoubleSumAggregator.prototype.writeData = function (output) {
|
|
95
|
+
output.writeUTF(this.attributePath);
|
|
96
|
+
output.writeDouble(0);
|
|
97
|
+
};
|
|
98
|
+
return DoubleSumAggregator;
|
|
99
|
+
}(AbstractAggregator));
|
|
100
|
+
exports.DoubleSumAggregator = DoubleSumAggregator;
|
|
101
|
+
var NumberAverageAggregator = /** @class */ (function (_super) {
|
|
102
|
+
__extends(NumberAverageAggregator, _super);
|
|
103
|
+
function NumberAverageAggregator() {
|
|
104
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
105
|
+
}
|
|
106
|
+
NumberAverageAggregator.prototype.getClassId = function () {
|
|
107
|
+
return AggregatorFactory_1.AggregatorFactory.NUMBER_AVG;
|
|
108
|
+
};
|
|
109
|
+
NumberAverageAggregator.prototype.readData = function (input) {
|
|
110
|
+
this.attributePath = input.readUTF();
|
|
111
|
+
input.readDouble();
|
|
112
|
+
input.readLong();
|
|
113
|
+
};
|
|
114
|
+
NumberAverageAggregator.prototype.writeData = function (output) {
|
|
115
|
+
output.writeUTF(this.attributePath);
|
|
116
|
+
output.writeDouble(0);
|
|
117
|
+
output.writeLong(Long.ZERO);
|
|
118
|
+
};
|
|
119
|
+
return NumberAverageAggregator;
|
|
120
|
+
}(AbstractAggregator));
|
|
121
|
+
exports.NumberAverageAggregator = NumberAverageAggregator;
|
|
122
|
+
var FixedPointSumAggregator = /** @class */ (function (_super) {
|
|
123
|
+
__extends(FixedPointSumAggregator, _super);
|
|
124
|
+
function FixedPointSumAggregator() {
|
|
125
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
126
|
+
}
|
|
127
|
+
FixedPointSumAggregator.prototype.getClassId = function () {
|
|
128
|
+
return AggregatorFactory_1.AggregatorFactory.FIXED_SUM;
|
|
129
|
+
};
|
|
130
|
+
FixedPointSumAggregator.prototype.readData = function (input) {
|
|
131
|
+
this.attributePath = input.readUTF();
|
|
132
|
+
input.readLong();
|
|
133
|
+
};
|
|
134
|
+
FixedPointSumAggregator.prototype.writeData = function (output) {
|
|
135
|
+
output.writeUTF(this.attributePath);
|
|
136
|
+
output.writeLong(Long.ZERO);
|
|
137
|
+
};
|
|
138
|
+
return FixedPointSumAggregator;
|
|
139
|
+
}(AbstractAggregator));
|
|
140
|
+
exports.FixedPointSumAggregator = FixedPointSumAggregator;
|
|
141
|
+
var FloatingPointSumAggregator = /** @class */ (function (_super) {
|
|
142
|
+
__extends(FloatingPointSumAggregator, _super);
|
|
143
|
+
function FloatingPointSumAggregator() {
|
|
144
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
145
|
+
}
|
|
146
|
+
FloatingPointSumAggregator.prototype.getClassId = function () {
|
|
147
|
+
return AggregatorFactory_1.AggregatorFactory.FLOATING_POINT_SUM;
|
|
148
|
+
};
|
|
149
|
+
FloatingPointSumAggregator.prototype.readData = function (input) {
|
|
150
|
+
this.attributePath = input.readUTF();
|
|
151
|
+
input.readDouble();
|
|
152
|
+
};
|
|
153
|
+
FloatingPointSumAggregator.prototype.writeData = function (output) {
|
|
154
|
+
output.writeUTF(this.attributePath);
|
|
155
|
+
output.writeDouble(0);
|
|
156
|
+
};
|
|
157
|
+
return FloatingPointSumAggregator;
|
|
158
|
+
}(AbstractAggregator));
|
|
159
|
+
exports.FloatingPointSumAggregator = FloatingPointSumAggregator;
|
|
160
|
+
var MaxAggregator = /** @class */ (function (_super) {
|
|
161
|
+
__extends(MaxAggregator, _super);
|
|
162
|
+
function MaxAggregator() {
|
|
163
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
164
|
+
}
|
|
165
|
+
MaxAggregator.prototype.getClassId = function () {
|
|
166
|
+
return AggregatorFactory_1.AggregatorFactory.MAX;
|
|
167
|
+
};
|
|
168
|
+
MaxAggregator.prototype.readData = function (input) {
|
|
169
|
+
this.attributePath = input.readUTF();
|
|
170
|
+
input.readObject();
|
|
171
|
+
};
|
|
172
|
+
MaxAggregator.prototype.writeData = function (output) {
|
|
173
|
+
output.writeUTF(this.attributePath);
|
|
174
|
+
output.writeObject(null);
|
|
175
|
+
};
|
|
176
|
+
return MaxAggregator;
|
|
177
|
+
}(AbstractAggregator));
|
|
178
|
+
exports.MaxAggregator = MaxAggregator;
|
|
179
|
+
var MinAggregator = /** @class */ (function (_super) {
|
|
180
|
+
__extends(MinAggregator, _super);
|
|
181
|
+
function MinAggregator() {
|
|
182
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
183
|
+
}
|
|
184
|
+
MinAggregator.prototype.getClassId = function () {
|
|
185
|
+
return AggregatorFactory_1.AggregatorFactory.MIN;
|
|
186
|
+
};
|
|
187
|
+
MinAggregator.prototype.readData = function (input) {
|
|
188
|
+
this.attributePath = input.readUTF();
|
|
189
|
+
input.readObject();
|
|
190
|
+
};
|
|
191
|
+
MinAggregator.prototype.writeData = function (output) {
|
|
192
|
+
output.writeUTF(this.attributePath);
|
|
193
|
+
output.writeObject(null);
|
|
194
|
+
};
|
|
195
|
+
return MinAggregator;
|
|
196
|
+
}(AbstractAggregator));
|
|
197
|
+
exports.MinAggregator = MinAggregator;
|
|
198
|
+
var IntegerAverageAggregator = /** @class */ (function (_super) {
|
|
199
|
+
__extends(IntegerAverageAggregator, _super);
|
|
200
|
+
function IntegerAverageAggregator() {
|
|
201
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
202
|
+
}
|
|
203
|
+
IntegerAverageAggregator.prototype.getClassId = function () {
|
|
204
|
+
return AggregatorFactory_1.AggregatorFactory.INT_AVG;
|
|
205
|
+
};
|
|
206
|
+
IntegerAverageAggregator.prototype.readData = function (input) {
|
|
207
|
+
this.attributePath = input.readUTF();
|
|
208
|
+
input.readLong();
|
|
209
|
+
input.readLong();
|
|
210
|
+
};
|
|
211
|
+
IntegerAverageAggregator.prototype.writeData = function (output) {
|
|
212
|
+
output.writeUTF(this.attributePath);
|
|
213
|
+
output.writeLong(Long.ZERO);
|
|
214
|
+
output.writeLong(Long.ZERO);
|
|
215
|
+
};
|
|
216
|
+
return IntegerAverageAggregator;
|
|
217
|
+
}(AbstractAggregator));
|
|
218
|
+
exports.IntegerAverageAggregator = IntegerAverageAggregator;
|
|
219
|
+
var IntegerSumAggregator = /** @class */ (function (_super) {
|
|
220
|
+
__extends(IntegerSumAggregator, _super);
|
|
221
|
+
function IntegerSumAggregator() {
|
|
222
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
223
|
+
}
|
|
224
|
+
IntegerSumAggregator.prototype.getClassId = function () {
|
|
225
|
+
return AggregatorFactory_1.AggregatorFactory.INT_SUM;
|
|
226
|
+
};
|
|
227
|
+
IntegerSumAggregator.prototype.readData = function (input) {
|
|
228
|
+
this.attributePath = input.readUTF();
|
|
229
|
+
input.readLong();
|
|
230
|
+
};
|
|
231
|
+
IntegerSumAggregator.prototype.writeData = function (output) {
|
|
232
|
+
output.writeUTF(this.attributePath);
|
|
233
|
+
output.writeLong(Long.ZERO);
|
|
234
|
+
};
|
|
235
|
+
return IntegerSumAggregator;
|
|
236
|
+
}(AbstractAggregator));
|
|
237
|
+
exports.IntegerSumAggregator = IntegerSumAggregator;
|
|
238
|
+
var LongAverageAggregator = /** @class */ (function (_super) {
|
|
239
|
+
__extends(LongAverageAggregator, _super);
|
|
240
|
+
function LongAverageAggregator() {
|
|
241
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
242
|
+
}
|
|
243
|
+
LongAverageAggregator.prototype.getClassId = function () {
|
|
244
|
+
return AggregatorFactory_1.AggregatorFactory.LONG_AVG;
|
|
245
|
+
};
|
|
246
|
+
LongAverageAggregator.prototype.readData = function (input) {
|
|
247
|
+
this.attributePath = input.readUTF();
|
|
248
|
+
input.readLong();
|
|
249
|
+
input.readLong();
|
|
250
|
+
};
|
|
251
|
+
LongAverageAggregator.prototype.writeData = function (output) {
|
|
252
|
+
output.writeUTF(this.attributePath);
|
|
253
|
+
output.writeLong(Long.ZERO);
|
|
254
|
+
output.writeLong(Long.ZERO);
|
|
255
|
+
};
|
|
256
|
+
return LongAverageAggregator;
|
|
257
|
+
}(AbstractAggregator));
|
|
258
|
+
exports.LongAverageAggregator = LongAverageAggregator;
|
|
259
|
+
var LongSumAggregator = /** @class */ (function (_super) {
|
|
260
|
+
__extends(LongSumAggregator, _super);
|
|
261
|
+
function LongSumAggregator() {
|
|
262
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
263
|
+
}
|
|
264
|
+
LongSumAggregator.prototype.getClassId = function () {
|
|
265
|
+
return AggregatorFactory_1.AggregatorFactory.LONG_SUM;
|
|
266
|
+
};
|
|
267
|
+
LongSumAggregator.prototype.readData = function (input) {
|
|
268
|
+
this.attributePath = input.readUTF();
|
|
269
|
+
input.readLong();
|
|
270
|
+
};
|
|
271
|
+
LongSumAggregator.prototype.writeData = function (output) {
|
|
272
|
+
output.writeUTF(this.attributePath);
|
|
273
|
+
output.writeLong(Long.ZERO);
|
|
274
|
+
};
|
|
275
|
+
return LongSumAggregator;
|
|
276
|
+
}(AbstractAggregator));
|
|
277
|
+
exports.LongSumAggregator = LongSumAggregator;
|