parcel | Lucy |
class variable | LUCY_ARCHITECTURE |
struct symbol | lucy_Architecture |
class nickname | lucy_Arch |
header file | Lucy/Plan/Architecture.h |
Lucy::Plan::Architecture – Configure major components of an index.
By default, a Lucy index consists of several main parts: lexicon, postings, stored documents, deletions, and highlight data. The readers and writers for that data are spawned by Architecture. Each component operates at the segment level; Architecture’s factory methods are used to build up SegWriter and SegReader.
lucy_Architecture* // incremented
lucy_Arch_new(void);
Constructor. Takes no arguments.
lucy_Architecture*
lucy_Arch_init(
lucy_Architecture *self
);
Initialize an Architecture.
void
lucy_Arch_Register_Doc_Writer(
lucy_Architecture *self,
lucy_SegWriter *writer
);
Spawn a DataWriter and Register() it with the supplied SegWriter, adding it to the SegWriter’s writer stack.
A SegWriter.
void
lucy_Arch_Register_Doc_Reader(
lucy_Architecture *self,
lucy_SegReader *reader
);
Spawn a DocReader and register it with the supplied SegReader.
A SegReader.
bool
lucy_Arch_Equals(
lucy_Architecture *self,
cfish_Obj *other
);
Returns true for any Architecture object. Subclasses should override this weak check.
Lucy::Plan::Architecture is a Clownfish::Obj.
Copyright © 2010-2015 The Apache Software Foundation, Licensed under the
Apache License, Version 2.0.
Apache Lucy, Lucy, Apache, the Apache feather logo, and the Apache Lucy project logo are trademarks of The
Apache Software Foundation. All other marks mentioned may be trademarks or registered trademarks of their
respective owners.