@Deprecated public class Lucene50SegmentInfoFormat extends SegmentInfoFormat
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
SI_EXTENSION
Deprecated.
File extension used to store
SegmentInfo . |
Constructor and Description |
---|
Lucene50SegmentInfoFormat()
Deprecated.
Sole constructor.
|
Modifier and Type | Method and Description |
---|---|
SegmentInfo |
read(Directory dir,
java.lang.String segment,
byte[] segmentID,
IOContext context)
Deprecated.
Read
SegmentInfo data from a directory. |
void |
write(Directory dir,
SegmentInfo si,
IOContext ioContext)
Deprecated.
Write
SegmentInfo data. |
public static final java.lang.String SI_EXTENSION
SegmentInfo
.public Lucene50SegmentInfoFormat()
public SegmentInfo read(Directory dir, java.lang.String segment, byte[] segmentID, IOContext context) throws java.io.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 segmentjava.io.IOException
- If an I/O error occurspublic void write(Directory dir, SegmentInfo si, IOContext ioContext) throws java.io.IOException
SegmentInfoFormat
SegmentInfo
data.
The codec must add its SegmentInfo filename(s) to info
before doing i/o.write
in class SegmentInfoFormat
java.io.IOException
- If an I/O error occursCopyright © 2000–2019 The Apache Software Foundation. All rights reserved.