public class SimpleTextCompoundFormat extends CompoundFormat
FOR RECREATIONAL USE ONLY
| Constructor and Description |
|---|
SimpleTextCompoundFormat()
Sole constructor.
|
| Modifier and Type | Method and Description |
|---|---|
Directory |
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 Directory getCompoundReader(Directory dir, SegmentInfo si, IOContext context) throws java.io.IOException
CompoundFormatgetCompoundReader in class CompoundFormatjava.io.IOExceptionpublic void write(Directory dir, SegmentInfo si, IOContext context) throws java.io.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 CompoundFormatjava.io.IOExceptionCopyright © 2000–2025 The Apache Software Foundation. All rights reserved.