parcel | Lucy |
class variable | LUCY_DOCREADER |
struct symbol | lucy_DocReader |
class nickname | lucy_DocReader |
header file | Lucy/Index/DocReader.h |
Lucy::Index::DocReader – Retrieve stored documents.
DocReader defines the interface by which documents (with all stored fields) are retrieved from the index. The default implementation returns HitDoc objects.
lucy_HitDoc* // incremented
lucy_DocReader_Fetch_Doc(
lucy_DocReader *self,
int32_t doc_id
);
Retrieve the document identified by doc_id
.
Returns: a HitDoc.
lucy_DocReader* // incremented
lucy_DocReader_Aggregator(
lucy_DocReader *self,
cfish_Vector *readers,
lucy_I32Array *offsets
);
Returns a DocReader which divvies up requests to its sub-readers according to the offset range.
An array of DocReaders.
Doc id start offsets for each reader.
lucy_Schema*
lucy_DocReader_Get_Schema(
lucy_DocReader *self
);
Accessor for “schema” member var.
lucy_Folder*
lucy_DocReader_Get_Folder(
lucy_DocReader *self
);
Accessor for “folder” member var.
lucy_Snapshot*
lucy_DocReader_Get_Snapshot(
lucy_DocReader *self
);
Accessor for “snapshot” member var.
cfish_Vector*
lucy_DocReader_Get_Segments(
lucy_DocReader *self
);
Accessor for “segments” member var.
lucy_Segment*
lucy_DocReader_Get_Segment(
lucy_DocReader *self
);
Accessor for “segment” member var.
int32_t
lucy_DocReader_Get_Seg_Tick(
lucy_DocReader *self
);
Accessor for “seg_tick” member var.
Lucy::Index::DocReader is a Lucy::Index::DataReader 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.