Lucy::Index::DataReader - Abstract base class for reading index data.
# Abstract base class.
DataReader is the companion class to DataWriter. Every index component will implement one of each.
my $reader = MyDataReader->new( schema => $seg_reader->get_schema, # default undef folder => $seg_reader->get_folder, # default undef snapshot => $seg_reader->get_snapshot, # default undef segments => $seg_reader->get_segments, # default undef seg_tick => $seg_reader->get_seg_tick, # default -1 );
segmentsarray that this particular DataReader is assigned to, if any. A value of -1 indicates that no Segment should be assigned.
my $result = $data_reader->aggregator( readers => $readers # required offsets => $offsets # required );
Create a reader which aggregates the output of several lower level readers. Return undef if such a reader is not valid.
my $schema = $data_reader->get_schema();
Accessor for “schema” member var.
my $folder = $data_reader->get_folder();
Accessor for “folder” member var.
my $snapshot = $data_reader->get_snapshot();
Accessor for “snapshot” member var.
my $arrayref = $data_reader->get_segments();
Accessor for “segments” member var.
my $segment = $data_reader->get_segment();
Accessor for “segment” member var.
my $int = $data_reader->get_seg_tick();
Accessor for “seg_tick” member var.
Lucy::Index::DataReader isa 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.