Skip to content

Commit

Permalink
Support bitmap indexes (#304)
Browse files Browse the repository at this point in the history
* Support bitmap indexes

* fix ReferenceObjects

* make options nullable
  • Loading branch information
taburet authored and sancar committed Jan 27, 2020
1 parent 48ba470 commit e764335
Show file tree
Hide file tree
Showing 7 changed files with 25 additions and 1 deletion.
1 change: 1 addition & 0 deletions binary/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@
'ListenerConfigHolder',
'AttributeConfig',
'IndexConfig',
'BitmapIndexOptions',
'MapStoreConfigHolder',
'MerkleTreeConfig',
'NearCacheConfigHolder',
Expand Down
3 changes: 3 additions & 0 deletions binary/reference_objects.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,9 @@ def __init__(self, most_sig_bits, least_sig_bits):
},
'IndexConfig': {
'type': 1
},
'BitmapIndexOptions': {
'uniqueKeyTransformation': 1
}
}

Expand Down
1 change: 1 addition & 0 deletions binary/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -362,6 +362,7 @@ def encoder_for(self, param_type):
'ListenerConfigHolder': 'aListenerConfigHolder',
'AttributeConfig': 'aAttributeConfig',
'IndexConfig': 'anIndexConfig',
'BitmapIndexOptions': 'aBitmapIndexOptions',
'MapStoreConfigHolder': 'aMapStoreConfigHolder',
'MerkleTreeConfig': 'aMerkleTreeConfig',
'NearCacheConfigHolder': 'aNearCacheConfigHolder',
Expand Down
1 change: 1 addition & 0 deletions java/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ def java_types_decode(key):
"QueryCacheConfigHolder": "com.hazelcast.client.impl.protocol.task.dynamicconfig.QueryCacheConfigHolder",
"DistributedObjectInfo": "com.hazelcast.client.impl.client.DistributedObjectInfo",
"IndexConfig": "com.hazelcast.config.IndexConfig",
"BitmapIndexOptions": "com.hazelcast.config.BitmapIndexOptions",
"AttributeConfig": "com.hazelcast.config.AttributeConfig",
"ListenerConfigHolder": "com.hazelcast.client.impl.protocol.task.dynamicconfig.ListenerConfigHolder",
"CacheSimpleEntryListenerConfig": "com.hazelcast.config.CacheSimpleEntryListenerConfig",
Expand Down
16 changes: 16 additions & 0 deletions protocol-definitions/custom/Custom.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,22 @@ customTypes:
type: List_String
nullable: false
since: 2.0
- name: bitmapIndexOptions
type: BitmapIndexOptions
nullable: true
since: 2.0
- name: BitmapIndexOptions
since: 2.0
returnWithFactory: true
params:
- name: uniqueKey
type: String
nullable: false
since: 2.0
- name: uniqueKeyTransformation
type: int
nullable: false
since: 2.0
- name: MapStoreConfigHolder
since: 2.0
params:
Expand Down
3 changes: 2 additions & 1 deletion schema/custom-codec-schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@
"ListenerConfigHolder",
"AttributeConfig",
"IndexConfig",
"BitmapIndexOptions",
"MapStoreConfigHolder",
"MerkleTreeConfig",
"NearCacheConfigHolder",
Expand Down Expand Up @@ -150,4 +151,4 @@
"required": [
"customTypes"
]
}
}
1 change: 1 addition & 0 deletions schema/protocol-schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@
"ListenerConfigHolder",
"AttributeConfig",
"IndexConfig",
"BitmapIndexOptions",
"MapStoreConfigHolder",
"MerkleTreeConfig",
"NearCacheConfigHolder",
Expand Down

0 comments on commit e764335

Please sign in to comment.