public final class Lucene50CompoundFormat extends CompoundFormat
Files:
Description:
IndexHeaderVIntUInt64StringCodecFooterNotes:
| Constructor and Description |
|---|
Lucene50CompoundFormat()
Sole constructor.
|
| Modifier and Type | Method and Description |
|---|---|
CompoundDirectory |
getCompoundReader(Directory dir,
SegmentInfo si,
IOContext context)
Returns a Directory view (read-only) for the compound files in this segment
|
void |
write(Directory dir,
SegmentInfo si,
IOContext context)
Packs the provided segment's files into a compound format.
|
public CompoundDirectory getCompoundReader(Directory dir, SegmentInfo si, IOContext context) throws IOException
CompoundFormatgetCompoundReader in class CompoundFormatIOExceptionpublic void write(Directory dir, SegmentInfo si, IOContext context) throws IOException
CompoundFormatSegmentInfo must have CodecUtil.writeIndexHeader(org.apache.lucene.store.DataOutput, java.lang.String, int, byte[], java.lang.String)
and CodecUtil.writeFooter(org.apache.lucene.store.IndexOutput).write in class CompoundFormatIOExceptionCopyright © 2000-2020 Apache Software Foundation. All Rights Reserved.