@Deprecated public class Lucene46SegmentInfoFormat extends SegmentInfoFormat
| Constructor and Description |
|---|
Lucene46SegmentInfoFormat()
Deprecated.
Sole constructor.
|
| Modifier and Type | Method and Description |
|---|---|
SegmentInfo |
read(Directory dir,
String segment,
byte[] segmentID,
IOContext context)
Deprecated.
Read
SegmentInfo data from a directory. |
void |
write(Directory dir,
SegmentInfo info,
IOContext ioContext)
Deprecated.
Write
SegmentInfo data. |
public Lucene46SegmentInfoFormat()
public SegmentInfo read(Directory dir, String segment, byte[] segmentID, IOContext context) throws IOException
SegmentInfoFormatSegmentInfo data from a directory.read in class SegmentInfoFormatdir - directory to read fromsegment - name of the segment to readsegmentID - expected identifier for the segmentIOException - If an I/O error occurspublic void write(Directory dir, SegmentInfo info, IOContext ioContext) throws IOException
SegmentInfoFormatSegmentInfo data.
The codec must add its SegmentInfo filename(s) to info before doing i/o.write in class SegmentInfoFormatIOException - If an I/O error occursCopyright © 2000-2017 The Apache Software Foundation. All Rights Reserved.