public abstract class CompoundFormat extends Object
Constructor and Description |
---|
CompoundFormat()
Sole constructor.
|
Modifier and Type | Method and Description |
---|---|
abstract Directory |
getCompoundReader(Directory dir,
SegmentInfo si,
IOContext context)
Returns a Directory view (read-only) for the compound files in this segment
|
abstract void |
write(Directory dir,
SegmentInfo si,
IOContext context)
Packs the provided segment's files into a compound format.
|
public CompoundFormat()
public abstract Directory getCompoundReader(Directory dir, SegmentInfo si, IOContext context) throws IOException
IOException
public abstract void write(Directory dir, SegmentInfo si, IOContext context) throws IOException
SegmentInfo
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)
.IOException
Copyright © 2000-2019 Apache Software Foundation. All Rights Reserved.