Module riak_pb_search_codec

Utility functions for Protocol Buffers encoding and decoding of Riak Search-related messages.

Description

Utility functions for Protocol Buffers encoding and decoding of Riak Search-related messages. These are used inside the client and server code and do not normally need to be used in application code.

Function Index

decode_search_doc/1Decodes a Protocol Buffers message search-doc into proplist of document fields and values.
encode_search_doc/1Encodes a property-list of indexed-document fields into a search-doc Protocol Buffers message.

Function Details

decode_search_doc/1

decode_search_doc(Rpbsearchdoc::#rpbsearchdoc{fields = [#rpbpair{key = binary(), value = binary() | undefined}]}) -> [{binary(), binary()}]

Decodes a Protocol Buffers message search-doc into proplist of document fields and values.

encode_search_doc/1

encode_search_doc(PList::[{binary(), binary()}]) -> #rpbsearchdoc{fields = [#rpbpair{key = binary(), value = binary() | undefined}]}

Encodes a property-list of indexed-document fields into a search-doc Protocol Buffers message.


Generated by EDoc