Module kmr4py

Module kmr4py

source code

Python Binding for KMR Map-Reduce Library. This provides straightforward wrappers to the C routines. See more abort KMR at "http://mt.aics.riken.jp/kmr". All key-value data is stored in C structures after encoding/decoding Python objects to byte arrays in C. Documentation in Python is minimum, so please refer to the documentation in C.


Version: 20160425

Classes
  KMR
KMR context.
  KVS
KVS.
Functions
 
fin()
Finishes using KMR4PY.
source code
 
listify(kvs)
Returns an array of LOCAL contents.
source code
Variables
  kmrso = ctypes.CDLL("libkmr.so")
kmrso holds a libkmr.so library object.
  cpickle_protocol = 0
cpickle_protocol specifies a protocol used in encoding/decoding key-value fields.
  warning_function = warnings.warn
warning_function specifies the function used to issue warnings.
  ignore_exceptions_in_map_fn = True
ignore_exceptions_in_map_fn=True makes exceptions ignored.
  print_backtrace_in_map_fn = True
print_backtrace_in_map_fn=True makes backtraces are printed at exceptions in mapper/reducer functions.
  force_null_terminate_in_cstring = True
force_null_terminate_in_cstring specifies to add a null-terminator in C strings.
Variables Details

cpickle_protocol

cpickle_protocol specifies a protocol used in encoding/decoding key-value fields. NOTE: The highest protocol of cpickle (value 2) is avoided because it fails to encode/decode integer zero in python-2.7.10, gcc-4.8.2, x86-64.

Value:
0

force_null_terminate_in_cstring

force_null_terminate_in_cstring specifies to add a null-terminator in C strings. Do not change it while some KVS'es are live.

Value:
True