示例#1
0
文件: chain.py 项目: animator/titus2
 def converter(avroType):
     original = jsonDecoder(pool.avroType,
                            jsonlib.loads(pool.init))
     return jsonlib.dumps(jsonEncoder(avroType, original))
示例#2
0
 def __call__(self, state, scope, pos, paramTypes, x):
     return json.dumps(jsonEncoder(jsonNodeToAvroType(paramTypes[0]), x),
                       separators=(",", ":"))
示例#3
0
 def converter(avroType):
     original = jsonDecoder(pool.avroType, jsonlib.loads(pool.init))
     return jsonlib.dumps(jsonEncoder(avroType, original))
示例#4
0
文件: cast.py 项目: ajutzeler/hadrian
 def __call__(self, state, scope, pos, paramTypes, x):
     return json.dumps(jsonEncoder(jsonNodeToAvroType(paramTypes[0]), x), separators=(",", ":"))