org.apache.lucene.codecs.lucene46
Class Lucene46SegmentInfoReader

java.lang.Object
  extended by org.apache.lucene.codecs.SegmentInfoReader
      extended by org.apache.lucene.codecs.lucene46.Lucene46SegmentInfoReader

public class Lucene46SegmentInfoReader
extends SegmentInfoReader

Lucene 4.6 implementation of SegmentInfoReader.

See Also:
Lucene46SegmentInfoFormat
WARNING: This API is experimental and might change in incompatible ways in the next release.

Constructor Summary
Lucene46SegmentInfoReader()
          Sole constructor.
 
Method Summary
 SegmentInfo read(Directory dir, String segment, IOContext context)
          Read SegmentInfo data from a directory.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Lucene46SegmentInfoReader

public Lucene46SegmentInfoReader()
Sole constructor.

Method Detail

read

public SegmentInfo read(Directory dir,
                        String segment,
                        IOContext context)
                 throws IOException
Description copied from class: SegmentInfoReader
Read SegmentInfo data from a directory.

Specified by:
read in class SegmentInfoReader
Parameters:
dir - directory to read from
segment - name of the segment to read
Returns:
infos instance to be populated with data
Throws:
IOException - If an I/O error occurs


Copyright © 2000-2014 Apache Software Foundation. All Rights Reserved.