@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
SegmentInfoFormat
SegmentInfo
data from a directory.read
in class SegmentInfoFormat
dir
- 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
SegmentInfoFormat
SegmentInfo
data.
The codec must add its SegmentInfo filename(s) to info
before doing i/o.write
in class SegmentInfoFormat
IOException
- If an I/O error occursCopyright © 2000–2015 The Apache Software Foundation. All rights reserved.