# Auto-generated file -- DO NOT EDIT!!!!! # Licensed to the Apache Software Foundation (ASF) under one or more # contributor license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright ownership. # The ASF licenses this file to You under the Apache License, Version 2.0 # (the "License"); you may not use this file except in compliance with # the License. You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. =head1 NAME Lucy::Index::DataReader - Abstract base class for reading index data. =head1 SYNOPSIS # Abstract base class. =head1 DESCRIPTION DataReader is the companion class to L. Every index component will implement one of each. =head1 CONSTRUCTORS =head2 new( I<[labeled params]> ) 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 ); =over =item * B - A Schema. =item * B - A Folder. =item * B - A Snapshot. =item * B - An array of Segments. =item * B - The array index of the Segment object within the C<< segments >> array that this particular DataReader is assigned to, if any. A value of -1 indicates that no Segment should be assigned. =back =head1 ABSTRACT METHODS =head2 aggregator( I<[labeled params]> ) Create a reader which aggregates the output of several lower level readers. Return undef if such a reader is not valid. =over =item * B - An array of DataReaders. =item * B - Doc id start offsets for each reader. =back =head1 METHODS =head2 get_schema() Accessor for "schema" member var. =head2 get_folder() Accessor for "folder" member var. =head2 get_snapshot() Accessor for "snapshot" member var. =head2 get_segments() Accessor for "segments" member var. =head2 get_segment() Accessor for "segment" member var. =head2 get_seg_tick() Accessor for "seg_tick" member var. =head1 INHERITANCE Lucy::Index::DataReader isa L. =cut