-
Notifications
You must be signed in to change notification settings - Fork 68
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add put_all() to MultiMap [API-1235] (#600)
Added multimap put-all
- Loading branch information
1 parent
5829049
commit ba61af0
Showing
5 changed files
with
100 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
from hazelcast.protocol.client_message import OutboundMessage, REQUEST_HEADER_SIZE, create_initial_buffer | ||
from hazelcast.protocol.builtin import StringCodec | ||
from hazelcast.protocol.builtin import EntryListCodec | ||
from hazelcast.protocol.builtin import DataCodec | ||
from hazelcast.protocol.builtin import ListDataCodec | ||
|
||
# hex: 0x021700 | ||
_REQUEST_MESSAGE_TYPE = 136960 | ||
# hex: 0x021701 | ||
_RESPONSE_MESSAGE_TYPE = 136961 | ||
|
||
_REQUEST_INITIAL_FRAME_SIZE = REQUEST_HEADER_SIZE | ||
|
||
|
||
def encode_request(name, entries): | ||
buf = create_initial_buffer(_REQUEST_INITIAL_FRAME_SIZE, _REQUEST_MESSAGE_TYPE) | ||
StringCodec.encode(buf, name) | ||
EntryListCodec.encode(buf, entries, DataCodec.encode, ListDataCodec.encode, True) | ||
return OutboundMessage(buf, False) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters