parcel | Lucy |
class variable | LUCY_DATAREADER |
struct symbol | lucy_DataReader |
class nickname | lucy_DataReader |
header file | Lucy/Index/DataReader.h |
Lucy::Index::DataReader – Abstract base class for reading index data.
DataReader is the companion class to DataWriter. Every index component will implement one of each.
lucy_DataReader*
lucy_DataReader_init(
lucy_DataReader *self,
lucy_Schema *schema,
lucy_Folder *folder,
lucy_Snapshot *snapshot,
cfish_Vector *segments,
int32_t seg_tick
);
Abstract initializer.
A Schema.
A Folder.
A Snapshot.
An array of Segments.
The array index of the Segment object within the
segments
array that this particular DataReader is assigned
to, if any. A value of -1 indicates that no Segment should be
assigned.
lucy_DataReader* // incremented
lucy_DataReader_Aggregator(
lucy_DataReader *self,
cfish_Vector *readers,
lucy_I32Array *offsets
);
Create a reader which aggregates the output of several lower level readers. Return NULL if such a reader is not valid.
An array of DataReaders.
Doc id start offsets for each reader.
lucy_Schema*
lucy_DataReader_Get_Schema(
lucy_DataReader *self
);
Accessor for “schema” member var.
lucy_Folder*
lucy_DataReader_Get_Folder(
lucy_DataReader *self
);
Accessor for “folder” member var.
lucy_Snapshot*
lucy_DataReader_Get_Snapshot(
lucy_DataReader *self
);
Accessor for “snapshot” member var.
cfish_Vector*
lucy_DataReader_Get_Segments(
lucy_DataReader *self
);
Accessor for “segments” member var.
lucy_Segment*
lucy_DataReader_Get_Segment(
lucy_DataReader *self
);
Accessor for “segment” member var.
int32_t
lucy_DataReader_Get_Seg_Tick(
lucy_DataReader *self
);
Accessor for “seg_tick” member var.
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.