TopDocs* TopDocs_Deserialize_IMP(TopDocs *self, InStream *instream) { TopDocsIVARS *const ivars = TopDocs_IVARS(self); ivars->match_docs = Freezer_read_varray(instream); ivars->total_hits = InStream_Read_C32(instream); return self; }
PhraseQuery* PhraseQuery_Deserialize_IMP(PhraseQuery *self, InStream *instream) { float boost = InStream_Read_F32(instream); String *field = Freezer_read_string(instream); Vector *terms = Freezer_read_varray(instream); return S_do_init(self, field, terms, boost); }
ProximityQuery* ProximityQuery_Deserialize_IMP(ProximityQuery *self, InStream *instream) { float boost = InStream_Read_F32(instream); String *field = Freezer_read_string(instream); VArray *terms = Freezer_read_varray(instream); uint32_t within = InStream_Read_C32(instream); return S_do_init(self, field, terms, boost, within); }
PolyCompiler* PolyCompiler_Deserialize_IMP(PolyCompiler *self, InStream *instream) { PolyCompilerIVARS *const ivars = PolyCompiler_IVARS(self); String *class_name = Freezer_read_string(instream); DECREF(class_name); // TODO Don't serialize class name. ivars->children = Freezer_read_varray(instream); PolyCompiler_Deserialize_t super_deserialize = SUPER_METHOD_PTR(POLYCOMPILER, LUCY_PolyCompiler_Deserialize); return super_deserialize(self, instream); }